In this post, we will introduce Green's functions as a tool for solving ordinary differential equations. Green's functions allow us to convert differential equations that we don't know how to solve into integral equations that we do know how to solve. Let's see how this works by diving into an example. We consider a physics problem that one might encounter in a kinematics course.
Alice is driving from work back home on a long, straight road on a very dark night, so she can't see how far she has driven just by looking out the window. Nonetheless, the lights illuminating her clock and speedometer still work, so she can see how fast she is going at any given time. If Alice's work is located at position
along the road, and if she leaves work at time
, then can Alice use the information from her clock and speedometer to determine her position along the road at a given time
?
The answer to this question is yes and amounts to Alice needing to solve a certain differential equation. To see this, let
denote Alice's position as a function of time along the road, and let
denote her velocity as a function of time. Alice knows
because she can determine her velocity at any time
by looking at her speedometer and clock, but she doesn't know
. However, Alice knows that the derivative of her position with respect to time is equal to her velocity at that time. This fact can be mathematically written as
(1) ![]()
and the fact that she left work, which is located at
, at time
can be mathematically written as
(2) ![]()
Therefore, to determine
, Alice needs to solve the first order differential equation above subject to this initial condition. In math, solving such a differential equation subject to an initial conditions is called an "initial value problem" for this reason. You may already know how to solve this equation without using Green's functions, but we want to use Green's functions here to explain how they arise in a simple example. Here's how we proceed.
First, for each real number
, we find a function
that has the following property
(3) ![]()
where
is the Dirac delta function. I've used a "G" to label this function because
turns out to be an example of a Green's function. I won't get into how we find such a function just yet because I want to show you how it would be useful first. Next, let
be given, and notice that given any
satisfying
we have
(4) ![]()
The integral on the left can be integrated by parts to give
(5) 
Putting these two facts together, and evaluating the boundary term coming from integration by parts at the endpoints
and
, we get
(6) ![]()
Since we were originally given the initial value
of
but don't know its final value
for a given
, it would be helpful
also satisfied the following condition:
(7) ![]()
We will see soon that it is always possible to pick
in this way, so we assume that this has been done and that therefore, the equation for
reduces to
(8) ![]()
In the beginning, I said that Green's functions can be used to convert differential equations into integral equations that we know how to solve. If we were to have an explicit form for
, then we would have achieved this because we have written an integral equation in which
is written as a expression involving integrals of known functions
and
. This integral may still be hard to perform in practice, but at least we have solved for
in principle.
We now turn to the question of how we determine an explicit expression for
. In particular, we are looking for
that satisfies
(9) ![]()
Recall that if
, then
, so the differential equation satisfied by
gives
(10) ![]()
This implies that
is constant in both the region
and in the region
. These constants must be different because otherwise the derivative of
at
would not be infinite as is necessary for it to behave like a delta function. Thus, there are real numbers
and
with
such that
(11) ![]()
In other words, we see that for a given
, plotting
as a function of
gives a step function that jumps from the value
for
to the value
for
. A nice, compact way of writing this is
(12) ![]()
where
is the Heaviside step function defined as
(13) ![]()
The condition
for
applied to our latest expression for
gives
(14) ![]()
so
. Using this and the fact that the derivative of the Heaviside step function is the Dirac delta;
(15) ![]()
we get
(16) ![]()
which means that
by our original equation
. Putting this together gives
(17) ![]()
If we plug this into the integral equation we got for
, then we find
(18) ![]()
which for any
gives
(19) ![]()
This is precisely the solution you would have obtained if you were to have integrated both sides of our original differential equation from
to
. Although that method of direct integration would be much simpler for this differential equation, there are instances of other differential equations where such direct integration is not possible, and Green's functions become very useful.
At this point, I'd like to try and help the reader develop some physical intuition for the Green's function we just derived. Let us think of
as the position of an object as a function of
. Then for all times
, the object is just sitting still at
, then at time
, the position of the object jumps discontinuously from
to
, and for all times
, the object is standing still again. This would happen if somehow that object could instantaneously accelerate from zero velocity to infinite velocity precisely when
has value
, and then instantaneously decelerate back to zero velocity. You might think of this as a spaceship that fires it's rear thrusters on full blast very abruptly and for a very short period of time, moves a certain amount essentially instantaneously, and then very abruptly fires its front thrusters to stop essentially instantaneously.
Last updated: February 9, 2013
Good exposition. Still, I would like you to denote the Green's function as G(t|tau) instead of using a subscript "t".
Regards,
Vladimir.
Thanks for the comment Vladimir. Yes I think that notation is more standard; I'll attempt to change the notation soon.
In Eq. (4) the prime is missing.
Thanks Vladimir; the typo has been corrected.
Hi Joshua,
I like this article :-)
Could you explain on your blog, what mathematical prerequisits are needed to understand string theory and then give, in some kind of an ongoing series of blog articles, nice introductions to these mathematical topics including links to further (introductary and advanced) references for the very curious and interested readers? Of course such introductory articles to important mathematical concepts are most fun to read, when they already include hints at what cool physics things can be done with the stuff ... :-)
On physics SE all questions asking about the mathematical prerequisits to study string theory get closed before they have obtained a nice answer :-/
@Dilaton Yeah I can definitely give my opinion on what road one can take to learn the math for strings and theoretical physics in general. Perhaps I'll make a separate page for book recommendations and online resources etc. I definitely plan to write ongoing series' of articles essentially as you describe. I started with Green's functions because they are ubiquitous in physics (especially in quantum field theory where they become a truly fundamental object), and I plan to run with Green's functions for a while. You ongoing comments and suggestions about the exposition will always be appreciated! Cheers!
Thanks Joshua,
I look forward to see your site evolving!
The Green's functions actually come in for me quite handy too :-D.
Your posts on physics SE and what you plan to do here is very helpful.
Cheers
Sorry Joshua for picking at you again,
but your view about learning math for strings, and some good book recommendations for theoretical physics will be actually very needed. David Zaslavsky actually said in chat that such information (about books or mathematical prerequisits) will for SE policy reasons no longe be allowed to be asked. He says such information, even though it would be valuable to many physicists, does not have to be on the site. Some information could go into the tag wikis, but honestly who is writing such extended tag wikis...?
So I look forward very much to what you will do in the course of time :-)
Cheers
Dilaton. I'm working on this as we speak. I've changed the page where I'll post my notes into a page with physics/maths resources in general. On this page, I'll attempt to include recommendations like those you requested. Please leave comments on that page if you have suggestions for the sorts of materials I should start posting there.