EinsteinHilbertAktion
The Einstein-Hilbert action is a fundamental concept in general relativity, representing the action that yields the Einstein field equations. It is a scalar quantity that, when varied with respect to the metric tensor, produces the equations of motion for gravity. The action is typically written as the integral over spacetime of the scalar curvature multiplied by a constant factor, which includes the gravitational constant and the speed of light. Specifically, the action S is given by $S = \frac{1}{16\pi G} \int R \sqrt{-g} d^4x$, where R is the Ricci scalar, G is Newton's gravitational constant, g is the determinant of the metric tensor, and $d^4x$ represents the volume element in four-dimensional spacetime. The term $\sqrt{-g}$ accounts for the volume element in curved spacetime.
The principle of stationary action, applied to the Einstein-Hilbert action, leads directly to the Einstein field