Find the slope of this curve at the dot.
No, really. Try.
You can’t. Not with the rise-over-run trick you learned at twelve: that needs two points, and there’s only one. The curve has a slope at the dot (your eye believes it; the dot is climbing) but the tool you have for measuring slope refuses to apply.
This is the whole problem. The rest of the lesson is one trick for getting around it. The trick starts with cheating.
Push h to zero. Watch what happens.
Same widget, slightly different. Now there are two points: on the curve, and a second point a distance away. The line through them has a slope you can measure: rise over run, same as ever. Drag down.
Slide all the way to . The two points land on each other. The line collapses. The slope readout breaks.
That’s the wall. We can’t actually put both points on the same spot; that’s , which is undefined and a little rude. But notice what happens just before the wall: the slope readout settles on a number. It’s heading somewhere specific.
We’re going to live in that just before.
Name what you just did
That line you were dragging through two points on a curve: pick a fancy word for it. It’s called a secant line. Its slope, for a function at a point , looks like:
That’s just rise over run. The rise is “how much changed” between and . The run is . Nothing new, only a name for the move you’ve been making with your finger.
The trick is what we do with next.
Shrink the gap
is at on . Drag down toward zero. The secant line gets shorter and shorter. Its slope settles.
What number does the slope settle on?
That's the derivative.
You just found the slope of at the single point . It’s . You found it by limiting: watching where the secant slope was heading as shrank, without ever letting actually land on zero.
The fancy name for “slope of a curve at one point” is the derivative. The trick you used is the definition:
Read it left to right: the derivative of at is what the secant slope approaches as the second point slides into the first. We never actually divide by zero. We watch where things are heading. Limits are the polite name for that move.
Without the slider this time.
You found for by sliding to zero.
If you redid the trick at , you’d get . At , you’d get . There’s a pattern, and you can probably already see it.
What is for ? No widget this time, just the pattern.
The derivative is a function.
This is the moment it stops being about one slope at one point and becomes the engine of calculus.
The derivative isn’t a number. It’s a function, a new function that hands you back the slope at any you ask. For , the derivative function is . For , the derivative function is something you’re about to discover.
Drag the dot. The coral line is the tangent. The readout shows the slope wherever you are.
drag the dot · or tab + arrow keys
What’s the slope doing as you sweep across? Climbing where the sine is climbing, zero at the peaks and troughs, going negative on the way down. The curve the slope traces is . Sine and cosine hand off to each other through differentiation. This is the kind of identity that makes physicists cry tears of joy. Welcome to the club.
Try the same trick on a cubic
The limit trick does not care which curve you point it at.
For , drag the secant near and watch where the slope heads. You do not need the full power rule yet. You are pattern-hunting: turned into , so should turn into .
One you haven't seen.
You found for by limit-shrinking. For , the same pattern-hunting move gives .
For , what’s the slope at ?
Lesson complete