Free~20 min · AP Physics 2

Geometric Optics: Basics

Explore how lenses and mirrors form images

Key equation\frac{1}{f} = \frac{1}{d_o} + \frac{1}{d_i}

Converging (convex) lenses bend light rays toward the focal point. The thin lens equation relates object distance d_o, image distance d_i, and focal length f. When d_o > f, a real, inverted image forms; when d_o < f, a virtual, upright image appears (magnifying glass). Diverging (concave) lenses always form virtual, diminished, upright images. Mirrors follow the same mathematics with light traveling on one side.

ProPremium experiment

Unlock Geometric Optics: Basics

Plus 148+ other Pro labs covering AP Physics, Biology, Chemistry, Earth Science, and Math — with unlimited simulation time, advanced parameters, and detailed analytics.

Start 7-day free trial$4.99 / month · cancel anytime
No credit card for trial Cancel in one click Student discount available

What is Geometric Optics: Basics?

Every camera lens, every pair of eyeglasses, every microscope and telescope, and the lens inside your own eye all rely on the same handful of rules. A converging lens bends parallel rays toward a focal point; a diverging lens spreads them as if from a focal point on the other side. A concave mirror collects light to a focus; a convex mirror spreads it out. The thin lens equation 1/f = 1/d_o + 1/d_i ties together where the object sits, where the image lands, and how the lens is shaped, and m = −d_i/d_o tells you how big and which way up the image appears. The simulation lets you slide an object along the axis of a lens or mirror, watch the principal rays trace through, and see how the image flips between real and virtual as the object crosses the focal point.

Parameters explained

Focal Length(cm)
Distance from the lens or mirror to its focal point, in centimeters. Positive f means converging (convex lens or concave mirror); negative f means diverging (concave lens or convex mirror). A short f means strong bending — eyeglasses for severe nearsightedness use shorter focal lengths than reading glasses.
Object Distance(cm)
How far the object sits from the lens or mirror, in centimeters. The image's character flips at d_o = f. When d_o > f a converging lens makes a real, inverted image (the projector case); when d_o < f the same lens makes a virtual, upright, magnified image (the magnifying glass case).
Lens/Mirror Type
Selects which optical element to simulate: 0 = converging lens, 1 = diverging lens, 2 = concave mirror, 3 = convex mirror. Lenses transmit light through both surfaces; mirrors reflect off one surface. The thin lens equation has the same form for both, with appropriate sign conventions.

Common misconceptions

  • MisconceptionA converging lens always makes the image bigger.

    CorrectOnly when the object sits between the lens and the focal point. If the object is farther than 2f, the lens makes a smaller (and inverted) image — that's how cameras and your eye work. At exactly d_o = 2f the image is the same size as the object.

  • MisconceptionA virtual image isn't real, so you can't see it or photograph it.

    CorrectVirtual images are absolutely visible — that's what you see when you look in a flat mirror or use a magnifying glass. They just can't be projected onto a screen because no actual light rays meet at the image point; rays only appear to diverge from there. Your eye (or a camera) refocuses those diverging rays just fine.

  • MisconceptionCutting a lens in half gives you half an image.

    CorrectYou still get the full image, just dimmer. Each point on the lens collects a complete cone of rays from each object point, so blocking part of the lens reduces brightness but not coverage. This is a great surprise to demo with a paper mask.

  • MisconceptionIf d_o equals f exactly, the image forms at infinity but is just very far away.

    CorrectWhen d_o = f, the rays leave the lens parallel — they never converge to an image at all. The thin lens equation gives 1/d_i = 0, which means there is no image. This is exactly how a flashlight or lighthouse collimates a beam.

How teachers use this lab

  1. Image transition lab: have students start with d_o > 2f and slowly walk the object inward, recording image distance and orientation at d_o = 2f, d_o = f + ε, d_o = f, and d_o < f. They should discover the four image regimes without being told.
  2. Magnifying glass investigation: lock the lens to converging f = 10 cm and ask students to find the range of object distances that give a magnified upright image. They should converge on d_o < f and explain why using the lens equation.
  3. Eye model: relate the simulation's converging lens to the lens of the eye and the screen-side ray meeting point to the retina. Then ask students to predict whether someone who is nearsighted needs a converging or diverging corrective lens, and verify by running the sim.
  4. Mirror vs lens comparison: have pairs run identical numerical setups (same f, same d_o) for a converging lens and a concave mirror. They should find identical d_i and magnification, and discuss why the math is the same even though the physics (refraction vs reflection) is different.
  5. Sign convention drill: assign three problems where the answer requires correctly handling a negative focal length, a negative image distance, or a negative magnification. Use the simulation to verify each answer and tie the sign back to a physical observation (real vs virtual, upright vs inverted).

Frequently asked questions

What's the difference between a real image and a virtual image?

A real image forms where actual light rays physically converge — you can put a piece of paper there and see it lit up. A virtual image forms where rays only appear to come from after diverging through a lens or mirror; no light actually reaches that point, but your eye traces the rays back and reconstructs the image. Real images are inverted; virtual images from a single lens or mirror are upright.

Why is the image upside down when I look through a converging lens at a faraway object?

When d_o > f, light rays from the top of the object cross over to the bottom of the image (and vice versa) on their way through the lens. Mathematically, the magnification m = −d_i/d_o is negative, where the minus sign encodes the flip. Your eye does the same flip — your retina sees an upside-down world and your brain rotates it.

How do I know if a focal length should be positive or negative?

By convention, converging optics (convex lens, concave mirror) have positive f and diverging optics (concave lens, convex mirror) have negative f. For a thin lens, positive d_i means a real image on the far side of the lens, while negative d_i means a virtual image on the same side as the object. Mirror sign conventions use the reflective side instead, so keep the lens and mirror cases separate when you plug into the equation.

What does the thin-lens approximation actually assume?

It assumes the lens is much thinner than the focal length, so we can ignore the distance light travels inside the glass, and that all rays stay close to the optical axis (paraxial rays). Real lenses break this near the edges, producing spherical aberration. AP Physics 2 problems live entirely inside the thin-lens approximation.

How does this map to AP Physics 2 standards GO-2.A through GO-2.C?

GO-2.A covers ray diagrams for spherical mirrors and thin lenses. GO-2.B requires applying the thin lens / mirror equation to predict image distance, magnification, and orientation. GO-2.C addresses real vs virtual images and the sign conventions that distinguish them. Every challenge in this simulation maps to one of those three.