Gravitational Lensing
Gravitational Lensing
General relativity predicts that mass curves spacetime, bending the path of light. When light from a distant source passes a massive object at impact parameter , it is deflected by:
This is twice the Newtonian prediction. The factor of 2 arises because GR accounts for both the spatial and temporal curvature of spacetime.
The 1919 Eclipse Measurement
In 1919, Arthur Eddington's expedition measured starlight deflection during a solar eclipse. For light grazing the Sun's surface ( m):
This matched GR's prediction and made Einstein world-famous. Newton's theory predicted only 0.875 arcseconds.
Einstein Ring
When source, lens, and observer are perfectly aligned, light bends symmetrically to form a ring. The angular radius of the Einstein ring is:
For collinear geometry with , the physical ring radius projected at the lens plane is:
Your Task
Implement three functions. All physical constants must be defined inside each function body.
deflection_angle(M, b)— returns deflection in radiansdeflection_angle_arcsec(M, b)— converts radians to arcseconds (multiply by )einstein_ring_radius(M, D_L, D_S)— returns physical Einstein ring radius in meters