Green's Functions
put simply, a green's function tells us how a system responds to a single, sharp poke. as usual, the name comes from some person who lived a long time ago called george green.
imagine a calm pond. you drop one pebble at one exact place and one exact moment. ripples spread outward in circles.
now imagine a different pond. this one is muddy, or shallow, or has plants at the bottom. you drop the same pebble in the same way, but the ripples look different. they may spread slower, fade faster, or even distort. the pebble is the same. what changed is the pond.
for a given pond, that ripple pattern is its green's function. it captures how that specific system responds to a tiny, localised disturbance.
now suppose you have a differential equation of the form:
$$\mathcal{L}\, u(x) = f(x)$$where $\mathcal{L}$ is some linear differential operator (think: something involving derivatives, like $-\frac{d^2}{dx^2}$), $f(x)$ is the forcing term (the pattern of pebbles), and $u(x)$ is the response you want to find.
the green's function $G(x, x')$ is defined as the solution to this equation when the forcing is a single infinitely sharp spike at position $x'$:
$$\mathcal{L}\, G(x, x') = \delta(x - x')$$the $\delta(x - x')$ is the dirac delta function. it is zero everywhere except at $x = x'$, where it is infinite in just the right way so that its integral equals one. it is the mathematical idealisation of a single pebble dropped at exactly one point.
now here is the powerful idea. if you know how the pond responds to one pebble, you know how it responds to any pattern of pebbles.
a complicated forcing $f(x)$ can be thought of as a continuous superposition of delta spikes, one at each point $x'$, each with weight $f(x')$:
$$f(x) = \int f(x')\, \delta(x - x')\, dx'$$because $\mathcal{L}$ is linear, effects add. so the solution $u(x)$ is just the corresponding superposition of green's function responses:
$$u(x) = \int G(x, x')\, f(x')\, dx'$$this is the convolution integral. it says: to find the response to any forcing, slide the green's function across every point, weight it by how hard you're poking at that point, and add everything up. the complicated problem reduces to a single integral once you know $G$.
to make this concrete, consider the one-dimensional heat equation on the real line. heat spreads through a rod according to:
$$\frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2}$$if at time $t = 0$ all the heat is concentrated at a single point $x = 0$, meaning the initial condition is $u(x, 0) = \delta(x)$, then the solution is:
$$G(x, t) = \frac{1}{\sqrt{4\pi t}}\, e^{-x^2 / 4t}$$this is a gaussian. it starts as an infinitely sharp spike and spreads outward over time, getting wider and shorter while its total area stays exactly one. that is the green's function of the heat equation: the response to a single point source of heat, showing how warmth diffuses through the rod from one localised spot.
once you have this, the solution for any initial temperature distribution $f(x)$ is immediately:
$$u(x, t) = \int_{-\infty}^{\infty} G(x - x', t)\, f(x')\, dx' = \frac{1}{\sqrt{4\pi t}} \int_{-\infty}^{\infty} e^{-(x-x')^2/4t}\, f(x')\, dx'$$you do not need to solve the equation again. you just integrate.
this is what makes green's functions so useful. the hard work of understanding the system is done once, when you find $G$. after that, any forcing, any initial condition, any pattern of pebbles, becomes a matter of integration rather than solving a new differential equation from scratch.