Motivation
Green’s function is a method for solving differential equations, the classic example being second order linear non-homogeneous differential equations of the form:
where
is an operator (e.g., the Laplacian, )
is what we’re solving for
is the resultant function
Drawing an analogy with matrix equations may be helpful to understand the general strategy underlying use of Green’s function. In matrix equations, we multiply both sides of the equation by the inverse of the matrix (i.e., operator) that takes in the vector we want to find and spits out the resultant vector:
So,
and
Similarly:
which (removing ) implies:
Where is the analogue of in eq. (2). Specifically:
We get this by multiplying both sides of eq. (2) by :
Also in eq. (4), is analogous to and is analogous to .
In this analogy, is the Green’s function.
And just as:
where is the identity matrix
So we find the Green’s function, put it back into eq. (3) and that should give us .
Finding Green’s Function
To find Green’s function, we need to impose some boundary conditions to find the constants that are associated with its solution. We’ll illustrate the concepts via a classic case – finding the Green’s function for the Laplacian operator . We start with:
Let’s establish some boundary conditions for this equation:
Furthermore, by definition:
We need to solve this equation for 2 cases:
Case 1:
Since isn’t within the boundary condition, so:
Therefore:
Case 2:
Since isn’t within the boundary condition, so:
We have 2 other pieces of information:
Condition A: At , which means:
Condition B: Recall that . Therefore,
We saw before:
and
Thus:
and
Then:
which implies:
Substituting this result into eq. (11), we get:
Putting this all together, we have:
Examples
One of the most important Green’s function is that for Poisson’s equation. I derive that Green’s function for – and find the particular solution to – this equation at the following link:
Poisson’s Equation