The derivative: slope at a point

See a derivative as what a slope settles on as the gap shrinks to nothing.

B. CalculusAbout 40 minutes

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.

The amber line runs through your point and a second one a gap h away. Press "Shrink the gap" and watch it settle on the dashed line.
  • 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:

\[ f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h} \]

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.

Drag the point on the curve. The window shows the curve around it, magnified. The blue lines run from the point to a neighbour on each side, and the amber band is the tangent.
  • 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.

\[ \frac{(x + h)^2 - x^2}{h} \]

Multiply out the bracket, being careful with the middle term.

\[ \frac{x^2 + 2xh + h^2 - x^2}{h} \]

The \(x^2\) terms cancel, and that's the key moment.

\[ \frac{2xh + h^2}{h} \]

Now every term has an \(h\), so divide it out. There's no more division by zero.

\[ 2x + h \]

Let \(h\) shrink to nothing. That's the slope of \(x^2\) at any \(x\).

\[ f'(x) = 2x \]

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\).

Learn more

An unhandled error has occurred. Reload ๐Ÿ—™