Variational Definition of Stress-Energy
Every field theory has to answer one blunt question before it can be coupled to gravity: given a bag of matter — a scalar field, an electromagnetic field, a fluid — what, exactly, is its energy and momentum? In flat space one can grope toward an answer through Noether's theorem for spacetime translations, but the object it produces, the canonical stress tensor, is a disappointment: it is generally not symmetric, not gauge invariant, and not obviously the thing that should curve spacetime. General relativity demands better — the right-hand side of is a symmetric, conserved, two-index tensor, and the source that feeds it must be built to match. The variational — or Hilbert — definition supplies that source with a single, unambiguous prescription: the stress-energy tensor is the response of the matter action to a deformation of the spacetime metric, . This is not a definition of convenience; it is forced by the logic of the action principle, because the same variation that turns the Einstein-Hilbert action into the Einstein tensor turns the matter action into — the two sides of the field equations are born from one operation. And it comes with a bonus no bookkeeping could have guaranteed: because the recipe differentiates with respect to the symmetric tensor , the result is automatically symmetric, and because the matter action is a coordinate scalar, its diffeomorphism invariance forces as a Noether identity. Conservation is not an extra postulate here — it is the shadow general covariance casts on the matter sector, mirroring the contracted Bianchi identity on the geometry side.
- The matter stress-energy tensor is the functional derivative of the matter action with respect to the inverse metric, .
- This Hilbert tensor is automatically symmetric and gauge covariant, unlike the canonical Noether tensor from translation invariance — no Belinfante–Rosenfeld repair is needed.
- Varying the total action with respect to yields the Einstein field equations with this as the source.
- Diffeomorphism invariance of forces automatically — local energy-momentum conservation is a symmetry identity, not a separate law.
- A constant Lagrangian gives : a perfect fluid with , the cosmological constant / vacuum energy.
- The recipe reproduces the familiar tensors for scalars, electromagnetism, point particles, and perfect fluids, and defines in curved-space quantum field theory.
- Key idea: Stress-energy is the gravitational current — the object that measures how strongly a matter action resists a change of the metric, — and its conservation is the Noether identity of diffeomorphism invariance.
Stress-energy is the gravitational current: it is precisely the object that measures how strongly a matter action resists a change of the metric, , and its conservation is the Noether identity of diffeomorphism invariance.
Where this lives today
The variational stress-energy tensor is not a museum piece; it is the daily working definition wherever matter meets curved spacetime. In numerical relativity — the simulations that produced the waveform templates LIGO and Virgo match against merging black holes and neutron stars — the matter source is coded as the Hilbert of a relativistic fluid or magnetofluid, and its automatic conservation is what the evolution schemes enforce to stay stable. In cosmology the entire dark-energy programme is a debate about the constant term in the matter action: is the observed (measured by DESI, Planck, and Type Ia supernovae to a few percent) a true cosmological constant, or a slowly-rolling quintessence scalar whose only approximates ? The variational definition is the common language in which those alternatives are even stated. In quantum field theory on curved spacetime, the renormalized — defined by varying the effective action with respect to the metric — drives Hawking radiation and the conformal (trace) anomaly, where even for a classically traceless field because regularization smuggles in a scale. And in the effective-field-theory formulation of relativistic hydrodynamics, is derived order by order from an action for the comoving matter variables, guaranteeing thermodynamic consistency and conservation at every order — the systematic descendant of Hilbert's single scalar functional.
The physical picture
Picture the matter action not as a number but as a machine that eats a spacetime geometry and returns a single real number. Feed it flat Minkowski space and it returns one value; feed it a slightly bumped metric and it returns another. The stress-energy tensor is the sensitivity of that machine to the bump — the gradient of the action in the abstract space of all metrics. Where matter is dense and energetic, the action changes steeply as you deform the metric there: the matter "pushes back" hard against the geometry, and that push-back, component by component, is exactly the local energy density, momentum flux, and stress. Where spacetime is empty, the machine does not care how you wiggle the metric, and . The prefactor is only a change of units — it strips off the volume-element density and fixes the sign so that ordinary matter has positive energy density — but the geometry of "action as a landscape over metrics, stress-energy as its slope" is the whole physical content.
Two further ideas sit inside this one picture, and they are what make the variational definition indispensable rather than merely elegant. The first is self-symmetrization. Because the variable you differentiate with respect to, , is a symmetric tensor, the derivative cannot help but produce something symmetric in — the improvement terms that the canonical Noether tensor needs for spinning fields are performed for free. The second is conservation from covariance. A pure relabelling of coordinates cannot change a scalar; but a coordinate change acts on the metric as a Lie derivative, , and demanding that this particular deformation leaves the on-shell action unchanged is, term by term, the statement . Energy-momentum conservation is thus the gravitational analogue of charge conservation from gauge invariance. The second figure shows why one prescription is worth so much: a single operation, applied to three different matter Lagrangians, returns three different stress-energy tensors — and reads off their traces, which encode whether the matter has an intrinsic scale.
The core equations
The definition itself is the anchor of the whole article: it says how to manufacture from any matter Lagrangian by varying the metric. The second equality — obtained by expanding the variation of the volume element — is the working form used in every calculation, because it isolates the explicit dependence of and adds a universal trace piece.
where: — Hilbert (metric) stress-energy tensor; — determinant of ; — matter Lagrangian scalar; — inverse metric, the variational variable. Reading it: differentiate the Lagrangian with respect to the inverse metric, double it with a minus sign, and add for the volume-element contribution. The universal trace piece comes entirely from how the invariant volume responds to a metric deformation. This identity, from Jacobi's formula for the derivative of a determinant, is the single most reused line in variational relativity.
where: — variation of the inverse metric; — variation of the metric. The two forms differ by a sign because raising the indices on the variation flips it; this is the root of every "which sign?" convention headache. Gravity and matter meet in one functional. The total action is the Einstein-Hilbert term plus the matter term, each integrated against the same invariant volume, and the field equations are what you get by holding the whole thing stationary against .
where: — Ricci scalar; — Newton's constant; — total gravity-plus-matter action. Reading it: the coefficient is fixed by demanding the Newtonian limit; the matter piece carries all the fields hidden inside . Setting makes the geometric variation of the first term cancel the matter variation of the second. The Einstein-Hilbert variation supplies ; the matter variation supplies precisely , and the two balance.
where: — Ricci tensor; — Einstein tensor. Reading it: the very variation that defines is the variation that sources the field equations, so the definition and the coupling are one and the same operation. Conservation enters not as a new equation but as a consequence of invariance. Under an infinitesimal diffeomorphism generated by , the inverse metric shifts by minus its Lie derivative; demanding that a coordinate-scalar action be blind to this shift, on-shell, forces the covariant divergence of to vanish.
where: — generator of the diffeomorphism; — Lie derivative along ; — metric-compatible covariant derivative. Reading it: general covariance of is the symmetry, and is its Noether identity — the exact mirror of . The trace of is a physically loaded scalar: it measures whether the matter carries an intrinsic scale. It contrasts sharply with the flat-space canonical tensor, which the Hilbert construction quietly repairs.
where: — trace of stress-energy, zero for conformally invariant matter (e.g. source-free electromagnetism in four dimensions); — canonical Noether tensor from spacetime translations, generally neither symmetric nor gauge invariant; — flat metric. Reading it: the Hilbert tensor is what the canonical tensor becomes once you add the Belinfante–Rosenfeld improvement, packaged automatically.
The goal is to derive the working second form of the Hilbert definition, , starting only from the statement that is minus twice the metric-variation of the matter action per unit invariant volume. The one nontrivial ingredient is how the volume element itself responds to a metric deformation; everything else is the product rule. Getting the term right is what separates a correct — with its pressure and its cosmological-constant piece — from a truncated one that silently drops the entire trace contribution.
Step 1. Write the matter action as and vary only the metric, holding the matter fields at their on-shell values so that . The integrand's variation is then . Why: on-shell the field-equation terms vanish, so the entire response of the action is carried by the explicit metric dependence — the definition of stress-energy is exactly this leftover.
Step 2. Evaluate from Jacobi's formula . Using (from varying ) gives . Why: this factor is universal — it multiplies whatever happens to be, which is why every stress-energy tensor carries a term regardless of the matter content.
Step 3. Substitute Step 2 into Step 1: . Dividing by and multiplying by the calibration factor collapses the bracket into . Why: the is chosen once and for all so that ordinary matter has ; with it fixed, the recipe is a turnkey machine — hand it any and it returns a symmetric tensor.
Step 4. Confirm the symmetry and the trace. Because , the derivative is automatically symmetric, and is symmetric, so with no extra work; contracting with gives in four dimensions. Why: symmetry is the property the canonical tensor lacks and the Einstein equations require, and here it is free — a direct consequence of differentiating with respect to a symmetric object.
Go deeper · Derivation B · 1 minConservation as the Noether identity of diffeomorphism invariance
The goal is to show that is not an independent physical law but an automatic consequence of the matter action being a coordinate scalar. The argument uses only three facts: that a diffeomorphism acts on the metric as a Lie derivative, that is symmetric, and that a scalar action cannot change under a mere relabelling of coordinates. Assembling them shows that covariant conservation is to diffeomorphism invariance what electric-charge conservation is to gauge invariance — a symmetry identity, valid on-shell for the matter fields regardless of what the matter is.
Step 1. Vary the metric alone, with matter on-shell, so that directly from the Hilbert definition. Why: on-shell the only surviving response of the action is the metric one, and it is packaged precisely by — so this expression is exact, not an approximation.
Step 2. Choose the metric variation to be an infinitesimal diffeomorphism, , the Lie derivative of along an arbitrary compactly supported vector field . Why: a diffeomorphism is a pure coordinate relabelling, and a coordinate-scalar action must be exactly invariant under it — this is the symmetry we will cash in.
Step 3. Insert Step 2 into Step 1 and use the symmetry to combine the two terms, giving . Why: symmetry lets the two symmetrized derivative terms collapse into one, which is why the whole argument would fail for the non-symmetric canonical tensor.
Step 4. Integrate by parts with the covariant divergence theorem, discarding the boundary term because has compact support: . Why: moving the derivative off and onto isolates the divergence, turning an invariance statement into a pointwise condition.
Step 5. Demand invariance, for every . The arbitrariness of forces everywhere. Why: this is the Noether identity of general covariance, and it must agree with the geometry side — indeed the contracted Bianchi identity is exact and geometric, so independently forces the same conservation, a consistency check the two derivations pass together.
Go deeper · Derivation C · 1 minThe electromagnetic stress-energy and why its trace vanishes
The goal is to run the Hilbert recipe on the Maxwell Lagrangian and recover the symmetric, gauge-invariant, traceless electromagnetic stress-energy tensor — the same object that, in flat space, needed a Belinfante correction to symmetrize the canonical tensor. Along the way the tracelessness falls out as a clean four-dimensional accident that encodes the conformal invariance of source-free electromagnetism, and hence the masslessness and scale-freedom of the photon.
Step 1. Write the Lagrangian with all metric dependence explicit, , treating as metric-independent (it is built from the connection-free curl of ). Why: only the raised-index contractions carry the metric, so the variation acts on the two factors of and nothing else — the gauge field itself is inert.
Step 2. Differentiate: each of the two inverse metrics contributes equally, so . Why: the factor of two from the two identical metric factors exactly cancels the , leaving the clean bilinear in that becomes the Poynting/Maxwell-stress part of .
Step 3. Apply the definition to get , manifestly symmetric and gauge invariant since it depends only on . Why: no improvement term is needed — the curved-metric variation has performed the Belinfante–Rosenfeld symmetrization automatically, which is the practical payoff of the whole construction.
Step 4. Take the trace in four dimensions: while , so . Why: the is dimension-dependent — in dimensions the trace is , so tracelessness is special to and is the fingerprint of the classical conformal invariance that a massless, scale-free field enjoys only there.
Limiting cases
The single definition specializes to every standard matter model; each row is the output of the same machine fed a different Lagrangian.
| Case | Result | Meaning |
|---|---|---|
| Scalar field | From ; the first term is canonical, the term supplies pressure. Trace . | |
| Electromagnetism | From ; automatically symmetric, gauge invariant, and traceless in — no Belinfante repair. | |
| Vacuum energy / | From a constant ; only the term survives, a perfect fluid with , . | |
| Perfect fluid | From a comoving-fluid action with ; pressure emerges as from the metric variation. | |
| Point particle | From the worldline action ; a delta-supported dust element, the pressureless limit of the fluid. |
Worked examples
1 · The cosmological constant from a constant Lagrangian (fully worked)
Take the simplest possible matter Lagrangian — a constant, , representing a uniform energy density of empty space. Find its stress-energy tensor, its equation of state, and, using the measured dark-energy density , the numerical value of the cosmological constant .
Step 1. Apply the working definition. A constant has no explicit dependence, so and the entire result comes from the volume-element term: . Every ounce of this tensor is the contribution — the term a careless calculation would drop.
Step 2. Read off the fluid content. Comparing with the perfect-fluid form in the rest frame (where contributes only to the time-time slot and ): the energy density is and the pressure is . Hence the equation of state is — the defining signature of a cosmological constant, and why vacuum energy drives accelerated expansion rather than resisting it.
Step 3. Locate in the field equations. Moving to the geometry side, with ; in the clean relation (energy density) the constant and the vacuum energy are two names for one constant in the action. This is why "is geometry or matter?" has no invariant answer — both spring from the same constant term.
Step 4. Put in numbers. With , , and : . The corresponding vacuum energy density is . Both match the Planck-2018 concordance values — and both sit about orders of magnitude below the naive quantum-field-theory estimate of the vacuum energy, the cosmological-constant problem in one line.
2 · A homogeneous scalar field interpolates to the vacuum limit
A spatially uniform scalar field in a flat cosmology has . Show that its stress-energy is that of a perfect fluid, find , , and , and show that when the field rolls slowly it reproduces Example 1.
Step 1. Specialize the scalar tensor. For a homogeneous field only the time derivative survives, , so . The energy density is ; carefully, . The pressure, from any spatial diagonal component, is .
Step 2. Form the equation of state. . Kinetic energy pushes toward (stiff fluid); potential energy pushes it toward (vacuum-like). A single field thus spans the entire physically interesting range depending on how fast it moves.
Step 3. Take the slow-roll limit. When the field rolls slowly, , both and , so and — exactly the cosmological-constant fluid of Example 1 with . This is the engine of cosmic inflation and of quintessence dark energy: a scalar field temporarily trapped high on its potential acts like a cosmological constant, and the variational definition is what tells us precisely how well the approximation holds — the correction is set by the size of .
Physics of the portrait
The variational definition of stress-energy has a precise birthday and a precise author. On the same November days in 1915 that Einstein was completing the field equations by physical reasoning, a mathematician in Göttingen derived them a second way — from a single scalar action, held stationary — and in doing so fixed forever how matter is to be coupled to geometry.
Origins · 1 minDavid Hilbert and how this was discovered
David Hilbert was the greatest mathematician of his generation, and in the autumn of 1915 he turned the full force of his axiomatic method on Einstein's still-unfinished theory of gravitation. Where Einstein reasoned his way to the field equations through physical arguments about the equivalence principle and the Newtonian limit, Hilbert sought them as the output of a variational principle: postulate a single scalar action built from the curvature plus the matter fields, demand it be stationary under variations of the metric, and let the calculus of variations hand you the dynamics. His paper Die Grundlagen der Physik, presented to the Göttingen Academy on 20 November 1915 — five days before Einstein's own presentation in Berlin — obtained from , and in the process defined the matter source as the metric-variation of the matter action, the object we now call the Hilbert stress-energy tensor. This variational route made manifest two things Einstein's path had left implicit: that the source of gravity is automatically symmetric, and that its conservation follows from the invariance of the action rather than as a separate demand. Hilbert was scrupulous about priority, always attributing the physics to Einstein, and the two near-simultaneous results — once a subject of controversy — are now read as complementary. The action he wrote down remains the starting point of every modern formulation of gravity, from the Standard Model in curved space to the effective field theories of cosmology.
Going further
Texts. Misner, Thorne & Wheeler, Gravitation, §21.2–21.3 (variational principle and the source) · Wald, General Relativity, §E.1 and §4.3 (the Hilbert tensor and its conservation) · Carroll, Spacetime and Geometry, §4.3 and Appendix E (variational derivation, worked examples) · Hartle, Gravity, Ch. 22 · Schutz, A First Course in General Relativity, Ch. 7.
Provenance. Signs and factors follow the mostly-plus convention of Wald (§E.1, §4.3) and Carroll (App. E), with cross-checks against MTW §21.3. A verifier should: (1) reproduce from Jacobi's formula; (2) recompute the scalar and Maxwell stress-energy tensors and confirm the EM trace vanishes only in ; (3) verify the diffeomorphism-invariance derivation of against the contracted Bianchi identity ; (4) confirm and from (Planck 2018). All equations are textbook-standard; the only numerical inputs are the measured dark-energy density and fundamental constants.
Prerequisites. The Stress-Energy Tensor · The Einstein-Hilbert Action · Variational Derivation of the Field Equations · Local Conservation of Energy-Momentum. Leads to. The Einstein Field Equations · Perfect Fluid Stress-Energy · The Cosmological Constant · The Energy Conditions.
Ask the tutor: Ask me to vary any matter Lagrangian you like — a non-minimally coupled scalar, a Proca field, a viscous fluid — and watch the same machine hand back its symmetric, conserved stress-energy tensor step by step.
Why define stress-energy by varying the metric instead of using Noether's theorem for translations?
Noether's theorem for spacetime translations does give a stress-energy tensor — the canonical one — but it has three defects that make it unfit as a gravitational source. It is generally not symmetric (for fields with spin, like the electromagnetic field), it is generally not gauge invariant, and it is not unique (you can add improvement terms). The Einstein equations demand a symmetric tensor, because is symmetric. The Hilbert prescription cures all three defects at once: differentiating with respect to the symmetric metric forces symmetry, coupling gauge fields through the metric preserves gauge invariance, and the recipe is unambiguous. The canonical and Hilbert tensors differ by exactly the Belinfante–Rosenfeld improvement terms, which the metric variation supplies for free.
What physical job does the δ√(−g) term do?
It carries the pressure and the trace. When you vary the matter action, part of the change comes from the explicit metric dependence of and part from the change in the invariant volume . The second part contributes the universal term to , which is precisely the isotropic-pressure piece. The cleanest demonstration is a constant Lagrangian : it has no explicit metric dependence at all, so the entire stress-energy tensor comes from the term — the cosmological-constant fluid with . Drop this term and you lose pressure, the trace, and the cosmological constant together.
Is the conservation ∇^μ T_μν = 0 an independent physical law?
No — and that is the deep lesson. In pre-relativistic physics, energy and momentum conservation are separate postulates. In general relativity, once you build the matter action as a coordinate scalar, covariant conservation is forced: it is the Noether identity that follows from demanding invariance under diffeomorphisms. You never have to check it separately for a new matter model; any covariant produces a conserved automatically. This dovetails with the geometry side, where the contracted Bianchi identity is an exact identity of Riemannian geometry. The field equations are consistent precisely because both sides are automatically divergence-free.
Why is the electromagnetic stress-energy traceless but the scalar field's is not?
Tracelessness is the fingerprint of conformal (scale) invariance. Source-free Maxwell theory in four dimensions has no intrinsic length or mass scale, and it is invariant under conformal rescalings of the metric — that symmetry forces . The result is special to : in dimensions the Maxwell trace is , nonzero away from four. A scalar field with a mass or a potential does have a scale, so it is not conformally invariant, and its trace is nonzero. Only a massless scalar with a specific non-minimal curvature coupling can be made conformally invariant and traceless. Quantum mechanically, even classically traceless theories acquire a nonzero — the trace anomaly — because regularization introduces a scale.
How does the recipe give a perfect fluid, with pressure appearing from nowhere?
Start from a fluid action in terms of the comoving particle-number density and an energy-density function : , where itself depends on the metric through the normalization of the four-velocity. Varying the metric does two things: the explicit gives the usual term, and the metric hidden inside produces the term. The pressure emerges as — a thermodynamic relation, not an input. So "pressure from nowhere" is really pressure from the equation of state you chose, extracted automatically by the variation. This is why the method is prized in relativistic hydrodynamics: thermodynamic consistency is built in.
Does the cosmological constant belong to geometry or to matter?
There is no invariant answer, and the variational definition is what makes that precise. A constant term in the action can be written on the geometry side as added to , or on the matter side as a vacuum stress-energy with . The two are related by moving one term across the equals sign, and no measurement can tell them apart because both produce the identical . This is why the cosmological-constant problem is so stubborn: quantum field theory predicts an enormous vacuum energy on the matter side, and only an almost-perfect cancellation against a bare geometric leaves the tiny observed . The variational bookkeeping shows both contributions are the same kind of object — which is why they must be compared, not kept separate.