{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $M$ be a smooth oriented $4$-manifold, and let $g$ be a [[Lorentzian metric|BY4QYYS788]] on $M$ of signature $(-,+,+,+)$.\nLet $R$ be the [[scalar curvature|ZHX2VYQDZ3]] of $g$, and let $\\sqrt{-\\det g}\\; d^4x$ be its volume form in local coordinates $x^0, \\dots, x^3$.\nLet $G$ be Newton's gravitational constant, $c$ the speed of light, and $\\kappa = 8\\pi G / c^4$.\nFor a compact region $K \\subseteq M$, the *Einstein–Hilbert action* of $g$ on $K$ is\n$$S_{EH}[g] = \\frac{1}{2\\kappa} \\int_K R \\,\\sqrt{-\\det g}\\; d^4x.$$\n\n## Remarks\n\nLet $g_t$ be a variation of the metric supported in the interior of $K$.\nWrite $\\delta g^{\\mu\\nu} = \\frac{d}{dt}\\big|_{t=0} g_t^{\\mu\\nu}$.\nThen\n$$\\frac{d}{dt}\\Big|_{t=0} S_{EH}[g_t] = \\frac{1}{2\\kappa} \\int_K \\Big(R_{\\mu\\nu} - \\tfrac12 R\\, g_{\\mu\\nu}\\Big)\\, \\delta g^{\\mu\\nu} \\sqrt{-\\det g}\\; d^4x,$$\nwhere $R_{\\mu\\nu}$ is the Ricci tensor; the term with the variation of $R_{\\mu\\nu}$ is a divergence and drops out.\nSo $g$ is a critical point of $S_{EH}$ for all such variations if and only if $R_{\\mu\\nu} - \\tfrac12 R g_{\\mu\\nu} = 0$, the vacuum [[Einstein field equations|3MCZ97SW6V]].\nExample: Minkowski space $\\R^4$ with $g = -dt^2 + dx^2 + dy^2 + dz^2$ is flat, so its Ricci tensor vanishes, and it is a critical point.\nNon-example: the Euclidean metric $dt^2 + dx^2 + dy^2 + dz^2$ is not Lorentzian, so the definition above does not apply to it; the analogous Riemannian functional $\\int R \\sqrt{\\det g}\\, d^4x$ is a different object.\nWith a cosmological constant $\\Lambda$ one replaces $R$ by $R - 2\\Lambda$.\nAdding a matter action $S_M$ and setting $T_{\\mu\\nu} = -\\frac{2}{\\sqrt{-\\det g}} \\frac{\\delta S_M}{\\delta g^{\\mu\\nu}}$ gives $R_{\\mu\\nu} - \\tfrac12 R g_{\\mu\\nu} = \\kappa T_{\\mu\\nu}$.\nOn a region with boundary, one adds the Gibbons–Hawking–York boundary term to obtain a well-posed variational problem with the metric fixed on the boundary.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "JPE3A1SN7V",
    "kind": "definition",
    "msc": [
      "83C05",
      "49S05"
    ],
    "name": "Einstein–Hilbert action",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Einstein%E2%80%93Hilbert_action"
      }
    ],
    "tag": "SA5ZDFBHNZ",
    "uses": [
      "BY4QYYS788",
      "ZHX2VYQDZ3"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/SA5ZDFBHNZ/",
  "links": [
    {
      "field": "defines",
      "target": "JPE3A1SN7V"
    },
    {
      "field": "uses",
      "target": "BY4QYYS788"
    },
    {
      "field": "uses",
      "target": "ZHX2VYQDZ3"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/SA5ZDFBHNZ.md",
  "msc": [
    "83C05",
    "49S05"
  ],
  "name": "Einstein–Hilbert action",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/SA5/SA5ZDFBHNZ.md",
  "status": null,
  "tag": "SA5ZDFBHNZ",
  "uri": "m2://SA5ZDFBHNZ",
  "url": "https://tamnd.github.io/math2/wiki/einstein-hilbert-action-definition/",
  "writing": {
    "tag": "SA5ZDFBHNZ",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
