Gravitational Lensing Simulator & Dark Matter Detective
Drag a distant galaxy behind a lens and watch it turn into arcs, an Einstein cross or a full ring – with the Einstein radius worked out from real cosmic distances. Then crack hidden-lens cases
Quick Answer:Einstein radius of a point mass θE = √(4GM/c² · D_ls/(D_l D_s)); of a galaxy (isothermal sphere) θE = 4π(σ/c)² · D_ls/D_s ≈ 1.15″ × (σ/200 km/s)² × D_ls/D_s. A 250 km/s galaxy at redshift 0.3 in front of a source at z = 1 makes a ring 1.15″ in radius; a 10¹⁵ M☉ cluster about 15″; a Sun-like star halfway to the Galactic centre only 1 milliarcsecond, which brightens the star behind it by A = (u² + 2)/(u√(u² + 4)) – 1.34× at u = 1. Light grazing the Sun is bent by 1.75″.
--
--
Drag to move the background source · critical curve · caustic
--
--
--
--
Ring size at lens
--
Mass inside ring
--
Brightening
--
Time delay
--
The lens
The background source
Einstein radius vs lens mass
--
How big are real Einstein rings?
At your lens and source distances (microlensing row: your kpc distances).
Lens
Einstein radius
At the lens
Dark Matter Detective: find the hidden lens
The telescope shows the observed arcs on the left. We know what the background galaxy looks like and that it sits right at the centre of the frame. Move your lens model until your prediction on the right matches – mass, position, the pull of neighbouring galaxies (shear) and, on hard cases, a dark clump that gives off no light at all. Share the case number to challenge a friend.
Observed
Your model
--
--
Model assumptions – what this model leaves out
Thin lens, weak field. All the bending happens in one plane at the lens distance, with deflections far below a degree. That is excellent for galaxies, clusters and stars, but not for light passing right next to a black hole's event horizon (no photon ring or shadow here).
Simple, round mass profiles. Galaxies are singular isothermal spheres, clusters are spherical NFW halos, stars are point masses; elongation of real lenses is mimicked only through external shear. Real lens models use elliptical profiles, many cluster members and substructure.
Cosmology fixed. Distances use a flat ΛCDM universe with H0 = 70 km/s/Mpc and Ωm = 0.3. Other values change Einstein radii by a few percent.
The pictures are illustrations. Sources and the lens galaxy's own light are procedural shapes, not real images; colours are not to scale and the lens light is drawn faint so the arcs stay visible. Brightness follows surface-brightness conservation, so magnified images look bigger, not brighter per pixel.
Time delays only for a single round lens. The delay shown is the isothermal-sphere value for the two images of the source centre; shear, clumps and the cluster profile change it. Microlensing ignores the finite size of the source star, parallax and binary lenses.
Detective score. The match is a pixel-by-pixel comparison of the predicted and observed images on a coarse grid. Different models can fit nearly equally well – real astronomers face the same degeneracies.
How the Gravitational Lensing Simulator – Dark Matter Detective works
Every pixel of the image is traced back through the lens equation β = θ − α(θ): the deflection α of the lens (point mass, singular isothermal sphere or NFW dark-matter halo, plus external shear and an optional dark clump) tells where on the background galaxy that pixel looks. The page does this on the graphics card, so dragging the source updates the arcs instantly.
Einstein radii come from angular-diameter distances in a flat ΛCDM universe (H0 = 70 km/s/Mpc, Ωm = 0.3), integrated numerically. Image positions are found by Newton iteration of the lens equation, magnifications from the Jacobian determinant, and critical curves and caustics from where that determinant changes sign.
Microlensing switches to a star in our Galaxy: the Einstein radius in milliarcseconds and the Paczyński light curve A(u) = (u² + 2)/(u√(u² + 4)) with u(t) = √(u0² + ((t − t0)/tE)²) and tE = Einstein radius ÷ relative speed.
Result: A ring 1.15″ in radius – just resolvable from the ground in good seeing, clear with Hubble – and two images that flicker about 8 weeks apart when the background source varies.
Assumptions and limits
Thin-lens, weak-field approximation; no black-hole photon ring or shadow. Round mass profiles; ellipticity is mimicked by external shear.
Sources and lens light are procedural illustrations; the detective score compares blurred images on a 72 × 72 grid.
Checked: comoving distance to z = 1 3,303.8 Mpc and D_A 1,651.9 Mpc (Wright’s cosmology calculator: 3,303.8 / 1,651.9), D_A(0.5) 1,259.1 Mpc; light grazing the Sun 1.751″ (Einstein 1.75″); microlens θE for 1 M☉ at 4/8 kpc 1.009 mas (Gaudi 2012: 1.009); Paczyński A(1) 1.3416, A(0.1) 10.04; SIS images at β ± θE with |μ| 3.5 and 1.5 exactly; point-lens images match (u ± √(u² + 4))/2; SIS + γ = 0.1 gives 4 images inside the caustic; NFW deflection equals θ × mean convergence to 2 × 10⁻⁸.
Frequently Asked Questions About Gravitational Lensing
How do you calculate the Einstein radius?
For a point mass θE = √(4GM/c² × D_ls ÷ (D_l × D_s)), with D_l, D_s and D_ls the angular-diameter distances to the lens, to the source and between them. For a galaxy modelled as a singular isothermal sphere θE = 4π (σ/c)² × D_ls/D_s, about 1.15″ × (σ/200 km/s)² × D_ls/D_s. A 250 km/s galaxy at z = 0.3 lensing a source at z = 1 has θE = 1.15″.
Why does gravitational lensing make an Einstein ring?
Light passing a mass is bent toward it by an angle that grows as the light passes closer. When the source, the lens and the observer are exactly in line, light can reach us around every side of the lens by the same angle, so the source is smeared into a ring of radius θE. Move the source a little off-line and the ring breaks into two arcs; add shear from the lens's surroundings and you get four images, an Einstein cross.
How does gravitational lensing reveal dark matter?
Lensing responds to all mass, visible or not. The mass needed to bend light into the observed arcs – the mass inside the Einstein radius – is several times the mass of the stars astronomers can see in clusters of galaxies, and small distortions of arcs reveal dark clumps that emit no light. The detective mode lets you find such a hidden clump from the shape of an arc.
How much does a star brighten in a microlensing event?
For a single point lens the magnification is A = (u² + 2) ÷ (u √(u² + 4)), with u the distance between source and lens in Einstein radii. At u = 1 the star is 1.34× brighter, at u = 0.1 about 10×. A Sun-like lens halfway to the Galactic bulge has θE ≈ 1 milliarcsecond, so the two images cannot be seen apart – only the brightening, which lasts about a month.
What are critical curves and caustics?
Critical curves are the places on the sky where the lens magnification becomes formally infinite; mapped back to the source plane they become caustics. A source crossing a caustic gains or loses a pair of images, which is why a galaxy sitting inside the diamond-shaped caustic of a sheared lens shows four images and one outside it shows two. The cyan and pink lines in the simulator show both.