Gauss-Codazzi-Mainardi Equations
A hypersurface is a slice — a three-dimensional "now" cut through spacetime, or classically an ordinary surface in space. It carries two notions of curvature. The intrinsic curvature is everything an inhabitant confined to the slice could measure: triangle angle sums, the failure of parallel transport, all encoded in the induced metric . The extrinsic curvature is invisible from inside — it records how the slice bends within the surrounding space, how its unit normal tilts as you slide along it. Paper rolled into a cylinder is extrinsically curved but intrinsically flat; a sphere is curved both ways. The Gauss-Codazzi-Mainardi equations are the exact laws relating these two curvatures to the curvature of the ambient space. They come from one operation: take the ambient Riemann tensor and project each of its four indices either tangent to the slice or along the normal. All four tangential gives the Gauss equation — ambient curvature equals intrinsic curvature plus a quadratic in , the descendant of Gauss's Theorema Egregium. One index normal gives the Codazzi-Mainardi equation, first-order in derivatives of . Two indices normal gives the Ricci equation, governing how evolves. Feed Einstein's equations into the first two and they become the Hamiltonian and momentum constraints — the four conditions any valid initial data must satisfy before a numerical-relativity simulation can take a single step.
- A hypersurface carries two curvatures — intrinsic (from its induced metric ) and extrinsic (, how it bends in the ambient space). The equations tie both to the ambient Riemann tensor by projecting its four indices onto and along the normal .
- All-tangential is the Gauss equation ( plus a quadratic in ); one-normal is Codazzi-Mainardi (derivatives of ); two-normal is the Ricci equation (evolution of ).
- With Einstein's equations, twice-contracted Gauss becomes the Hamiltonian constraint and once-contracted Codazzi becomes the momentum constraint .
- A flat FLRW slice collapses the Hamiltonian constraint to the Friedmann equation ; a surface in flat space collapses Gauss to .
- These are pure geometric identities for any codimension-one slice; only the normal's norm flips signs between a spacelike slice and a timelike wall.
- Key idea: project the ambient Riemann tensor through the tangential projector and the normal — all-tangential gives Gauss (intrinsic curvature plus ), one-normal gives Codazzi (derivatives of ), two-normal gives evolution; feeding Einstein's equations into the first two yields the Hamiltonian and momentum constraints of the 3+1 initial-value problem.
Project the ambient Riemann tensor through the tangential projector and the normal — all-tangential gives Gauss (intrinsic curvature plus a quadratic in ), one-normal gives Codazzi-Mainardi (derivatives of ), two-normal gives the Ricci evolution equation — and contracting the first two against Einstein's equations yields the Hamiltonian and momentum constraints on initial data.
Where this lives today
The Gauss-Codazzi-Mainardi equations are the daily tools of numerical relativity, and every gravitational-wave detection rests on them. Before LIGO-Virgo-KAGRA can predict a binary black-hole waveform, someone must build initial data — a spatial metric and extrinsic curvature satisfying the Hamiltonian and momentum constraints to machine precision. This is the conformal method: solving the elliptic constraint equations (contracted Gauss and Codazzi) for a conformal factor and a longitudinal vector, using Bowen-York or conformal-thin-sandwich data. The result is handed to an evolution code (BSSN or generalized-harmonic), whose equations come from the Ricci projection. In the continuum the constraints are preserved by the Bianchi identity ; in practice discretization seeds violations that BSSN and constraint-damping suppress, so constraint monitors on equations (6) and (7) are a running simulation's standard health check. The same machinery drives the Israel junction conditions for thin shells, apparent-horizon finders solving , and — in mathematical relativity — the positive-mass theorem and the Penrose inequality.
The physical picture
Imagine an ant on an eggshell. It can never step off, yet it can still discover its world is curved: it walks a triangle and finds the angles sum to more than 180 degrees, or carries an arrow around a loop and finds it rotated on return. That is intrinsic curvature. A geometer floating above sees what the ant cannot: the shell bends away into the third dimension, and the direction "straight out" — the unit normal — swings around as you move from the fat end to the point. The rate of that swing is the extrinsic curvature . The first figure sets the two side by side and pins the sphere to a number.
The two curvatures are not independent — that is the whole subject. For a surface in flat space the ambient curvature is zero, so the intrinsic curvature is forced to equal a fixed combination of the extrinsic curvature: bend a flat sheet without stretching and its intrinsic geometry never changes, because rolling alters but leaves alone. In general relativity the ambient space is not flat, and the same bookkeeping becomes physics: spacetime curvature, sourced by matter, ties the geometry of a spatial slice to how that slice sits in time. The second figure turns the three projections into the machinery of the initial-value problem.
Why should only some projections be constraints? The answer is causal. A constraint is imposed at a single instant, before evolution begins, so it must contain no second time derivatives. The Gauss and Codazzi projections involve , , and their spatial derivatives only; since is essentially the metric's first time derivative, these are at most first-order in time and checkable on the slice itself. The doubly-normal Ricci projection contains , a second time derivative of — it does not constrain the data, it evolves it. That distinction is why relativity has a well-posed Cauchy problem: four of the ten Einstein equations are constraints from Gauss and Codazzi, the remaining six push the data forward.
The core equations
Everything begins with splitting the ambient metric into a tangent piece and a normal piece. Let be a spacelike hypersurface in of signature , with future-directed unit normal , . The induced metric doubles as the orthogonal projector onto .
where: — ambient spacetime metric; — unit normal, for a spacelike slice ( for a timelike wall); — induced (spatial) metric on ; — projector, , . Reading: any tensor splits into parts along and parts in by hitting each index with or . The extrinsic curvature measures how the normal fails to be parallel-transported within — equivalently minus half the Lie derivative of the spatial metric along the normal, which is why it acts as the metric's "velocity."
where: — extrinsic curvature, symmetric and purely tangential (); — ambient Levi-Civita connection; — Lie derivative along ; — mean curvature. Reading: lives on yet remembers how sits in ; it is symmetric because the normal is hypersurface-orthogonal. The Gauss equation is the fully tangential projection: the intrinsic Riemann tensor of differs from the projected ambient one by a quadratic in .
where: — ambient Riemann tensor; — intrinsic Riemann tensor of (from the connection compatible with ); the terms are the "bending" correction. Reading: in general the quadratic term carries , so a spacelike slice () shows the sign here while a Euclidean surface () flips it — the single sign separating the two settings. The Codazzi-Mainardi equation is the one-index-normal projection, equating a mixed component of the ambient Riemann tensor to the antisymmetrized covariant derivative of .
where: — the single normal-projected index; — the intrinsic (Levi-Civita) covariant derivative of ; — spatial gradient of . Reading: first order in and free of time derivatives of , so it is a genuine constraint whose contraction is a momentum-balance law. The Ricci equation is the doubly-normal projection; it contains a time derivative of and so is dynamical.
where: — lapse function (proper time per unit coordinate time along ); — the normal Lie derivative carrying ; — acceleration term, . Reading: rearranged, this is the ADM evolution equation for — the six equations pushing data forward once the constraints hold. Contracting Gauss twice and inserting Einstein's equations yields the Hamiltonian constraint.
where: — intrinsic Ricci scalar of the slice; — mean curvature; — squared extrinsic curvature; — Eulerian energy density. Reading: this ties the intrinsic curvature of "space now" to the matter energy density and how space embeds in time; in vacuum the right side vanishes. Contracting Codazzi once and inserting Einstein's equations yields the momentum constraint.
where: — Eulerian momentum density; — covariant derivative of ; — trace-reversed extrinsic curvature. Reading: the divergence of trace-reversed balances the momentum flux — the structure York's conformal method exploits.
The goal is to derive equation (3) by relating the intrinsic covariant derivative on to the ambient derivative and computing a commutator. The intrinsic connection is the ambient one with every index projected back onto ; iterating that projected derivative on a tangent vector and antisymmetrizing gives the intrinsic Riemann tensor on one side, and the projected ambient Riemann tensor plus projector derivatives on the other. Those projector derivatives are exactly where enters.
Step 1. For any vector tangent to , define the intrinsic derivative as the fully projected ambient one, . Why: this is the unique torsion-free derivative compatible with , so it is the connection an inhabitant of would build; writing it through is what lets us import the ambient curvature.
Step 2. Apply a second time, , and let act on the projectors inside the bracket. Why: the derivative of the projector is not zero — from (1), contains , and the tangential part of is exactly , so each differentiated projector deposits a factor of .
Step 3. Antisymmetrize in and . The left side becomes intrinsic curvature by definition, ; both derivatives hitting give the projected ambient commutator ; the cross terms (one derivative on a projector) give . Why: antisymmetrizing kills the symmetric second-derivative pieces, cleanly separating the ambient contribution from the embedding one.
Step 4. Lower the free index and rearrange, giving equation (3). Why: no field equations were used, so this is an identity holding for any hypersurface in any (pseudo-)Riemannian manifold, with the sign set by . *For a spacelike slice the quadratic sign is ; setting with reproduces the classical Euclidean surface relation.*
Go deeper · Derivation B · 1 minThe Hamiltonian constraint from the twice-contracted Gauss equation
The goal is to reduce the tensor identity (3) to the scalar equation (6) by tracing it twice with the inverse spatial metric and inserting Einstein's equations. Contracting the projected Riemann on both index pairs turns the left side into a combination of the ambient Ricci scalar and the doubly-normal Ricci component that reorganizes exactly into the Einstein tensor contracted twice with the normal — the Eulerian energy density — while the right side gives the intrinsic scalar plus the two curvature invariants.
Step 1. Contract (3) with . The right side gives , since and . Why: the double trace of the intrinsic Riemann tensor is the intrinsic Ricci scalar, and the two contractions of the quadratic term give the trace-squared and norm-squared of .
Step 2. On the left, write each projector as : the pure- piece gives , the two cross terms each give , and the double- piece vanishes by Riemann antisymmetry. Why: the projected double trace equals , using for a unit timelike normal.
Step 3. Assemble to . Why: this is the purely geometric contracted Gauss equation, true before any physics — spatial curvature plus embedding invariants equals the doubly-normal Einstein tensor.
Step 4. Insert and , giving . Why: the Hamiltonian constraint — no time derivatives, imposable on one slice; in vacuum . *The FLRW specialization below reproduces the Friedmann equation exactly.*
Go deeper · Derivation C · 1 minThe momentum constraint from the contracted Codazzi equation
The goal is to reduce the Codazzi-Mainardi identity (4) to the vector equation (7) by tracing over one index pair and inserting Einstein's equations. Contracting the once-normal projection produces a mixed normal-tangential component of the ambient Ricci tensor which — because the metric trace drops under a tangential-normal projection — equals the same component of the Einstein tensor, the Eulerian momentum density; the right side of (4) becomes the divergence of the trace-reversed extrinsic curvature.
Step 1. Contract (4) with . The right side gives . Why: after raising indices this is exactly , the divergence form of a symmetric tensor with its trace removed.
Step 2. On the left, turns the projected Riemann into , the once-normal projection of the ambient Ricci tensor. Why: the double- contribution vanishes by Riemann antisymmetry, so only the Ricci piece survives.
Step 3. Replace Ricci by Einstein: , since the trace term is killed by . Why: this is why the momentum constraint carries no explicit — the metric trace cannot survive a mixed projection.
Step 4. Insert and , giving . Why: the momentum constraint; in vacuum the trace-reversed is divergence-free, the condition Bowen-York and conformal-TT data satisfy. *York's conformal decomposition solves precisely this divergence equation for the longitudinal part of .*
Limiting cases
Each special case recovers a landmark result.
| Case | Result | Meaning |
|---|---|---|
| Flat ambient space () | ; | Classical surface theory: Gauss's Theorema Egregium plus the Codazzi integrability conditions for embedding a surface into . |
| Vacuum spacetime | ; | Constraints with ; vacuum data such as Brill waves and black-hole punctures. |
| Time-symmetric slice () | (vacuum: ) | Momentum constraint automatic; Hamiltonian becomes one elliptic equation. Schwarzschild is the archetype. |
| Maximal slice () | Trace-free ; the maximal-slicing gauge used to avoid singularities. | |
| Spacelike vs. timelike | (spacelike), (timelike) | multiplies the quadratic term in Gauss; the Cauchy problem uses , timelike walls use . |
Worked examples
1 · The Friedmann equation as a Hamiltonian constraint (fully worked)
Slice a flat Friedmann-Lemaître-Robertson-Walker universe along constant cosmic time and show the Hamiltonian constraint (6) is exactly the Friedmann equation.
Step 1. The flat FLRW slice has , lapse , zero shift. It is flat space rescaled, so — the slices are intrinsically flat even though spacetime is curved; all the curvature is in how they stack in time.
Step 2. Compute the extrinsic curvature from (2): with and , . Its trace is , where is the Hubble rate.
Step 3. Form the two invariants. . For the norm, . Hence .
Step 4. Insert into the Hamiltonian constraint (6): , i.e. — the Friedmann equation (). The central equation of cosmology is nothing but the twice-contracted Gauss equation of a comoving slice; the curvature term reappears once the slices carry .
2 · The Schwarzschild time-symmetric slice (fully worked)
Show that the slice of Schwarzschild in isotropic coordinates satisfies both constraints, so it is valid vacuum initial data.
Step 1. In isotropic coordinates the slice is conformally flat, with . It is a moment of time symmetry, so — the geometry looks the same forward or backward in time, so its "velocity" vanishes.
Step 2. With the momentum constraint (7) reads , and in vacuum , so it is satisfied identically — every time-symmetric slice solves the momentum constraint.
Step 3. The Hamiltonian constraint (6) with and collapses to . For the intrinsic Ricci scalar is with the flat Laplacian, so iff is flat-harmonic.
Step 4. Check that is flat-harmonic for : , since is the Green's function of the 3D Laplacian. Both constraints hold, so the slice is legitimate vacuum initial data. This is the seed of the puncture method: a black hole is a harmonic conformal factor with a pole, and superposing poles gives constraint-satisfying multi-black-hole data.
3 · Gaussian curvature of a sphere (Theorema Egregium)
Recover the intrinsic curvature of a round 2-sphere of radius in flat space and check it against Gauss-Bonnet.
Step 1. For a sphere in Euclidean the ambient Riemann tensor vanishes and , so the Gauss equation reads with equal principal curvatures . Tracing gives and Gaussian curvature — Gauss's remarkable result that the product of principal curvatures is intrinsic.
Step 2. Cross-check with Gauss-Bonnet: , giving Euler characteristic — correct for a sphere. The local Gauss equation and the global topological invariant agree.
Physics of the portrait
The Gauss-Codazzi-Mainardi equations were essentially complete in classical surface theory a century before physics needed them — then turned out to be exactly the language relativity required to make sense of time.
Origins · 1 minGauss-Codazzi-Mainardi equations and how this was discovered
The story begins with Carl Friedrich Gauss and his 1827 Disquisitiones generales circa superficies curvas, where he proved the Theorema Egregium: the Gaussian curvature of a surface — the product of its principal curvatures — is intrinsic, computable from distances within the surface alone. He called it remarkable because the principal curvatures individually are manifestly extrinsic. The accompanying integrability conditions were found independently by Karl Peterson (1853), Gaspare Mainardi (1856), and Delfino Codazzi (1868) — the constraints an extrinsic curvature field must satisfy to arise from a real embedding. Ricci-Curbastro and Levi-Civita's tensor calculus (around 1900) recast it all in the form Einstein borrowed in 1915. The relativistic payoff came in stages: Yvonne Choquet-Bruhat (1952) used the constraint structure to prove the Einstein equations have a well-posed Cauchy problem; Arnowitt, Deser, and Misner (1959) built the canonical formulation in which Gauss becomes the Hamiltonian constraint and Codazzi the momentum constraint; and Lichnerowicz and York turned the constraints into a solvable elliptic system — the conformal method still used to build every set of initial data fed to a black-hole simulation. A theorem about eggshells became the reason we can compute colliding black holes.
Going further
Texts. MTW, Gravitation (1973), §21.5, Box 21.2 · Wald, General Relativity (1984), Ch. 10 and App. E · Carroll, Spacetime and Geometry (2004), App. D · Gourgoulhon, 3+1 Formalism in General Relativity (2012), Ch. 2-4 · Baumgarte & Shapiro, Numerical Relativity (2010), Ch. 2-3 · do Carmo, Differential Geometry of Curves and Surfaces (1976), Ch. 4. Key checks: (1) the Gauss equation follows from the antisymmetrized projected double derivative, with a sign for a spacelike slice; (2) the contracted Gauss relation gives ; (3) the FLRW reduction yields , ; (4) is flat-harmonic; (5) the sphere gives with Gauss-Bonnet . No constants beyond / appear.
Prerequisites. ADM 3+1 Decomposition · Riemann curvature and covariant derivatives · Hypersurfaces and the induced metric. Leads to. Hamiltonian and Momentum Constraints · Initial-Value (Cauchy) Problem · Conformal Method for Constraint Solving · BSSN Formulation · Numerical Relativity and Binary Black-Hole Mergers.
Ask the tutor: ask me to walk through any one projection index-by-index, or to build fresh constraint-satisfying initial data and watch the Hamiltonian constraint fall out.
What is the difference between intrinsic and extrinsic curvature, in one sentence each?
Intrinsic curvature is everything a two-dimensional inhabitant could measure without leaving the surface — triangle angle sums, holonomy of parallel transport, encoded in and its Riemann tensor . Extrinsic curvature is what only an outside observer sees — how the surface bends into the surrounding space, the rate the unit normal tilts. A cylinder is the cleanest case: nonzero extrinsic curvature (it bends in space) but zero intrinsic curvature (unroll it flat), which is why a flat map wraps perfectly onto a can but never onto a globe.
Why are there exactly four constraint equations in general relativity?
Because the two constraint projections supply four scalar conditions: twice-contracted Gauss is one scalar (Hamiltonian) and once-contracted Codazzi is a three-component vector (momentum) — four of Einstein's ten equations. The remaining six, from the Ricci projection, push and forward in time. The count matches the gauge freedom: four constraints for the four coordinate choices (one lapse, three shift), leaving two propagating degrees of freedom — the two gravitational-wave polarizations.
How can the Friedmann equation be a special case of the Gauss equation?
Slice an FLRW universe along constant cosmic time. Each spatially flat slice has zero intrinsic Ricci scalar and extrinsic curvature , trace . The Hamiltonian constraint gives , i.e. — the Friedmann equation. The law of cosmic expansion is literally the twice-contracted Gauss equation of a comoving slice; the curvature term returns once the slices carry nonzero intrinsic curvature.
Does the sign of the extrinsic curvature convention matter for the physics?
For the constraints, no; for the evolution equations, yes. Textbooks split over the sign on in , flipping everywhere. But the Hamiltonian constraint contains only the even invariants and , so it is convention-independent; the momentum and evolution equations are linear in , so their written form flips while the physics does not. The rule: fix one convention and check a known case — if Schwarzschild is valid data and FLRW reproduces Friedmann, your signs are consistent.
What exactly does the momentum constraint mean physically?
It is a statement of momentum balance on the slice: says the divergence of the trace-reversed extrinsic curvature equals the momentum density seen by the Eulerian observer (moving along the normal). In vacuum the right side vanishes, so trace-reversed is transverse — exactly the condition York's conformal method builds into its transverse-traceless decomposition. Physically, you cannot specify an arbitrary velocity field for the geometry; the way space contracts or shears must be consistent with the momentum flowing through it, just as a fluid's velocity must respect its momentum density.
Why do numerical-relativity codes still monitor the constraints if they are preserved by evolution?
In the continuum, the contracted Bianchi identity guarantees that constraints holding on the initial slice hold on every later slice. But a computer evolves a finite-difference or spectral approximation, and discretization error seeds small violations of equations (6) and (7) at every step. In a badly formulated scheme these grow exponentially — which is exactly why BSSN and generalized-harmonic reformulations were developed, adding terms proportional to the constraints so violations decay rather than blow up. Tracking the constraint residual over time is the standard diagnostic that a simulation is still solving Einstein's equations and not drifting into unphysical geometry.