Lens equation (thin lens)

Image distance
Magnification
Image height
Lens power

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

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