Geometric Optics - Lenses and Mirrors
Explore how lenses and mirrors form images using ray diagrams
Understanding Lenses and Mirrors
Lenses and mirrors bend or reflect light to form images. Explore the ray diagram below by changing the optical element and moving the object.
The Optical Setup
Choose a
Place an object of height
Ray Diagram
The Thin Lens / Mirror Equation
Solving:
Magnification
Currently
The image is real and inverted. Slide the object distance
Image Characteristics
Converging Lens (Convex) -- positive , can form real or virtual images.
Object beyond the focal point (): real, inverted,
Principal Rays
For lenses, three rays locate the image: a parallel ray that refracts through , a central ray through the optical centre (undeviated), and a focal ray through that exits parallel. Switch to a
Explore Further
Drag
Try it in Code
# Thin lens / mirror equation
f = 15 # focal length (cm, positive)
d_o = 30 # object distance (cm)
h_o = 5 # object height (cm)
# For diverging/convex mirror, negate f:
# f = -f
d_i = (d_o * f) / (d_o - f)
magnification = -d_i / d_o
h_i = magnification * h_o
print(f"Image distance: {d_i:.2f} cm")
print(f"Magnification: {magnification:.3f}")
print(f"Image height: {h_i:.2f} cm")
print(f"Image type: {'real' if d_i > 0 else 'virtual'}")What to explore next
Audio Waveform Explorer
Explore the relationship between frequency, amplitude, and waveform characteristics in audio signals
Damped Oscillation
Explore how a mass-spring system loses energy to friction over time
Double-Slit Interference Pattern
Explore Young's famous double-slit experiment and discover how light creates interference patterns
Electric Field Visualization
Explore electric fields using field lines to visualize the invisible force around charges
You might also like
Real vs Virtual Images
ExplorationUnderstand the difference between real and virtual images formed by lenses and mirrors
Wave Optics - Interference and Diffraction
ExplorationExplore the wave nature of light through interference and diffraction patterns, from single slits to diffraction gratings
Double-Slit Interference Pattern
ExplorationExplore Young's famous double-slit experiment and discover how light creates interference patterns
Advanced Projectile Motion
ExplorationExplore projectile motion with initial height, velocity components, and optimal launch angles