Geometric Optics — Complete Reference

Thin Lens

1/s′ = 1/f + 1/s

From zero to mastery. Interactive simulations, complete derivations, every scenario — for both sign conventions, positive and negative lenses.

What Is a Lens?

A lens is a shaped piece of transparent material that refracts light in a controlled way. The thin lens approximation collapses both refracting surfaces into a single plane — zero thickness, one equation governs everything.

Intuition. A converging lens is ground so that all parallel rays, regardless of height, converge to the same downstream point: the focal point. Rays near the edge are bent most steeply. Rays through the center pass undeviated. The curve of the glass is exactly right so they all arrive at one place.

Sign Convention (Cartesian)

Light travels left to right. The lens sits at the origin.

SymbolQuantityPositive when…Negative when…
sObject distanceReal object (left of lens)Virtual object (right of lens)
s′Image distanceReal image (right of lens)Virtual image (left of lens)
fFocal lengthConverging / convexDiverging / concave
mMagnificationImage uprightImage inverted

The Three Principal Rays

RAY 1 — PARALLEL
Enters parallel to optical axis → exits through far focal point F′ (converging) or as if diverging from near F (diverging)
RAY 2 — CENTRAL
Passes through center of lens → exits completely undeviated
RAY 3 — FOCAL
Passes through near focal point F → exits parallel to optical axis

The Derivation

Everything follows from similar triangles.

1

Setup

Lens at x=0. Object height h at distance s to the left. Seek image position s′ and image height h′.

2

Central Ray — Magnification

Central ray passes undeviated, creating two similar triangles:

h/s = −h′/s′  →  m = h′/h = −s′/s
LATERAL MAGNIFICATION
3

Parallel Ray Through F′

h/f = −h′/(s′ − f)
FOCAL TRIANGLE
4

Eliminate h and h′

Substitute h′ = −hs′/s into step 3 → 1/f = s′/[s(s′−f)]
5

Thin Lens Equation

ss′ − sf = fs′ → ss′ = f(s+s′) → divide by ss′f:
1/s + 1/s′ = 1/f
GAUSSIAN FORM
6

All Derived Forms

s′ = sf/(s−f)
IMAGE DISTANCE
f = ss′/(s+s′)
FOCAL LENGTH FROM CONJUGATES
m = −s′/s = −f/(s−f) = (s′−f)/f
MAGNIFICATION — ALL FORMS
7

Newton's Lens Equation

Define x = s−f, x′ = s′−f (measured from focal points, not lens):

x · x′ = f²
NEWTON'S FORM

Object and image focal distances always multiply to f². Symmetric and beautiful.

Sign Conventions

There are three distinct ways the thin lens equation gets written. Two are algebraically the same rearrangement. The third is genuinely different — and arguably the most physically illuminating.

Form A — Gaussian

1/s + 1/s′ = 1/f

The symmetric form derived from similar triangles. Both s and s′ appear with positive signs. Most common in physics textbooks. You rearrange to solve for whatever variable you need.

Form B — Pre-solved

1/s′ = 1/f − 1/s

Form A rearranged. Subtract 1/s from both sides. Gives you 1/s′ directly. Algebraically identical — same equation, same answer. Useful when you always compute s′ and want to skip the rearranging step.

Form C — Real-is-Positive

1/s′ = 1/f + 1/s

Genuinely different convention. Uses signed inputs differently. Seen in some British-curriculum and older texts. This is not Form A rearranged.

Why Form C Is Different — And Why It Makes You Think

The Key Insight

In Form C, s is measured as a negative number for a real object. A real object 30 cm to the left of the lens has s = −30 cm in this convention. So when you write:

1/s′ = 1/f + 1/s    with    s = −30, f = +20

You compute:

1/s′ = 1/20 + 1/(−30) = 1/20 − 1/30 = 1/60  →  s′ = +60 cm

Same numerical answer. But notice what happened: the negative sign on s did the work that the subtraction did in Form B. In Form C, you're not told to subtract — instead, you're forced to think about and supply the correct sign for every quantity.

This convention makes you mentally engage with the direction of each quantity:

Form B — Subtraction built in

1/s′ = 1/f − 1/s    (s = +30)

The minus sign is baked into the formula. You just plug in |s| = 30. The equation handles the sign for you. Easy, mechanical, but you can get the right answer without thinking about what the sign of s means.

Form C — You supply all signs

1/s′ = 1/f + 1/s    (s = −30)

No built-in sign adjustment. You must consciously decide: is this object to the left (negative) or right (positive)? Is this a converging lens (f positive)? You can't sleepwalk through it. Every sign is a deliberate physical statement.

Where Form C Shines

Suppose you have a diverging lens (f = −15 cm) and an object on the left (s = −25 cm):

1/s′ = 1/(−15) + 1/(−25) = −1/15 − 1/25 = −5/75 − 3/75 = −8/75  →  s′ = −9.375 cm

The negative s′ immediately tells you: virtual image, on the same side as the object. The two negative terms combined and stayed negative — that's physically meaningful. Both f and s were negative here, which makes you ask: why? what does each sign represent? what does it mean for a lens to have negative f? Form C forces those questions.

Compare to Form B with the same situation:

1/s′ = 1/(−15) − 1/(−25) = −1/15 + 1/25 = −5/75 + 3/75 = −2/75  →  s′ = −37.5 cm

Wait — different answer! That's because in Form B, s is still positive (s = +25), whereas in Form C, s = −25. The forms use different sign conventions for input quantities. Mix them up and you get wrong answers.

The moral: Form C (1/s′ = 1/f + 1/s with s negative for real objects) is not a shortcut — it's a full sign-convention system. It makes you think about the physical meaning of every sign you plug in. Form A and B share the same sign convention for inputs (s positive for real objects). Forms A and B are the same equation; Form C is a different system that produces identical final answers when used consistently.

Worked Example — All Three Forms

Object at 30 cm left of lens, converging lens f = 20 cm.

Form A

1/30 + 1/s′ = 1/20
1/s′ = 1/20 − 1/30 = 1/60
s′ = +60 cm

s = +30 (real object, positive by convention)

Form B

1/s′ = 1/20 − 1/30
= 3/60 − 2/60 = 1/60
s′ = +60 cm

s = +30 (same convention as A)

Form C

1/s′ = 1/20 + 1/(−30)
= 1/20 − 1/30 = 1/60
s′ = +60 cm

s = −30 (real object is negative in this convention)

All three give s′ = +60 cm. The difference is only in how s is defined. Forms A and B use s = +30; Form C uses s = −30. Never mix conventions within a single problem.

Interactive Ray Diagram

Full real-time simulation. Click and drag the object arrow, or click anywhere left of the lens to jump the object there. Drag the focal point markers to change f.

drag object arrow or click canvas  |  drag F / F′ to change focal length
Ray 1 — parallel (red) Ray 2 — central (green) Ray 3 — focal (blue) Virtual extension Real image  Virtual image
Scale:
1f 1 unit = f
s = 200
f = 100
h = 40
LIVE EQUATION  1/s′ = 1/f + 1/s (Form C)
1/s′ = 1/100 + 1/(200) = 0.0050 s′ = 200.0
ALSO  1/s + 1/s′ = 1/f (Form A check)
1/200 + 1/200 = 0.0100 =? 1/100
Conjugate Symmetry — second object placed at s₁′
Move object to see conjugate pair calculation
Image Distance s′
Magnification m
s / f Ratio
object in units of f
Image Height
m × h
Focal Length f
Scenario

Positive (Converging) Lens

f > 0. Parallel rays converge to a real focal point. Behavior is rich and has a discontinuity at s = f.

s′ = sf/(s−f)   |   m = −f/(s−f)   |   f > 0
0 < s < f/2
Deep focal zone
m ∈ (1,2), s′ ∈ (0⁻,−f)
VIRTUAL UPRIGHT
f/2 < s < f
Magnifying glass zone
m grows 2→+∞ as s→f
VIRTUAL UPRIGHT
f < s < 1.5f
Projector zone
s′ from +∞ to 3f, |m|>2
REAL
1.5f < s < 2f
Approaching unit mag
m from −2 toward −1
REAL

Limit Analysis

s → 0⁺
s′ → 0⁻  |  m → +1
s → f⁻
s′ → −∞  |  m → +∞    Virtual image explodes
s = f
s′ = undefined  |  m = ±∞    Collimated beam output — no image
s → f⁺
s′ → +∞  |  m → −∞    Real image arrives from +∞
s = 2f
s′ = 2f  |  m = −1    Symmetric unit magnification
s → ∞
s′ → f  |  m → 0    Parallel rays focus at focal point

Negative (Diverging) Lens

f < 0. Always virtual, always upright, always minified. Write f = −F, F > 0.

s′ = −sF/(s+F)   |   m = F/(s+F)   |   s′ < 0 always, m ∈ (0,1) always
No singularity. The image smoothly migrates from 0 to −F as the object moves 0 to ∞. No flip, no explosion, no transition.
0 < s < |f|/2
Very close
m: 1→2/3
VIRTUAL UPRIGHT
|f|/2 < s < |f|
Moderate
m: 2/3→1/2. At s=|f|, m=½
VIRTUAL UPRIGHT
|f| < s < 1.5|f|
Past virtual focal
m: 1/2→2/5. No drama here.
VIRTUAL UPRIGHT
1.5|f| < s < 2|f|
Distant
m: 2/5→1/3. Approaching −F.
VIRTUAL UPRIGHT

Limits

s → 0
s′ → 0  |  m → 1
s = F
s′ = −F/2  |  m = 1/2
s → ∞
s′ → −F  |  m → 0    Virtual focal point asymptote

Complete Data Tables

All key distances, symbolic and numeric (f = 100, h = 40).

ss (f=100)s′ symbolics′ numericm symbolicm decimalh′TypeOrientSize
ss (F=100)s′ symbolics′ numericm symbolicm decimalh′TypeOrientSize

s′ and m versus s

━━ s′ positive ━━ s′ negative ╌╌ m positive ╌╌ m negative

Reading the Plots

Positive s′: vertical asymptote at s=f. Negative (virtual) for s<f, positive (real) for s>f. Approaches f from above as s→∞. Crosses s′=2f at s=2f.

Negative s′: smooth monotone curve, always in negative territory, asymptoting to −F.

Positive m: +∞ as s→f⁻, −∞ as s→f⁺, crosses m=−1 at s=2f.

Negative m: 1 at s=0 down to 0 as s→∞. Always positive, always <1.

Head-to-Head

Positive Lens

Real or virtual image depending on s vs f. Magnification spans all of ℝ with discontinuity at s=f. The singularity is the collimated-beam condition.

Key: s=2f → m=−1. f<s<2f → projector. s<f → magnifier.

Negative Lens

Always virtual, upright, minified. m = F/(s+F) = 1/(1+s/F). Simple hyperbola. No singularity. No real images.

Key: s=|f| → m=½. s→∞ → m→0.

Conjugate Symmetry

Swapping s and s′ in 1/s + 1/s′ = 1/f leaves the equation unchanged. An object at s₁ that images to s₁′ means placing an object at s₁′ images back to s₁.

Conjugate pair: s₁ ↔ s₁′    with    1/s₁ + 1/s₁′ = 1/f

Real-World Applications

The Eye
Cornea + Crystalline Lens

Compound positive system. Real inverted image on retina. Ciliary muscles change f. Myopia: negative corrective lens. Hyperopia: positive.

Camera
Photographic Imaging

Object at s≫f. Image at s′≈f, real, inverted. Zoom changes f. Focusing moves lens to adjust s′.

Projector
Image Enlargement

Slide at f<s<2f. Real, inverted, magnified. Slide physically inverted to compensate. Screen at s′.

Eyeglasses
Vision Correction

Myopia: negative lens. Hyperopia: positive. D = 1/f (meters). −2.5 D → f = −40 cm.

Telescope
Angular Magnification

Keplerian: pos+pos, M=−f_obj/f_eye. Galilean: pos+neg, erect image.

Microscope
Extreme Magnification

Object at f+ε. M=−(L/f_obj)×(25/f_eye). Both positive. Up to 1000×.

Lensmaker's Equation

1/f = (n − 1) [ 1/R₁ − 1/R₂ ]

R positive if center of curvature is to the right. Biconvex: R₁>0, R₂<0 → f>0. Biconcave: f<0.