Ray diagrams finally make sense when you can move the object yourself. Slide it past F and 2F and watch the image flip, grow and turn virtual — then solve any numerical with the lens & mirror solver.
Lens formula1/v − 1/u = 1/f. Power P = 1/f (in metres), unit dioptre (D).
Mirror formula1/v + 1/u = 1/f, with f = R/2 (R = radius of curvature).
MagnificationLens m = v/u; Mirror m = −v/u. Also m = h′/h.
Sign conventionMeasure from pole/centre. Along incident light = +, against = −. Real object on left ⇒ u is negative.
1. Convex Lens Ray Diagram Interactive
Move the object and change the focal length. Two rays are drawn for you — one parallel ray (bends through F) and one through the optical centre (straight). Where they meet is the image.
Real, inverted image beyond 2F.
2. Lens & Mirror Solver Interactive
Pick a device, type the object distance and focal length, and get the image distance, magnification and nature — with the sign convention applied for you.
Image distance, v−60 cm
Magnification, m−2.0
3. Image formation by a convex lens (learn the 6 cases)
Object position
Image position
Nature
Size
At infinity
At F
Real, inverted
Point-sized
Beyond 2F
Between F and 2F
Real, inverted
Diminished
At 2F
At 2F
Real, inverted
Same size
Between F and 2F
Beyond 2F
Real, inverted
Magnified
At F
At infinity
Real, inverted
Highly magnified
Between F and lens
Same side as object
Virtual, erect
Magnified
Concave lens & convex mirror are the easy ones: they always give a virtual, erect, diminished image, wherever the object is.
4. Solved numericals
Q1. An object is placed 30 cm in front of a convex lens of focal length 20 cm. Find the image distance and magnification.
⇒ v = +30 cm (positive ⇒ behind the mirror ⇒ virtual)
m = −v/u = −30/(−10) = +3 (erect, magnified) — this is the shaving/make-up mirror.
5. Sign-convention survival kit
Real object ⇒ u is always negative. Plug in u = −(object distance).
Convex lens & convex mirror: f positive. Concave lens & concave mirror: f negative.
Positive v: for a lens ⇒ real image (other side); for a mirror ⇒ virtual image (behind).
Negative m ⇒ inverted (and real). Positive m ⇒ erect (and virtual).
Power of a lens P = 1/f with f in metres; unit dioptre (D). Convex = +, concave = −.
Frequently asked questions
What is the lens maker's formula?
1/f = (n − 1)(1/R₁ − 1/R₂), where n is the refractive index of the lens material and R₁, R₂ are the radii of curvature of its two surfaces.
Why does a convex lens act as a magnifying glass?
When the object is closer than the focal length, the refracted rays diverge. Tracing them backward gives a virtual, erect and magnified image on the same side — which is exactly what a magnifying glass shows.
What is the difference between real and virtual images?
A real image is formed where light rays actually meet and can be caught on a screen (always inverted). A virtual image is where rays only appear to come from and cannot be caught on a screen (always erect).
What is the unit of power of a lens?
The dioptre (D). Power P = 1/f, where f is in metres. A lens of focal length 50 cm has a power of 1/0.5 = +2 D.
Send Feedback
Hi! Found an error or have a suggestion? Let us know and we'll fix it.
Thanks! Your feedback has been sent. We'll look into it.