Main content

## Pixar in a Box

### Course: Pixar in a Box > Unit 6

Lesson 2: Mathematics of depth of field# Simple lens law

In this video we'll explore the algebra of light rays which are in focus.

## Want to join the conversation?

- I don't understand the simple lens law(7 votes)
- Howdy,

So this is useful, and we have been looking*intuitively*about how you move an object closer to the lens, then the projection will be closer, and the opposite is true for an object farther away, is that correct?

Well, is there a mathematical equation that can help us solve for the distance that*i_ will be; aka the i that is the distance from the pinhole to where the image will be projected. How can we find the _exact*distance to it, thanks! :-)(6 votes) - I have NO idea what this means(5 votes)
- Why would you use simple lens laws?(3 votes)
- why is this an advanced math lesson?(3 votes)
- To easy for me about mathematics 10 !)11”13(3 votes)
- ay why you do this to me my iq is 00000000.12(2 votes)
- bro this is an hole advanced math equation(1 vote)
- why was the pun neccessary(1 vote)

## Video transcript

(metal clanking)
(ball thudding) (bell dings) - Great work! Now that you know what's going
on to make a sharp image, let's calculate exactly where the point of sharp focus is. We know the point where the medial and parallel rays intersect. Again, let's put the origin
of our coordinate system at the center of the lens. And let the point to be focused have coordinates X zero and Y zero. The medial ray passes through the origin and the point X zero Y zero. So the line equation for it is just Y equals Y zero
divided by X zero times X. The parallel ray passes
through two points we know. The point on the lens it
hits, which is at zero Y zero, and the focal point of the
lens, which is at minus F zero. It has a slope Y zero over F, and a Y-intercept at Y zero. So the equation of this line is Y equals Y zero over F times X plus Y zero. To intersect these lines we set these equations
equal to one another. We have Y zero over X zero times X equals Y zero over F times X plus Y zero. Then we divide through by Y zero to give one over X zero times X equals one over F times X plus one. And now let's divide through by X, which give us one over X zero equals one over F, plus one over X. Notice the X in this
equation is the X coordinate where the lines intersect. According to our diagram this
happens when X equals minus I. Our diagram also tells us that X zero is equal to the object distance, O. So we have one over O equals
one over F minus one over I, which we usually rewrite as one over O plus one over I equals one over F. Ta-da! This is called the simple lens law. It says that an object at
distance O from the lens, with focal length F, comes into focus at distance I. In the next exercise we'll test your
understanding of this idea.