Lesson 1 of 15

Schwarzschild Radius

Schwarzschild Radius

In 1916, Karl Schwarzschild found the first exact solution to Einstein's field equations — the geometry of spacetime surrounding a spherically symmetric, non-rotating mass MM. The most famous prediction of this solution is the Schwarzschild radius rsr_s, the radius at which the escape velocity equals the speed of light:

rs=2GMc2r_s = \frac{2GM}{c^2}

where G=6.674×1011G = 6.674 \times 10^{-11} m³ kg⁻¹ s⁻² is Newton's gravitational constant and c=299,792,458c = 299{,}792{,}458 m/s.

If a mass MM is compressed inside a sphere of radius rsr_s, spacetime curves so severely that nothing — not even light — can escape. That boundary is the event horizon of a black hole.

Typical Values

ObjectMass (kg)rsr_s
Earth5.97×10245.97 \times 10^{24}8.9\approx 8.9 mm
Sun1.99×10301.99 \times 10^{30}2.95\approx 2.95 km
1 kg111.5×1027\approx 1.5 \times 10^{-27} m

The Sun would need to be squeezed to a ball less than 3 km across to become a black hole. Earth's Schwarzschild radius is smaller than a penny.

Compactness

A useful dimensionless measure is the compactness — the ratio of the Schwarzschild radius to the actual radius:

C=rsR=2GMc2R\mathcal{C} = \frac{r_s}{R} = \frac{2GM}{c^2 R}

For the Sun, C4.2×106\mathcal{C} \approx 4.2 \times 10^{-6} (very Newtonian). For a neutron star, C0.4\mathcal{C} \sim 0.4.

Your Task

Implement three functions. All physical constants must be defined inside each function body.

  • schwarzschild_radius(M) — returns rs=2GM/c2r_s = 2GM/c^2 in metres
  • schwarzschild_mass(r_s) — inverse: given rsr_s, returns M=rsc2/(2G)M = r_s c^2 / (2G)
  • compactness(M, R) — returns rs/R=2GM/(c2R)r_s / R = 2GM / (c^2 R)
Python runtime loading...
Loading...
Click "Run" to execute your code.