Trace rays through lenses and discover image formation
Geometric optics models light as rays that travel in straight lines and bend at interfaces according to Snell's Law. A thin lens refracts parallel rays to converge at (convex) or diverge from (concave) the focal point. The thin lens equation 1/f = 1/v + 1/u relates the focal length, image distance, and object distance, while the magnification m = -v/u describes image size and orientation.
Plus 148+ other Pro labs covering AP Physics, Biology, Chemistry, Earth Science, and Math — with unlimited simulation time, advanced parameters, and detailed analytics.
Already have an account?
Sign in →Geometric optics treats light as straight rays that bend at lens surfaces. It is the model behind every camera, eye, and telescope you have ever used, and it works as long as the wavelength of light is much smaller than the lenses and mirrors involved. The thin-lens equation, 1/f = 1/d_o + 1/d_i, links the focal length f, object distance d_o, and image distance d_i, and the magnification M = −d_i/d_o tells you whether the image is bigger, smaller, upright, or inverted. Converging lenses (positive f) bend parallel rays to a single point and form real, inverted images of distant objects, the way your eye and a camera both project the world onto a sensor. Diverging lenses (negative f) spread rays out and always form virtual, upright, smaller images, like the wide view through a peephole or a security mirror. Slide the object in this lab and watch the image flip, grow, and travel to and from infinity exactly as the equation predicts.
MisconceptionIf you cover half a lens, you'll get half the image.
CorrectEach point of the object sends rays through the entire lens. Covering half just dims the image (less light), it doesn't cut off half the picture. Counter-intuitive but easy to verify experimentally.
MisconceptionA converging lens always makes a smaller image.
CorrectDepends on object distance. Beyond 2f: smaller and inverted. At 2f: same size. Between f and 2f: larger and inverted. Inside f: larger, upright, virtual (a magnifying glass).
MisconceptionReal images are 'real' and virtual images are imaginary or fake.
CorrectReal images form where light rays actually converge — you can put a screen there. Virtual images form where rays appear to diverge from — your eye sees them through the lens but no light actually arrives at that location. Both are physically meaningful.
MisconceptionDiverging lenses can never form a real image.
CorrectTrue for single diverging lenses with real objects. In a multi-lens system (binoculars, microscopes), a diverging lens can act on a virtual object (the image of a previous lens) and produce a real image. Be careful what counts as 'object'.
1/f = 1/d_o + 1/d_i where f is focal length (positive for converging, negative for diverging), d_o is object distance, d_i is image distance (positive if on the outgoing side). Magnification is M = −d_i/d_o.
Rays from the top of the object cross the optical axis as they bend through the lens and end up at the bottom of the image. Same for left-right. The camera sensor (or your retina) captures the inverted image, and your brain or software flips it back upright.
Real images form where rays physically converge — you can project them onto a screen. Virtual images form where rays appear to come from after passing through the lens, but no light actually reaches that point. A magnifying glass shows you a virtual image; a movie projector shows a real one.
When the object is inside the focal length (d_o < f). The lens can't bend rays enough to converge them, so they exit diverging. Your eye traces them back to a virtual, upright, magnified image. That's the magnifying-glass mode.
AP Physics 2 expects students to apply the thin-lens equation, compute magnification, and reason about real vs. virtual images. They should also do ray-tracing diagrams (parallel ray, central ray, focal ray) for both lens types. This lab supports both the algebra and the geometry.