Definition · The derivative at a pointThe derivative of f at a is the number the difference quotients (f(a + h) − f(a))/h approach as h → 0. It is written f′(a).
The tangent line to the graph of f at a is the line through (a, f(a)) with slope f′(a): y = f(a) + f′(a)·(t − a).
Take f(t) = t² and a = 2. The quotient is ((2 + h)² − 4)/h = 4 + h, so the derivative is f′(2) = 4, the constant term. The point on the graph is (2, 4), and the tangent line is y = 4 + 4·(t − 2), which simplifies to y = 4t − 4.
Using the line to estimate
Move a tenth to the right, to t = 21/10. The line gives 4·(21/10) − 4 = 22/5, which is 440/100. The function gives (21/10)² = 441/100. The estimate is short by 1/100.
f(t) = t², a = 2, h = 1/10
f(2) = 4 f′(2) = 4
line at 21/10: 4 + 4·(1/10) = 22/5 = 440/100
function at 21/10: 441/100
error: 1/100
The error is exactly 1/100, which is h². That is no accident for this function. The function at a + h is 4 + 4h + h² and the line is 4 + 4h, so the difference is the h² term that the line leaves out. Halve the step to 1/20 and the error is 1/400: a quarter of it, not a half. The estimate gets better faster than the step gets smaller.
Example · A cube at 1For f(t) = t³ at a = 1 the quotient is 3 + 3h + h², so f′(1) = 3 and the tangent line is y = 1 + 3·(t − 1) = 3t − 2.
At h = 1/10 the line gives 13/10 and the function gives 1331/1000. The error is 31/1000, which is 3h² + h³: the terms of the expansion that the line leaves out.
Example · A function that is not a polynomialFor f(t) = 1/t at a = 1 the lab reports a slope of −1, which the next lesson derives. The tangent line is y = 1 − (t − 1) = −t + 2.
At h = 1/2 the line gives 1/2 and the function gives 2/3, so the error is 1/6. The line is too low here because 1/t bends upward away from its tangent.
Touching is the wrong picture
A tangent is often described as a line that touches the graph at one point. That is true of a circle and misleading here. The tangent line to t² at 2 meets the parabola at (2, 4) and nowhere else, but that is not what defines it. It is defined by the slope, and its usefulness is in the nearby values it estimates: 22/5 against 441/100, off by 1/100, at a point a tenth of a unit away.
The error is always printed exactly in the lab, and for a polynomial it is made of the terms of f(a + h) that contain h² or more. That is why the estimate improves faster than the step shrinks, and it is the whole reason a derivative is useful.