Fundamental Lemma of the Calculus of Variations
Every variational principle in physics ends with the same sentence: "since this holds for all variations, the integrand must vanish." That sentence is the fundamental lemma of the calculus of variations, and it does far more work than its throwaway phrasing suggests. When you demand that an action be stationary, integration by parts collapses into a single integral, , that must hold for every admissible variation . This is a weak statement — an infinite family of averages, one per probe — and by itself it says nothing pointwise. The lemma is the bridge from that weak statement to the strong one, at every point, which is the Euler–Lagrange equation. The mechanism is a detection argument. Think of as a smooth weighting probe you can slide and shape anywhere inside . If were nonzero somewhere — say positive on a little interval — you could park a positive bump exactly there, and the weighted integral would come back strictly positive, contradicting the assumption that it vanishes against all probes. A continuous function has nowhere to hide from an infinite-dimensional family of test functions; the only function invisible to all of them is the zero function. That single idea underwrites Lagrangian mechanics, geodesics, Hamilton's principle, and the field equations of every classical and quantum field theory, and it is the historical seed of distribution theory.
- The lemma states that if a continuous satisfies for every smooth vanishing at the endpoints, then on .
- It is the logical bridge that turns the stationarity condition — an infinite family of integral identities — into a single pointwise differential equation.
- The proof is constructive: assume , use continuity to get a whole interval where , then park a smooth bump there so the integral is strictly positive — a contradiction.
- Continuity of is essential; without it the conclusion weakens to almost everywhere, since a single isolated spike is invisible to integration.
- A family of variants extends its reach: du Bois-Reymond (no differentiability assumed), zero-mean constrained (gives ), and multidimensional (gives field equations on ).
- Key idea: an integral identity that holds for all admissible is vastly stronger than for one — the probes reach every location, so a continuous can hide nowhere and must vanish identically.
An integral identity holding for all admissible is far stronger than for one : the test functions probe every location, so a continuous can hide nowhere — it must vanish identically.
Where this lives today
The lemma is invisible in physics only because it is everywhere. Every time an action principle is turned into an equation of motion — the Einstein field equations from the Einstein–Hilbert action, the Yang–Mills equations of the Standard Model — the final "therefore the integrand vanishes" step is the multidimensional fundamental lemma (6). In numerical analysis it is the theoretical backbone of the finite element method: engineers solve the weak form for all test functions , and the lemma is exactly the guarantee that a smooth-enough weak solution satisfies the original strong PDE. The same equivalence powers physics-informed neural networks. And the lemma's deepest legacy is conceptual: "a function is determined by its integrals against all test functions" is the founding axiom of distribution theory, without which quantum field theory could not write down its propagators and delta functions. A live frontier — the regularity theory of variational solutions, part of Hilbert's 19th and 20th problems — is still about how far you can weaken the probe class and the smoothness of before the clean conclusion frays.
The physical picture
The engine of the lemma is a thought experiment about detection. You are handed a mystery continuous and told one thing: its weighted average against every smooth, endpoint-vanishing probe is exactly zero. Can be secretly nonzero? No — because you have an infinite budget of probes. If humps up positive on any interval, slide a smooth positive bump onto that hump; the product is then positive everywhere it is nonzero, so its integral cannot be zero. Vanishing against everything is incompatible with being nonzero anywhere.
The probe must be a smooth bump: it and all of its derivatives must die at the edge of its support, so that patching it into the constant zero outside leaves an infinitely differentiable function. The canonical construction — the mollifier — does exactly this. It is strictly positive on , flattens to zero so gently at that every derivative vanishes there, and encloses a definite, computable area. Sliding and rescaling this one bump gives a probe centred anywhere with any width — all the proof ever needs.
The core equations
The lemma itself is a one-line implication, but its content is the quantifier "for all ". Read it as: no continuous function can be orthogonal to every test function unless it is zero. This is the pointwise-from-weak converter.
where:
| symbol | meaning |
|---|---|
| a continuous function on , the unknown to be pinned down | |
| a smooth test function vanishing with all derivatives near and | |
| infinitely differentiable functions with compact support in |
Reading: the hypothesis is an infinite bundle of scalar equations (one real number per ); the conclusion pins a whole function to zero. The strength comes entirely from "". The proof needs one explicit admissible probe, and the standard choice is the mollifier bump — smooth, compactly supported, strictly positive on its interior. Note the sign in the exponent: the argument tends to at the support edge, so the bump and all its derivatives decay smoothly to zero there.
where:
| symbol | meaning |
|---|---|
| centre of the bump, placed where | |
| radius, small enough that keeps one sign across | |
| the area of the unit mollifier , scaled by |
Reading: rescaling the unit bump by width scales its area linearly, so the enclosed area is always strictly positive — the property that forces the contradiction. The lemma earns its keep at the last step of every variational calculation. Varying with fixed endpoints and integrating by parts turns into a single integral against ; the boundary term dies because .
where:
| symbol | meaning |
|---|---|
| the functional being made stationary | |
| the variation, vanishing at both endpoints | |
| the Euler expression that the lemma will force to zero pointwise |
Reading: (3) is weak; applying (1) gives the strong Euler–Lagrange equation . When the integrand carries rather than — as it does before you commit to integrating by parts — the relevant tool is the du Bois-Reymond form, which needs no differentiability of the coefficient.
where:
| symbol | meaning |
|---|---|
| a continuous function multiplying the derivative of the probe | |
| a single constant, undetermined by the hypothesis alone |
Reading: orthogonality to every (exactly the zero-mean functions) leaves only the constants — this is what lets one derive Euler–Lagrange without assuming differentiable. Restricting the probes to zero mean weakens the conclusion from to — the exact origin of the Lagrange multiplier in isoperimetric problems.
where:
| symbol | meaning |
|---|---|
| the zero-mean constraint that makes constants invisible to the probes | |
| the Lagrange multiplier of the constrained problem |
Finally, replacing the interval by a region promotes the lemma to field theory, converting a varied action into a local field equation at every spacetime point.
where:
| symbol | meaning |
|---|---|
| an open region in (space or spacetime) | |
| the volume element |
The same detection argument with -dimensional bumps gives the Euler–Lagrange field equations of every action principle.
The goal is to prove implication (1): given continuous on with for every , show . The strategy is contraposition by construction — assume is nonzero somewhere, manufacture one legitimate test function that makes the integral strictly positive, and read off the contradiction. Continuity is load-bearing: it spreads a single nonzero value into a whole interval where keeps its sign, exactly the interval the bump exploits.
Step 1. Suppose, for contradiction, that is not identically zero: there is a point with . Without loss of generality take ; the negative case follows by replacing with . The endpoints need no separate treatment since vanishes there and continuity fixes at as limits. Why: we only need to defeat the hypothesis at one interior point, and a positive value is enough by symmetry.
Step 2. By continuity of at , choose so small that for all , with . Such an exists because stays within any prescribed band of on a small enough neighbourhood. Why: this converts the single positive value into a positive floor for over an entire interval — the region the probe will occupy.
Step 3. Take the scaled mollifier bump of equation (2), centred at with radius . It is everywhere (all derivatives vanish at ), it has compact support , and it is strictly positive on the open interval . Hence is a legitimate probe. Why: the hypothesis is quantified over exactly this class, so is a fair test we are entitled to apply.
Step 4. Evaluate the integral against this probe. Outside the support the integrand is zero, and inside it is a product of two positive quantities, so . Why: bounding below by its floor and pulling it out gives a strictly positive lower bound, using the computed bump area.
Step 5. But the hypothesis says this same integral is zero, giving , a contradiction. So no such exists, and on . Why: a strictly positive number cannot equal zero, so the Step 1 assumption is impossible.
Go deeper · Derivation B · 1 minThe du Bois-Reymond form and why differentiability is unnecessary
The goal is to prove implication (4): if a continuous satisfies for all , then is constant — crucially without ever assuming is differentiable. This matters because when you derive Euler–Lagrange by keeping under the derivative, you do not yet know it is differentiable; the naive proof that integrates by parts first is circular. Du Bois-Reymond's trick is to build a bespoke test function whose derivative equals minus its own mean, turning the hypothesis into a statement that a non-negative integral vanishes.
Step 1. Define the mean value , the constant we will prove equals. Why: any candidate constant must be the average, since averaging both sides of forces that value.
Step 2. Build the special variation . Then trivially, and by the definition of , so vanishes at both endpoints and is admissible, with derivative . Why: this manufactures a legal test function whose derivative is precisely the deviation of from its mean.
Step 3. The constant is invisible to the hypothesis, because since vanishes at both ends. Subtract this from the hypothesis to get . Why: shifting by a constant changes nothing, so we may work with the zero-mean part alone.
Step 4. Substitute from Step 2 to obtain . The integrand is continuous and non-negative. Why: choosing equal to turns the mixed integral into the integral of a perfect square.
Step 5. A continuous non-negative function with zero integral must be identically zero, so , i.e. is constant. Why: if it were positive anywhere, continuity would give a positive-area interval and a positive integral, contradicting Step 4.
Go deeper · Derivation C · 1 minFrom the weak stationarity condition to the Euler–Lagrange equation
The goal is to watch the lemma do its job: converting the physicist's shorthand " for all variations" into the pointwise Euler–Lagrange equation. Starting from over curves with fixed endpoints, we perturb by an admissible , extract the first-order term, integrate by parts to isolate , and then — only then — invoke the fundamental lemma to strip the integral. This is where a weak, integrated statement becomes a strong, local differential equation.
Step 1. Replace by with and expand to first order in . The first variation is . Why: stationarity means this linear term vanishes for every admissible direction , the variational analogue of a zero gradient.
Step 2. Integrate the second term by parts to move the derivative off : . Why: the lemma acts on integrals of the form , so we must get itself, not , as the common factor.
Step 3. The boundary term vanishes because for fixed-endpoint variations. Collecting the surviving pieces gives for all such . Why: this is exactly equation (3) — the weak form, with the Euler expression sitting in the role of .
Step 4. Apply the fundamental lemma (1) with , which is continuous when is smooth and . Since its integral against every admissible vanishes, it must vanish pointwise: on . Why: this is the single logical step that upgrades "the average is zero for all probes" to "the integrand is zero everywhere" — no lemma, no differential equation.
Limiting cases
The lemma is really a family, each member tuned to the probe class and the regularity assumed of the integrand.
| Case | Result | Meaning |
|---|---|---|
| Basic — 1D, continuous | the canonical form that yields the Euler–Lagrange equation | |
| du Bois-Reymond | no differentiability of assumed; handles weak solutions | |
| Constrained — zero-mean | isoperimetric problems; the constant is the Lagrange multiplier | |
| Multidimensional | field equations from an action over a region | |
| Merely integrable | conclusion weakens to almost everywhere | a measure-zero set of nonzero values is invisible to integration |
Worked examples
1 · A function that fools one probe but not the lemma
A skeptic claims the continuous function on is "invisible" to the lemma, offering as evidence that . Show that a single localized probe already exposes as nonzero, so the lemma's conclusion is not threatened.
Step 1. Check the skeptic's one datum. . True — but this is the integral against the single probe , which is not even admissible (it does not vanish at the endpoints). One test function proves nothing.
Step 2. Deploy a proper localized probe where has a definite sign. Near the left end , and stays negative on since . Place the scaled mollifier at , , so its support is exactly and its area is .
Step 3. Evaluate the weighted integral. Since is negative and positive across the support, the product is negative: a numerical evaluation gives . Dividing by the bump area recovers the bump-weighted average , right next to the central value — the probe is reporting at its centre.
Step 4. Read the verdict. The integral against this admissible is , so fails the lemma's hypothesis: it is not orthogonal to all test functions. No contradiction arises — the lemma concludes only when every probe returns zero, and this one does not. A vanishing integral against one is meaningless; the localized bump unmasks the nonzero the average had hidden.
2 · The lemma delivers the straight line
Among smooth curves joining to , which minimizes arc length ? Carry the variation through and show where the lemma converts the integral into the answer.
Step 1. Here depends on only, so and . After integration by parts with , the first variation is for all admissible .
Step 2. Apply the fundamental lemma. The bracket multiplying is continuous, and its integral vanishes against every , so it must vanish pointwise: . This is the step the whole article is about — without it we could only say "the average slope-change is zero", not "the slope-change is zero everywhere".
Step 3. Integrate the pointwise equation. A vanishing derivative means , which forces . The endpoints give , so . The minimizer is the straight line , length — the shortest path, recovered because the lemma turned an integral identity into a differential equation.
Physics of the portrait
The lemma is one of the oldest ideas in the calculus of variations and one of the last to be made rigorous. Lagrange used its content freely in the 1750s; it took more than a century, and Paul du Bois-Reymond, to prove it under the mild assumptions physicists actually need.
Origins · 1 minPaul du Bois-Reymond and how this was discovered
Paul du Bois-Reymond was a German mathematician — younger brother of the physiologist Emil du Bois-Reymond — whose career was a sustained campaign for rigour in analysis at the moment the subject demanded it. In 1873 he constructed a continuous function whose Fourier series diverges at a point, shattering the belief that continuity guaranteed convergence. He developed an "infinitary calculus" of orders of growth, a precursor of modern asymptotics. And in the calculus of variations he proved the lemma that now bears his name: if for all test functions , then is constant — without assuming is differentiable. That last qualification is the whole point. Euler and Lagrange had derived the Euler–Lagrange equation by blithely differentiating , but nothing in the variational problem guarantees that derivative exists in advance; du Bois-Reymond's argument builds a bespoke test function to reach the conclusion honestly, and it is the version a careful text proves today. His insistence that a continuous function is pinned down by its action on test functions is precisely the duality that Sobolev and Schwartz would later formalize as the theory of distributions.
Going further
Texts. Gelfand & Fomin, Calculus of Variations, §3 (the lemma and du Bois-Reymond) · Stone & Goldbart, Mathematics for Physics, §1.2 · Arfken & Weber, Mathematical Methods for Physicists, ch. on the calculus of variations · Hassani, Mathematical Physics, ch. on variational methods · Byron & Fuller, Mathematics of Classical and Quantum Physics, ch. 2 · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, ch. 22 · Nakahara, Geometry, Topology and Physics, for the field-theoretic multidimensional version.
Provenance. The statement and the two proofs follow Gelfand & Fomin (§3) and Stone & Goldbart (§1.2); the numbers are re-verified here. A checker should confirm: (1) the mollifier is with all derivatives vanishing at , peak , and area ; (2) the worked-example integral with centred at , ; (3) the du Bois-Reymond construction yields ; (4) the arc-length example gives . Note a corrected sign relative to some sources: the bump is , which decays to zero at the support edge — the form would diverge there.
Prerequisites. Functionals and Function Spaces · First Variation and Stationarity. Leads to. Euler–Lagrange Equation · Natural and Essential Boundary Conditions · Constrained Variation and Lagrange Multipliers · Hamilton's Principle of Stationary Action.
Ask the tutor: ask me to run the bump-probe contradiction on any continuous you name, or to push the lemma through a variational problem of your choice to its Euler–Lagrange equation.
Why is it called the "fundamental" lemma?
Because it is the single indispensable step that makes the calculus of variations produce differential equations. Everything upstream — building the functional, forming the first variation, integrating by parts — leaves you with a weak statement: an integral that vanishes for all variations. Only the lemma converts that into the pointwise Euler–Lagrange equation; without it you are stuck with an integral identity that constrains averages but names no local law. Since every action principle in mechanics, optics, and field theory funnels through this one conversion, it earns the name.
What exactly is a test function, and why must it vanish at the endpoints?
A test function is a smooth probe you multiply against the unknown before integrating — in the variational setting, the shape of an allowed perturbation of the curve. It vanishes at the endpoints because in a fixed-endpoint problem all competing curves share the same boundary values, so the perturbation cannot move the ends; formally . That condition also kills the boundary term in the integration by parts, leaving the clean integral the lemma acts on. Relax it — free endpoints — and the surviving boundary term gives the natural boundary conditions.
Does the bump function really have all derivatives zero at its edge?
Yes, and that is the whole reason it exists. The mollifier approaches the support edge with an argument tending to , so the function and every derivative — the function times rational blow-ups — are crushed to zero faster than any polynomial grows. This flatness to infinite order lets you glue the bump to the constant zero outside its support and still have a globally function. A raised cosine has a discontinuous second derivative at the edge and would not qualify; the exponential mollifier is the standard fix.
What breaks if is only integrable rather than continuous?
You lose the pointwise conclusion and keep only " almost everywhere". The proof's Step 2 needs continuity to inflate a single nonzero value into an interval where keeps its sign; without continuity, could be nonzero on a measure-zero set while every integral against a smooth still returns zero, because integration cannot see measure-zero sets. This is no technicality: in the theory of PDEs, functions are equivalence classes up to measure-zero changes, and the lemma rightly concludes as an element of — almost everywhere.
How is the constrained version connected to Lagrange multipliers?
Directly. In an isoperimetric problem you minimize subject to , which restricts admissible variations to those preserving the constraint — precisely the zero-mean-type condition . The constrained lemma (5) then says the Euler expression of is forced not to zero but to a constant multiple of the Euler expression of . That constant is the Lagrange multiplier , and the effective equation is the Euler–Lagrange equation of . The catenary and the fixed-perimeter maximum-area problem both fall out this way.
Why is this lemma seen as the seed of distribution theory?
Because it is the first clear statement that a function is completely determined by how it pairs with test functions. The lemma says the only continuous whose pairings all vanish is ; equivalently, two continuous functions that pair identically against every are equal. Distribution theory turns this around into a definition: define generalized functions (the Dirac delta, derivatives of discontinuous functions) purely by their pairings with test functions. Sobolev's mollifiers and Schwartz's distributions are the mature form of the duality du Bois-Reymond was already exploiting — which is why the same bump reappears as the mollifier in both subjects.