INTERACTIVE EXPLANATIONWhy does moving a lens bring things into focus?
Slide an object toward a lens. Follow the rays, find a sharp image, and discover the moment a camera becomes a magnifier.
Enable JavaScript to change the conditions and run the interactive experiment.
Make a discovery
A lens changes the directions of light rays. A real image forms where outgoing rays meet. A virtual image appears where their backward extensions meet—even though light does not actually go there.
Make a prediction
The object moves inside a converging lens’s focal length. Can a screen behind the lens catch its image?
- Yes, at any distance
- No, this image is virtual
Read the explanation
The rays leaving the lens spread apart. Their backward extensions locate the virtual image on the object side. Try the magnifier preset and inspect the dashed lines.
Understand it
Find the focal points
Parallel rays entering a converging lens meet at its far focal point in the thin-lens approximation. A diverging lens spreads those rays as if they came from its near focal point. The lens shape is a symbol for that behavior, not a glass design.
A camera needs a real image
To record a sharp image, a camera places a sensor where a bundle from each object point converges. Move the virtual sensor through that position and compare the bundle width. Real cameras usually focus by moving lens groups; this bench moves the sensor to expose the geometry.
A magnifier is a different arrangement
Place an object inside a converging lens’s focal length. The outgoing rays diverge, but their backward extensions locate an upright virtual image. A screen behind the lens cannot catch that image. Your eye can receive the rays and form its own retinal image.
Look closer at the science
One equation, clear signs
1/f = 1/do + 1/di. A real object has do > 0. A converging lens has f > 0; a diverging lens has f < 0. A positive di means a real image on the far side. Negative di means a virtual image on the object side.
Size and orientation
Transverse magnification m = −di/do. Negative m is inverted. At do = f for a converging lens, the emerging bundle is parallel: there is no finite image distance. The calculator reports this explicitly rather than dividing by zero.
How much misses focus?
For an on-axis point and aperture radius a, the geometric bundle radius at sensor distance s is a|1 − s/di|. The camera inset uses this ray geometry. Diffraction, aberrations, wavelength dependence and real sensor sampling are omitted.
Try it yourself: Turn small print into a discovery
Supplies
- 1 ordinary magnifying glass
- Printed text on paper
- A well-lit indoor table
- Begin close
Indoors, hold the magnifier just above the printed text. Look through it at the letters. Keep the paper and your viewing position reasonably steady.
- Change one distance
Move the lens slowly away from the page while looking through it. Notice whether the letters look upright, larger, blurred or eventually inverted. Stop whenever viewing is uncomfortable.
- Explain your observation
Sketch one position that gave enlarged upright letters. Compare it with the magnifier preset. Do not estimate the lens’s focal length from a single viewing distance: your eye and lens positions both matter.
How does the text change as the lens moves a little farther from the paper?
Use indoor light only. Never look at the Sun or direct sunlight through a lens, and keep magnifiers out of sunlight. The activity is a qualitative observation.
Sources and model limits
- Ideal thin lens, paraxial ray construction in air. Distances are from the thin-lens plane. The diagram fits the current setup automatically; it is not life-size.
- Rays represent selected paths of light, not the only light from an object. Animated dots have arbitrary speed and are not photons traveling at the displayed rate.
- Off-screen images are labelled. The camera inset follows an on-axis point separately from the object-arrow image. Its aperture height is enlarged on a different vertical scale to make bundle width visible.
- No eye prescription, solar focusing, laser activity, lens manufacturing or lens aberration model.
Thin-lens image location and magnification follow 1/f = 1/do + 1/di and m = −di/do.
University Physics Volume 3 §2.4, Eqs. 2.19 and 2.22, sign conventions and ray rules. Supports real, virtual and infinite-focus cases.
OpenStax · Thin lensesA camera records a real optical image at a detector plane.
University Physics Volume 3 §2.6, optical focusing and detector discussion. We use the general optical principle, not its dated claims about particular smartphone mechanisms.
OpenStax · The cameraAn eyepiece can magnify by forming a virtual image.
University Physics Volume 3 §2.8, compound microscope explanation. Supports the simple magnifier arrangement; no microscope model is implemented.
OpenStax · Optical instrumentsIndependent subject review is pending.
Read the sources and model assumptions