This document summarizes the key equations behind GRLens. We use geometric units throughout, where G = c = 1.
The Schwarzschild solution describes the spacetime outside a static, spherically symmetric mass M.
In the equatorial plane ((\theta = \pi/2)), this reduces to:
The motion of a particle or photon follows a geodesic, defined by
where the Christoffel symbols are
$$ \Gamma^{\mu}{\alpha\beta} = \frac{1}{2},g^{\mu\nu} \left( \partial\alpha g_{\nu\beta}
- \partial_\beta g_{\nu\alpha}
- \partial_\nu g_{\alpha\beta} \right) $$
The metric tensor
Photons move along null paths where the spacetime interval vanishes:
This condition provides a numerical check for the ray-tracing integrator: the quantity ds^2 should remain approximately zero throughout the trajectory.
A stationary clock at radius r runs slower than one far from the mass:
This equation powers the grlens dilation command.
For large r (weak gravity), the bending angle (\alpha) of a photon with impact parameter b approaches
This serves as a reference for validating the numerical integrator.
- Metric signature: (-,+,+,+)
- Units: geometric (G = c = 1)
- Coordinates: Schwarzschild
- Integration variable (\lambda): affine parameter for null rays
- S. Carroll – Spacetime and Geometry (2004)
- C. Misner, K. Thorne, J. Wheeler – Gravitation (1973)
- NASA – A Gallery of Einstein Rings
- ESA / Hubble – Rings of Relativity (POTW2050a)