Calculus · The derivative

The derivative as a function

Not a number at one point — a whole new function.

Every slope in one calculation

To find the slope of x^2 at 3, then at 0, then at -3, you could work out three separate limits. But there is a way to pay for just one limit and get the slope at every point you will ever pick — in advance, for good.

Precalculus defined the derivative at a single point: the limit of the difference quotient as the gap closes. That gives one number for one place. The step that begins calculus is to stop asking about one place and let the point itself vary — and what falls out is not a number but a function.

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

Above is f, below is f'. Wherever the upper curve flattens for an instant — just before it turns — the derivative equals zero, so the lower curve crosses the axis there. This is the full translation between the two languages: a height on the lower graph is a slope on the upper one. When the lower is positive the upper rises; when it is negative the upper falls; and when it is zero the upper stands still. Note that these are not two pictures of one function — they are two quite different functions, the second built from the first by measuring the slope at every point and recording it as a height.

Two worked examples

Example 1 — differentiating from the definition

  1. Take f(x) = x^2 and form the difference quotient.
  2. Expand the numerator: (x+h)^2 - x^2 = 2xh + h^2. \frac{2xh + h^2}{h}
  3. Every term carries an h, so the fraction cancels. 2x + h
  4. Now let h \to 0 and the leftover vanishes. f'(x) = 2x

Example 2 — reading the answer back

  1. The result f'(x) = 2x is a rule, not a number.
  2. At x = 3 it returns 6: the parabola climbs six units per unit there.
  3. At x = 0 it returns 0: the bottom of the parabola is flat.
  4. At x = -3 it returns -6: equally steep, but falling.
The sign of the derivativeWhat the function does
f'(x) > 0Rising
f'(x) < 0Falling
f'(x) = 0Flat for an instant
A calculator: f(x) = x^2 and f'(x) = 2x: a slope becomes a height — sliders for The point a, with results that update at once on a graph.