Green's Functions for Ordinary Differential Equations

A linear differential operator L\mathcal{L} acting on functions over an interval, together with homogeneous boundary conditions, behaves exactly like a matrix on a finite-dimensional vector space. Solving Lu=f\mathcal{L}u=f is then the continuous analogue of inverting a matrix, u=L−1fu=\mathcal{L}^{-1}f, and the Green's function G(x,ξ)G(x,\xi) is precisely the integral kernel of that inverse operator: the entry of L−1\mathcal{L}^{-1} labelled by a row xx and a column ξ\xi. Construct GG once and the response to every source ff follows by a single integral, because superposition does the rest — this is the payoff that makes the kernel worth building. Physically G(x,ξ)G(x,\xi) is the response measured at xx to a unit point source placed at ξ\xi: the deflection of a loaded string, the potential of a charged sheet between grounded plates, the motion of an oscillator struck by a sharp impulse. The delta-function source LxG=δ(x−ξ)\mathcal{L}_xG=\delta(x-\xi) makes this literal, and it is the same statement as LL−1=I\mathcal{L}\mathcal{L}^{-1}=I with the Dirac delta standing in for the identity's Kronecker delta. An arbitrary load is a weighted continuum of point sources, so the total response is their integral against GG — the bridge between the static (boundary-value) and dynamic (causal, initial-value) faces of the theory. For a regular second-order operator the construction is explicit and algorithmic: pick a homogeneous solution obeying the left boundary condition and one obeying the right, glue them at the source with continuity and a Wronskian-fixed jump in slope, and the answer organizes itself around the same machinery that drives variation of parameters. The self-adjoint (Sturm–Liouville) case is more beautiful still — GG is symmetric, real, and carries an eigenfunction expansion whose poles are the system's resonances. This article builds all of it, with two exactly-solvable examples where every number checks by hand.

Key takeaways
  • A Green's function G(x,ξ)G(x,\xi) is the kernel that inverts a linear differential operator: it solves LxG(x,ξ)=δ(x−ξ)\mathcal{L}_xG(x,\xi)=\delta(x-\xi) under the same homogeneous boundary conditions as the problem.
  • Once GG is known, the inhomogeneous equation Lu=f\mathcal{L}u=f is solved in one stroke by superposition, u(x)=∫G(x,ξ) f(ξ) dξu(x)=\int G(x,\xi)\,f(\xi)\,\mathrm{d}\xi.
  • For a second-order operator, GG is built from two boundary-adapted homogeneous solutions u1,u2u_1,u_2, glued at x=ξx=\xi by continuity plus a slope jump fixed to 1/p(ξ)1/p(\xi) by integrating the delta across the source.
  • The closed form is G=u1(x<) u2(x>)/[p(ξ)W(ξ)]G=u_1(x_<)\,u_2(x_>)/[p(\xi)W(\xi)], tying Green's functions directly to the Wronskian and to variation of parameters.
  • For self-adjoint (Sturm–Liouville) operators GG is symmetric, G(x,ξ)=G(ξ,x)G(x,\xi)=G(\xi,x) — reciprocity — and expands spectrally as G=∑nϕn(x)ϕn(ξ)/(λ−λn)G=\sum_n\phi_n(x)\phi_n(\xi)/(\lambda-\lambda_n), whose poles at λ=λn\lambda=\lambda_n are resonances.
  • When zero is an eigenvalue the ordinary GG diverges (W→0W\to0); the modified Green's function plus a Fredholm solvability condition ∫f ϕ0=0\int f\,\phi_0=0 save the day.
  • Key idea: treat L\mathcal{L} as an invertible operator on functions obeying homogeneous boundary conditions; its inverse is an integral operator whose kernel GG solves LxG(x,ξ)=δ(x−ξ)\mathcal{L}_xG(x,\xi)=\delta(x-\xi), built piecewise from boundary-adapted solutions joined by continuity and a Wronskian-fixed slope jump.
The core insight

Treat L\mathcal{L} as an invertible linear operator on a space of functions satisfying homogeneous boundary conditions; its inverse is an integral operator whose kernel G(x,ξ)G(x,\xi) solves LxG(x,ξ)=δ(x−ξ)\mathcal{L}_xG(x,\xi)=\delta(x-\xi) with the same boundary conditions, built piecewise from boundary-adapted homogeneous solutions joined by continuity and a Wronskian-fixed slope jump.

Where this lives today

The impulse-response kernel Green wrote down for grounded conductors is now one of the most reused objects in quantitative science. In structural engineering the loaded-string and Euler–Bernoulli-beam Green's functions (piecewise cubic, with continuity of G,G′,G′′G,G',G'' and a unit jump in G′′′G''') underlie the influence-line and stiffness methods that size bridges and aircraft spars. In signals and control the retarded oscillator kernel is the impulse response h(t)h(t): convolving it with an input is exactly u=∫Gfu=\int Gf, and its Laplace transform is the transfer function every filter and feedback loop is designed around. In many-body physics the resolvent G(x,ξ;λ)=∑nϕnϕn/(λn−λ)G(x,\xi;\lambda)=\sum_n\phi_n\phi_n/(\lambda_n-\lambda) becomes the single-particle Green's function whose poles are excitation energies and whose residues are spectral weights measured by photoemission. And in quantum scattering the Lippmann–Schwinger equation is nothing but the superposition formula (2) with the free-particle Green's function as kernel — the same L−1\mathcal{L}^{-1}-as-integral idea, promoted to operators, that turns a differential equation into an integral equation solvable by iteration. The open frontier is numerical: boundary-element and Green's-function Monte Carlo methods trade a volume PDE for a surface or stochastic integral against GG.

The physical picture

Take a string clamped at both ends and press it at a single interior point ξ\xi with a unit force. The string does not bow into a smooth curve — it takes two straight segments rising to a sharp kink directly under the finger, and that shape is G(x,ξ)G(x,\xi). Everywhere off the source the string is unforced, so it satisfies the homogeneous equation (straight lines, for a uniform string); the kink at ξ\xi is the delta-function source made visible as a discontinuity in slope. A general load ff is a sum of such pokes, so the loaded string's shape is the integral of GG against ff. The first figure is this picture with the numbers filled in.

Figure
The Green's function G(x, ξ) for −u″ = δ(x − ξ) on the interval 0 ≤ x ≤ 1 with u(0) = u(1) = 0, drawn for a source at ξ = 0.5: two straight segments meeting in a kink of height ξ(1 − ξ) = 0.25, with a unit downward jump in slope from +0.5 to −0.5 that encodes the point source
G(x, ξ): the loaded-string kernel — a tent peaked at the source, kink = point force 0 0.10 0.20 0 0.25 ξ = 0.5 0.75 1 position x G(x, ξ) unit source δ(x − ξ) peak = ξ(1 − ξ) = 0.25 slope +0.5 slope −0.5 jump in slope = −1 = −1/p

Two features of that tent are the whole theory in miniature. The height ξ(1−ξ)=0.25\xi(1-\xi)=0.25 at the centre is continuous, because a jump in GG itself would make G′′G'' far too singular to match a mere delta. The slope, by contrast, falls abruptly from +0.5+0.5 to −0.5-0.5, a jump of exactly −1=−1/p-1=-1/p: that discontinuity is where the delta lives, since a second derivative of a corner is a delta. Reciprocity — the symmetry G(x,ξ)=G(ξ,x)G(x,\xi)=G(\xi,x) — says the deflection at xx from a source at ξ\xi equals the deflection at ξ\xi from a source at xx; it is the ODE shadow of Betti–Rayleigh reciprocity. The same kernel has a dynamical twin. Replace the clamped string by a mass on a spring and the point source by a sharp kick, and GG becomes the impulse response: zero until the kick arrives (causality), then free oscillation forever after. The second figure shows the retarded Green's function of an undamped oscillator — the initial-value face of exactly the same L−1=\mathcal{L}^{-1}= kernel idea, now with the "right boundary" sitting at t=+∞t=+\infty.

Figure
The causal retarded impulse response G(t, t′) = (1/ω₀) sin ω₀(t − t′) for a unit impulse delivered at t′ = 0 to an oscillator with ω₀ = 2 rad/s: exactly zero before the kick, then a sine of amplitude 1/ω₀ = 0.5 s and period 2π/ω₀ = π ≈ 3.14 s
The retarded oscillator kernel: zero before the kick, free sine after — causality built in unit impulse at t′ = 0 amplitude 1/ω₀ = 0.5 period 2π/ω₀ = π ≈ 3.14 s G = 0 before the kick t 1 2 3 4 5

The core equations

The defining relation is the continuous version of "invert the matrix": GG is the response of L\mathcal{L} to the sharpest possible source — a unit spike at ξ\xi — and the boundary conditions fix it uniquely. Everything else in this article either builds GG from this equation or uses it.

Lx G(x,ξ)=δ(x−ξ)(1)\mathcal{L}_x\,G(x,\xi)=\delta(x-\xi) \qquad (1)

where: Lx\mathcal{L}_x — linear differential operator acting in the variable xx; G(x,ξ)G(x,\xi) — Green's function, the response at xx to a unit source at ξ\xi; δ(x−ξ)\delta(x-\xi) — Dirac delta, the unit point source that plays the role of the identity kernel. Read it as LL−1=I\mathcal{L}\mathcal{L}^{-1}=I. Because L\mathcal{L} is linear, a general source is handled by superposition: weight each point-source response by the local strength f(ξ)f(\xi) and integrate. This is the equation you actually use — one integral produces the solution for any forcing.

u(x)=∫abG(x,ξ) f(ξ) dξ(2)u(x)=\int_a^b G(x,\xi)\,f(\xi)\,\mathrm{d}\xi \qquad (2)

where: u(x)u(x) — solution of Lu=f\mathcal{L}u=f obeying the homogeneous boundary conditions; f(ξ)f(\xi) — inhomogeneous source or forcing term; [a,b][a,b] — the interval carrying the boundary conditions. Applying Lx\mathcal{L}_x under the integral and using (1) returns f(x)f(x) exactly. Almost any regular second-order operator can be written in self-adjoint (Sturm–Liouville) form, which is what makes the symmetric, spectral theory available. An integrating factor turns a generic a2u′′+a1u′+a0ua_2u''+a_1u'+a_0u into a single exact derivative (pu′)′(pu')'.

L=ddx ⁣(p(x)ddx)+q(x),p(x)=exp⁡ ⁣(∫a1a2 dx)(3)\mathcal{L}=\frac{\mathrm{d}}{\mathrm{d}x}\!\left(p(x)\frac{\mathrm{d}}{\mathrm{d}x}\right)+q(x),\qquad p(x)=\exp\!\left(\int\frac{a_1}{a_2}\,\mathrm{d}x\right) \qquad (3)

where: p(x)p(x) — leading coefficient, strictly positive on (a,b)(a,b); q(x)q(x) — zeroth-order coefficient; the integrating factor p/a2p/a_2 is what collapses a2u′′+a1u′a_2u''+a_1u' into (pu′)′(pu')'. In this form L\mathcal{L} is formally self-adjoint. Integrating the defining equation across an infinitesimal window around ξ\xi isolates what the delta does to GG: it leaves GG continuous but forces a definite jump in the flux pG′pG'. With continuity, this pins down the two free constants in the piecewise construction.

[ p(x) ∂xG(x,ξ) ]x=ξ−x=ξ+=1(4)\left[\,p(x)\,\partial_x G(x,\xi)\,\right]_{x=\xi^-}^{x=\xi^+}=1 \qquad (4)

where: ξ±\xi^\pm — limits approaching the source from above and below; the bounded qGqG term integrates to zero across the shrinking window, leaving only the flux jump. The jump in slope itself is 1/p(ξ)1/p(\xi). Solving (1) off the source and matching with (4) gives the closed form. Build GG from u1u_1 (satisfying the left boundary condition) below the source and u2u_2 (satisfying the right) above it, and the constants collapse onto the Wronskian.

G(x,ξ)=u1(x<) u2(x>)p(ξ) W(ξ),x<=min⁡(x,ξ),  x>=max⁡(x,ξ)(5)G(x,\xi)=\frac{u_1(x_<)\,u_2(x_>)}{p(\xi)\,W(\xi)},\qquad x_<=\min(x,\xi),\ \ x_>=\max(x,\xi) \qquad (5)

where: u1u_1 — homogeneous solution obeying the left boundary condition at aa; u2u_2 — homogeneous solution obeying the right boundary condition at bb; W=u1u2′−u1′u2W=u_1u_2'-u_1'u_2 — their Wronskian, and p Wp\,W is constant by Abel's theorem for Sturm–Liouville L\mathcal{L}. The product x<,x>x_<,x_> notation encodes the piecewise swap automatically. When L\mathcal{L} is self-adjoint its orthonormal eigenfunctions resolve the delta by completeness, and GG becomes a sum over modes — each carrying a pole at an eigenvalue, so the spectral form reads off exactly where the operator becomes singular: its resonances.

G(x,ξ;λ)=∑nϕn(x) ϕn(ξ)λn−λ(6)G(x,\xi;\lambda)=\sum_{n}\frac{\phi_n(x)\,\phi_n(\xi)}{\lambda_n-\lambda} \qquad (6)

where: ϕn\phi_n — orthonormal eigenfunctions, Lϕn=λnϕn\mathcal{L}\phi_n=\lambda_n\phi_n; λn\lambda_n — eigenvalues; λ\lambda — spectral parameter in (L−λ)G=δ(\mathcal{L}-\lambda)G=\delta. As λ→λn\lambda\to\lambda_n the nn-th term diverges — resonance — unless the source is orthogonal to ϕn\phi_n.

Derivation AConstructing the Green's function for a regular second-order BVP

The goal is to turn the abstract statement "GG inverts L\mathcal{L}" into a formula you can write down from two homogeneous solutions. We work on [a,b][a,b] with L=(p d/dx)′+q\mathcal{L}=(p\,\mathrm{d}/\mathrm{d}x)'+q and homogeneous boundary conditions at both ends, exploiting the fact that the delta source vanishes everywhere except at ξ\xi. Off that point GG solves the homogeneous equation, so the problem reduces to choosing the right homogeneous solution on each side and stitching the two together with the matching conditions the delta demands — continuity of GG and a fixed jump in its slope, with the Wronskian emerging as the determinant of the joining system.

Step 1. For x≠ξx\neq\xi the delta vanishes, so LxG=0\mathcal{L}_xG=0: on each side of the source GG is a homogeneous solution. Why: the point source can only act at ξ\xi; away from it the equation is the free one, so GG must be a combination of the two independent homogeneous solutions.

Step 2. Impose the boundary conditions by choosing G=A u1(x)G=A\,u_1(x) for x<ξx<\xi and G=B u2(x)G=B\,u_2(x) for x>ξx>\xi, where u1u_1 satisfies the left condition and u2u_2 the right. Why: GG must inherit the homogeneous boundary conditions, so below the source it can only be the boundary-adapted solution u1u_1, and above it only u2u_2; the constants A,BA,B may depend on ξ\xi.

Step 3. Demand continuity at the source, A u1(ξ)=B u2(ξ)A\,u_1(\xi)=B\,u_2(\xi). Why: if GG jumped, G′G' would contain a delta and G′′G'' a derivative of a delta — a source far more singular than the plain δ(x−ξ)\delta(x-\xi) on the right-hand side, which LG\mathcal{L}G could never match.

Step 4. Impose the slope jump from equation (4), p(ξ)[B u2′(ξ)−A u1′(ξ)]=1p(\xi)\big[B\,u_2'(\xi)-A\,u_1'(\xi)\big]=1. Why: integrating LG=δ\mathcal{L}G=\delta across the source shows the flux pG′pG' must jump by exactly one, which is the only trace the delta leaves once GG is continuous.

Step 5. Solve the two-by-two system. The determinant is p(ξ)[u1(ξ)u2′(ξ)−u1′(ξ)u2(ξ)]=p(ξ)W(ξ)p(\xi)\big[u_1(\xi)u_2'(\xi)-u_1'(\xi)u_2(\xi)\big]=p(\xi)W(\xi), giving A=u2(ξ)/[p(ξ)W(ξ)]A=u_2(\xi)/[p(\xi)W(\xi)] and B=u1(ξ)/[p(ξ)W(ξ)]B=u_1(\xi)/[p(\xi)W(\xi)]. Why: the Wronskian WW is nonzero precisely when u1,u2u_1,u_2 are independent, i.e. when the homogeneous problem has no nontrivial solution and the inverse exists.

Step 6. Assemble the two pieces into G(x,ξ)=u1(x<) u2(x>)/[p(ξ)W(ξ)]G(x,\xi)=u_1(x_<)\,u_2(x_>)/[p(\xi)W(\xi)]. Why: below the source x<=xx_<=x, x>=ξx_>=\xi and G=A u1(x)G=A\,u_1(x); above it the roles swap; and Abel's theorem makes pWpW constant, so the formula is manifestly symmetric under x↔ξx\leftrightarrow\xi. *The assembled GG is continuous, solves LG=0\mathcal{L}G=0 off the source, jumps by 1/p1/p in slope, and obeys both boundary conditions — identical to the variation-of-parameters particular solution.*

Go deeper · Derivation B · 1 minSymmetry of the self-adjoint Green's function
Derivation BSymmetry of the self-adjoint Green's function

The goal is to prove reciprocity, G(x,ξ)=G(ξ,x)G(x,\xi)=G(\xi,x), directly from self-adjointness rather than by inspecting a formula, so the result holds for every self-adjoint boundary condition — Dirichlet, Neumann, Robin, periodic — at once. The engine is Lagrange's identity, which converts vLu−uLvv\mathcal{L}u-u\mathcal{L}v into a total derivative of a bilinear boundary term (the concomitant). Integrating over the interval turns that into boundary values the self-adjoint conditions annihilate, and feeding in the delta equations for two source points collapses the rest to the symmetry statement by sifting.

Step 1. Write Lagrange's identity for L=(p d/dx)′+q\mathcal{L}=(p\,\mathrm{d}/\mathrm{d}x)'+q: v Lu−u Lv=ddx[p(vu′−uv′)]v\,\mathcal{L}u-u\,\mathcal{L}v=\frac{\mathrm{d}}{\mathrm{d}x}\big[p(vu'-uv')\big]. Why: this exact-derivative structure is the defining property of formal self-adjointness — the qq terms cancel and the pp terms bundle into a single boundary flux.

Step 2. Choose u=G(x,x1)u=G(x,x_1) and v=G(x,x2)v=G(x,x_2) and integrate over [a,b][a,b], giving ∫ab ⁣[G(x,x2)LxG(x,x1)−G(x,x1)LxG(x,x2)]dx=[p(vu′−uv′)]ab\int_a^b\!\big[G(x,x_2)\mathcal{L}_xG(x,x_1)-G(x,x_1)\mathcal{L}_xG(x,x_2)\big]\mathrm{d}x=\big[p(vu'-uv')\big]_a^b. Why: both Green's functions obey the same homogeneous boundary conditions in xx, which is exactly what will kill the right-hand side.

Step 3. The boundary term vanishes, [p(vu′−uv′)]ab=0\big[p(vu'-uv')\big]_a^b=0. Why: self-adjoint boundary conditions are defined so that the bilinear concomitant annihilates any pair of functions satisfying them, at both endpoints.

Step 4. Substitute the defining equations LxG(x,xi)=δ(x−xi)\mathcal{L}_xG(x,x_i)=\delta(x-x_i) to get ∫ab ⁣[G(x,x2)δ(x−x1)−G(x,x1)δ(x−x2)]dx=0\int_a^b\!\big[G(x,x_2)\delta(x-x_1)-G(x,x_1)\delta(x-x_2)\big]\mathrm{d}x=0. Why: each Green's function is by construction the response to a delta at its second argument, so the operator can be traded for a delta.

Step 5. Sift the deltas: G(x1,x2)−G(x2,x1)=0G(x_1,x_2)-G(x_2,x_1)=0. Why: the sifting property evaluates each integral at the delta's location, and the vanishing difference is precisely reciprocity — the response at x1x_1 to a source at x2x_2 equals the response at x2x_2 to a source at x1x_1. *This holds whenever the boundary conditions make the concomitant vanish — Dirichlet, Neumann, Robin, or periodic — and is consistent with the explicit x<,x>x_<,x_> symmetry of equation (5) once pWpW is constant.*

Go deeper · Derivation C · 1 minThe eigenfunction expansion and the origin of resonance
Derivation CThe eigenfunction expansion and the origin of resonance

The goal is to build GG a third way — not piecewise, but as a sum over the natural modes of L\mathcal{L} — and to show that this spectral form makes resonance a visible pole rather than a hidden accident. We work with the resolvent problem (L−λ)G=δ(\mathcal{L}-\lambda)G=\delta, expand both GG and the delta in the orthonormal eigenfunctions ϕn\phi_n, and match coefficients mode by mode. Completeness lets the delta be written as a sum, orthonormality lets each coefficient be read off independently, and the denominator λn−λ\lambda_n-\lambda that emerges is the whole story of driven response — it blows up exactly when the drive parameter hits an eigenvalue.

Step 1. Expand G(x,ξ)=∑ncn(ξ)ϕn(x)G(x,\xi)=\sum_n c_n(\xi)\phi_n(x) and use completeness to write the source as δ(x−ξ)=∑nϕn(x)ϕn(ξ)\delta(x-\xi)=\sum_n\phi_n(x)\phi_n(\xi). Why: the eigenfunctions of a self-adjoint operator form a complete orthonormal basis, so any function of xx — including the delta and GG itself — can be resolved onto them.

Step 2. Apply (L−λ)(\mathcal{L}-\lambda) term by term: since Lϕn=λnϕn\mathcal{L}\phi_n=\lambda_n\phi_n, this gives ∑ncn(ξ)(λn−λ)ϕn(x)=∑nϕn(x)ϕn(ξ)\sum_n c_n(\xi)(\lambda_n-\lambda)\phi_n(x)=\sum_n\phi_n(x)\phi_n(\xi). Why: each eigenfunction is left untouched in shape by L\mathcal{L} and merely scaled by λn\lambda_n, so the operator turns into simple multiplication in this basis.

Step 3. Match coefficients of each ϕn(x)\phi_n(x) to get cn(ξ)=ϕn(ξ)/(λn−λ)c_n(\xi)=\phi_n(\xi)/(\lambda_n-\lambda), hence G(x,ξ;λ)=∑nϕn(x)ϕn(ξ)/(λn−λ)G(x,\xi;\lambda)=\sum_n\phi_n(x)\phi_n(\xi)/(\lambda_n-\lambda). Why: orthonormality decouples the modes, so the coefficient of each is fixed on its own, producing the spectral representation of equation (6).

Step 4. Read off resonance: as λ→λm\lambda\to\lambda_m the mm-th term diverges unless ϕm(ξ)=0\phi_m(\xi)=0 or the source is orthogonal to ϕm\phi_m. Why: driving a self-adjoint system at one of its natural eigenvalues produces an unbounded response — the pole of the resolvent — which is the mathematical content of resonance and the seed of the Fredholm alternative when λ=0\lambda=0 is itself an eigenvalue. *The spectral form reduces to equation (5) when the mode sum is resummed for a specific operator, and the poles at λ=λn\lambda=\lambda_n match the resolvent structure of Sturm–Liouville theory.*

Limiting cases

Green's functions specialize and degenerate in instructive ways — each row below is a regime where the general machinery simplifies or breaks:

CaseResultMeaning
Self-adjoint (Sturm–Liouville) operatorG(x,ξ)=G(ξ,x)G(x,\xi)=G(\xi,x)With L=(pu′)′+q\mathcal{L}=(pu')'+q and self-adjoint boundary conditions, GG is symmetric and real — reciprocity holds and the spectral form (6) is available.
Zero eigenvalue / singular operatorW(u1,u2)=0W(u_1,u_2)=0The homogeneous BVP has a nontrivial solution ϕ0\phi_0, so u1,u2u_1,u_2 become proportional and (5) diverges; use the modified Green's function and impose ∫f ϕ0=0\int f\,\phi_0=0 (Fredholm alternative).
Causal / initial-value (retarded) limitG(t,t′)=0G(t,t')=0 for t<t′t<t'For dynamical problems the "right boundary" sits at t=+∞t=+\infty; the retarded Green's function is the causal impulse response used for driven oscillators and linear response.
Constant-coefficient operatorG(x,ξ)=G(x−ξ)G(x,\xi)=G(x-\xi)Translation invariance makes GG depend only on x−ξx-\xi (until boundaries break it), enabling Fourier construction G~(k)=1/L~(k)\tilde G(k)=1/\tilde{\mathcal{L}}(k).

Worked examples

1 · The clamped string under uniform load (fully worked)

Solve −u′′=f-u''=f on [0,1][0,1] with u(0)=u(1)=0u(0)=u(1)=0 for the uniform load f(x)=1f(x)=1, using the Green's function, and check the answer against direct integration.

Step 1. Build the kernel. Here p=1p=1, q=0q=0, so the homogeneous solutions are linear; the boundary-adapted choices are u1(x)=xu_1(x)=x (vanishes at 00) and u2(x)=1−xu_2(x)=1-x (vanishes at 11). Their Wronskian is W=u1u2′−u1′u2=x(−1)−(1)(1−x)=−1W=u_1u_2'-u_1'u_2=x(-1)-(1)(1-x)=-1, constant as Abel's theorem requires. Because L=−d2/dx2\mathcal{L}=-\mathrm{d}^2/\mathrm{d}x^2 carries an overall minus, the formula gives G=−u1(x<)u2(x>)/(pW)=−x<(1−x>)/(−1)G=-u_1(x_<)u_2(x_>)/(pW)=-x_<(1-x_>)/(-1), the positive triangular kernel G(x,ξ)=x<(1−x>)G(x,\xi)=x_<(1-x_>).

Step 2. Sanity-check the kernel. At the source G(ξ,ξ)=ξ(1−ξ)G(\xi,\xi)=\xi(1-\xi) — continuous, and equal to 0.250.25 at ξ=0.5\xi=0.5, matching the first figure. The slope just left of ξ\xi is ∂xG=1−ξ\partial_xG=1-\xi and just right is −ξ-\xi, so the jump is −ξ−(1−ξ)=−1=−1/p-\xi-(1-\xi)=\mathbf{-1}=-1/p, exactly the unit impulse for −G′′=δ-G''=\delta. Symmetry G(x,ξ)=G(ξ,x)G(x,\xi)=G(\xi,x) is manifest.

Step 3. Integrate against the load. With f=1f=1,

u(x)=∫01G(x,ξ) dξ=(1−x) ⁣∫0xξ dξ+x ⁣∫x1(1−ξ) dξ.u(x)=\int_0^1 G(x,\xi)\,\mathrm{d}\xi=(1-x)\!\int_0^x\xi\,\mathrm{d}\xi+x\!\int_x^1(1-\xi)\,\mathrm{d}\xi.

The first integral is x2/2x^2/2. The second is [ξ−ξ2/2]x1=12−(x−x2/2)\big[\xi-\xi^2/2\big]_x^1=\tfrac12-(x-x^2/2).

Step 4. Collect the pieces:

u(x)=(1−x)x22+x ⁣(12−x+x22)=x22−x22+x2=x(1−x)2.u(x)=(1-x)\frac{x^2}{2}+x\!\left(\frac12-x+\frac{x^2}{2}\right)=\frac{x^2}{2}-\frac{x^2}{2}+\frac{x}{2}=\frac{x(1-x)}{2}.

So u(x)=12x(1−x)u(x)=\tfrac12 x(1-x), a parabola pinned at both ends with maximum sag u(1/2)=1/8=0.125u(1/2)=\mathbf{1/8=0.125} at the centre.

Step 5. Verify directly. Differentiate: u′=12−xu'=\tfrac12-x, u′′=−1u''=-1, so −u′′=1=f-u''=\mathbf{1}=f, and u(0)=u(1)=0u(0)=u(1)=0. The Green's-function route and the two-line direct integration agree exactly, and the same u=∫Gfu=\int Gf now delivers the sag for any load ff without redoing the calculus.

2 · The driven oscillator via its retarded Green's function (fully worked)

A mass m=1 kgm=1\ \text{kg} on a spring has natural frequency ω0=2 rad/s\omega_0=2\ \text{rad/s} (so k=mω02=4 N/mk=m\omega_0^2=4\ \text{N/m}). Starting from rest at equilibrium, it is driven by a constant force f0=8 Nf_0=8\ \text{N} switched on at t=0t=0. Find the motion using G(t,t′)=ω0−1sin⁡ω0(t−t′) θ(t−t′)G(t,t')=\omega_0^{-1}\sin\omega_0(t-t')\,\theta(t-t').

Step 1. Confirm the kernel. For x¨+ω02x=f/m\ddot x+\omega_0^2x=f/m the retarded Green's function must satisfy (∂t2+ω02)G=δ(t−t′)(\partial_t^2+\omega_0^2)G=\delta(t-t') with G=0G=0 for t<t′t<t'. Take G=ω0−1sin⁡ω0(t−t′)G=\omega_0^{-1}\sin\omega_0(t-t') for t>t′t>t': it vanishes at t=t′t=t' (continuity) and has ∂tG→cos⁡ω0(t−t′)→1\partial_tG\to\cos\omega_0(t-t')\to\mathbf{1} as t→t′+t\to t'^+, the unit slope jump for a unit-coefficient second derivative. Amplitude 1/ω0=0.5 s1/\omega_0=0.5\ \text{s}, period 2π/ω0=π≈3.14 s2\pi/\omega_0=\pi\approx3.14\ \text{s} — the second figure.

Step 2. Superpose. The causal solution is x(t)=∫−∞tG(t,t′) f(t′)m dt′x(t)=\int_{-\infty}^t G(t,t')\,\frac{f(t')}{m}\,\mathrm{d}t'. With f(t′)/m=f0/mf(t')/m=f_0/m constant for t′>0t'>0,

x(t)=f0m∫0t1ω0sin⁡ω0(t−t′) dt′.x(t)=\frac{f_0}{m}\int_0^t\frac{1}{\omega_0}\sin\omega_0(t-t')\,\mathrm{d}t'.

Step 3. Do the integral. Substitute s=t−t′s=t-t' (dt′=−ds\mathrm{d}t'=-\mathrm{d}s, limits t→0t\to0): ∫0tsin⁡ω0s ds=[1−cos⁡ω0t]/ω0\int_0^t\sin\omega_0 s\,\mathrm{d}s=[1-\cos\omega_0 t]/\omega_0. Hence

x(t)=f0mω02(1−cos⁡ω0t)=f0k(1−cos⁡ω0t).x(t)=\frac{f_0}{m\omega_0^2}\big(1-\cos\omega_0 t\big)=\frac{f_0}{k}\big(1-\cos\omega_0 t\big).

Step 4. Put in numbers. f0/k=8/4=2 mf_0/k=8/4=\mathbf{2\ \text{m}}, so x(t)=2 (1−cos⁡2t)x(t)=2\,(1-\cos 2t): the mass oscillates about its static displacement 2 m2\ \text{m} with amplitude 2 m2\ \text{m}, swinging between 0\mathbf{0} and 4 m\mathbf{4\ \text{m}}, and reaching the far point 4 m4\ \text{m} first at 2t=π2t=\pi, i.e. t=π/2≈1.57 st=\pi/2\approx1.57\ \text{s}.

Step 5. Verify. x˙=(f0/mω0)sin⁡ω0t\dot x=(f_0/m\omega_0)\sin\omega_0 t, x¨=(f0/m)cos⁡ω0t\ddot x=(f_0/m)\cos\omega_0 t, so x¨+ω02x=(f0/m)cos⁡ω0t+(f0/m)(1−cos⁡ω0t)=f0/m\ddot x+\omega_0^2x=(f_0/m)\cos\omega_0 t+(f_0/m)(1-\cos\omega_0 t)=\mathbf{f_0/m}, and x(0)=x˙(0)=0x(0)=\dot x(0)=0. The impulse-response kernel has turned "switch on a steady force" into a one-line integral — the static offset f0/kf_0/k plus a cosine transient, the textbook signature of a suddenly loaded oscillator.

Physics of the portrait

The Green's function is named for a self-taught English miller whose 1828 pamphlet introduced both the object and the word "potential" — and then sank so completely that the mathematics had to be rediscovered before it could organize an entire field.

Origins · 1 minGeorge Green and how this was discovered
GG
George Green
1793–1841 · self-taught miller who invented the Green's function in an unread 1828 essay

George Green was born in Nottingham, the son of a baker who built a windmill; Green worked the mill and had barely a year of formal schooling. Teaching himself higher analysis from borrowed books, he published in 1828, at his own expense, "An Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism." In it he introduced the word "potential," proved the reciprocal identities that bear his name, and — the piece relevant here — constructed what he called simply "a function" for solving boundary-value problems by superposing the responses to point sources. That object is the Green's function: the kernel of L−1\mathcal{L}^{-1}, built to satisfy the boundary conditions and to reduce any inhomogeneous problem to an integral. The Essay drew only fifty-one subscribers and vanished. Green entered Cambridge as an undergraduate in 1833 at the age of forty, graduated fourth in his year, and died in 1841. It was William Thomson (Lord Kelvin) who in 1845 came upon the forgotten Essay, saw its depth, and had it reprinted — after which "Green's function" passed into the working vocabulary of electromagnetism, quantum theory, and mathematical physics. The kernel that now carries perturbation theory, scattering amplitudes, and lattice sums began as a miller's private idea for inverting the Laplacian between grounded conductors.

History
1828
— Green publishes his Essay, introducing the potential and the Green's function
1832
— Liouville and Sturm develop the eigenfunction theory that will give G its spectral form
1833
— Green enters Cambridge as an undergraduate at age forty
1845
— Thomson rediscovers and reprints Green's forgotten Essay
1894
— Heaviside and contemporaries spread operational/impulse-response methods for ODEs
1948
— Feynman and Schwinger place Green's functions at the heart of quantum field theory

Going further

Texts. Stone & Goldbart, Mathematics for Physics (CUP, 2009), Ch. 5 — the cleanest operator-theoretic treatment · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 10 · Hassani, Mathematical Physics, 2nd ed., Ch. 20–22 (Green's functions in one and more dimensions) · Byron & Fuller, Mathematics of Classical and Quantum Physics, Ch. 7 · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, 3rd ed., §15.2.5 · Morse & Feshbach, Methods of Theoretical Physics, Vol. I, Ch. 7 · Courant & Hilbert, Methods of Mathematical Physics, Vol. I, Ch. V. The key results to keep in mind: the construction (5) follows from continuity plus the jump condition (4), with system determinant pWpW. Worked Example 1 gives G=x<(1−x>)G=x_<(1-x_>), slope jump −1-1, and u=12x(1−x)u=\tfrac12x(1-x) with peak 0.1250.125 under f=1f=1. Worked Example 2 gives G=ω0−1sin⁡ω0(t−t′)θ(t−t′)G=\omega_0^{-1}\sin\omega_0(t-t')\theta(t-t') satisfying (∂t2+ω02)G=δ(\partial_t^2+\omega_0^2)G=\delta, with a step force yielding x=(f0/k)(1−cos⁡ω0t)x=(f_0/k)(1-\cos\omega_0 t), i.e. 2(1−cos⁡2t)2(1-\cos 2t) for the stated numbers. All quoted numbers — slope jump =1/p=1/p, Wronskian =−1=-1, peak sag =1/8=1/8, static offset f0/k=2 mf_0/k=2\ \text{m} — follow directly from the constructions above.

Prerequisites. Linear Second-Order ODEs · The Wronskian and Linear Independence · Variation of Parameters · Two-Point Boundary-Value Problems · Existence and Uniqueness Theorems for ODEs. Leads to. Sturm–Liouville Theory and Eigenfunction Expansions · Green's Functions for Partial Differential Equations · Fredholm Alternative and Integral Equations.

Ask the tutor: Ask me to build the Green's function for any operator and boundary conditions you like — a beam, a ring, a driven RLC circuit — and we will construct it, check the jump and symmetry, and solve it for a source of your choosing.

Why must G be continuous at the source but have a kink in its slope?

It is a matching of singularities. The right-hand side of LG=δ\mathcal{L}G=\delta is a single delta function — the mildest genuine singularity. If GG itself jumped at ξ\xi, then G′G' would contain a delta and G′′G'' a derivative of a delta, which is far too singular to equal a plain δ\delta. If instead GG is continuous but its slope jumps, then G′′G'' contains exactly one delta and nothing worse — a perfect match. So continuity is forced from above (no worse singularity allowed) and the slope jump is forced from below (some singularity is needed to produce the delta at all). Integrating the equation across the source pins the jump magnitude to 1/p(ξ)1/p(\xi).

How is the Green's-function solution related to variation of parameters?

They are the same particular solution written two ways. Variation of parameters produces up=−u1∫x ⁣u2f/(pW) dξ+u2∫x ⁣u1f/(pW) dξu_p=-u_1\int^x\! u_2 f/(pW)\,\mathrm{d}\xi+u_2\int_x\! u_1 f/(pW)\,\mathrm{d}\xi, with the two integrals split at the observation point xx. Collecting those split limits into a single integral with a kernel that changes form at ξ=x\xi=x gives exactly u(x)=∫G(x,ξ)f(ξ) dξu(x)=\int G(x,\xi)f(\xi)\,\mathrm{d}\xi with G=u1(x<)u2(x>)/(pW)G=u_1(x_<)u_2(x_>)/(pW). The Green's-function viewpoint simply names that kernel and computes it once, so that a new source needs one integral rather than a fresh application of the variation-of-parameters bookkeeping.

What exactly is "self-adjoint" and why does it matter so much here?

An operator is formally self-adjoint if ∫(v Lu−u Lv) dx\int(v\,\mathcal{L}u-u\,\mathcal{L}v)\,\mathrm{d}x reduces to boundary terms alone; the Sturm–Liouville form (pu′)′+q(pu')'+q achieves this automatically, and boundary conditions are "self-adjoint" when they make those boundary terms vanish. This matters for three reasons: it makes GG symmetric (reciprocity); it guarantees real eigenvalues and a complete orthonormal set of eigenfunctions, which the spectral expansion (6) needs; and it makes the theory the continuous mirror of Hermitian matrices, so finite-dimensional linear-algebra intuition transfers intact. Almost every operator of physics — the Laplacian, the Schrödinger operator, the string and beam operators — is self-adjoint under physical boundary conditions, which is why the beautiful case is also the usual one.

Does a Green's function always exist?

No, and the exception is important. If the homogeneous boundary-value problem Lu=0\mathcal{L}u=0 has a nontrivial solution ϕ0\phi_0 that satisfies the boundary conditions, then L\mathcal{L} has a zero eigenvalue and is not invertible — just like a singular matrix. The boundary-adapted solutions become proportional, their Wronskian vanishes, and the closed form (5) diverges. The inhomogeneous problem Lu=f\mathcal{L}u=f then has a solution only when ff is orthogonal to the zero mode, ∫f ϕ0=0\int f\,\phi_0=0 (the Fredholm alternative), and the fix is the modified Green's function, which inverts L\mathcal{L} on the subspace orthogonal to ϕ0\phi_0. This is not an exotic edge case: it is exactly the situation of a free (Neumann) rod or a periodic ring, where the constant function is a zero mode.

What is the difference between the boundary-value and causal (retarded) Green's functions?

Both solve LG=δ\mathcal{L}G=\delta; they differ only in which "boundary" data are imposed. The boundary-value kernel lives on a finite interval [a,b][a,b] and is fixed by conditions at both ends — it is symmetric and typically a tent-like shape, as in the clamped string. The causal kernel lives on the time axis and is fixed by conditions at one end only: G=0G=0 before the source, because effects cannot precede their cause, with the "other boundary" pushed to t=+∞t=+\infty. This retarded Green's function is generally not symmetric in t↔t′t\leftrightarrow t' — causality breaks the reciprocity that self-adjoint spatial boundary conditions would enforce — and it is the object convolved with a driving force to give the response of an oscillator, a circuit, or any linear time-invariant system.

How does the eigenfunction expansion connect Green's functions to resonance?

Write the resolvent Green's function as G(x,ξ;λ)=∑nϕn(x)ϕn(ξ)/(λn−λ)G(x,\xi;\lambda)=\sum_n\phi_n(x)\phi_n(\xi)/(\lambda_n-\lambda). Each term is a simple pole in the drive parameter λ\lambda, located at an eigenvalue λn\lambda_n. As you tune λ\lambda toward λn\lambda_n that term's denominator shrinks to zero and the response diverges — this is resonance, the unbounded reaction of a system driven at one of its natural frequencies. The residue ϕn(x)ϕn(ξ)\phi_n(x)\phi_n(\xi) tells you the shape of the resonant response: it is largest where the eigenmode ϕn\phi_n is largest. The only escape from the divergence is orthogonality — if the source has no overlap with ϕn\phi_n (so ∫fϕn=0\int f\phi_n=0) that mode is never excited, which is precisely the solvability condition that reappears as the Fredholm alternative when λn=0\lambda_n=0.

Before this

Where this leads