Lesson 2 of 20 · about 15 min
Limits
The Big Drop's speed display has to show the speed at one instant, but "distance moved in zero time, divided by zero time" is 0 ÷ 0. The way out is to ask what the numbers get close to as the time gap shrinks. That's a limit. You'll walk up to tricky points from both sides, find values a formula can't reach directly, and spot limits that don't exist at all.
🧭 What you need first: Rates of change
The Big Drop’s display should show the rider’s speed at each moment. Your average-speed code from lesson 1 measures the drop between and :
To get the speed at , you’d set the gap to 0. But then the top is and the bottom is 0: the program crashes with a division by zero. The question isn’t silly, though. As the gap gets smaller and smaller, the average speed clearly settles on something.
Ancient Greek philosophers argued about exactly this. Zeno said that at any single instant a flying arrow covers no distance, so how can it be moving? It took until the 1800s for mathematicians (Cauchy, then Weierstrass) to give a precise answer: don’t plug in zero, ask what the values approach. That’s a limit.
Another way: walking toward a wall
Walk halfway to a wall, then half the remaining distance, then half again. You never touch the wall, but there’s no doubt where you’re heading: the distance shrinks toward 0. A limit is “where you’re heading”, which can be perfectly clear even if you never arrive.
Sneak up on the answer
Here is , the average speed (as a rate of height change) from to . At it’s undefined: there’s a hole in the graph. Walk toward 0 and watch the table.
🎯 1/2: Get within 0.001 of k = 0 from the LEFT and from the RIGHT.
q(k) = (h(1 + k) − h(1)) / k. Walk toward x = 0 from one side, closer and closer, and watch the values. Then try the other side.
| x | f(x) |
|---|
f(x) is −1 for x below 0 and 1 for x from 0 up. What is the limit as x → 0?
When the sides disagree
🎯 1/2: Approach 0 from both sides, within 0.001.
f(x) = −1 for x < 0, 1 for x ≥ 0. Walk toward x = 0 from one side, closer and closer, and watch the values. Then try the other side.
| x | f(x) |
|---|
A famous one
is 0 ÷ 0 at too. It matters for the derivative of sine in lesson 7.
🎯 1/1: Find the limit of sin(x)/x as x → 0 (x in radians).
f(x) = sin(x)/x. Walk toward x = 0 from one side, closer and closer, and watch the values. Then try the other side.
| x | f(x) |
|---|
The real words
-
The Limit:
means you can make as close to as you like by taking close enough to , with . The precise “epsilon–delta” version of this sentence was written down by Weierstrass in the 1800s.
-
What happens at is irrelevant: is undefined, yet . Algebra shows why: , so for every , which heads to .
-
One-sided limits: uses only ; uses only . The two-sided limit exists exactly when both exist and are equal.
-
How limits fail:
- a jump: the sides approach different values;
- blowing up: near 0 grows without bound (we write , but there’s no finite limit);
- wild wiggling: swings between −1 and 1 infinitely often near 0 and never settles.
-
A function is continuous at when there’s no surprise: . Polynomials, , and are continuous everywhere, so for them you can just plug in.
-
Limits at infinity: the pool’s volume approaches 450 as without ever quite reaching it.
Limits by table
Write table(f, c, side): a list of f(c + side × 10⁻ⁿ) for n = 1, 2, …, 6, where side is −1 (from the left) or 1 (from the right). Then q(k) = (h(1 + k) − h(1)) / k for the Big Drop (h is included).
A limit detector
Write guess_limit(f, c): take the last values of table(f, c, −1) and table(f, c, 1) (your table is included). If they're within 1e-4 of each other, return their average rounded to 4 decimal places; otherwise return None (the sides disagree, or the values haven't settled).
A table can fool you: happens to look settled at some sample points and not others. That’s why mathematicians prove limits with algebra, and why your detector says “guess”. Still, this is exactly the kind of check programmers run to catch numerical bugs.
g(x) = (x² − 4)/(x − 2). What is the limit of g(x) as x → 2?
Got it?
Finish the lesson to color it in on your map and collect its concept cards.
Did this lesson click?