Green's Functions for Ordinary Differential Equations
A linear differential operator acting on functions over an interval, together with homogeneous boundary conditions, behaves exactly like a matrix on a finite-dimensional vector space. Solving is then the continuous analogue of inverting a matrix, , and the Green's function is precisely the integral kernel of that inverse operator: the entry of labelled by a row and a column . Construct once and the response to every source follows by a single integral, because superposition does the rest — this is the payoff that makes the kernel worth building. Physically is the response measured at to a unit point source placed at : 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 makes this literal, and it is the same statement as 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 — 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 — 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.
- A Green's function is the kernel that inverts a linear differential operator: it solves under the same homogeneous boundary conditions as the problem.
- Once is known, the inhomogeneous equation is solved in one stroke by superposition, .
- For a second-order operator, is built from two boundary-adapted homogeneous solutions , glued at by continuity plus a slope jump fixed to by integrating the delta across the source.
- The closed form is , tying Green's functions directly to the Wronskian and to variation of parameters.
- For self-adjoint (Sturm–Liouville) operators is symmetric, — reciprocity — and expands spectrally as , whose poles at are resonances.
- When zero is an eigenvalue the ordinary diverges (); the modified Green's function plus a Fredholm solvability condition save the day.
- Key idea: treat as an invertible operator on functions obeying homogeneous boundary conditions; its inverse is an integral operator whose kernel solves , built piecewise from boundary-adapted solutions joined by continuity and a Wronskian-fixed slope jump.
Treat as an invertible linear operator on a space of functions satisfying homogeneous boundary conditions; its inverse is an integral operator whose kernel solves 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 and a unit jump in ) 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 : convolving it with an input is exactly , and its Laplace transform is the transfer function every filter and feedback loop is designed around. In many-body physics the resolvent 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 -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 .
The physical picture
Take a string clamped at both ends and press it at a single interior point 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 . Everywhere off the source the string is unforced, so it satisfies the homogeneous equation (straight lines, for a uniform string); the kink at is the delta-function source made visible as a discontinuity in slope. A general load is a sum of such pokes, so the loaded string's shape is the integral of against . The first figure is this picture with the numbers filled in.
Two features of that tent are the whole theory in miniature. The height at the centre is continuous, because a jump in itself would make far too singular to match a mere delta. The slope, by contrast, falls abruptly from to , a jump of exactly : that discontinuity is where the delta lives, since a second derivative of a corner is a delta. Reciprocity — the symmetry — says the deflection at from a source at equals the deflection at from a source at ; 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 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 kernel idea, now with the "right boundary" sitting at .
The core equations
The defining relation is the continuous version of "invert the matrix": is the response of to the sharpest possible source — a unit spike at — and the boundary conditions fix it uniquely. Everything else in this article either builds from this equation or uses it.
where: — linear differential operator acting in the variable ; — Green's function, the response at to a unit source at ; — Dirac delta, the unit point source that plays the role of the identity kernel. Read it as . Because is linear, a general source is handled by superposition: weight each point-source response by the local strength and integrate. This is the equation you actually use — one integral produces the solution for any forcing.
where: — solution of obeying the homogeneous boundary conditions; — inhomogeneous source or forcing term; — the interval carrying the boundary conditions. Applying under the integral and using (1) returns 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 into a single exact derivative .
where: — leading coefficient, strictly positive on ; — zeroth-order coefficient; the integrating factor is what collapses into . In this form is formally self-adjoint. Integrating the defining equation across an infinitesimal window around isolates what the delta does to : it leaves continuous but forces a definite jump in the flux . With continuity, this pins down the two free constants in the piecewise construction.
where: — limits approaching the source from above and below; the bounded term integrates to zero across the shrinking window, leaving only the flux jump. The jump in slope itself is . Solving (1) off the source and matching with (4) gives the closed form. Build from (satisfying the left boundary condition) below the source and (satisfying the right) above it, and the constants collapse onto the Wronskian.
where: — homogeneous solution obeying the left boundary condition at ; — homogeneous solution obeying the right boundary condition at ; — their Wronskian, and is constant by Abel's theorem for Sturm–Liouville . The product notation encodes the piecewise swap automatically. When is self-adjoint its orthonormal eigenfunctions resolve the delta by completeness, and 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.
where: — orthonormal eigenfunctions, ; — eigenvalues; — spectral parameter in . As the -th term diverges — resonance — unless the source is orthogonal to .
The goal is to turn the abstract statement " inverts " into a formula you can write down from two homogeneous solutions. We work on with and homogeneous boundary conditions at both ends, exploiting the fact that the delta source vanishes everywhere except at . Off that point 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 and a fixed jump in its slope, with the Wronskian emerging as the determinant of the joining system.
Step 1. For the delta vanishes, so : on each side of the source is a homogeneous solution. Why: the point source can only act at ; away from it the equation is the free one, so must be a combination of the two independent homogeneous solutions.
Step 2. Impose the boundary conditions by choosing for and for , where satisfies the left condition and the right. Why: must inherit the homogeneous boundary conditions, so below the source it can only be the boundary-adapted solution , and above it only ; the constants may depend on .
Step 3. Demand continuity at the source, . Why: if jumped, would contain a delta and a derivative of a delta — a source far more singular than the plain on the right-hand side, which could never match.
Step 4. Impose the slope jump from equation (4), . Why: integrating across the source shows the flux must jump by exactly one, which is the only trace the delta leaves once is continuous.
Step 5. Solve the two-by-two system. The determinant is , giving and . Why: the Wronskian is nonzero precisely when are independent, i.e. when the homogeneous problem has no nontrivial solution and the inverse exists.
Step 6. Assemble the two pieces into . Why: below the source , and ; above it the roles swap; and Abel's theorem makes constant, so the formula is manifestly symmetric under . *The assembled is continuous, solves off the source, jumps by 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
The goal is to prove reciprocity, , 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 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 : . Why: this exact-derivative structure is the defining property of formal self-adjointness — the terms cancel and the terms bundle into a single boundary flux.
Step 2. Choose and and integrate over , giving . Why: both Green's functions obey the same homogeneous boundary conditions in , which is exactly what will kill the right-hand side.
Step 3. The boundary term vanishes, . 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 to get . 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: . Why: the sifting property evaluates each integral at the delta's location, and the vanishing difference is precisely reciprocity — the response at to a source at equals the response at to a source at . *This holds whenever the boundary conditions make the concomitant vanish — Dirichlet, Neumann, Robin, or periodic — and is consistent with the explicit symmetry of equation (5) once is constant.*
Go deeper · Derivation C · 1 minThe eigenfunction expansion and the origin of resonance
The goal is to build a third way — not piecewise, but as a sum over the natural modes of — and to show that this spectral form makes resonance a visible pole rather than a hidden accident. We work with the resolvent problem , expand both and the delta in the orthonormal eigenfunctions , 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 that emerges is the whole story of driven response — it blows up exactly when the drive parameter hits an eigenvalue.
Step 1. Expand and use completeness to write the source as . Why: the eigenfunctions of a self-adjoint operator form a complete orthonormal basis, so any function of — including the delta and itself — can be resolved onto them.
Step 2. Apply term by term: since , this gives . Why: each eigenfunction is left untouched in shape by and merely scaled by , so the operator turns into simple multiplication in this basis.
Step 3. Match coefficients of each to get , hence . 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 the -th term diverges unless or the source is orthogonal to . 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 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 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:
| Case | Result | Meaning |
|---|---|---|
| Self-adjoint (Sturm–Liouville) operator | With and self-adjoint boundary conditions, is symmetric and real — reciprocity holds and the spectral form (6) is available. | |
| Zero eigenvalue / singular operator | The homogeneous BVP has a nontrivial solution , so become proportional and (5) diverges; use the modified Green's function and impose (Fredholm alternative). | |
| Causal / initial-value (retarded) limit | for | For dynamical problems the "right boundary" sits at ; the retarded Green's function is the causal impulse response used for driven oscillators and linear response. |
| Constant-coefficient operator | Translation invariance makes depend only on (until boundaries break it), enabling Fourier construction . |
Worked examples
1 · The clamped string under uniform load (fully worked)
Solve on with for the uniform load , using the Green's function, and check the answer against direct integration.
Step 1. Build the kernel. Here , , so the homogeneous solutions are linear; the boundary-adapted choices are (vanishes at ) and (vanishes at ). Their Wronskian is , constant as Abel's theorem requires. Because carries an overall minus, the formula gives , the positive triangular kernel .
Step 2. Sanity-check the kernel. At the source — continuous, and equal to at , matching the first figure. The slope just left of is and just right is , so the jump is , exactly the unit impulse for . Symmetry is manifest.
Step 3. Integrate against the load. With ,
The first integral is . The second is .
Step 4. Collect the pieces:
So , a parabola pinned at both ends with maximum sag at the centre.
Step 5. Verify directly. Differentiate: , , so , and . The Green's-function route and the two-line direct integration agree exactly, and the same now delivers the sag for any load without redoing the calculus.
2 · The driven oscillator via its retarded Green's function (fully worked)
A mass on a spring has natural frequency (so ). Starting from rest at equilibrium, it is driven by a constant force switched on at . Find the motion using .
Step 1. Confirm the kernel. For the retarded Green's function must satisfy with for . Take for : it vanishes at (continuity) and has as , the unit slope jump for a unit-coefficient second derivative. Amplitude , period — the second figure.
Step 2. Superpose. The causal solution is . With constant for ,
Step 3. Do the integral. Substitute (, limits ): . Hence
Step 4. Put in numbers. , so : the mass oscillates about its static displacement with amplitude , swinging between and , and reaching the far point first at , i.e. .
Step 5. Verify. , , so , and . The impulse-response kernel has turned "switch on a steady force" into a one-line integral — the static offset 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
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 , 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.
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 . Worked Example 1 gives , slope jump , and with peak under . Worked Example 2 gives satisfying , with a step force yielding , i.e. for the stated numbers. All quoted numbers — slope jump , Wronskian , peak sag , static offset — 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 is a single delta function — the mildest genuine singularity. If itself jumped at , then would contain a delta and a derivative of a delta, which is far too singular to equal a plain . If instead is continuous but its slope jumps, then 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 .
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 , with the two integrals split at the observation point . Collecting those split limits into a single integral with a kernel that changes form at gives exactly with . 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 reduces to boundary terms alone; the Sturm–Liouville form achieves this automatically, and boundary conditions are "self-adjoint" when they make those boundary terms vanish. This matters for three reasons: it makes 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 has a nontrivial solution that satisfies the boundary conditions, then 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 then has a solution only when is orthogonal to the zero mode, (the Fredholm alternative), and the fix is the modified Green's function, which inverts on the subspace orthogonal to . 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 ; they differ only in which "boundary" data are imposed. The boundary-value kernel lives on a finite interval 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: before the source, because effects cannot precede their cause, with the "other boundary" pushed to . This retarded Green's function is generally not symmetric in — 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 . Each term is a simple pole in the drive parameter , located at an eigenvalue . As you tune toward 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 tells you the shape of the resonant response: it is largest where the eigenmode is largest. The only escape from the divergence is orthogonality — if the source has no overlap with (so ) that mode is never excited, which is precisely the solvability condition that reappears as the Fredholm alternative when .