Lesson 3 of 20 · about 16 min
The derivative
Shrink the time gap to zero, in the limit sense, and the average speed becomes the speed at one instant. That's the derivative, the slope of the curve at a single point. You'll watch a secant line turn into a tangent, trace out the speed of the Big Drop rider at every moment, and write the code behind the ride's speed display, including the trap of making the gap too small.
🧭 What you need first: Limits
The manager wants a big screen at the bottom of the Big Drop showing each rider’s top speed, like a radar gun. Lesson 2 found the speed at : the average speed from 1 to approaches 9.8 m/s as .
That number has a name: the derivative of at , written . In 1665–66, a young Isaac Newton developed the idea (he called it a “fluxion”) to describe moving planets; around 1675, Gottfried Leibniz invented it independently and gave it the notation we still use. Their two methods became calculus, and the derivative is its first great idea.
Today you’ll see the derivative two ways, as a speed and as a slope, and then write the speed display.
Another way: zoom in on a curve
Take any smooth curve and zoom in on one point, more and more. The curve looks less and less curved, until it looks like a straight line. The slope of that line is the derivative there. Calculus works because smooth curves are “locally straight”.
From secant to tangent
The green dashed line is the tangent at . Shrink the gap and watch the purple secant swing onto it.
🎯 1/2: At a = 1, shrink h to 0.01 or less. What slope does the secant settle on?
Slide the start a and the gap h. The purple line joins the two orange points; its slope is the average rate of change between them.
h(t) = 12 − 4.9t²
from 1 to 1.5: Δ = −6.125 over 0.5
average rate = −6.125 ÷ 0.5 = −12.25 m/s
Green dashed: the tangent at a, slope −9.8 m/s. Shrink h and the purple line closes in on it.
The rider is at −4.9 m/s at t = 0.5 and −9.8 m/s at t = 1. What do you predict at t = 1.5?
Trace the speed at every moment
🎯 1/2: Slide t across the whole ride to trace the rider's rate of change of height.
Slide x. Top: h(t) = 12 − 4.9t² with its tangent line (green). Bottom: each tangent's slope, plotted as a dot. Sweep across to draw the derivative.
t = 0: f = 12, slope of tangent = 0
Traced 0% of the range. Sweep further to reveal the whole derivative.
The dots fall on a straight line through the origin: . A curving graph of height has a straight-line graph of speed.
The real words
-
The Derivative of at :
if that limit exists. It’s the instantaneous rate of change, measured in (units of ) per (units of ).
-
Leibniz notation: or , read “dy by dx”: a tiny change in over a tiny change in . For time, physicists often write .
-
The Tangent line at passes through with slope :
-
Working out the Big Drop’s derivative from the definition:
Divide by : . As this approaches . So for every .
-
The derivative function gives the slope at every . Where rises, ; where it falls, ; at a flat peak or valley, .
-
Not every function has a derivative everywhere: has a sharp corner at 0, where the slopes from the left (−1) and right (1) disagree.
A numerical derivative
When you only have code for , not a formula for , you can estimate the derivative with a small .
Write forward(f, x, h) = (f(x + h) − f(x)) / h and central(f, x, h) = (f(x + h) − f(x − h)) / (2h). Then error(method, h): how far method(drop, 1, h) is from the true value −9.8 (absolute value). The Big Drop's height function drop(t) is included.
With , and agree in almost all of their 16 significant digits, so their difference is mostly rounding noise. Numerical programmers pick around to for this reason.
The speed display
Write speed_kmh(t): the rider's speed at time t in km/h, using central(drop, t, 1e-5), its absolute value, times 3.6 (1 m/s = 3.6 km/h). Then splash_time(): when the rider reaches height 0, which is √(12 / 4.9). And top_speed(): the speed in km/h at splash_time().
About 55 km/h after falling 12 m, if nothing slowed the rider. Real drop slides are a little slower because of water and air friction, which is why the engineers will later measure the real ride and fit a better model.
f′(3) = −2. What does that tell you?
Got it?
Finish the lesson to color it in on your map and collect its concept cards.
Did this lesson click?