Ray Optics Simulator & Trainer
Mirrors & Lenses — Simulate · Explore · Practice · Quiz
Adjust the sliders and press Trace Rays to see how the image forms.
User Guide
1 Overview
The Ray Optics Simulator & Trainer lets you explore how light interacts with mirrors and lenses. Choose between concave and convex optics, set object position and focal length, then trace rays to see where the image forms — its position, size, and orientation.
Four modes: Simulate (interactive ray tracing), Explore (educational cards), Practice (unlimited problems), and Quiz (5-question assessment).
2 Getting Started
Select an optic type (Mirror or Lens) and a sub-type (Concave or Convex). Adjust the sliders for object distance, height, and focal length. Press Trace Rays to see the animated ray diagram. You can also drag the object arrow directly on the canvas.
3 Simulate Mode
Three principal rays animate from the object through the optic, forming the image. The formula panel shows the live calculation. Readout badges display u, v, f, magnification, and image nature. Drag the object arrow to explore different positions in real time.
Right-click the canvas to save as image, copy the current reading, or reset.
4 Explore Mode
Five educational categories: Basics (light and reflection), Mirrors (concave/convex behaviour), Lenses (convex/concave behaviour), Formulas (mirror/lens equations with worked examples), and Applications (telescopes, cameras, corrective lenses).
5 Practice & Quiz
Practice: Solve unlimited ray optics problems — predict image distance, nature, magnification, or identify the optic type from given properties. Instant feedback with explanations.
Quiz: 5 randomly selected questions. Scored with a star rating (3 stars = perfect). Review each answer after completion.
6 Key Concepts
Mirror equation: 1/f = 1/v + 1/u (Cartesian sign convention)
Lens equation: 1/f = 1/v − 1/u
Magnification: m = v/u = image height / object height
Sign convention: Distances towards incident light are negative, away are positive. Object distance u is always negative.
7 Tips & Best Practices
- Try placing the object at F, at 2F, and beyond 2F to see how the image changes.
- Switch between concave and convex to compare real vs virtual images.
- Use Explore mode to understand the sign convention before attempting Practice.
- Audio click plays on drag start; success/error tones play in Practice and Quiz.
Understanding Ray Optics: Mirrors and Lenses
What Is Ray Optics?
Ray optics (geometric optics) is the branch of physics that describes light propagation in terms of rays. When light strikes a mirror it reflects; when it passes through a lens it refracts. By tracing just three principal rays from any point on an object, we can predict exactly where the image will form, how large it will be, and whether it is real or virtual.
Concave vs Convex: Mirrors and Lenses
A concave mirror converges parallel light to a real focal point, producing real inverted images when the object is beyond the focal length. A convex mirror always diverges light, producing virtual, erect, diminished images — which is why convex mirrors are used as rear-view mirrors. Similarly, a convex lens converges light and can form both real and virtual images, while a concave lens always diverges light, forming virtual images used to correct myopia.
The Mirror and Lens Equations
Using the Cartesian sign convention, the mirror equation is 1/f = 1/v + 1/u, and the thin lens equation is 1/f = 1/v − 1/u. Here u is the object distance (always negative), v is the image distance, and f is the focal length. The magnification m = v/u tells us the size ratio and orientation of the image.
Who Uses This Simulator?
High school physics students, engineering trainees, and teachers exploring optics concepts interactively. The four modes (Simulate, Explore, Practice, Quiz) support self-paced learning from basic ray tracing to problem-solving with instant feedback.
Explore Related Simulators
Continue your physics exploration with our Beam Bending Simulator for structural mechanics, Litmus Test Virtual Lab for chemistry fundamentals, Simple Pendulum Simulator for oscillatory motion, or the Stress-Strain Curve Simulator for material behaviour.