For a variation with , stationarity givesThe boundary term vanishes. The fundamental lemma of the calculus of variations therefore gives the Euler-Lagrange equation .
Differentiating the proposed first integral givesThus it is constant along an extremal when , proving the Beltrami identity.
For the positive branch relevant to the endpoint data, . The identity becomesThe Euler-Lagrange equation itself gives , so . Integrating, or solving the first integral, yields a circle . The equal endpoint values force and . Hence the unique positive smooth extremal isIt stays positive on the entire interval and satisfies the second-order equation, including its turning point. Merely differentiating the first integral after dividing by would need extra care there. Geometrically this is an arc of a hyperbolic geodesic in the upper half-plane model.
Write . For endpoint-zero variations , the first variations areFor a normal constrained extremal, choose a variation with . Given any , use the implicit function theorem to choose a small correction in the direction so that preserves the constraint. Differentiating it and the stationarity condition at zero givesIntegrate the derivative-of-variation term by parts. Since the variations vanish at both endpoints, the boundary term is zero. The fundamental lemma of the calculus of variations then givesThe regularity condition on the constraint is what permits the coefficient of to be normalized to 1. In a degenerate case, the general multiplier statement uses with the two coefficients not both zero; the source's displayed form is the normal case.
For a string described as a function graph , its arc-length element is . Inextensibility therefore givesThis also forces , with equality only for the straight function graph.
Write . At a regular constrained extremal, the first variation of is not identically zero. Choose a variation for which ; the implicit function theorem supplies a correction in the direction to each other variation so that remains one. Stationarity of on these corrected variations implies for one scalar .
Put . Integration by parts gives, for an arbitrary twice continuously differentiable variation ,Taking variations with zero endpoint values and using the stated fundamental lemma of the calculus of variations gives the Euler-Lagrange equation. The remaining endpoint values are free and independent, giving the natural boundary conditions:If the constraint is not regular, the general multiplier statement permits an abnormal pair with ; the source's general normal-form derivation implicitly excludes that case. In its quadratic example, regularity follows automatically from normalization: .
For that example , so the equation and endpoint conditions reduce toMultiply the equation by and integrate. The boundary term vanishes, givingThe last integral equals one, so , the functional value at the constrained extremal.
Finally multiply the equation for by and the equation for by , then subtract and integrate. The derivative terms give only the vanishing boundary term , while the terms cancel. Therefore . For distinct multipliers this proves
At a regular constrained extremal, the first variations satisfy for a constant Lagrange multiplier . One way to justify this is to choose a variation for which , use it to correct any other variation to preserve the constraint by the implicit function theorem, and differentiate along that corrected family. This gives the same ratio for all variations. The exceptional case for every variation requires the usual separate abnormal-extremal analysis.
Set . Integration by parts in its first variation givesTaking compactly supported variations and applying the fundamental lemma of the calculus of variations yields the Euler-Lagrange equation. For the quadratic integrands, it isor with . If endpoint values are free, independent endpoint variations give the natural conditionsAt a prescribed endpoint the variation instead vanishes and no natural condition is added there.
Under these natural conditions, integration by parts givesHence . For two solutions satisfying the same natural conditions, subtract their cross-multiplied equations and integrate:The final equality is the vanishing endpoint boundary form. Thus distinct eigenvalues giveThe same argument works for other common homogeneous boundary conditions making that boundary form zero.
In the Legendre case, . Comparing coefficients of in a degree- solution gives , so different degrees have different eigenvalues. A degree-zero solution is . A linear solution must be orthogonal to the nonzero constant solution, so and . Write . Orthogonality to gives , and orthogonality to gives . ThereforeThe constants are free normalization factors; for solutions of the stated exact degrees they are nonzero. The natural endpoint conditions hold automatically for these polynomials because .
Take a smooth variation with on the boundary. Differentiating under the integral gives the first variationIntegration by parts removes the derivatives of , and the boundary contribution vanishes. The fundamental lemma of the calculus of variations therefore givesFor a regular constraint , the Lagrange multiplier rule says that an extremal satisfies for a constant . Equivalently, apply the preceding Euler–Lagrange equation to . Regularity means that is not identically zero as a linear functional on the admissible variations. For the quadratic constraint below this holds at every nonzero admissible ; a zero constraint leaves only .
In polar coordinates the constrained integrand isIts Euler–Lagrange equation is , orThe field is single-valued and periodic in . Substitution with givesThe centre is part of the disk, so one must also select the regular radial solution: for , smoothness gives and the regular derivative behaviour; for , is bounded and . A singular solution at zero does not define an admissible smooth field on the disk.
For fixed , let , so and for . The angular derivative term has integral , including zero when . ConsequentlyThe one-dimensional Euler–Lagrange equation for isexactly the same radial equation. The common factor cancels.
For two regular solutions with the same and different multipliers, multiply the equation for by , multiply that for by , subtract and integrate. The result isAt , both functions vanish; at zero, regularity makes the boundary term tend to zero. Since the multipliers are distinct,This is weighted Sturm–Liouville orthogonality with weight .
Finally, multiply one radial equation by and integrate by parts. The same endpoint conditions yieldMultiplication by provesFor any nonzero admissible solution the energy on the left before subtraction is positive, so its multiplier is the positive Rayleigh quotient .
The first weak derivative is characterized by for every . The fundamental lemma of the calculus of variations in the locally integrable form says that a function pairing to zero with every such test is zero almost everywhere. Applied to the difference of two candidate derivatives, it proves uniqueness. The Sobolev space consists of with all first weak derivatives in , with normFor the one-dimensional tent, integration by parts on each side of one has cancelling junction terms because the function is continuous. Thus on and on , almost everywhere. Both it and its derivative are bounded, so it belongs to every stated Sobolev space; its displayed norm to the power is .
For in the punctured ball, ordinary differentiation givesThe function is bounded and , so polar integration gives finite derivative norms when , namely . To verify these are weak derivatives across the origin, integrate by parts outside a ball of radius against a compactly supported smooth test. The inner boundary term is at most a fixed constant times , since is bounded. It tends to zero for . The volume terms converge by local integrability of the displayed derivative. Thus for with exactly these derivatives. Its value at the origin can be chosen arbitrarily.
The first variation isThe endpoint terms vanish. The fundamental lemma of the calculus of variations gives almost everywhere, hence on . A Lipschitz representative is then identically zero and cannot have terminal value one. Therefore there are no admissible solutions of the stationarity equation.
Let be a smooth variation with at both endpoints, and consider . stationary point gives the first variationIntegrate the middle term once by parts and the last term twice. All boundary terms vanish because both and vanish there. Assuming the derivatives needed for the classical formula, the given fundamental lemma of the calculus of variations yieldsWithout assuming those classical derivatives initially, the same calculation with compactly supported variations states this equation weakly; sufficient regularity then gives the classical equation.
For the specific integrand, , , , so the equation is . Its weak solutions here are smooth, and its general classical solution isPut , , . The conditions at zero give and . Those at giveUsing , solve to obtain , , , . Thus an extremal isSubstitution checks all four boundary values. The additive term in the integrand contributes no variation in , so it does not alter this equation.
Take an admissible variation with on the boundary. Differentiating the functional at an extremum givesIntegration by parts removes the derivatives from ; the boundary term vanishes. The fundamental lemma of the calculus of variations yieldsFor the specified squared-gradient energy this is , so is harmonic. The affine function is harmonic and satisfies the boundary data.
To verify a global minimum, write with zero boundary trace. ThenThe middle term vanishes by integration by parts, since and at the boundary. Hence , andThis proves minimality directly, rather than relying only on a necessary Euler-Lagrange equation.
Let and . For a smooth variation , the first variation isHere the last expression follows by two integrations by parts. Taking variations supported in the interior and applying the fundamental lemma of the calculus of variations gives the Euler-Lagrange equation for a second-derivative functional:If both endpoint values and slopes are free, their independent variations force the natural boundary conditions for second-derivative functionalsIf an endpoint value or slope is fixed instead, its corresponding variation vanishes and the associated natural condition is not required.
For , differentiate using the chain rule:The Euler-Lagrange equation cancels the first term. Consequently , and if there is no explicit dependence,This is a Beltrami identity for a second-derivative functional.
Take a smooth variation . Differentiating the functional at zero gives the first variationIntegrate the second term once and the third term twice by integration by parts:Choose variations supported away from the endpoints. Stationarity and the fundamental lemma of the calculus of variations forceThis is the Euler-Lagrange equation for a second-derivative functional. With the interior equation imposed, the remaining boundary expression must vanish for every admissible variation.
At each endpoint, a freely varying value requires , and a freely varying slope requires . A fixed value or slope instead makes its corresponding variation zero and supplies no natural condition for that variable. These are the natural boundary conditions for second-derivative functionals, with the value and slope variations treated independently.
Let be a smooth constrained minimizer. For any smooth variation vanishing at the endpoints, use the normalized admissible curve . Since , differentiating at zero givesIn particular this holds for every compactly supported test function in . Integration by parts and the fundamental lemma of the calculus of variations givewhich is the required Bessel differential equation with . The lemma used here says that a continuous function whose integral against every compactly supported smooth test function is zero must itself vanish. No multiplier-existence theorem is needed: the explicit normalization produces the variation directly.
The endpoint causes no divergent energy for these variations: smoothness and imply . Also for every nonzero admissible , and has unit and energy . Thus minimizing with is equivalent to minimizing the scale-invariant Rayleigh quotient . The zero function is excluded whenever this quotient is written.
Past exam of the theoretical mechanics course of the University of Oxford 2011 B 6 a ii Solution 2026-10-31
If the fields are continuously differentiable and obey the pointwise conservation law, integration by parts against a compactly supported test function gives the weak identity, with no boundary terms. Conversely, integrate the weak identity by parts for a continuously differentiable field:for every test function. The fundamental lemma of the calculus of variations, applied to each component, makes the continuous integrand vanish at every point. Hence the classical and weak formulations are equivalent for continuously differentiable fields.
Past exam of the theoretical physics I course of the University of Cambridge 2018 3 b Solution 2026-10-18
Let and . Define the second coefficient with ordered repeated indices and , so thatThis convention avoids double-counting a mixed derivative such as . The first derivative term needs one integration by parts. The second derivative term needs two:Combining the terms givesFor compactly supported variations, or fixed and its first derivatives at the boundary, the last integral vanishes. The fundamental lemma of the calculus of variations then yields the Euler-Lagrange field equation with second derivatives:The plus sign of the final term comes from the two integrations by parts. In general this gives fourth-order equations, although the order in a particular coordinate depends on which second derivatives occur in the density.
Past exam of the theoretical physics I course of the University of Cambridge 2022 2 a Solution 2026-10-18
Vary the action with compactly supported , or impose vanishing and its first derivatives on the spacetime boundary. The first variation isOne integration by parts on the first-derivative term and two on the second-derivative term remove all derivatives from . The boundary terms vanish, leavingThe fundamental lemma of the calculus of variations gives the Euler-Lagrange field equation with second derivatives:Repeated indices run over time and space. The coefficient of the symmetric second derivative is defined by the displayed variation; if is instead treated as a single independent mixed derivative variable, it is counted once rather than twice.