Lens Ray Diagram Constructor

Lens Ray Diagram Constructor

Interactive lens optics simulation with real-time ray tracing and image formation

Converging Lens f = +20.0 cm

Lens Parameters

Converging Lens • Focal Length: +20.0 cm

Live Measurements

Object Distance (u) -60.0 cm
Image Distance (v) +30.0 cm
Magnification (m) -0.50×
Image Nature
Real Inverted Diminished

Thin Lens Theory

🔍 Thin Lens Equation

1/f = 1/u + 1/v

Relates focal length (f), object distance (u), and image distance (v)

⚡ Lens Power

P = 1/f (meters)

Power in diopters (D). Positive for converging, negative for diverging lenses

📏 Magnification

m = -v/u

Negative magnification indicates inverted image. |m| > 1 means magnified

🎯 Ray Tracing Rules

1. Parallel → Through focal point
2. Through center → Straight
3. Through focal point → Parallel

How to Use

1
Adjust Lens Power: Use the slider to change the lens from -10D to +10D. Positive values create converging lenses, negative values create diverging lenses.
2
Move the Object: Click and drag the red arrow on the left to change the object distance. Watch how the image changes position and size.
3
Observe Ray Tracing: Three colored rays show how light travels from the object through the lens to form the image.
4
Read Measurements: Live calculations show object distance, image distance, magnification, and image properties.

Educational lens optics simulation implementing thin lens equations and ray tracing principles

Leave a Comment

Scroll to Top