Skip to content

Light and optics simulation

Lenses and Ray Diagrams Simulation

Move an object along an optical bench in front of a convex or concave lens. Three principal rays locate the image, and the readouts give its distance, height, nature and magnification, plus the lens equation in your course's sign convention.

Loading simulation…
Show symbols for

Predict first

Question 1 of 4

An object stands at 2F in front of a convex lens. What image does the lens form?

Try this

  1. 1Start with the convex lens, a focal length of 10 cm and the object 30 cm away. Read the image distance and image height: the image forms 15 cm beyond the lens, half as tall as the 5 cm object.
  2. 2Drag the object towards the lens and stop at 20 cm, which is 2F. Watch the magnification readout reach 1 as the image and object become the same height.
  3. 3Keep going until the object is exactly 10 cm away, at F. What do the rays do after the lens, and what does the image distance readout say?
  4. 4Choose Magnifier from the Set-ups menu. Follow the dashed lines back from the lens to the virtual image, and notice that no screen appears.
  5. 5Switch to the concave (diverging) lens with the buttons under the stage, then drag the object from 42 cm all the way in to 1 cm. Does the nature of the image ever change?

What you can do here

A thin lens sits in the middle of an optical bench. Pick a convex (converging) or concave (diverging) lens, set its focal length, then drag the glowing object arrow along the bench or pull its tip to change its height. Three coloured rays leave the tip of the object, bend at the lens and pin down the image. A screen appears for a real image, and an eye for one you must view through the lens.

Three rays are enough

Three rays from the tip of the object are easy to predict:

  1. A ray running parallel to the principal axis leaves a convex lens heading through the principal focus F. A concave lens sends it outwards, as if it had started at F on the near side.
  2. A ray aimed at the optical centre crosses the lens in a straight line.
  3. A ray passing through the near-side F of a convex lens emerges parallel to the axis. For a concave lens, the matching ray is the one heading for F on the far side.

Any two of them fix the image, and the third checks your work. Solid lines carry light. Dashed lines carry none: they trace a ray backwards, or show where it was heading.

Many exam ray diagrams, including AQA's, do not draw the glass. They show the lens as one straight line with an arrowhead at each end: pointing outwards for a convex lens, turned inwards for a concave one. The simulation draws that symbol on top of the glass. A ray changes direction only where it meets that line, never at the curved surfaces.

Real or virtual?

Where rays genuinely cross after the lens, the image is real: a sheet of paper held there catches a sharp, upside-down picture. Where the rays are still spreading out, they seem to fan out from a single point on the object's side. That point is a virtual image. It stays the right way up, and no screen can capture it, because no light arrives there.

Bringing the object closer to a convex lens

Beyond 2F the image is small and inverted, between F and 2F on the far side. At 2F it matches the object's size and sits at 2F on the far side. Between F and 2F it grows larger than the object and moves out past 2F. Exactly at F the rays emerge parallel, so they never meet and there is no image. Inside F the image jumps to the object's side and becomes virtual, upright and magnified.

A concave lens is simpler. Wherever the object stands, its image is virtual, upright, smaller than the object and somewhere between F and the lens.

Magnification and the lens equation

magnification=image heightobject height\text{magnification} = \frac{\text{image height}}{\text{object height}}

Measure both heights in the same unit; the result is a pure number.

Some courses add the lens equation. In the real-is-positive convention, real objects and real images have positive distances:

1f=1u+1v\frac{1}{f} = \frac{1}{u} + \frac{1}{v}

For f=10f = 10 cm and u=30u = 30 cm, 1v=110−130=115\frac{1}{v} = \frac{1}{10} - \frac{1}{30} = \frac{1}{15}, so v=15v = 15 cm and the magnification is 15÷30=0.515 \div 30 = 0.5.

The New Cartesian convention measures each distance from the optical centre, positive in the direction the light travels, so the same object has u=−30u = -30 cm:

1v−1u=1f\frac{1}{v} - \frac{1}{u} = \frac{1}{f}

This again gives v=+15v = +15 cm, while m=v/u=−0.5m = v/u = -0.5, the minus sign meaning inverted. Both conventions describe one image; only the bookkeeping differs.

Lenses you already use

A camera keeps the scene far beyond 2F, so a small inverted image lands on the sensor. A projector holds its slide between F and 2F to throw a big picture onto a distant wall. A magnifying glass works with the object inside F. Glasses for short sight use a concave lens, and those for long sight a convex one: try both set-ups from the menu.

Equations

Check your understanding

8 questions

  1. 1.An object is placed beyond 2F in front of a convex lens. Which describes the image?
  2. 2.Which ray passes through a thin lens without changing direction?
  3. 3.A lens forms an image 6 cm tall of an object 2 cm tall. What is the magnification?
  4. 4.Why can a virtual image not be caught on a screen?
  5. 5.You look at a distant tree through a concave lens. The image you see is…
  6. 6.With 1/f = 1/u + 1/v (real-is-positive), an object is 15 cm from a convex lens of focal length 10 cm. Where is the image?
  7. 7.Which device uses a convex lens with the object between F and 2F?
  8. 8.Using the New Cartesian convention, an object stands 30 cm in front of a lens. What is u?

For teachers

Embed it in your site or open it full-screen for the projector.

Read more