Einstein–Hilbert action
Action that yields the Einstein field equations through the principle of least action The Einstein–Hilbert action in general relativity yields the Einstein field equations through the principle of stationary action. With the ( − , + , + , + ) {\displaystyle (-,+,+,+)} metric signature, the gravitational part of the action is given as S = 1 2 κ ∫ R − g d 4 x , {\displaystyle S={1 \over 2\kappa }\int R{\sqrt {-g}}\,\mathrm {d} ^{4}x,} where g = det ( g μ ν ) {\displaystyle g=\det(g_{\mu \nu })} is the determinant of the metric tensor matrix, R {\displaystyle R} is the Ricci scalar, and κ = 8 π…
Adapted from Wikipedia: https://en.wikipedia.org/wiki/Einstein%E2%80%93Hilbert_action