A speedometer shows your speed right now. But speed is distance divided by time, and in a single instant you travel no distance in no time. That gives \(\frac{0}{0}\). Calculus starts from how to make sense of this.
- Press "Shrink the gap", and watch the amber slope in the readout.
- Drag the point somewhere else and do it again.
- Try \(\sin x\), and find where the slope is zero.
The idea
You can't find the slope at one point, because a slope needs two points. So take a second point a small gap \(h\) away, and see what the slope settles on as the gap shrinks towards nothing. That value is the derivative:
The \(\lim_{h\to 0}\) means: what does this get closer and closer to as \(h\) gets closer and closer to 0? We never actually divide by zero.
There's a second way to picture the same limit. Zoom in on a smooth curve and it looks straighter and straighter, until the piece in view can't be told from a straight line. The slope of that line is the derivative.
- Press "Zoom in" on \(x^2\) at \(x = 1\). The two blue slopes start far apart. What number do they close on?
- Drag the point to the bottom of the curve and zoom in again. What's the slope of a flat piece?
- Switch to \(|x|\), which is \(x\) with its sign dropped, so its graph is a V. The point starts on the corner. Zoom in. Does it ever straighten?
Working it out for \(x^2\)
Put \(f(x) = x^2\) into the definition.
Multiply out the bracket, being careful with the middle term.
The \(x^2\) terms cancel, and that's the key moment.
Now every term has an \(h\), so divide it out. There's no more division by zero.
Let \(h\) shrink to nothing. That's the slope of \(x^2\) at any \(x\).
Check it with the visualisation: at \(x = 1\) the slope should be 2, and the readout says it is.
If \(f(t)\) is your position at time \(t\), then \(f'(t)\) is your velocity. Newton invented calculus largely to answer this question about motion, and every law of motion is written with derivatives.
Problems
What's the slope of \(x^2\) at \(x = -1\)? What does its sign tell you?
Answer
\(2 \times (-1) = -2\). Negative means the curve is falling there.
Use the definition to find the derivative of \(3x^2\).
Answer
\(\frac{3(x + h)^2 - 3x^2}{h} = \frac{6xh + 3h^2}{h} = 6x + 3h\), which goes to \(6x\).
Use the definition to find the derivative of \(x^3\), and its slope at \(x = 2\).
Answer
\((x + h)^3 = x^3 + 3x^2h + 3xh^2 + h^3\). After cancelling and dividing by \(h\): \(3x^2 + 3xh + h^2\), which goes to \(3x^2\). At \(x = 2\) the slope is 12.
A ball's position is \(s = t^2\). Find its average velocity from \(t = 1\) to \(t = 1.1\), and its velocity at exactly \(t = 1\).
Answer
Average: \(\frac{1.21 - 1}{0.1} = 2.1\). Exact: \(2t = 2\).