Thin-lens equation
With one consistent sign convention, this single equation covers converging and diverging lenses, real images and virtual images.
Optics · ray tracing
How do three principal rays locate and size an image? A ray parallel to the axis bends through the focal point, a ray through the center goes straight on, and a ray through the near focal point leaves parallel to the axis. The image sits where they cross, or appear to cross, and the similar triangles they form give its size.
A transparent 3D lens is convex when the focal length is positive and concave when it is negative. Three principal rays refract through it in space and locate the image. Drag the object arrow or change the focal length, and the real or virtual image updates in place.
Physics tutorial
BackgroundA real lens refracts countless rays. The thin-lens approximation puts all of that refraction in one plane and sums up curvature and refractive index in a single focal length.
Why it mattersFor cameras, eyes, microscopes and telescopes, the first analysis comes down to image distance, magnification and whether the image is real or virtual.
Start with the essentials
With one consistent sign convention, this single equation covers converging and diverging lenses, real images and virtual images.
The magnitude gives the size ratio, and the sign tells you whether the image is upright or inverted.
Typical misconceptionA virtual image is only a drawing aid and cannot be seen.
Better mental modelA virtual image cannot be projected onto a screen, but your eye or another lens can still receive it, because the rays look as if they come from that point.
Typical misconceptionThe object emits only the three rays drawn in the diagram.
Better mental modelThey are just three convenient rays for finding the image. Every paraxial ray obeys the same imaging relation.
Place the object beyond 2F.
What to observe: The rays meet on the far side of the lens and form a smaller, inverted image.Move the object slowly inside F.
What to observe: The image distance runs off to infinity and changes sign, and the image becomes upright and virtual.Set the focal length to a negative value.
What to observe: The outgoing rays spread apart. Traced backward, they meet at a smaller virtual image.Continue exploring
Move the object through the focus. Which rays still locate the image?