Calculus of Variations
Calculus of variations studies functions that make a functional stationary. A functional is a map whose input is a function and whose output is a number. The standard example is an action
where the input is a path .
The central question is:
How does a quantity such as change when the whole path is varied?
In physics, this question produces Euler–Lagrange equations, stationary-action principles, variational approximations, and the semiclassical logic behind path integrals. For the mechanics-focused version of the same ideas, see Lagrangian Mechanics Review.
Functionals
Section titled “Functionals”A functional assigns a number to a function. For a single real function , a common form is
Here is an ordinary function of three arguments, but depends on the entire curve . The value of can change even if is perturbed only on a small part of the interval.
Examples include:
- arc length of a curve;
- classical action of a path;
- energy expectation as a function of a trial wavefunction;
- energy functionals in mean-field and density-functional approximations;
- Euclidean action functionals in instanton and statistical-mechanics problems.
First Variation
Section titled “First Variation”Choose a trial curve and perturb it by a small function :
For fixed-endpoint variations,
The first variation is the coefficient of in
Equivalently,
A curve is stationary when
for all allowed variations .
Euler–Lagrange Equation
Section titled “Euler–Lagrange Equation”For
the first variation is
Integrate the second term by parts:
For fixed endpoints, the boundary term vanishes. Therefore
If this is zero for every allowed , the bracket must vanish:
This is the Euler–Lagrange equation.
Classical Mechanics Example
Section titled “Classical Mechanics Example”For a particle with coordinate ,
The Euler–Lagrange equation is
Since
one obtains
Newton’s equation appears as the stationary-action equation for the path.
Several Coordinates and Fields
Section titled “Several Coordinates and Fields”For coordinates , the action
gives one Euler–Lagrange equation for each coordinate:
For a field with Lagrangian density , the field-theory version is
This page only needs the structure. The compact derivative notation is explained in Functional Derivatives. The full field-theory use belongs in QFT-facing material, but quantum-mechanical path integrals already use the same stationary-action idea.
Boundary Terms and Natural Conditions
Section titled “Boundary Terms and Natural Conditions”If endpoints are not fixed, the boundary term
does not vanish automatically. Stationarity then requires either:
- restrictions on the allowed endpoint variations;
- boundary conditions that make the boundary term vanish;
- additional endpoint terms in the functional.
This is the variational origin of many natural boundary conditions. In quantum mechanics, boundary terms also appear when checking whether differential operators are symmetric or self-adjoint after integration by parts.
Constraints and Lagrange Multipliers
Section titled “Constraints and Lagrange Multipliers”Often one wants to make stationary subject to a constraint
Introduce a multiplier and vary
Stationarity gives an equation of the form
The multiplier is determined together with the extremizing function and the constraint.
This pattern is central in quantum mechanics. Extremizing the energy expectation while keeping the state normalized gives an eigenvalue equation. In a finite-dimensional Hilbert space, vary
Stationarity with respect to gives
Thus the eigenvalue equation can be read as a constrained variational equation. The physical upper-bound use of this idea is Variational Principle, and finite-dimensional implementation is Rayleigh–Ritz Method.
Stationary Does Not Always Mean Minimum
Section titled “Stationary Does Not Always Mean Minimum”A stationary point is a point where the first variation vanishes. It may be a minimum, maximum, or saddle. Classical action principles usually give stationary paths, not necessarily paths that minimize the action.
For energy variational calculations, the ground-state Rayleigh quotient has a minimum under suitable assumptions, which is why it gives an upper bound. Excited states and real-time actions are more subtle; saddle points are common.
Second variations, convexity, and spectral stability decide whether a stationary point is actually a minimum. Those refinements matter in stability analysis, instantons, and fluctuation determinants.
Relation to Path Integrals
Section titled “Relation to Path Integrals”Path integrals weight histories by
When the action is large compared with , rapidly oscillating phases cancel except near stationary-action paths. This is the stationary-phase route from quantum amplitudes to classical equations of motion.
The conceptual bridge is treated in Why Path Integrals?. The Toolkit role of this page is to explain what “stationary action” mathematically means.
Common Mistakes
Section titled “Common Mistakes”- Saying “least action” when the action is only stationary.
- Dropping boundary terms without checking the allowed variations.
- Varying a function but forgetting that its derivative varies too.
- Treating constraints as optional after normalization has been imposed.
- Confusing a variational parameter derivative with a full functional variation.
- Assuming a stationary point is automatically stable.
- Ignoring domain and boundary conditions when applying variational arguments to differential operators.
Cross-Links
Section titled “Cross-Links”- Ordinary Differential Equations
- Boundary Conditions
- Eigenvalue Problems
- Lagrangian Mechanics Review
- Action Principles
- Functional Derivatives
- Variational Principle
- Rayleigh–Ritz Method
- Time-Dependent Variational Principle
- Why Path Integrals?
References
Section titled “References”- I. M. Gelfand and S. V. Fomin, Calculus of Variations, Dover, 2000.
- H. Goldstein, C. Poole, and J. Safko, Classical Mechanics, 3rd ed., Addison-Wesley, 2002.
- G. B. Arfken, H. J. Weber, and F. E. Harris, Mathematical Methods for Physicists, 7th ed., Academic Press, 2013.
- L. D. Landau and E. M. Lifshitz, Mechanics, 3rd ed., Butterworth-Heinemann, 1976.
- R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
Exercises
Section titled “Exercises”- Derive the Euler–Lagrange equation for
with fixed endpoints.
Solution
Use with . Then
Integrating the second term by parts gives
The boundary term vanishes, and is arbitrary, so
- Apply the Euler–Lagrange equation to
with fixed endpoints.
Solution
Here , so
The Euler–Lagrange equation gives
or . Thus the stationary curves are straight lines,
with and fixed by the endpoint values.
- Use a Lagrange multiplier to show that stationary normalized states of satisfy an eigenvalue equation.
Solution
Vary
The variation with respect to gives
Therefore
- Why is it unsafe to discard boundary terms automatically?
Solution
Boundary terms vanish only when the allowed variations make them vanish, such as fixed-endpoint variations with . If endpoints are free or if the problem has nontrivial boundary conditions, stationarity may impose additional natural boundary conditions or require endpoint terms. Dropping the boundary term without checking the variation changes the problem.