On this page
A boundary-value problem is a differential equation plus conditions at both ends. Usually you solve it again for every new right-hand side. A Green's function lets you do the hard work once: find the response to one unit push, then add up those responses for any load.
A Green's function is the impulse response of an inhomogeneous linear differential operator on a domain with given initial or boundary conditions. It is named after George Green (1793–1841), a self-taught miller from Nottingham) who published his Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism in 1828.
What is a Green's function, in plain words?
Take the problem −u″ = f on 0 ≤ x ≤ 1, with u(0) = u(1) = 0. Think of f as a load and u as the response. The operator −d²/dx² is linear, so the response to two loads is the sum of the two responses.
Now replace f by a single unit spike at the point s: the Dirac delta, δ(x − s). If it is new, see our Dirac delta function explainer. The response to that spike is G(x, s). Any load f is a sum of spikes of strength f(s) ds, so by linearity:
u(x) = ∫₀¹ G(x, s) f(s) ds.
Herman's open textbook puts it the same way: the Green's function is the system's response to a point source/07%3A_Green%27s_Functions/7.02%3A_Boundary_Value_Greens_Functions).
How do you build G(x, s) for −u″ = f?
Away from x = s the load is zero, so −G″ = 0 and G is a straight line on each side.
Apply the boundary conditions. G(0, s) = 0 gives G = A x for x < s. G(1, s) = 0 gives G = B(1 − x) for x > s.
G must be continuous at x = s, so A s = B(1 − s).
Integrate −G″ = δ(x − s) across x = s. The slope drops by exactly 1: G′(s⁺) − G′(s⁻) = −B − A = −1, so A + B = 1.
Solving the last two equations gives A = 1 − s and B = s. So:
G(x, s) = x(1 − s) for 0 ≤ x ≤ s
G(x, s) = s(1 − x) for s ≤ x ≤ 1
The function is symmetric: G(x, s) = G(s, x). Herman's worked example for y″ = x² on [0, 1] uses the same function with a minus sign, because there the operator is +d²/dx² rather than −d²/dx².
Worked example: how do you solve f = 1 and check it?
Put f(s) = 1 and split the integral at s = x, where the formula changes:
u(x) = (1 − x) ∫₀ˣ s ds + x ∫ₓ¹ (1 − s) ds = (1 − x) x²/2 + x (1 − x)²/2.
Factor out x(1 − x)/2; what remains is x + (1 − x) = 1, so u(x) = x(1 − x)/2.
Now check it directly. −u″ = 1 means u = −x²/2 + C x + D. u(0) = 0 gives D = 0, and u(1) = 0 gives C = 1/2. So u = x(1 − x)/2 again, with largest value u(1/2) = 1/8.
Try one more yourself: f(x) = x. The Green's function should give u(x) = x(1 − x²)/6. Check it: differentiate twice, then test both ends.
What does a Green's function mean physically?
Picture a taut string fixed at both ends, with unit tension. For small sag u under a load f per unit length, the string obeys −u″ = f. Press it at one point s with a unit force. The string forms two straight pieces meeting at a corner: that tent is G(x, s). The corner depth is s(1 − s), deepest when you push at the middle: 1/4 for s = 1/2.
A uniform load is many small pushes added together. Adding the tents gives the smooth parabola x(1 − x)/2 from the worked example.
The recipe carries to other operators. For y″ + ω²y = f with the same end conditions, Herman's chapter builds G from sines instead of straight lines; the steps stay the same. Green's functions also connect to the eigenfunction expansions in our guide to Sturm–Liouville eigenvalues and eigenfunctions. If the homogeneous solutions feel shaky, start with how to solve second-order linear differential equations.
Where to practise next
If the delta function or the jump condition still feels slippery, the Fermi Concept Library gives each mathematics and physics concept its own lesson, so you can fill one gap without rereading a chapter. When you try the f = x exercise, the Fermi Problem Library has a step-by-step solver that explains the reasoning, so you can see where your matching went wrong.



