# Assignment 1, Part 1: Pre-lab questions

20.309: Biological Instrumentation and Measurement

This is Part 1 of Assignment 1.

It starts with useful reading on the concepts of light and lenses, and ends with problems that you will turn in.

## Overview

Light is an extraordinarily complicated, three dimensional, time dependent phenomenon. There are two predominant theoretical models of light: the wave (or classical) theory and the quantum theory. In the wave theory, light is modeled as a time-varying electric and magnetic field. Completely describing a light field requires specifying the intensity, phase, and direction of the electric and magnetic field at every point in space and time. In the quantum model, light is composed of discrete energy packets with probabilistic behavior. Neither model makes it particularly easy to conceptualize how a pair of binoculars or a microscope works. Fortunately, there is a simplified model of light called ray optics that works well in situations where the objects that interact with a light field are much larger than the wavelength of the light. Ray optics (also called geometrical optics) represents a light field as a bunch of arrows that point in the direction of propagation. Rays begin at a source and go straight, until an interaction between light and matter causes a change.

The simplifications of ray optics provide a very good way to understand systems of lenses, mirrors, filters, and illumination sources. In many cases, ray optics can elucidate the function of a complicated optical system with just a few lines, triangles, and simple rules. Of course, the simplicity of ray optics comes at a cost. Ray optics glosses over important details like diffraction. Because the fine details are omitted, ray optics alone does not provide insight into detailed performance characteristics of an optical system like resolution. Diffraction and resolution and optical aberrations (which cause simplifying assumptions fail) are discussed on separate pages.

After reading this page and working out the provided example problems, you should have an introductory understanding of ray optics and be able to trace rays to design and understand the function of optical systems you encounter or desire to build.

|
Wavefronts are shown as blue circles.

## Relationship between light rays and waves

Perhaps the most fundamental solution to Maxwell's equations is the spherical wave, in which light propagates from a point in space uniformly in all directions. It's called a spherical wave because all points at an equal distance from the source — on the surface of a sphere — have the same magnitude electric (and magnetic) field at every point in time. The ray representation of a spherical wave is just a bunch of arrows with their tails on the source and their heads pointing outward, as shown in figure Figure 1. (Most ray diagrams present a two-dimensional slice of space.) Since the source is isotropic, it's okay draw a ray in pretty much any direction you feel like. In most cases, certain rays are more helpful for understanding a system than others.

|
Wavefronts in blue; rays are dotted black arrows.

Another fundamental solution to Maxwell's equation is the plane wave. In plane waves, the electric field has the same magnitude in all planes perpendicular to the direction of propagation. Conceptually, a plane wave propagating in the z direction is generated by an infinite number of identical, in-phase point sources uniformly distributed in a plane at $z=-\infty$. Wavefront and ray representations of the plane wave are shown in Figure 2. Plane waves are a useful model for some circumstances, but real plane waves cannot be generated because of their infinite extent (which means a real plane wave would require an infinite amount of power).

Complicated sources such as a luminous object can be modeled as a summation of many point sources.

## Interactions between light and matter

A light ray encountering an object

When a ray encounters an object, it may be:

• Reflected
• Refracted (the light is bent by the material properties of the object)
• Absorbed (often turned into thermal energy)
• Transmitted
• Scattered in a random direction
• Or some combination of the above

## Reflection and refraction

The law of reflection and Snell's law of refraction

When light reflects, the angle of the reflected ray is equal to the angle of the incident ray: $\theta_r=\theta_i$. Both angles are measured relative to a vector normal to the surface. Incident and reflected rays are in the same plane.

Light incident at an interface between two media will be partly reflected back into the first medium and partly transmitted to the second medium. The speed of light will be different in the two media based on their material properties. The index of refraction $n$ for each material is defined as the ratio of the speed of light in vacuum, $c$, by the speed of light in the medium $v$. More succinctly, $n = c / v$. When the light changes speed in the second medium, its direction of propagation also changes. This phenomenon is known as refraction. The transmitted light propagates at an angle described by Snell's law:

$n_i\ \sin \theta_i = n_t\ \sin \theta_t$

with θ the angle measured from the normal of the boundary, $n$ the refractive index of the medium (which has no units), and the subscripts $i$ and $t$ referring to the incident and transmitted light, respectively.

Note that Snell's law implies that light passing from a medium of lower index to a higher index of refraction ($n_t > n_i$) bends toward the surface normal ($\theta_t < \theta_i$), whereas light traveling from a higher index to a lower index of refraction bends away from the normal. Remember, a higher index means a lower velocity of light in the medium.

## Spherical lenses and image formation

### Refraction at a spherical boundary

Lenses are one of the most common components of optical instruments. There are many types of lenses, but the most common ones are spherical lenses, which have curved surfaces. To better understand how they manipulate light, let's consider what happens to light at a spherical boundary.

The figure below demonstrates how light rays from a point on an object (the light bulb) can focus to a point after passing through a spherical boundary. The depicted angles and defined lengths can be used to calculate where the light will focus. Even though we only pick a few rays to look at, remember that each point on the object acts as a point source where there are light rays emanating from them in all directions.

Using Gaussian optics assumptions defined below, the light rays emanating from one point on an object will converge to one point on the image plane. The image distance does not depend on the angles a1, a2 and a3, assuming that the angles are small.

#### Gaussian optics assumptions

As we begin to deal with multiple boundaries, it can become complicated to solve many geometric equations to find where the image will form. In order to make more tractable calculations for us to use when designing our optical systems, we rely on a few first-order, or Gaussian optics, approximations:

• Paraxial (or small-angle) approximation:
Assumes that light rays make a small angle with the principal axis (a straight line perpendicular to the center of the curved surface, also called the optical axis)
$\theta \approx \sin\ \theta \approx \tan\ \theta$
$\cos\ \theta \approx 1$
(These relations are obtained from the first-order terms of the polynomial expansions of $\sin \theta = \theta - {\theta^3 \over {3!}} + {\theta^5 \over {5!}} - ...$ and $\cos \theta = 1 - {\theta^2 \over {2!}} + {\theta^4 \over {4!}} - ...$ and are accurate to 1% if $\theta < 10^o$.)
• Thin-lens approximation:
$R << S_o,\ S_i$
with $R$ defined as the radius of curvature of the lens, $S_o$ as the distance between the lens and the object, and $S_i$ the distance between the lens and the image.
• These paraxial and thin-lens engineering approximations simplify most optical systems by enabling the use of a short set of ray tracing rules for spherical lenses. These rules reduce many optics problems to more intuitive geometry problems.
• More on thick lenses can be found in the book 'Optics' by Eugene Hecht (Addison-Wesley​, 2002, ISBN 0805385665).

#### Object and image positions

Now, with our Gaussian optics assumptions, we can use Snell's law to predict the image position of an object, formed by a spherical interface (refer to light bulb image above):

$n\ \sin \theta_1 = n'\ \sin \theta_2$
$\sin \theta_1 \approx \sin a + \sin b \approx {h \over S_o} + {h \over R}$
$\sin \theta_2 \approx \sin b - \sin c \approx {h \over R} - {h \over S_i}$
${n \over S_o} + {n' \over S_i} = {(n'\ - n)\over R}$

Note that equation does not depend on angle a!

Massaging this equation gives three possible relationships between $S_i$ and $S_o$:

There's no need to memorize these relationships; they just serve to show the different behaviors of light as it passes through the spherical boundary. We will see these behaviors again when we look at lenses having two spherical boundaries in the next section.
a) Light converges

$S_o > {n\ R \over (n'\ - n)}\ \Rightarrow S_i > 0$ ,

b) Light is collimated

$S_o = {n\ R \over (n'\ - n)}\ \Rightarrow S_i \to + \infty$,

c) Light diverges

$S_o < {n\ R \over (n'\ - n)}\ \Rightarrow S_i < 0$

Note the sign convention is that if $S_i < 0$, the light diverges, and a virtual image is formed at a distance $|S_i|$ in front of the lens, on the same side of the lens as the light source (virtual images will be discussed more in a following section).

### Lenses

Let's put two spherical interfaces together to make a spherical lens. Each lens consists of two spherical interfaces with radii of curvature $R_1$ and $R_2$. Its focal length $f$ is where the image is formed when an object is at infinity.

#### Types of spherical lenses

A practical note: to minimize spherical aberrations, the general rule is to position the curved side of the lens toward the collimated/straight light.

#### Lens maker's formula

Using the equation we derived earlier to find the image position after light passes through one spherical boundary, we can apply the formula twice--once for each spherical boundary of a simple lens, to calculate where the image will form after light passes through the entire lens. If we maintain our thin lens approximation, and take the image from the first refraction as the object for the second one, we can derive the lens maker's formula:

An example of light passing through a biconvex lens

The lens maker's formula

This formula shows us that the focal length of the lens is a characteristic of the lens, based on its radii of curvature and relevant indices of refraction.

## Ray tracing

Based on what we've learned about how light is redirected when passing through lenses, we can come up with a set of rules to simplify our analysis of optical systems. With the technique of ray tracing, we can figure out where images are formed, whether they're upside down, magnified, etc.

### Principles

 Rule 1: Rays passing through the center of a lens are unaffected by the lens. Rule2 : Rays that are parallel to the optical axis pass before hitting a lens pass through the focal point after the lens and vice versa. Rule 3: Parallel rays (any angle to optical axis) pass through the same point in the focal plane after refraction and vice versa

### Image formation with a lens

When an object gives off its own light (like a light bulb) or is illuminated, we can imagine that the object is made up of many point sources, where each point on the object is emitting or scattering light in all directions. After refraction, all the rays from a single point in the object plane reach the same location in the image plane, forming an image. The image can be either real or virtual. A real image is one that can be seen if you put a screen on the image plane. A virtual image cannot be seen if a screen is at the image plane since there is no place the rays actually come together; it needs another lens (such as your eye) in order to view it. More examples of real and virtual images are described in a following section.

Let's look at a ray tracing example of a single lens producing a real, inverted image:

 Step 1: Pick a ray that you know how to trace (here we pick a point at the top of the object and use Rule 1)
 Step 2: Pick more rays emanating from the same point that you can trace based on our rules (here we use Rule 2). See where they converge to form an image
 Step 3: Pick rays from a different point on the object (this time we pick a point on the bottom and use Rule 1 again).
 Step 4: For completeness, let's look at more rays emanating from the second point we picked to see where they converge. Here, we use Rule 3.

Exercise for the reader: Can you use ray tracing to demonstrate the lens equation geometrically? You'll probably need to use similar triangles. Remember, that the lens equation is the relationship between the focal length of the lens, the object distance, and the image distance:${1 \over S_o} + {1 \over S_i} = {1\over f}$

Using this relationship, you can see why light going through a converging lens can produce three different results (this is similar to what we saw earlier for light passing through a spherical boundary). Whether the light converges, diverges, or is collimated depends on where the object is relative to the focal length of the lens:

## Optics Problems

### 1. Snell's law:

In the diagram below, an observer at height $S$ above the surface of the water looks straight down at a turtle swimming in a pool. The turtle has length $L$, height $H$, and swims at depth $D$.

 Use ray tracing and Snell's law to locate the image of the turtle. Show your work. Is the image real or virtual? Is the image of the turtle deeper, shallower, or the same depth as its true depth, $D$? Is the image of the turtle longer, shorter, or the same length as its true length, $L$? Is the image of the turtle taller, squatter, or the same height as its true height, $H$?

### 2. Ray tracing with thin, ideal lenses:

Lenses L1 and L2 have focal lengths of f1 = 1 cm and f2 = 2 cm. The distance between the two lenses is 7 cm. Assume that the lenses are thin. The diagram is drawn to scale. (The gridlines are spaced at 0.5 cm.) Note: Feel free to print out this diagram so you can trace the rays directly onto it. Or maybe use one of those fancy tablet thingies that the kids seem to like so much these days.

 Use ray tracing to determine the location of the image. Indicate the location on the diagram. Is the image upright or inverted? Is the image real or virtual? What is the magnification of this system? OPTIONAL: Lens L1 is made of BK7 glass with a refractive index n1 of 1.5. Lens L2 is made of fluorite glass with a refractive index n2 of 1.4. Compute the focal lengths of L1 and L2 if they are submerged in microscope oil (refractive index no = 1.5).

### 3. Measuring focal lengths (hint: this will be really useful later):

In the two-lens system shown in the figure below, the rectangle on the left represents an unspecified lens L1 of focal length $f_1$ separated by 0.5 cm from another lens L2 with focal length $f_2$ of 1 cm.

 Find the value of $f_1$ such that all the rays incident parallel on this system will be focused at the observation plane, located at a distance d of 2 cm away from L2.

### 4. Relay lens system:

Your friend is building an endoscope, where she wants to faithfully extend an image across a long distance. She proposes a system composed of two convex lenses having the same focal length (f) shown below.

 Trace the rays to check her work and see where the image is formed. Is the final image the same orientation as the original image, or is it inverted? Use the lens equation to find the distance between the final image and the one she started with.

### 5. Compound microscope:

There is a cool bacterium you want to study in closer detail so you want to build a microscope to see it. You are told that you can build a microscope by placing two positive lenses (having focal lengths $f_1$ and $f_2$) at a separation distance equal to the sum of their focal lengths as shown below.

 Trace the rays to show how your microscope works and where the image is formed. Is the image real or virtual? upright or inverted? Note that this time the object is on the right and the image will form at the left. Calculate how much magnification you get from this optical system. Will your microscope still work if we change the distance between the lenses? Does changing the distance between the lenses affect the amount of magnification you achieve?