Lens equation (thin lens)
Two rays are enough to find an image: one leaves the object parallel to the axis and bends through the focus, one goes straight through the centre. Where they meet is the image. Move the object inside the focal length of a converging lens and the rays stop meeting on the far side: you get a magnifying glass.
The formulas
- Thin lens equation: 1 ÷ f = 1 ÷ do + 1 ÷ di, so di = f do ÷ (do − f).
- Signs (real is positive): f is positive for a converging lens and negative for a diverging one. A positive di is a real image on the far side, which you can catch on a screen; a negative one is a virtual image on the object's side, seen by looking through the lens.
- Magnification: m = −di ÷ do; image height = m × object height. A negative m means upside down.
- Power: P = 1 ÷ f with f in metres, in dioptres (the unit on glasses prescriptions).
A thin lens in air, rays close to the axis, and no aberrations. An object at the focal point sends parallel rays out, so no image forms. Inside the focal length a converging lens gives a virtual, upright, bigger image; a diverging lens always gives a virtual, upright, smaller one. Tested: the equation against tracing the two rays for converging and diverging lenses, and both of those statements over the whole range of distances (packages/mechanics/test/science.test.ts).
Example
With lens: converging, focal length 10 cm, object distance 30 cm, object height 2 cm: image distance: 15 cm, far side (real image); magnification: 0.5× smaller; image height: 1 cm, upside down; lens power: 10 dioptres. Open this setup, then change one thing at a time.
Related: Snell’s law · Projectile motion