Green's Functions Explained
General Idea
Suppose you want to find that satisfies some linear, differential equation
where is a linear differential operator and some given function (the inhomogeneous term of the differential equation). The Green's function can help you find the solution. is a function of two variables, and it satisfies the equation
If you happen find , then you can multiply this equation by and integrate over :
Rearrange the terms and you end up with
This solves your initial problem, because you can identify
In the real world, you often deal with differential equations that have boundary conditions, for instance the electric potential must be 0 on the boundary. Green's functions are a great tool for these problems, because if the Green's function is 0 on the boundary, then any integral over Green's functions will also be 0 on the boundary. Conceptually, this is very similar to finding the image charge for any single charge within your boundary.
Completely Useless Example
Typical problem in electrostatics: Point charge in vacuum. (I left out all units). I'm including this because I first made a mistake when assigning a name to the location of the point charge. You must not name this and then integrate over !
Everyone "knows" that the solution is
.
To find it with Green's function: Solve
Obviously, we know
To find the solution, calculate
Simple, useful example: Undamped, harmonic oscillator
Consider the harmonic oscillator forced by a function :
So we are looking for a function that satisfies
The corresponding physics case to this equation is a harmonic oscillator that is "bumped" at . One solution that should work is
Or, using the Heaviside step function , which I find easier to handle when doing derivatives:
We can prove that this is the right equation by showing that it holds true for (trivial), for (almost as trivial), and for:
The last part is the only one that is a bit tricky, but you can quickly work out that the second derivative of is basically . In our case, the factor works out to .
It is quite easy to go to the damped harmonic oscillator from here. Just ask yourself "What does my system do when I poke it at with a -pulse?", use that as a guess for , and find the factor of the solution.