Thin-lens equation
One consistent sign convention covers converging, diverging, real, and virtual cases.
Optics · ray tracing
A transparent 3D lens changes from convex to concave with the focal-length sign, while three spatial principal rays refract to locate the image. Drag the object arrow or change focal length to update real and virtual images in place.
Physics tutorial
BackgroundA real lens continuously refracts infinitely many rays. The thin-lens approximation concentrates refraction into one plane and summarizes curvature and refractive index with focal length.
Why it mattersThe first analysis of cameras, eyes, microscopes, and telescopes reduces to image distance, magnification, and real-versus-virtual image.
Start with the essentials
One consistent sign convention covers converging, diverging, real, and virtual cases.
Magnitude gives size ratio while sign distinguishes upright from inverted.
Typical misconceptionA virtual image is only a drawing aid and cannot be seen.
Better mental modelIt cannot project directly onto a screen, but eyes or another lens receive rays that appear to originate there.
Typical misconceptionThe object emits only the three rays drawn in the diagram.
Better mental modelThey are convenient representatives for locating the image; all paraxial rays obey the same imaging relation.
Place the object beyond 2F.
What to observe: Rays converge on the far side into an inverted smaller image.Move the object slowly inside F.
What to observe: Image distance diverges and changes sign, producing an upright virtual image.Set focal length negative.
What to observe: Outgoing rays diverge and backward extensions form a reduced virtual image.