A lens gathers a bundle
A pinhole selects a narrow set of rays for each image point. A lens can accept a wider bundle and change its directions so that rays from one object point meet again. This lab separates that idea into two models: refraction at one interface, then paraxial image formation by a positive thin lens in air.
The first model follows Snell’s law at a boundary. The second combines the lens surfaces into an ideal change of ray slope at one plane. They answer different questions: the refractive indices in the first experiment do not recalculate the focal length in the second.
Measure refraction from the normal
At an interface between indices n₁ and n₂, define both angles from the surface normal, the perpendicular to the interface:
With n₁ = 1, n₂ = 1.5 and θ₁ = 30°, the refracted angle is about 19.471°: the ray bends toward the normal. Interchanging the media bends it away. For incidence from the higher-index medium, sufficiently oblique rays have no propagating refracted solution: total internal reflection occurs. A critical angle exists when n₁ is greater than n₂, with sin θc = n₂/n₁.
Use the controls to test a prediction
Angles are measured from the dashed surface normal. The indices describe two transparent media; absorption and polarisation are omitted.
Refracted angle: 19.471° from the normal.
Below the critical angle, a reflected component can also exist; its strength is not drawn. This interface experiment does not set the focal length of the separate thin-lens experiment below.
A positive thin lens in air represents the combined paraxial effect of its surfaces. Choose a preset, then change screen position independently from object distance.
Real, inverted image.
- Image distance v
- 75.000 mm
- Signed magnification
- -0.500
- Geometric spot diameter at screen
- 0.000 mm
The screen measures a ray-bundle footprint, including in the virtual-image case; it does not turn a virtual image into a projected picture. Numbers retain the full solution beyond the plotting window. Diffraction, aberrations, lens thickness and vignetting are omitted.
Try these comparisons in order:
- In the interface experiment, keep both indices equal and change incidence. The ray continues straight. Restore 1 → 1.5 and watch it turn toward the normal.
- Choose 1.5 → 1 and incidence 50°. The result is total internal reflection, rather than an invalid refracted angle.
- In the lens experiment, choose Object at 2f. The image is real, inverted and equal in height to the object. Its distance is also 2f.
- Move only Screen position. The lens’s image position stays fixed while the screen receives a wider spot. Reduce aperture diameter: the geometric spot shrinks, but the conjugate image position still does not move.
- Choose Object inside f, then Object at f. The first gives a virtual, upright image; the second gives parallel output rays with no finite image plane.
The thin-lens contract
Use positive object distance u, positive converging focal length f, and signed image distance v. A positive v is behind the lens on the transmitted side; a negative v lies on the object side and identifies a virtual image.
For f = 50 mm and u = 150 mm, v = 75 mm and m = −0.5. A 5 mm object has a −2.5 mm image. With u = 25 mm instead, v = −50 mm and m = +2: outgoing rays diverge, while their backward extensions meet at a virtual image. Placing a screen there does not project that image because the transmitted rays do not travel backward.
At u = f, the denominator vanishes. The program reports infinity explicitly; it does not substitute a large finite distance or draw a false image arrow. Solutions outside the drawing window remain available in the numerical outputs.
Rays and the screen must agree
For a ray reaching the thin lens at height y, let q be its paraxial slope before the lens and q′ its slope afterward. For aperture diameter A and a screen distance s behind the lens:
Each drawn ray starts at the same object point. Its incoming slope is therefore (y − h)/u; its outgoing slope follows the displayed rule. At a real image plane s = v, the rays meet and c = 0 in this ideal model. At u = f their slopes are equal, and a finite screen receives a bundle as wide as the aperture.
Solid ray paths stop at the screen. Dashed forward extensions show the unobstructed construction beyond it; they do not imply that light passes through an opaque screen. Moving the screen changes where the bundle is intercepted, while the lens’s conjugate image position stays fixed. A dashed blue image marker is a construction, either virtual or beyond the screen.
What this lab does not measure
The lens symbol is a thin-element model, not a tracing through two curved surfaces. The paraxial equations describe rays near the axis at small angles; large-angle settings illustrate the algebraic model rather than validate a physical lens. Ray heights are expanded four times in the construction for readability, so drawn angles are not surface-refraction measurements.
A zero geometric spot is not a zero physical point-spread function. The lab omits diffraction, aberrations, dispersion, absorption and pupil clipping. Defocus, aperture-shaped bokeh, field curvature and longitudinal chromatic aberration explore different departures from this ideal focus construction.
References
- Edmund Optics — Understanding Optical Lens Geometries: Snell’s law, normal-angle convention, and focal-length/principal-plane terminology.
- Edmund Optics — Paraxial Ray Tracing Calculations: the small-angle ray model and its relation to surface-by-surface tracing.
- Carnegie Mellon University — Computer Vision, image formation lecture: thin-lens conjugates, magnification, aperture and the geometric defocus footprint. The numerical examples here are calculated from the stated equations.