Lesson 12 of 15
Gravitational Lensing
Gravitational Lensing
Einstein's general relativity predicts that mass bends the path of light. A massive object — a star, galaxy, or cluster — acts as a gravitational lens, distorting and magnifying the images of background sources.
The Einstein Radius
When a source, lens, and observer are perfectly aligned, the source appears as a ring (an Einstein ring) with angular radius :
where:
- = angular diameter distance to the lens
- = angular diameter distance to the source
- = angular diameter distance from lens to source
Point-Source Magnification
For a point source at angular position from the lens axis, the total magnification is:
At perfect alignment (, ), . At , .
Scales
| System | |
|---|---|
| Galaxy (1e11 , 500 Mpc) | |
| Microlensing (, 1 kpc) | mas |
Your Task
Implement three functions. All constants must be defined inside each function.
einstein_radius_rad(M_kg, D_L_m, D_S_m, D_LS_m)— returns in radianseinstein_radius_arcsec(M_kg, D_L_m, D_S_m, D_LS_m)— returns in arcsecondslensing_magnification(beta_rad, theta_E_rad)— returns
Use N m² kg⁻², m/s. For arcseconds: multiply radians by .
Python runtime loading...
Loading...
Click "Run" to execute your code.