Variations and stationary actionVariations and stationary action
Ordinary derivatives compare nearby numbers. Variations compare nearby functions.Ordinary derivatives compare nearby numbers. Variations compare nearby functions.
1 worked example in this chapter
Before you begin
How do we differentiate an action with respect to a path or a field?
- A law needs a starting state ↗Use seconds and metres. For , , , find .
- A field has motion and stored energy at every point ↗A vacuum plane electromagnetic wave has electric energy density . Find its total instantaneous energy density.
By the end: Derive Euler–Lagrange equations and vary inverse metrics and determinants.
An equation of motion tells you how a system evolves. An action assigns a number to an entire candidate history. The physical history makes that number stationary under appropriate small changes.An equation of motion tells you how a system evolves. An action assigns a number to an entire candidate history. The physical history makes that number stationary under appropriate small changes.
Chapter 5 varied a particle’s path in a fixed metric. We now extend that procedure to matter fields and then to the metric itself. The position of a particle, the value of a field, and the geometry can each be varied independently when deriving their equations.Chapter 5 varied a particle’s path in a fixed metric. We now extend that procedure to matter fields and then to the metric itself. The position of a particle, the value of a field, and the geometry can each be varied independently when deriving their equations.
13.1 From an ordinary derivative to a variation#13.1 From an ordinary derivative to a variation
For an ordinary function , a stationary point satisfies . Change by a small amount, and the first-order change in vanishes.
For mechanics, consider a candidate trajectory and its action
The input of the functional is the whole path ; its output is one number. To differentiate it, introduce a one-parameter family of nearby histories,
The function specifies a proposed displacement at each time, and the dimensionless parameter controls its size. The displacement has the same units as . Define
The endpoints are held fixed because we are comparing histories connecting the same endpoint data. Other physical questions can require other boundary conditions; they must be specified rather than guessed.The endpoints are held fixed because we are comparing histories connecting the same endpoint data. Other physical questions can require other boundary conditions; they must be specified rather than guessed.
Differentiate inside the integral using the chain rule:Differentiate inside the integral using the chain rule:
To extract an equation for , collect terms proportional to the allowed displacement . Integration by parts transfers the derivative from to its coefficient:
The boundary term vanishes by the endpoint condition. Since can be chosen to have support in any small interior interval, the coefficient must vanish pointwise:
That last inference is the fundamental lemma of the calculus of variations. If a continuous coefficient were positive somewhere, we could choose a smooth positive displacement that vanishes outside that small region. The integral would then be positive. A negative coefficient can be excluded in the same way. Stationarity for every allowed displacement therefore requires the coefficient to vanish at each interior time.That last inference is the fundamental lemma of the calculus of variations. If a continuous coefficient were positive somewhere, we could choose a smooth positive displacement that vanishes outside that small region. The integral would then be positive. A negative coefficient can be excluded in the same way. Stationarity for every allowed displacement therefore requires the coefficient to vanish at each interior time.
For , the result is
Newton’s equation has emerged from a statement about a complete history.Newton’s equation has emerged from a statement about a complete history.
Say what is allowed to moveSay what is allowed to move
Why is a boundary condition part of a variational problem, rather than a footnote?Why is a boundary condition part of a variational problem, rather than a footnote?
See the idea
To ask whether a quantity is stationary, first say which changes are allowed. The lowest point in a room and the lowest point on a particular staircase answer different questions. A variation of a path is a small change of the whole function, with specified restrictions at its endpoints.To ask whether a quantity is stationary, first say which changes are allowed. The lowest point in a room and the lowest point on a particular staircase answer different questions. A variation of a path is a small change of the whole function, with specified restrictions at its endpoints.
Work it out
- Perturb an entire path
For , consider . Here is any smooth allowed displacement and means at zero. Differentiate the integrand and integrate the kinetic term by parts.
Why this step works Integration by parts separates a bulk equation from the endpoint contribution.
- Impose the fixed endpoint values
If both endpoint positions are fixed, . Arbitrary interior variations then require . If an endpoint position is free, its variation need not vanish: the boundary term gives a separate condition.
Why this step works A function can vanish at an endpoint while its derivative there is nonzero.
- Constrain a variation geometrically
To make stationary on the unit circle, allowed displacements satisfy . Thus must be parallel to the normal . Introduce a multiplier and solve together with the constraint.
Why this step works The multiplier enforces stationarity only along the permitted tangent directions.
Go deeper
The constrained example gives , with maximum and minimum values . Stationary does not select the minimum automatically. A boundary term added to an action can change the admissible boundary problem without changing its bulk Euler–Lagrange equation. This becomes essential for the Einstein–Hilbert action, whose variation contains derivatives of the metric variation. Fixing the metric at the boundary alone does not set those derivatives to zero. Chapter 14 develops the required geometric boundary term.
Test the idea Test the idea
FIRST, PREDICTFIRST, PREDICT
A variation satisfies . Must vanish?
Compare the reasoningCompare the reasoning
Yes, because the endpoint is fixed.Yes, because the endpoint is fixed.
Fixing a function value does not also fix its slope.Fixing a function value does not also fix its slope.
Only if the action is gravitational.Only if the action is gravitational.
This is already a statement about ordinary differentiable functions.This is already a statement about ordinary differentiable functions.
No: is a counterexample.
This function vanishes at both endpoints and has derivative 1 at zero.This function vanishes at both endpoints and has derivative 1 at zero.
A hintA hint
Try the simplest polynomial with zeros at both endpoints.Try the simplest polynomial with zeros at both endpoints.
NOW CHANGE THE EXAMPLENOW CHANGE THE EXAMPLE
For , take , and . Find .
A hintA hint
The Euler–Lagrange equation is .
Work through the solutionWork through the solution
.
Stationarity means no first-order change along the allowed variations; the allowed variations are part of the problem.Stationarity means no first-order change along the allowed variations; the allowed variations are part of the problem.
13.2 Stationary does not mean minimal#13.2 Stationary does not mean minimal
An action principle is often called a principle of “least action,” but its defining condition is stationarity. A stationary value can be a minimum, a maximum, or a saddle. The variation above only tests the first-order change.An action principle is often called a principle of “least action,” but its defining condition is stationarity. A stationary value can be a minimum, a maximum, or a saddle. The variation above only tests the first-order change.
For a harmonic oscillator, . About a solution, the quadratic change in action is
Let and choose , where has the same units as . This displacement vanishes at both endpoints. The integrals of sine squared and cosine squared are each , so
For a sufficiently long interval, this variation decreases the action. Choosing with a sufficiently large positive integer replaces by and increases the action. The physical path is then a saddle, not a minimum.
The comparison is a calculation we perform on candidate paths. Under the stated endpoint conditions, requiring stationarity gives the same local differential equation as Newton’s force law. It also provides a systematic way to derive the equations of coupled fields.The comparison is a calculation we perform on candidate paths. Under the stated endpoint conditions, requiring stationarity gives the same local differential equation as Newton’s force law. It also provides a systematic way to derive the equations of coupled fields.
13.3 Fields: a degree of freedom at every point#13.3 Fields: a degree of freedom at every point
For a scalar field in curved spacetime, use an SI Lagrangian energy density and write
The compensates for , so the action has units of energy times time. While varying , hold the metric fixed. Define
Since is a scalar, , and
The covariant product rule givesThe covariant product rule gives
The divergence becomes a boundary integral, using from Chapter 6. It vanishes if the variation is identically zero near the boundary, as for a compactly supported interior variation. Suitable fixed boundary values can also remove this first-derivative boundary term. The field equation is
In the natural-unit scalar example of Chapter 11, and , giving
A quadratic potential gives a useful extension of the massless wave equation in Chapter 6. Write , where is a constant with inverse-length units. The result is the Klein–Gordon equation, .
In flat spacetime with , try a wave . Here specifies how rapidly its phase changes with position and specifies how rapidly it changes with time. Substitution gives
If the field is interpreted quantum mechanically as particles of rest mass , the quantum relations and , together with , identify . Here is the reduced Planck constant, with units of action. This is the additional conversion behind writing in units . The classical field variation itself does not require that quantum interpretation.
Varying the comparison rule. The variation commutes with coordinate partial derivatives when comparing fields at the same coordinates. When the metric varies, the covariant derivative varies through its connection as well. For a vector,
The second term accounts for the changed rule for comparing vector directions. It remains even if the coordinate components of the vector are held fixed.The second term accounts for the changed rule for comparing vector directions. It remains even if the coordinate components of the vector are held fixed.
13.4 Varying a metric and its inverse#13.4 Varying a metric and its inverse
The covariant and inverse metrics are not independent fields. They obeyThe covariant and inverse metrics are not independent fields. They obey
Vary this product:Vary this product:
Multiply by to isolate the inverse-metric variation:
Equivalently,Equivalently,
The matrix identity underneath is . Enlarging a positive eigenvalue of a matrix shrinks the corresponding inverse eigenvalue, which makes the minus sign intuitive. The identity itself holds for every invertible matrix, including Lorentzian metrics.
A common notation hazard is to define and then raise its indices. The raised tensor satisfies
“Raise the metric perturbation” and “vary the inverse metric” differ by a minus sign. Keeping these operations separate fixes the sign of the later volume and curvature variations.“Raise the metric perturbation” and “vary the inverse metric” differ by a minus sign. Keeping these operations separate fixes the sign of the later volume and curvature variations.
13.5 Why the volume element varies#13.5 Why the volume element varies
A spacetime region’s invariant volume is not simply its coordinate volume. It isA spacetime region’s invariant volume is not simply its coordinate volume. It is
For signature the determinant is negative in any real nonsingular coordinate chart, hence the real positive square root of .
To vary it, first recall Jacobi’s determinant identity:To vary it, first recall Jacobi’s determinant identity:
Here is a short derivation. FactorHere is a short derivation. Factor
To first order, the determinant of is . In the determinant expansion, a term with exactly one perturbation contributes only when it occupies a diagonal position; off-diagonal contributions need at least two perturbations. Differentiating at gives the identity.
Apply it to the metric:Apply it to the metric:
The square-root chain rule then givesThe square-root chain rule then gives
The final minus sign comes from inverse-metric variation. It does not mean the Lorentzian volume element is imaginary or negative.The final minus sign comes from inverse-metric variation. It does not mean the Lorentzian volume element is imaginary or negative.
Geometrically, the trace measures the infinitesimal fractional change of a volume. A trace-free metric deformation can change a little region’s shape without changing its volume to first order. In gravity, both curvature and the volume used to integrate that curvature change under variation. Ignoring the second effect would lose the term in Einstein’s equation.
13.6 The stress tensor as the response to changing geometry#13.6 The stress tensor as the response to changing geometry
A precise definition of the matter stress tensor, with our SI action convention, isA precise definition of the matter stress tensor, with our SI action convention, is
when the matter fields themselves are held fixed and appropriate integrations by parts have been performed. Equivalently,when the matter fields themselves are held fixed and appropriate integrations by parts have been performed. Equivalently,
A functional derivative is defined by its role in the integral giving the first variation. It is the continuum analogue of the coefficients in .
Metric variations are symmetric. In particular,Metric variations are symmetric. In particular,
There are ten independent variations, and the resulting metric stress tensor is symmetric. If one instead varies , the definition becomes
Changing metric variables changes the sign convention in the variation formula, not the physical stress tensor.Changing metric variables changes the sign convention in the variation formula, not the physical stress tensor.
For a matter Lagrangian with no derivatives of the metric, the determinant identity immediately yieldsFor a matter Lagrangian with no derivatives of the metric, the determinant identity immediately yields
Apply this in natural units to the scalar Lagrangian. Its explicit metric derivative is . The first term in becomes , and the volume variation supplies , reproducing Chapter 11’s tensor.
For electromagnetism, return to SI units. A convenient field variable is the electromagnetic potential, a covector field . It determines the field tensor locally by
Its antisymmetry is explicit. Changing to , for any smooth scalar , leaves unchanged because the two mixed derivatives of cancel. This is electromagnetic gauge freedom: more than one potential describes the same electric and magnetic fields.
Hold the functions fixed while varying the metric. Then the displayed remains fixed, but raising its indices uses the changing metric. Write its contraction as
The two inverse metrics each contribute a variation. Antisymmetry of and renaming dummy indices show that the two contributions are equal:
Thus the explicit metric derivative of gives the term in its stress tensor, and the volume variation gives the term. Even when the field components held fixed do not change, the metric changes how they are contracted into a physical energy density.
The resulting physical interpretation is: stress–energy measures how the matter action responds when its spacetime measuring apparatus is changed. Spatial deformations reveal stress; temporal deformations reveal energy; mixed deformations reveal momentum and energy flow. The familiar idea of stress as a response to strain has become a spacetime statement.The resulting physical interpretation is: stress–energy measures how the matter action responds when its spacetime measuring apparatus is changed. Spatial deformations reveal stress; temporal deformations reveal energy; mixed deformations reveal momentum and energy flow. The familiar idea of stress as a response to strain has become a spacetime statement.
For matter actions containing curvature or metric derivatives, use the full functional definition rather than the short partial-derivative formula. Likewise, a fluid’s energy density depends on proper volume and other constrained variables. Treating it as a metric-independent number during a naive variation will generally produce the wrong fluid stress tensor.For matter actions containing curvature or metric derivatives, use the full functional definition rather than the short partial-derivative formula. Likewise, a fluid’s energy density depends on proper volume and other constrained variables. Treating it as a metric-independent number during a naive variation will generally produce the wrong fluid stress tensor.
13.7 From a history to a state: Hamilton’s equations#13.7 From a history to a state: Hamilton’s equations
At the same position, a cart can be moving right, moving left, or standing still. Position alone cannot predict what it does next. Chapter 0 supplied both position and velocity as starting measurements. For the spring cart, momentum supplies the same missing information because .
Make a new plot: position on the horizontal axis, momentum on the vertical axis. The pair is one point, called a state. The space of such pairs is phase space. As time passes, the point traces a curve. This curve is not the cart’s path on the track: its vertical coordinate is momentum, not a second spatial direction.
Watch the cart pass the unstretched position twice. Both passages have , but one has positive momentum and the other negative momentum. They are distinct points on the phase-space plot. At a turning point, the phase-space curve crosses ; it does not stop there, because the force is changing momentum.
One cart. Two ways to see its motion.
The cart moves along a track. The dot moves through position and momentum. Pause either view: they describe the same state.
Each dot position is one state . The highlighted ellipse has the cart’s total energy. Small arrows show the direction of the next change.
At a turning point the cart is momentarily at rest. The spring force is still acting, so the motion reverses.
Adjust the cart and spring
Changing a starting measurement returns the clock to zero. The track and phase-space axes keep their scales.
What is being calculated?
The default cart has mass 1 kg and spring stiffness 1 N/m. It starts 1 m to the right of the unstretched position, at rest. The track has no friction; the spring has negligible mass. Motion is shown at one simulated second per second.
Force and momentum carry a direction. Energy is a number. For this experiment, , while . The bar is divided in the ratio of these two energies. Its total is .
The motion obeys . Write ; its units are inverse seconds. With starting displacement and momentum , the solution is
Differentiating twice gives the required acceleration. At time zero it reproduces the starting position and momentum. One complete cycle takes . The model has no damping, impacts, external driving, or relativistic corrections.
For the spring, the total energy expressed in these coordinates isFor the spring, the total energy expressed in these coordinates is
Holding fixed gives the ellipses in the plot. The actual motion follows one of them. Its direction can be found from two derivatives:
The first tells us how position changes; the second tells us how momentum changes. These are Hamilton’s equations for this example. The function that generates them is the Hamiltonian. Here it is total mechanical energy. We next derive the general construction, including when that energy interpretation needs qualification.The first tells us how position changes; the second tells us how momentum changes. These are Hamilton’s equations for this example. The function that generates them is the Hamiltonian . Here it is total mechanical energy. We next derive the general construction, including when that energy interpretation needs qualification.
Replacing velocity by momentum#Replacing velocity by momentum
Start with a Lagrangian , writing as a separate variable while taking partial derivatives. Define the conjugate momentum
For this gives , so we can replace by . More generally, suppose the momentum equation can be solved locally for . Define
This replacement is called a Legendre transform. It changes the independent variable from velocity to momentum. The cancellation that makes it useful is an ordinary product rule:This replacement is called a Legendre transform . It changes the independent variable from velocity to momentum. The cancellation that makes it useful is an ordinary product rule:
because . Subscripts here mean partial derivatives, with the other independent inputs held fixed. Compare this result with . The Euler–Lagrange equation already gives . Therefore
One second-order equation for has become two first-order equations for . They need the same amount of initial information. For several coordinates, use one conjugate momentum for each coordinate and replace by .
The local inversion is a real condition, not an automatic step. In one degree of freedom, ensures it locally. With several velocities, the matrix of second velocity derivatives must be invertible. When it is singular, relations among positions and momenta can become constraints. That possibility is central to relativity.
Energy conservation and the direction of flow#Energy conservation and the direction of flow
Along a solution,Along a solution,
Thus a Hamiltonian with no explicit time dependence is conserved. For a particle with ordinary quadratic kinetic energy and a time-independent potential, the construction gives . A time-dependent drive can change , and an arbitrary coordinate choice or Lagrangian does not let us identify it with a chosen observer’s energy without further argument.
The oscillator’s phase-space arrows follow . At the rightmost point they point down, so the motion runs clockwise. That orientation is information beyond the shape of an energy ellipse. If the equations have no explicit time dependence, the system is called autonomous. When its smooth equations have unique solutions, distinct phase-space trajectories cannot cross at the same state: the same position and momentum cannot have two different next steps. A time-dependent system requires specifying the time as well.
For any observable , meaning a quantity calculated from the state, the chain rule gives
Define the Poisson bracket by . Then . For several canonical pairs, sum that expression over . For example, , , and for the spring. The bracket records how a quantity changes under a specified Hamiltonian flow; it is not ordinary multiplication with different brackets.
Try a state before revealing its next motionTry a state before revealing its next motion
Take , , , and . Find the velocity, force, kinetic energy, potential energy, and total energy. Is the cart’s speed increasing at this instant?
Compare the calculationCompare the calculation
The velocity is and the force is . They both point left, so the speed is increasing. The energies are and , giving . The instantaneous exchange rates are and .
Why conjugate momentum can differ from mass times velocityWhy conjugate momentum can differ from mass times velocity
Add a total derivative to the spring Lagrangian:Add a total derivative to the spring Lagrangian:
Here is a constant with units . The action changes only by an endpoint term. With fixed endpoint positions, its variation is unchanged, so the physical equation of motion is unchanged. But the conjugate momentum becomes . Solving for velocity gives
The mechanical momentum remains . The example explains why the derivative definition of conjugate momentum matters even when the physical motion is familiar.
How the relativistic particle prepares us for constraintsHow the relativistic particle prepares us for constraints
For a timelike worldline parametrized by , Chapter 5 used the action with Lagrangian
The conjugate momentum isThe conjugate momentum is
Multiplying every velocity by the same positive factor leaves these momenta unchanged. Therefore the momenta cannot determine the arbitrary rate at which the parameter labels the worldline. The velocity-to-momentum map is not invertible. Direct contraction also gives , so the naive canonical Hamiltonian vanishes. The particle still moves; its parametrization is redundant.
The mass-shell relation is a constraint. Introduce an auxiliary function that multiplies this constraint, and use the phase-space action
Varying enforces . Varying gives . Changing the positive multiplier changes how quickly the parameter runs along the same future-directed worldline. Chapter 20 returns to this freedom in labeling time when it introduces the lapse and constraints for spacetime geometry.
The idea to keepThe idea to keep
Vary the configuration, collect the arbitrary change, and integrate derivatives off that change. Stationarity makes its coefficient vanish.Vary the configuration, collect the arbitrary change, and integrate derivatives off that change. Stationarity makes its coefficient vanish.
Why does fixing endpoint values remove the ordinary mechanics boundary term?Why does fixing endpoint values remove the ordinary mechanics boundary term?
The boundary term is momentum times the endpoint variation. Fixed endpoints set that variation to zero. Higher-derivative actions require more care.The boundary term is momentum times the endpoint variation. Fixed endpoints set that variation to zero. Higher-derivative actions require more care.