Average rate of change and the derivative at a point

The average rate of change is the slope of the line joining the two ends of an interval1. We compute it for f(x)=x2f(x) = x^2 on the interval [1,2][1, 2].

f(2)f(1)21=411=3\frac{f(2) - f(1)}{2 - 1} = \frac{4 - 1}{1} = 3

That 33 is precisely the slope of the line through the two points (1,1)(1, 1) and (2,4)(2, 4), the secant. That line is y=3x2y = 3x - 2.

Shrinking the interval

What happens to the slope of the secant as the right end of the interval approaches 11? We compute the average rate of change over [1,1+h][1, 1 + h].

f(1+h)f(1)h=(1+2h+h2)1h=2+h\frac{f(1 + h) - f(1)}{h} = \frac{(1 + 2h + h^2) - 1}{h} = 2 + h
hhAverage rate of change 2+h2 + h
1133
0.10.12.12.1
0.010.012.012.01
0\to 02\to 2

The derivative at a point

The value of that limit is the derivative at x=1x = 1, written f(1)f'(1).

f(1)=limh0f(1+h)f(1)h=2f'(1) = \lim_{h \to 0} \frac{f(1 + h) - f(1)}{h} = 2

The derivative at a point is the slope of the tangent there. The line through (1,1)(1, 1) of slope 22 is y=2x1y = 2x - 1, and on the graph it touches the parabola at a single point. A secant crosses at two points; a tangent merely touches.

A quantity of an interval and a quantity of a point

ItemAverage rate of changeDerivative at a point
What it belongs toan intervala point
Geometric meaningthe slope of a secantthe slope of a tangent
Meaning in motionaverage velocityinstantaneous velocity

On to the derivative function

The same computation at a general x=ax = a gives (a+h)2a2h=2a+h\dfrac{(a + h)^2 - a^2}{h} = 2a + h, which approaches 2a2a as h0h \to 0. Collapsing the interval is exactly the operation that produces the derivative.

Since the computation works at every xx, the derivative at a point becomes a function of xx. For f(x)=x2f(x) = x^2 it is f(x)=2xf'(x) = 2x, called the derivative function. Putting x=1x = 1 gives 22 and x=2x = 2 gives 44, matching the way the parabola steepens toward the right.

The parabola on the graph is y=x2y = x^2, the line through the two points is the secant, the line touching the parabola is the tangent, and the large dots are (1,1)(1, 1) and (2,4)(2, 4).

  1. Derivative, Wikipedia