Converging lenses and ray diagrams
About this app
Drag an object and adjust focal length to construct images with three principal rays. Compare real inverted and virtual upright images and the lens equation.
With explain mode: an AI tutor walks you through the app, points out what matters in the scene and answers your questions.
Imaging with a converging lens
A thin converging lens brings parallel light together at the focal point F′, one focal length f behind the lens. For object distance g and image distance b, the thin lens equation is 1/f = 1/g + 1/b, and the magnification is β = b/g. An object beyond the focal length produces a real, inverted image; an object inside the focal length produces a virtual, upright, enlarged image, as in a magnifying glass.
What the app shows
Three principal rays build the image live: the parallel ray is refracted through F′, the central ray passes straight through the centre of the lens, and the focal ray through F leaves parallel to the axis. You drag the object along the optical axis and set the focal length and object size with sliders. The app shows g, f, b and β and describes the image.
Try it yourself
Move the object from far away towards the lens. For g > 2f the image is smaller, at g = 2f the same size, for f < g < 2f larger, and in all three cases inverted and real. At g = f the rays leave the lens parallel and no image forms. For g < f the image flips: upright, enlarged, virtual and on the same side as the object.
Frequently asked questions
- What is the thin lens equation?
- For a thin lens, 1/f = 1/g + 1/b, where f is the focal length, g the object distance and b the image distance (often written 1/f = 1/u + 1/v). Solving for the image distance gives b = f·g / (g − f). A negative b means a virtual image on the object side.
- When does a converging lens form a virtual image?
- When the object is closer to the lens than the focal length. The refracted rays then diverge, and their backward extensions meet in front of the lens. The image is upright and enlarged, which is how a magnifying glass works.
- Which three rays are used to draw a ray diagram?
- The parallel ray, which passes through the focal point after the lens; the central ray, which goes straight through the centre of the lens; and the focal ray, which leaves the lens parallel to the axis. Any two of them are enough to locate the image point.
- What can I adjust in the app?
- You move the object along the optical axis and change the focal length and object size. The app draws the three principal rays, calculates image distance and magnification, and shows whether the image is real or virtual, upright or inverted.
Subject: School physics
More from School physics
- The exposure triangle
- Density and buoyancy
- The Doppler effect
- Additive and subtractive colour mixing
- Franck–Hertz tube (3D)
- Grating interference
- Photoelectric effect (3D lab)
- Millikan experiment
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps