The Invariant Volume Element

Integration is the one operation that seems to resist the whole machinery of tensor calculus. A vector transforms cleanly, a tensor transforms cleanly, but the humble coordinate product dnx=dx0⋯dxn−1\mathrm{d}^n x = \mathrm{d}x^0\cdots\mathrm{d}x^{n-1} does not: under a change of chart it is rescaled by the Jacobian determinant of the transformation, exactly the way the change-of-variables theorem from ordinary calculus demands. So the innocent-looking integral ∫f dnx\int f\,\mathrm{d}^n x of a genuine scalar field ff gives a different number in polar coordinates than in Cartesian — a physically meaningless answer that depends on the grid you happened to draw. To integrate on a manifold at all, you need a measure that carries no memory of the chart. The metric supplies exactly the missing factor, through a quantity almost always misread as a scalar: the determinant g=det⁡(gμν)g = \det(g_{\mu\nu}). It is not a scalar. Because the metric transforms with two copies of the Jacobian matrix, its determinant transforms with the square of the Jacobian determinant — a scalar density of weight −2-2. Take its square root and you obtain a density of weight −1-1, the precise mirror image of dnx\mathrm{d}^n x, so the product ∣g∣ dnx\sqrt{|g|}\,\mathrm{d}^n x has weight zero: it is invariant. Geometrically that combination is the Levi-Civita volume form, the unique metric-compatible top-degree form assigning unit volume to any orthonormal frame. This one factor ∣g∣\sqrt{|g|} then reappears wherever serious physics is done on a curved background — in the Einstein-Hilbert action, in conserved charges, in the covariant continuity equation, and in the path-integral measure of curved-space field theory.

Key takeaways
  • The bare coordinate volume dnx\mathrm{d}^n x is not invariant: a change of chart multiplies it by the Jacobian determinant, so ∫f dnx\int f\,\mathrm{d}^n x depends on the coordinates and is physically meaningless on its own.
  • The metric determinant gg is a scalar density of weight −2-2 (g′=J2gg' = J^2 g); its square root ∣g∣\sqrt{|g|} has weight −1-1 and exactly cancels the weight +1+1 of dnx\mathrm{d}^n x.
  • The combination ∣g∣ dnx\sqrt{|g|}\,\mathrm{d}^n x is the invariant volume element — a true nn-form, the Levi-Civita volume form ϵ\boldsymbol{\epsilon} — and it is what makes integration on a manifold well defined.
  • The same factor turns the covariant divergence into an ordinary one: ∇μVμ=1∣g∣∂μ(∣g∣ Vμ)\nabla_\mu V^\mu = \tfrac{1}{\sqrt{|g|}}\partial_\mu(\sqrt{|g|}\,V^\mu), which is the engine behind conservation laws and Gauss's theorem in curved space.
  • In Lorentzian signature g<0g<0, so one writes −g\sqrt{-g}; in spherical coordinates g=r2sin⁡θ\sqrt{g}=r^2\sin\theta, recovering the familiar dV=r2sin⁡θ dr dθ dϕ\mathrm{d}V=r^2\sin\theta\,\mathrm{d}r\,\mathrm{d}\theta\,\mathrm{d}\phi.
  • Key idea: ∣g∣\sqrt{|g|} is a scalar density of weight −1-1 that exactly cancels the Jacobian weight +1+1 of dnx\mathrm{d}^n x, so ∣g∣ dnx\sqrt{|g|}\,\mathrm{d}^n x is the unique metric-built invariant measure for integrating scalars over a manifold.

Where this lives today

The invariant volume element is the silent partner in essentially every quantitative result in modern gravitational physics. In numerical relativity — the simulations behind the waveform templates LIGO and Virgo match against merging black holes — the factor −g\sqrt{-g} (or its spatial cousin (3)g\sqrt{{}^{(3)}g} in the 3+1 ADM split) weights every grid cell, and evolving it correctly is what keeps a simulated spacetime's total mass and angular momentum conserved to the precision a usable template demands. In cosmology the same measure defines the comoving volume that turns a galaxy survey's raw counts into a physical number density, and hence into the structure-growth statistics that constrain dark energy. And in quantum field theory on curved spacetime — the framework behind Hawking radiation and the primordial spectrum imprinted on the microwave background — the path-integral measure carries an implicit −g\sqrt{-g} so that the partition function is diffeomorphism invariant. From a laptop lattice calculation to a gravitational-wave detector the rule is identical: if you want a number every observer agrees on, you integrate against ∣g∣ dnx\sqrt{|g|}\,\mathrm{d}^n x.

The physical picture

Picture the smallest possible cell of your coordinate grid: a little box with edges dxμ\mathrm{d}x^\mu. In flat space with Cartesian axes that box has volume equal to the plain product of its edge lengths, and dV=dx dy dz\mathrm{d}V = \mathrm{d}x\,\mathrm{d}y\,\mathrm{d}z needs no correction. But the moment the coordinates are curvilinear — polar, spherical, or the warped coordinates of a black hole — the same coordinate box is stretched and skewed in real space. A step dϕ\mathrm{d}\phi in longitude covers a huge arc near the equator and almost nothing near a pole. The bare dnx\mathrm{d}^n x counts coordinate boxes, which is an arbitrary bookkeeping choice; the metric knows how much physical volume each box actually occupies. The factor ∣g∣\sqrt{|g|} is precisely the conversion between the two, and in spherical coordinates it reproduces the schoolbook r2sin⁡θr^2\sin\theta without any special pleading.

Figure
The metric converts a coordinate box dr dθ dφ into a physical box with edges dr, r dθ, r sinθ dφ. Its volume is √g dr dθ dφ = r²sinθ dr dθ dφ, and at r = 2, θ = 90° the conversion factor is √g = 4
√g weights each coordinate box by the real volume it fills coordinate box (equal in the chart) dr × dθ × dφ volume = dr dθ dφ × √g physical box (stretched and skewed) dr r dθ r sinθ dφ volume = r²sinθ dr dθ dφ √g = r²sinθ = 4 at r = 2, θ = 90°

Now watch two observers use different grids over the same region. Where one draws large boxes, dnx\mathrm{d}^n x is big but ∣g∣\sqrt{|g|} is correspondingly small, because each big box is metrically thin; where the other draws small boxes, dnx\mathrm{d}^n x is small but ∣g∣\sqrt{|g|} is large. The product ∣g∣ dnx\sqrt{|g|}\,\mathrm{d}^n x is the same physical sliver of volume either way. This is not a lucky coincidence but a forced one: the coordinate volume carries Jacobian weight +1+1, so a chart-independent measure needs a partner of weight −1-1, and the metric determinant is the only natural scalar of that weight the geometry offers. The volume form is unique up to orientation and scale.

Figure
The weight ledger for a coordinate change. Under a uniform doubling of the coordinates the coordinate volume d³x grows by a factor of 8 while √g shrinks by the same factor of 8, so the product √g d³x is unchanged: 8 × ⅛ = 1
The Jacobian cancels: weight +1 of d³x meets weight −1 of √g example: uniform doubling x → x′ = 2x in three dimensions d³x weight +1 × J⁻¹ = 8 d³x′ = 8 d³x √g weight −1 × J = ⅛ √g′ = ⅛ √g √g d³x weight 0 × 8 × ⅛ = 1 invariant

The core equations

Everything begins with how the plain coordinate volume responds to a smooth change of chart. This is nothing but the multivariable change-of-variables theorem: the new differentials relate to the old through the absolute Jacobian of the map, so dnx\mathrm{d}^n x behaves as a density rather than a scalar.

dnx′=∣det⁡ ⁣∂x′μ′∂xμ∣ dnx≡∣J∣−1 dnx(1)\mathrm{d}^n x'=\left|\det\!\frac{\partial x'^{\mu'}}{\partial x^{\mu}}\right|\,\mathrm{d}^n x \equiv |J|^{-1}\,\mathrm{d}^n x \qquad (1)

where: dnx\mathrm{d}^n x — coordinate volume product dx0⋯dxn−1\mathrm{d}x^0\cdots\mathrm{d}x^{n-1}; J=det⁡(∂xμ/∂x′μ′)J=\det(\partial x^\mu/\partial x'^{\mu'}) — Jacobian determinant of the inverse map; ∣J∣−1|J|^{-1} — the factor that marks dnx\mathrm{d}^n x as a scalar density of weight +1+1. Reading it physically: the coordinate box is a chart artifact, not a geometric quantity, so it cannot stand alone in an invariant integral. The metric, being a (0,2)(0,2) tensor, transforms with two factors of the Jacobian matrix. This double occurrence is the whole story: it is what promotes the determinant from weight −1-1 (which a single vector index would give) to weight −2-2.

gμ′ν′=∂xμ∂x′μ′∂xν∂x′ν′ gμν(2)g_{\mu'\nu'}=\frac{\partial x^{\mu}}{\partial x'^{\mu'}}\frac{\partial x^{\nu}}{\partial x'^{\nu'}}\,g_{\mu\nu} \qquad (2)

where: gμνg_{\mu\nu} — metric components in the original chart; ∂xμ/∂x′μ′\partial x^\mu/\partial x'^{\mu'} — Jacobian matrix MM of the transformation. In matrix form this is a congruence, g′=MTg Mg' = M^{\mathsf T} g\, M, and congruence is what squares the determinant. Taking the determinant of that congruence, and using both det⁡(MT)=det⁡M\det(M^{\mathsf T})=\det M and the multiplicativity of the determinant, yields the central density law of this article.

g′=det⁡(gμ′ν′)=J2 g,g≡det⁡(gμν)(3)g'=\det(g_{\mu'\nu'})=J^{2}\,g,\qquad g\equiv\det(g_{\mu\nu}) \qquad (3)

where: gg — metric determinant in the old chart; g′g' — in the new chart; J2J^2 — square of the Jacobian, one power for each metric index. The two powers of JJ are the visible signature of weight −2-2; a single square root will halve that to the weight −1-1 we need. Because the determinant carries J2J^2, its absolute square root carries a single ∣J∣|J| — and the absolute value, taken before the root, is what keeps the measure real and positive in Lorentzian signature where g<0g<0.

∣g′∣=∣J∣ ∣g∣(4)\sqrt{|g'|}=|J|\,\sqrt{|g|} \qquad (4)

where: ∣g∣\sqrt{|g|} — square root of the absolute value of the metric determinant; ∣J∣|J| — absolute Jacobian. This is a scalar density of weight −1-1: the exact partner that dnx\mathrm{d}^n x was missing. Multiplying (4) by (1), the ∣J∣|J| and ∣J∣−1|J|^{-1} annihilate identically. What remains is a quantity every observer computes to the same value — the invariant volume element.

∣g′∣ dnx′=∣J∣∣g∣⋅∣J∣−1 dnx=∣g∣ dnx(5)\sqrt{|g'|}\,\mathrm{d}^n x' = |J|\sqrt{|g|}\cdot |J|^{-1}\,\mathrm{d}^n x = \sqrt{|g|}\,\mathrm{d}^n x \qquad (5)

where: ∣g∣ dnx\sqrt{|g|}\,\mathrm{d}^n x — the invariant volume element (measure). For any scalar field ff, the integral ∫f∣g∣ dnx\int f\sqrt{|g|}\,\mathrm{d}^n x is a single coordinate-independent number. The same object has a second life as the totally antisymmetric Levi-Civita tensor, which must be sharply distinguished from the Levi-Civita symbol ϵ~\tilde\epsilon that is ±1,0\pm1,0 in every chart by fiat. The symbol is a density; multiplying by ∣g∣\sqrt{|g|} (or dividing, with a sign, for the raised version) produces a genuine tensor.

ϵμ1⋯μn=∣g∣ ϵ~μ1⋯μn,ϵμ1⋯μn=sgn(g)∣g∣ ϵ~μ1⋯μn(6)\epsilon_{\mu_1\cdots\mu_n}=\sqrt{|g|}\,\tilde\epsilon_{\mu_1\cdots\mu_n},\qquad \epsilon^{\mu_1\cdots\mu_n}=\frac{\mathrm{sgn}(g)}{\sqrt{|g|}}\,\tilde\epsilon^{\mu_1\cdots\mu_n} \qquad (6)

where: ϵ~μ1⋯μn\tilde\epsilon_{\mu_1\cdots\mu_n} — Levi-Civita symbol, a weight +1+1 density; ϵμ1⋯μn\epsilon_{\mu_1\cdots\mu_n} — the true (0,n)(0,n) tensor; sgn(g)\mathrm{sgn}(g) — +1+1 for Riemannian, −1-1 for Lorentzian signature, from raising all nn indices with gμνg^{\mu\nu}. Packaged as a differential form, the same components define the Levi-Civita volume nn-form, the object on which Stokes' theorem and the Hodge star are built.

ϵ=∣g∣ dx0∧dx1∧⋯∧dxn−1(7)\boldsymbol{\epsilon}=\sqrt{|g|}\,\mathrm{d}x^0\wedge\mathrm{d}x^1\wedge\cdots\wedge\mathrm{d}x^{n-1} \qquad (7)

where: ϵ\boldsymbol{\epsilon} — Levi-Civita volume form; ∧\wedge — exterior product, encoding antisymmetry and orientation. It is covariantly constant, ∇αϵμ1⋯μn=0\nabla_\alpha\epsilon_{\mu_1\cdots\mu_n}=0, because the connection is metric-compatible. From covariant constancy of ϵ\boldsymbol{\epsilon} (equivalently, from a determinant identity) follows the identity that makes the whole apparatus useful for physics: the covariant divergence of a vector is an ordinary coordinate divergence of ∣g∣ Vμ\sqrt{|g|}\,V^\mu.

∇μVμ=1∣g∣ ∂μ ⁣(∣g∣ Vμ)(8)\nabla_\mu V^\mu=\frac{1}{\sqrt{|g|}}\,\partial_\mu\!\left(\sqrt{|g|}\,V^\mu\right) \qquad (8)

where: ∇μ\nabla_\mu — Levi-Civita (metric-compatible) covariant derivative; VμV^\mu — contravariant vector field. This is the curved-space form of ∇⋅V\nabla\cdot\mathbf V; it collapses a conservation law into a plain divergence and, once integrated against ∣g∣ dnx\sqrt{|g|}\,\mathrm{d}^n x, delivers Gauss's theorem. Finally, the reason the whole subject matters for dynamics: any action that is to be a coordinate-independent number must integrate a scalar Lagrangian against the invariant measure, which fixes the appearance of −g\sqrt{-g} in the Einstein-Hilbert action.

S=∫L −g d4x,SEH=116πG∫R −g d4x(9)S=\int \mathcal{L}\,\sqrt{-g}\,\mathrm{d}^4 x,\qquad S_{\mathrm{EH}}=\frac{1}{16\pi G}\int R\,\sqrt{-g}\,\mathrm{d}^4 x \qquad (9)

where: L\mathcal{L} — scalar Lagrangian; RR — Ricci scalar; GG — Newton's constant. Varying −g R\sqrt{-g}\,R with respect to gμνg^{\mu\nu} produces Einstein's field equations, and the variation of the measure itself, δ−g\delta\sqrt{-g}, is a piece of that calculation (Derivation 3).

Derivation AInvariance of the metric volume element

The goal is to prove from the ground up that ∣g∣ dnx\sqrt{|g|}\,\mathrm{d}^n x is genuinely the same in every chart, by tracking how each of its two factors responds to a smooth coordinate change and showing that their Jacobian weights are equal and opposite. This is the theorem that licenses every integral in general relativity, so it deserves to be seen not as a slogan about weights cancelling but as an explicit computation from the transformation laws of the coordinate volume and the metric determinant, ending in a term-by-term cancellation of the Jacobian factor. We fix a change xμ→x′μ′x^\mu\to x'^{\mu'} with matrix Mμμ′=∂xμ/∂x′μ′M^\mu{}_{\mu'}=\partial x^\mu/\partial x'^{\mu'} and J=det⁡MJ=\det M.

Step 1. The coordinate volume picks up ∣J∣−1|J|^{-1}. The change-of-variables theorem gives dnx′=∣det⁡(∂x′/∂x)∣ dnx=∣J∣−1dnx\mathrm{d}^n x' = |\det(\partial x'/\partial x)|\,\mathrm{d}^n x = |J|^{-1}\mathrm{d}^n x, since the forward Jacobian is the reciprocal of JJ as defined through the inverse map. Why: this is where the chart-dependence of naive integration is quantified — the coordinate box is a density of weight +1+1, nothing more.

Step 2. The metric determinant picks up J2J^2. The tensor law gμ′ν′=Mμμ′Mνν′gμνg_{\mu'\nu'}=M^\mu{}_{\mu'}M^\nu{}_{\nu'}g_{\mu\nu} is the matrix congruence g′=MTgMg'=M^{\mathsf T}gM; taking determinants and using det⁡(MT)=det⁡M\det(M^{\mathsf T})=\det M gives g′=(det⁡M)2g=J2gg' = (\det M)^2 g = J^2 g, hence ∣g′∣=J2∣g∣|g'|=J^2|g|. Why: the two lowered indices of the metric each contribute one Jacobian factor, and only because they multiply do we get a square rather than a single power.

Step 3. The square root picks up ∣J∣|J|. Taking the positive root of ∣g′∣=J2∣g∣|g'|=J^2|g| gives ∣g′∣=∣J∣∣g∣\sqrt{|g'|}=|J|\sqrt{|g|}, where the absolute value is essential: it keeps the measure positive regardless of whether the transformation preserves or flips orientation, and it is well defined even in Lorentzian signature where gg itself is negative. Why: halving the weight from −2-2 to −1-1 is the entire purpose of the square root — it is what makes the metric determinant a usable partner for dnx\mathrm{d}^n x.

Step 4. Multiply the two factors. Combining Steps 1 and 3, ∣g′∣ dnx′=(∣J∣∣g∣)(∣J∣−1dnx)=∣g∣ dnx\sqrt{|g'|}\,\mathrm{d}^n x' = (|J|\sqrt{|g|})(|J|^{-1}\mathrm{d}^n x) = \sqrt{|g|}\,\mathrm{d}^n x. The Jacobian cancels identically, with no leftover. Why: the equality of the two numbers in any pair of charts is precisely the statement that ∫f∣g∣ dnx\int f\sqrt{|g|}\,\mathrm{d}^n x is coordinate-independent for a scalar ff — the manifold now has a well-defined notion of volume.

Go deeper · Derivation B · 1 minThe covariant divergence formula
Derivation BThe covariant divergence formula

The aim is to derive ∇μVμ=1∣g∣∂μ(∣g∣Vμ)\nabla_\mu V^\mu = \tfrac{1}{\sqrt{|g|}}\partial_\mu(\sqrt{|g|}V^\mu), the workhorse identity that converts a curved-space divergence into an ordinary coordinate divergence and thereby makes conservation laws tractable. The route runs through the contracted Christoffel symbol and Jacobi's determinant identity; the payoff is that the messy connection terms collapse into a single logarithmic derivative of ∣g∣\sqrt{|g|}, exposing the measure factor hiding inside the covariant derivative. We take VμV^\mu a smooth vector field and ∇\nabla the Levi-Civita connection.

Step 1. Expand the divergence. By definition ∇μVμ=∂μVμ+ΓμμνVν\nabla_\mu V^\mu = \partial_\mu V^\mu + \Gamma^\mu{}_{\mu\nu}V^\nu, the single connection term coming from the one upper index, contracted against the derivative index. Why: the whole difference between ∂μVμ\partial_\mu V^\mu and the true divergence lives in that contracted Christoffel symbol, so if we can evaluate it in closed form we are done.

Step 2. Reduce the contracted Christoffel symbol. Starting from Γμμν=12gμλ(∂μgλν+∂νgμλ−∂λgμν)\Gamma^\mu{}_{\mu\nu}=\tfrac12 g^{\mu\lambda}(\partial_\mu g_{\lambda\nu}+\partial_\nu g_{\mu\lambda}-\partial_\lambda g_{\mu\nu}), the first and third terms cancel against each other under the symmetric contraction with gμλg^{\mu\lambda}, leaving Γμμν=12gμλ∂νgμλ\Gamma^\mu{}_{\mu\nu}=\tfrac12 g^{\mu\lambda}\partial_\nu g_{\mu\lambda}. Why: this isolates a trace gμλ∂νgμλg^{\mu\lambda}\partial_\nu g_{\mu\lambda} that is exactly the shape Jacobi's identity resolves.

Step 3. Apply Jacobi's determinant identity. For any invertible matrix, ∂νln⁡det⁡=tr(g−1∂νg)\partial_\nu\ln\det = \mathrm{tr}(g^{-1}\partial_\nu g); for the symmetric metric this reads ∂νln⁡∣g∣=gμλ∂νgμλ\partial_\nu\ln|g| = g^{\mu\lambda}\partial_\nu g_{\mu\lambda}. Substituting, Γμμν=12∂νln⁡∣g∣=1∣g∣∂ν∣g∣\Gamma^\mu{}_{\mu\nu}=\tfrac12\partial_\nu\ln|g|=\tfrac1{\sqrt{|g|}}\partial_\nu\sqrt{|g|}. Why: the identity is what turns an implicit trace over metric derivatives into an explicit derivative of the measure ∣g∣\sqrt{|g|} — the measure was inside the connection all along.

Step 4. Assemble the formula. Substitute back: ∇μVμ=∂μVμ+Vμ∣g∣∂μ∣g∣=1∣g∣∂μ(∣g∣Vμ)\nabla_\mu V^\mu = \partial_\mu V^\mu + \tfrac{V^\mu}{\sqrt{|g|}}\partial_\mu\sqrt{|g|} = \tfrac1{\sqrt{|g|}}\partial_\mu(\sqrt{|g|}V^\mu), recognizing the product rule in reverse. Why: integrating both sides against ∣g∣ dnx\sqrt{|g|}\,\mathrm{d}^n x now turns ∫∇μVμ∣g∣ dnx\int \nabla_\mu V^\mu\sqrt{|g|}\,\mathrm{d}^n x into ∫∂μ(∣g∣Vμ)dnx\int\partial_\mu(\sqrt{|g|}V^\mu)\mathrm{d}^n x, a pure boundary term — the curved-space Gauss theorem.

Go deeper · Derivation C · 1 minVarying the measure and the origin of the field equations
Derivation CVarying the measure and the origin of the field equations

The purpose here is to compute δ−g\delta\sqrt{-g} under a variation of the inverse metric δgμν\delta g^{\mu\nu} — the identity without which one cannot vary the Einstein-Hilbert action — and to show the measure itself contributes a term proportional to gμνg_{\mu\nu} in the field equations. This is where the volume element stops being a bookkeeping device and becomes dynamical: because the action carries −g\sqrt{-g}, gravity feels the variation of the measure, and that variation supplies exactly the metric term sitting opposite the curvature in Einstein's equations. We use Jacobi's identity once more, in variational form.

Step 1. Vary the determinant. Jacobi's identity in variational form gives δg=g gμνδgμν\delta g = g\,g^{\mu\nu}\delta g_{\mu\nu}, where g=det⁡gμνg=\det g_{\mu\nu}. Equivalently, since δ(gμνgνλ)=0\delta(g_{\mu\nu}g^{\nu\lambda})=0 implies gμνδgμν=−gμνδgμνg^{\mu\nu}\delta g_{\mu\nu}=-g_{\mu\nu}\delta g^{\mu\nu}, we may write δg=−g gμνδgμν\delta g = -g\,g_{\mu\nu}\delta g^{\mu\nu}. Why: expressing the variation through the inverse metric δgμν\delta g^{\mu\nu} is what matches the variable one actually varies in the gravitational action.

Step 2. Take the square root. With g<0g<0 in Lorentzian signature, δ−g=−δg2−g\delta\sqrt{-g} = \tfrac{-\delta g}{2\sqrt{-g}}. Substituting −δg=g gμνδgμν-\delta g = g\,g_{\mu\nu}\delta g^{\mu\nu} and using −g=(−g)2-g=(\sqrt{-g})^2 gives δ−g=−12−g gμνδgμν\delta\sqrt{-g} = -\tfrac12\sqrt{-g}\,g_{\mu\nu}\delta g^{\mu\nu}. Why: this compact result is the entire contribution of the measure to any metric variation; every −g\sqrt{-g} in an action produces this factor when varied.

Step 3. Read off the consequence. Varying SEH=116πG∫R−g d4xS_{\mathrm{EH}}=\tfrac1{16\pi G}\int R\sqrt{-g}\,\mathrm{d}^4x, the term R δ−g=−12R gμν−g δgμνR\,\delta\sqrt{-g} = -\tfrac12 R\,g_{\mu\nu}\sqrt{-g}\,\delta g^{\mu\nu} combines with −g δR\sqrt{-g}\,\delta R to give the vacuum field equations Rμν−12R gμν=0R_{\mu\nu}-\tfrac12 R\,g_{\mu\nu}=0. Why: the −12Rgμν-\tfrac12 R g_{\mu\nu} that completes the Einstein tensor comes directly from the variation of the volume element — the measure is not passive, it is half of the field equations. *The key result of this derivation is δ−g=−12−g gμνδgμν\delta\sqrt{-g}=-\tfrac12\sqrt{-g}\,g_{\mu\nu}\delta g^{\mu\nu}.*

Limiting cases

How ∣g∣\sqrt{|g|} specializes across the coordinate systems and signatures one meets in practice:

CaseResultMeaning
Flat Euclidean, Cartesiang=1,dV=dx dy dz\sqrt{g}=1,\quad \mathrm{d}V=\mathrm{d}x\,\mathrm{d}y\,\mathrm{d}zgij=δijg_{ij}=\delta_{ij} so g=1g=1; the naive measure is already correct.
Spherical coordinates (r,θ,ϕ)(r,\theta,\phi)g=r2sin⁡θ\sqrt{g}=r^2\sin\thetaFrom grr=1, gθθ=r2, gϕϕ=r2sin⁡2θg_{rr}=1,\ g_{\theta\theta}=r^2,\ g_{\phi\phi}=r^2\sin^2\theta, so g=r4sin⁡2θg=r^4\sin^2\theta.
Minkowski, inertial coordinatesg=det⁡ημν=−1,−g=1g=\det\eta_{\mu\nu}=-1,\quad \sqrt{-g}=1Lorentzian signature forces g<0g<0; one uses −g\sqrt{-g} throughout, equal to 11 here.
Schwarzschild coordinates−g=r2sin⁡θ\sqrt{-g}=r^2\sin\thetaThe gtt=−(1−2GM/r)g_{tt}=-(1-2GM/r) and grr=(1−2GM/r)−1g_{rr}=(1-2GM/r)^{-1} factors cancel in the determinant, leaving the angular part.
Weak field gμν=ημν+hμνg_{\mu\nu}=\eta_{\mu\nu}+h_{\mu\nu}−g≈1+12h, h=ημνhμν\sqrt{-g}\approx 1+\tfrac12 h,\ h=\eta^{\mu\nu}h_{\mu\nu}To first order the measure tracks the trace of the perturbation — the volume response to a passing wave.

Worked examples

1 · The volume of a ball, done the invariant way (confidence builder)

Compute the volume of a Euclidean ball of radius R=2R=2 using the invariant measure in spherical coordinates, and confirm it reproduces 43πR3\tfrac43\pi R^3.

Step 1. Build g\sqrt{g}. The flat metric in spherical coordinates has grr=1g_{rr}=1, gθθ=r2g_{\theta\theta}=r^2, gϕϕ=r2sin⁡2θg_{\phi\phi}=r^2\sin^2\theta, and is diagonal, so g=det⁡=r2⋅r2sin⁡2θ=r4sin⁡2θg=\det = r^2\cdot r^2\sin^2\theta = r^4\sin^2\theta and g=r2sin⁡θ\sqrt{g}=r^2\sin\theta. The invariant volume element is dV=r2sin⁡θ dr dθ dϕ\mathrm{d}V=r^2\sin\theta\,\mathrm{d}r\,\mathrm{d}\theta\,\mathrm{d}\phi — the r2sin⁡θr^2\sin\theta everyone memorizes is nothing but g\sqrt{g}.

Step 2. Integrate over the ball. The three integrals separate: V=∫02r2 dr∫0πsin⁡θ dθ∫02πdϕ=(R33)(2)(2π)V=\int_0^{2}r^2\,\mathrm{d}r\int_0^{\pi}\sin\theta\,\mathrm{d}\theta\int_0^{2\pi}\mathrm{d}\phi = \big(\tfrac{R^3}{3}\big)(2)(2\pi). With R=2R=2 the radial factor is 8/38/3, and V=(8/3)(2)(2π)=32π3V=(8/3)(2)(2\pi)=\tfrac{32\pi}{3}.

Step 3. Evaluate and check. Numerically V=32π3=33.51V=\tfrac{32\pi}{3}=\mathbf{33.51}, and the closed form 43πR3=43π(8)=32π3\tfrac43\pi R^3=\tfrac43\pi(8)=\tfrac{32\pi}{3} agrees exactly. Had we integrated the bare d3x=dr dθ dϕ\mathrm{d}^3x=\mathrm{d}r\,\mathrm{d}\theta\,\mathrm{d}\phi instead, we would have obtained the meaningless coordinate volume 2⋅π⋅2π=4π2≈39.52\cdot\pi\cdot2\pi=4\pi^2\approx39.5 — a number with no geometric content. The invariant measure gives V=32π/3≈33.51V=32\pi/3\approx33.51; the factor g=r2sin⁡θ\sqrt{g}=r^2\sin\theta is what makes the answer real.

2 · Proper volume of a shell just outside a mass

A static observer measures the proper 3-volume of a thin spherical shell of coordinate thickness Δr\Delta r at Schwarzschild radial coordinate rr, where rs/r=0.2r_s/r=0.2 with rs=2GMr_s=2GM the Schwarzschild radius. By how much does it exceed the naive Euclidean shell volume?

Step 1. Identify the spatial measure. On a surface of constant tt the induced 3-metric has grr=(1−rs/r)−1g_{rr}=(1-r_s/r)^{-1}, gθθ=r2g_{\theta\theta}=r^2, gϕϕ=r2sin⁡2θg_{\phi\phi}=r^2\sin^2\theta, so the spatial determinant is (1−rs/r)−1r4sin⁡2θ(1-r_s/r)^{-1}r^4\sin^2\theta and (3)g=(1−rs/r)−1/2 r2sin⁡θ\sqrt{{}^{(3)}g}=(1-r_s/r)^{-1/2}\,r^2\sin\theta. The radial stretch factor (1−rs/r)−1/2(1-r_s/r)^{-1/2} is the whole difference from flat space.

Step 2. Integrate over the shell. The angular integral of r2sin⁡θr^2\sin\theta over the full sphere gives 4πr24\pi r^2, so the proper shell volume is Vproper=(1−rs/r)−1/2 4πr2 ΔrV_{\text{proper}}=(1-r_s/r)^{-1/2}\,4\pi r^2\,\Delta r, against the Euclidean Vflat=4πr2 ΔrV_{\text{flat}}=4\pi r^2\,\Delta r.

Step 3. Put in the number. With rs/r=0.2r_s/r=0.2, the stretch factor is (1−0.2)−1/2=(0.8)−1/2=1.118(1-0.2)^{-1/2}=(0.8)^{-1/2}=\mathbf{1.118}. The proper volume therefore exceeds the Euclidean estimate by 11.8 %: the same coordinate shell holds more real volume because radial distances are stretched near the mass. At a milder rs/r=0.1r_s/r=0.1 the excess drops to (0.9)−1/2−1=5.4%(0.9)^{-1/2}-1=5.4\%, and it diverges as r→rsr\to r_s — the geometric signature of the horizon. The metric determinant turns a coordinate shell into 11.8 % more proper volume at rs/r=0.2r_s/r=0.2.

3 · Recovering the spherical divergence from equation (8)

Use ∇μVμ=1g∂μ(gVμ)\nabla_\mu V^\mu=\tfrac1{\sqrt{g}}\partial_\mu(\sqrt{g}V^\mu) to reproduce the familiar vector-calculus divergence in spherical coordinates, without ever computing a Christoffel symbol.

Step 1. Insert the measure. With g=r2sin⁡θ\sqrt{g}=r^2\sin\theta independent of ϕ\phi, equation (8) reads ∇μVμ=1r2sin⁡θ[∂r(r2sin⁡θ Vr)+∂θ(r2sin⁡θ Vθ)+∂ϕ(r2sin⁡θ Vϕ)]\nabla_\mu V^\mu = \tfrac{1}{r^2\sin\theta}\big[\partial_r(r^2\sin\theta\,V^r)+\partial_\theta(r^2\sin\theta\,V^\theta)+\partial_\phi(r^2\sin\theta\,V^\phi)\big].

Step 2. Pull constants through each derivative. The sin⁡θ\sin\theta is constant under ∂r\partial_r and the r2r^2 under ∂θ\partial_\theta, and both are constant under ∂ϕ\partial_\phi, giving ∇μVμ=1r2∂r(r2Vr)+1sin⁡θ∂θ(sin⁡θ Vθ)+∂ϕVϕ\nabla_\mu V^\mu = \tfrac{1}{r^2}\partial_r(r^2 V^r)+\tfrac{1}{\sin\theta}\partial_\theta(\sin\theta\,V^\theta)+\partial_\phi V^\phi.

Step 3. Recognize the result. This is exactly the standard spherical divergence (in coordinate-basis components), with the characteristic 1/r21/r^2 and 1/sin⁡θ1/\sin\theta weightings emerging purely from differentiating g\sqrt{g}. The measure factor g=r2sin⁡θ\sqrt{g}=r^2\sin\theta alone reproduces the entire spherical divergence — the connection coefficients are encoded in the derivative of the volume element.

Physics of the portrait

The invariant volume element is a monument to a nineteenth-century idea that had to wait for twentieth-century physics to find its purpose: that geometry itself could be made calculational, index by index, on any manifold.

Origins · 1 minTullio Levi-Civita and how this was discovered
TL
Tullio Levi-Civita
1873–1941 · Italian mathematician, co-founder of tensor calculus

Tullio Levi-Civita, a student of Gregorio Ricci-Curbastro at Padua, is the mathematician whose name the volume form, the tensor, and the metric connection all carry. With Ricci he wrote the 1900 memoir Méthodes de calcul différentiel absolu et leurs applications, the document that turned Riemann's and Christoffel's scattered results into a systematic absolute differential calculus — the tensor calculus in which densities, weights, and invariant integration first became precise tools rather than ad hoc tricks. It was this calculus that Marcel Grossmann pressed into Einstein's hands in Zurich and that Einstein leaned on through the long struggle toward general relativity; the two later corresponded on the field equations, with Einstein voicing open admiration for Levi-Civita's command of the formalism. In 1917 Levi-Civita supplied the geometric heart the calculus had lacked: parallel transport, which gave the metric-compatible connection an intrinsic meaning and made covariant constancy a picture rather than an equation. The invariant measure ∣g∣ dnx\sqrt{|g|}\,\mathrm{d}^n x sits squarely inside his legacy — it is the density of weight zero his calculus was built to recognize, and the Levi-Civita tensor ϵμ1⋯μn=∣g∣ ϵ~μ1⋯μn\epsilon_{\mu_1\cdots\mu_n}=\sqrt{|g|}\,\tilde\epsilon_{\mu_1\cdots\mu_n} that expresses it bears his name to this day. Dismissed from his Rome chair in 1938 under the Fascist racial laws, he died in 1941, but the apparatus he and Ricci built remains the working language of every calculation here.

History
1854
— Riemann's habilitation lecture founds the geometry of curved manifolds and the line element
1869
— Christoffel introduces the symbols governing covariant differentiation
1900
— Ricci-Curbastro and Levi-Civita codify the absolute differential calculus of tensors and densities
1915
— Hilbert derives the field equations by varying the action integral of R over √(−g) d⁴x
1917
— Levi-Civita defines parallel transport, grounding the metric-compatible connection geometrically

Going further

References. Misner, Thorne & Wheeler, Gravitation (1973), section 3.3, section 8.3 and Box 5.4 · Wald, General Relativity (1984), Appendix B (section B.2) and section 2.4 · Carroll, Spacetime and Geometry (2004), sections 2.8–2.10 and 4.3 · Schutz, A First Course in General Relativity (2009, 2nd ed.), sections 6.2–6.4 · Hartle, Gravity (2003), section 20.4. The central identities of this article are: (1) g′=J2gg'=J^2 g from the metric congruence g′=MTgMg'=M^{\mathsf T}gM and det⁡(MT)=det⁡M\det(M^{\mathsf T})=\det M; (2) ∣g′∣ dnx′=∣g∣ dnx\sqrt{|g'|}\,\mathrm{d}^n x'=\sqrt{|g|}\,\mathrm{d}^n x by cancellation of ∣J∣|J|; (3) Γμμν=∂νln⁡∣g∣\Gamma^\mu{}_{\mu\nu}=\partial_\nu\ln\sqrt{|g|} via Jacobi's identity; (4) δ−g=−12−g gμνδgμν\delta\sqrt{-g}=-\tfrac12\sqrt{-g}\,g_{\mu\nu}\delta g^{\mu\nu}; (5) the tabulated values g=r2sin⁡θ\sqrt{g}=r^2\sin\theta (spherical), −g=1\sqrt{-g}=1 (Minkowski), −g=r2sin⁡θ\sqrt{-g}=r^2\sin\theta (Schwarzschild); and (6) the worked numbers V=32π/3≈33.51V=32\pi/3\approx33.51 for the R=2R=2 ball and the 11.8%11.8\% proper-volume excess at rs/r=0.2r_s/r=0.2.

Prerequisites. The Metric Tensor and the Line Element · The Tensor Transformation Law · Tensor Densities and Weights · Metric Signature and Lorentzian Geometry · Tensor Algebra: Contraction, Symmetrization and Antisymmetrization. Leads to. Vector Fields and Integral Curves · Tensor Densities and Weights.

Ask the tutor: Ask me to show why the same −g\sqrt{-g} that fixes integration also generates half of Einstein's field equations when you vary the action.

Why isn't the plain coordinate volume dⁿx good enough for integration?

Because it is not a geometric object — it is a property of the grid you drew, not of the space itself. Under a change of coordinates it is multiplied by the Jacobian determinant, so ∫f dnx\int f\,\mathrm{d}^n x of a scalar ff gives different numbers in Cartesian and polar coordinates over the same region. That cannot be a physical volume, since physics does not care which chart you chose. The metric fixes this by supplying ∣g∣\sqrt{|g|}, whose coordinate dependence exactly cancels that of dnx\mathrm{d}^n x, leaving a number every observer agrees on — without it there is no coordinate-independent notion of how much of anything is in a region.

Why does the metric determinant transform with the square of the Jacobian?

Because the metric has two lower indices, and each index contributes one factor of the Jacobian matrix under a coordinate change: gμ′ν′=(∂xμ/∂x′μ′)(∂xν/∂x′ν′)gμνg_{\mu'\nu'}=(\partial x^\mu/\partial x'^{\mu'})(\partial x^\nu/\partial x'^{\nu'})g_{\mu\nu}. In matrix language that is a congruence g′=MTgMg'=M^{\mathsf T}gM. Taking the determinant and using det⁡(MT)=det⁡M\det(M^{\mathsf T})=\det M together with multiplicativity gives det⁡g′=(det⁡M)2det⁡g=J2g\det g' = (\det M)^2\det g = J^2 g. The two lower indices are the whole reason it is a square rather than a single power — a one-index density would carry just JJ. This is exactly why the square root, carrying a single ∣J∣|J|, is the right partner for the coordinate volume.

What is the difference between the Levi-Civita symbol and the Levi-Civita tensor?

The symbol ϵ~μ1⋯μn\tilde\epsilon_{\mu_1\cdots\mu_n} is defined by hand to be +1,−1,0+1,-1,0 in every coordinate system, so it has the same components everywhere and does not transform like a tensor at all — it is a density of weight +1+1. The tensor ϵμ1⋯μn=∣g∣ ϵ~μ1⋯μn\epsilon_{\mu_1\cdots\mu_n}=\sqrt{|g|}\,\tilde\epsilon_{\mu_1\cdots\mu_n} is the symbol dressed with the measure factor, and it does transform correctly, so it is the object you may contract with other tensors to build invariants. Physically the tensor measures oriented volume; the symbol is just its numerical shell. Confusing the two silently drops factors of ∣g∣\sqrt{|g|} and is a leading source of sign and normalization errors.

Where does the √(−g) in the Einstein-Hilbert action actually come from?

It is forced by the demand that the action be a single number independent of coordinates. The action integrates the scalar RR over spacetime, and the only invariant measure available is −g d4x\sqrt{-g}\,\mathrm{d}^4x; using the bare d4x\mathrm{d}^4x would make SS chart-dependent and the resulting field equations meaningless. The Lorentzian sign convention makes g<0g<0, so the absolute value shows up as −g\sqrt{-g}. Remarkably, the measure is not just along for the ride: when you vary the action, δ−g=−12−g gμνδgμν\delta\sqrt{-g}=-\tfrac12\sqrt{-g}\,g_{\mu\nu}\delta g^{\mu\nu} supplies precisely the −12R gμν-\tfrac12 R\,g_{\mu\nu} term that completes the Einstein tensor. The volume element is half the field equations.

How does √g manage to encode the Christoffel symbols in the divergence formula?

Through the contracted Christoffel symbol Γμμν\Gamma^\mu{}_{\mu\nu}, which by Jacobi's identity equals ∂νln⁡∣g∣\partial_\nu\ln\sqrt{|g|} — a pure derivative of the measure. So when you write out ∇μVμ=∂μVμ+ΓμμνVν\nabla_\mu V^\mu=\partial_\mu V^\mu+\Gamma^\mu{}_{\mu\nu}V^\nu, the connection piece is exactly Vμ∣g∣∂μ∣g∣\tfrac{V^\mu}{\sqrt{|g|}}\partial_\mu\sqrt{|g|}, and the product rule folds everything into 1∣g∣∂μ(∣g∣Vμ)\tfrac1{\sqrt{|g|}}\partial_\mu(\sqrt{|g|}V^\mu). Worked example 3 shows this concretely: differentiating g=r2sin⁡θ\sqrt{g}=r^2\sin\theta alone reproduces the entire spherical divergence, 1/r21/r^2 and 1/sin⁡θ1/\sin\theta factors included, with no Christoffel symbol ever written down.

Does √g affect whether a quantity is conserved, or only how we compute it?

Both, and they are the same statement. A current is conserved when ∇μJμ=0\nabla_\mu J^\mu=0, which by the divergence formula is identical to ∂μ(∣g∣Jμ)=0\partial_\mu(\sqrt{|g|}J^\mu)=0 — an ordinary coordinate divergence of the densitized current ∣g∣Jμ\sqrt{|g|}J^\mu. Integrating J0J^0 against ∣g∣ d3x\sqrt{|g|}\,\mathrm{d}^3x then gives a charge QQ that is both coordinate-independent and constant in time. Drop the ∣g∣\sqrt{|g|} and the divergence theorem fails in curvilinear settings, and total charge becomes observer-dependent nonsense. The measure is not a convenience layered on top of conservation — it is what makes conservation a coordinate-independent fact at all.

Before this

Where this leads