Einstein–Hilbert Action and Palatini Variation

The variational foundation of general relativity: from the Ricci scalar action to the vacuum field equations via the Palatini identity

M (-g) R dxbulk integralM Vµ n d³ysurface term on Mcancelswith GHYnnVariational principle: bulk + boundary structure of SThe GHY term cancels the surface contribution from δR

1. The Einstein–Hilbert Action

The starting point of the variational formulation of general relativity is the Einstein–Hilbert action, which is the simplest diffeomorphism-invariant functional of the metric that is second order in derivatives:

$$S_{EH}[g] = \frac{1}{16\pi G}\int_{\mathcal{M}}\sqrt{-g}\,R\,d^4x$$

Here $R = g^{\mu\nu}R_{\mu\nu}$ is the Ricci scalar, $g = \det(g_{\mu\nu})$ is the determinant of the metric, and the integral is taken over a four-dimensional manifold $\mathcal{M}$. The factor $1/(16\pi G)$ is fixed by matching to the Newtonian limit.

The Ricci scalar encodes the trace of the spacetime curvature. Since $R_{\mu\nu}$ contains second derivatives of $g_{\mu\nu}$, the action is second-order in the metric. This is the unique scalar density (up to boundary terms and the cosmological constant) that yields second-order field equations.

Including a cosmological constant and matter, the total action becomes:

$$S = \frac{1}{16\pi G}\int_{\mathcal{M}}\sqrt{-g}\,(R - 2\Lambda)\,d^4x + S_{\text{matter}}[g, \psi]$$

2. Variation of the Metric Determinant

To derive the field equations, we vary the action with respect to $g^{\mu\nu}$. The integrand$\sqrt{-g}\,R$ has three pieces that respond to $\delta g^{\mu\nu}$: the Ricci scalar, the inverse metric inside $R = g^{\mu\nu}R_{\mu\nu}$, and the determinant.

Using Jacobi's formula for the determinant, the variation of $\sqrt{-g}$ is:

$$\delta\sqrt{-g} = -\frac{1}{2}\sqrt{-g}\,g_{\mu\nu}\,\delta g^{\mu\nu}$$

This follows from $\delta(\ln\det M) = \text{tr}(M^{-1}\delta M)$, applied to $M = g_{\mu\nu}$ with the identity $g_{\mu\nu}\delta g^{\mu\nu} = -g^{\mu\nu}\delta g_{\mu\nu}$.

Combining with the explicit $g^{\mu\nu}$ in $R = g^{\mu\nu}R_{\mu\nu}$, the full variation is:

$$\delta(\sqrt{-g}\,R) = \sqrt{-g}\left(R_{\mu\nu} - \frac{1}{2}g_{\mu\nu}R\right)\delta g^{\mu\nu} + \sqrt{-g}\,g^{\mu\nu}\delta R_{\mu\nu}$$

The first term immediately gives the Einstein tensor $G_{\mu\nu} = R_{\mu\nu} - \frac{1}{2}g_{\mu\nu}R$. The second term requires the Palatini identity to evaluate.

3. The Palatini Identity

The Palatini identity expresses the variation of the Riemann tensor in terms of covariant derivatives of the connection variation. Start from the definition of the Riemann tensor:

$$R^\mu_{\ \nu\rho\sigma} = \partial_\rho\Gamma^\mu_{\nu\sigma} - \partial_\sigma\Gamma^\mu_{\nu\rho} + \Gamma^\mu_{\alpha\rho}\Gamma^\alpha_{\nu\sigma} - \Gamma^\mu_{\alpha\sigma}\Gamma^\alpha_{\nu\rho}$$

The key observation is that $\delta\Gamma^\mu_{\nu\sigma}$ is a tensor, even though$\Gamma^\mu_{\nu\sigma}$ itself is not. This is because the difference of two connections transforms as a $(1,2)$-tensor. Taking the variation:

$$\delta R^\mu_{\ \nu\rho\sigma} = \nabla_\rho(\delta\Gamma^\mu_{\nu\sigma}) - \nabla_\sigma(\delta\Gamma^\mu_{\nu\rho})$$

This is the Palatini identity. The non-tensorial parts of the partial derivatives cancel against the connection terms, leaving purely covariant derivatives. To prove it explicitly, write$\nabla_\rho(\delta\Gamma^\mu_{\nu\sigma}) = \partial_\rho(\delta\Gamma^\mu_{\nu\sigma}) + \Gamma^\mu_{\alpha\rho}\delta\Gamma^\alpha_{\nu\sigma} - \Gamma^\alpha_{\nu\rho}\delta\Gamma^\mu_{\alpha\sigma} - \Gamma^\alpha_{\sigma\rho}\delta\Gamma^\mu_{\nu\alpha}$and verify term-by-term cancellation of the non-covariant pieces.

Contracting on $\mu$ and $\rho$ gives the variation of the Ricci tensor:

$$\delta R_{\nu\sigma} = \nabla_\mu(\delta\Gamma^\mu_{\nu\sigma}) - \nabla_\sigma(\delta\Gamma^\mu_{\nu\mu})$$

4. The Boundary Vector Field

Contracting the Ricci variation with $g^{\mu\nu}$ and using the metric compatibility$\nabla_\alpha g^{\mu\nu} = 0$:

$$g^{\mu\nu}\delta R_{\mu\nu} = \nabla_\alpha\left(g^{\mu\nu}\delta\Gamma^\alpha_{\mu\nu} - g^{\mu\alpha}\delta\Gamma^\beta_{\mu\beta}\right)$$

Define the boundary vector field:

$$V^\alpha = g^{\mu\nu}\delta\Gamma^\alpha_{\mu\nu} - g^{\mu\alpha}\delta\Gamma^\beta_{\mu\beta}$$

Then $g^{\mu\nu}\delta R_{\mu\nu} = \nabla_\alpha V^\alpha$ is a total divergence. To compute$V^\alpha$ explicitly in terms of $\delta g^{\mu\nu}$, use the formula for the connection variation:

$$\delta\Gamma^\alpha_{\mu\nu} = \frac{1}{2}g^{\alpha\beta}\left(\nabla_\mu\delta g_{\beta\nu} + \nabla_\nu\delta g_{\beta\mu} - \nabla_\beta\delta g_{\mu\nu}\right)$$

Substituting and simplifying yields the explicit expression:

$$V^\alpha = g^{\mu\nu}\nabla^\alpha\delta g_{\mu\nu} - \nabla_\beta\delta g^{\alpha\beta}$$

This vector field depends on the normal derivative of $\delta g_{\mu\nu}$ at the boundary, which is precisely why the Dirichlet problem for the Einstein–Hilbert action is not well-posed without an additional boundary term.

5. The Boundary Integral

By the divergence theorem, the total divergence term integrates to a boundary integral:

$$\int_{\mathcal{M}}\sqrt{-g}\,\nabla_\alpha V^\alpha\,d^4x = \oint_{\partial\mathcal{M}}\sqrt{|h|}\,n_\alpha V^\alpha\,d^3y$$

where $n_\alpha$ is the outward unit normal to the boundary $\partial\mathcal{M}$and $h$ is the determinant of the induced metric $h_{ij}$ on the boundary. Evaluating $n_\alpha V^\alpha$:

$$n_\alpha V^\alpha = n^\alpha g^{\mu\nu}\nabla_\alpha\delta g_{\mu\nu} - n^\alpha\nabla_\beta\delta g^{\alpha\beta}$$

This term involves the normal derivative $n^\alpha\nabla_\alpha\delta g_{\mu\nu}$ of the metric variation, which does not vanish even when we fix $\delta g_{\mu\nu}|_{\partial\mathcal{M}} = 0$. This means that setting Dirichlet boundary conditions on the metric alone does not yield a well-posed variational principle for $S_{EH}$.

Collecting all terms, the variation of the Einstein–Hilbert action is:

$$\delta S_{EH} = \frac{1}{16\pi G}\int_{\mathcal{M}}\sqrt{-g}\,G_{\mu\nu}\,\delta g^{\mu\nu}\,d^4x + \frac{1}{16\pi G}\oint_{\partial\mathcal{M}}\sqrt{|h|}\,n_\alpha V^\alpha\,d^3y$$

The vacuum Einstein equations $G_{\mu\nu} = 0$ follow from $\delta S_{EH} = 0$only if the boundary term is separately cancelled. This motivates the Gibbons–Hawking–York boundary term discussed in the next section.

6. Connection to Ricci Flow

The Einstein–Hilbert action has a deep structural parallel with Perelman's $\mathcal{F}$-functional for Ricci flow. The Ricci flow action is:

$$S_{RF}[g, f] = \int_0^T \mathcal{F}(g, f)\,d\tau, \quad \mathcal{F}(g, f) = \int_M (R + |\nabla f|^2)e^{-f}\,d\mu_g$$

The Euler–Lagrange equations of $\mathcal{F}$ with respect to $g_{ij}$and $f$ produce exactly the gradient Ricci flow system:

$$\partial_\tau g_{ij} = -2(R_{ij} + \nabla_i\nabla_j f), \qquad \partial_\tau f = -R - \Delta f$$

The analogy is precise: just as $S_{EH}$ yields the Einstein equations through its Euler–Lagrange equations, $\mathcal{F}$ yields Ricci flow through its gradient flow structure. The Ricci scalar$R$ appears in both actions, and both require careful treatment of boundary terms. In the Ricci flow case, the role of the GHY boundary term is played by the dilaton gradient $|\nabla f|^2$, which ensures that $\mathcal{F}$ is monotone along the flow.

Moreover, Perelman's variation of $\mathcal{F}$ mirrors the Palatini calculation:

$$\delta\mathcal{F} = -\int_M \left(R_{ij} + \nabla_i\nabla_j f\right)\delta g^{ij}\,e^{-f}\,d\mu_g + \text{boundary terms}$$

The tensor $R_{ij} + \nabla_i\nabla_j f$ is the Ricci flow analogue of the Einstein tensor $G_{\mu\nu}$, and its vanishing characterizes gradient Ricci solitons — the fixed points of the flow that play the role of vacuum solutions in this setting.

7. First-Order (Palatini) Formalism

In the first-order or Palatini formalism, the metric $g_{\mu\nu}$ and the connection $\Gamma^\alpha_{\mu\nu}$ are treated as independent variables. The action is the same Einstein–Hilbert functional, but now $R_{\mu\nu}$ depends only on the connection:

$$S_{\text{Pal}}[g, \Gamma] = \frac{1}{16\pi G}\int_{\mathcal{M}}\sqrt{-g}\,g^{\mu\nu}R_{\mu\nu}(\Gamma)\,d^4x$$

Varying with respect to $g^{\mu\nu}$ at fixed $\Gamma$ gives $R_{(\mu\nu)} - \frac{1}{2}g_{\mu\nu}R = 0$, where the parentheses denote symmetrization (since $\Gamma$ need not be symmetric a priori). Varying with respect to $\Gamma^\alpha_{\mu\nu}$ at fixed $g$:

$$\nabla_\alpha(\sqrt{-g}\,g^{\mu\nu}) - \frac{1}{2}\delta^\mu_\alpha\nabla_\beta(\sqrt{-g}\,g^{\beta\nu}) - \frac{1}{2}\delta^\nu_\alpha\nabla_\beta(\sqrt{-g}\,g^{\beta\mu}) = 0$$

This equation forces $\Gamma$ to be the Levi-Civita connection of $g_{\mu\nu}$, recovering metric compatibility $\nabla_\alpha g_{\mu\nu} = 0$ as an equation of motion rather than an assumption. The two formalisms are equivalent for pure gravity but differ when torsion or non-minimal couplings are present.

The Palatini formalism has a Ricci flow analogue: treating the connection on the frame bundle as independent of the metric leads to the DeTurck trick, where the modified Ricci flow$\partial_\tau g_{ij} = -2R_{ij} + \mathcal{L}_V g_{ij}$ with $V^i = g^{jk}(\Gamma^i_{jk} - \hat{\Gamma}^i_{jk})$is strictly parabolic. Here $\hat{\Gamma}$ is a reference connection, playing the role of the independent connection in the Palatini formalism.

8. Summary of the Variational Dictionary

The variational structure of the Einstein–Hilbert action establishes a precise dictionary between general relativity and Ricci flow that extends through the entire Lagrangian framework:

  • Action: $S_{EH} = \frac{1}{16\pi G}\int\sqrt{-g}\,R\,d^4x$ corresponds to $\mathcal{F}(g,f) = \int(R + |\nabla f|^2)e^{-f}d\mu$
  • Field equation: $G_{\mu\nu} = 0$ corresponds to $R_{ij} + \nabla_i\nabla_j f = 0$ (gradient soliton)
  • Boundary term: GHY $\int\sqrt{|h|}K\,d^3y$ corresponds to $\int|\nabla f|^2 e^{-f}d\mu$ (dilaton boundary)
  • Palatini identity: $\delta R^\mu_{\ \nu\rho\sigma} = \nabla_\rho\delta\Gamma - \nabla_\sigma\delta\Gamma$ corresponds to DeTurck linearization
  • Boundary vector: $V^\alpha = g^{\mu\nu}\delta\Gamma^\alpha_{\mu\nu} - g^{\mu\alpha}\delta\Gamma^\beta_{\mu\beta}$ corresponds to DeTurck vector $V^i$

This dictionary will be deepened in subsequent sections as we introduce the GHY term, the ADM decomposition, and Perelman's $\mathcal{F}$-functional as a gravitational action principle in its own right.

Simulation: Palatini Variation and Einstein Equations

Python
script.py101 lines

Click Run to execute the Python code

Code will be executed with Python 3 on the server

Rate this chapter: