What a derivative measures when you zoom in
What does the number f′(a) tell you about the graph of f?
Zoom in on the graph around the point (a, f(a)), with the same scale on both axes. When the graph straightens into a line that is not vertical, the slope of that line is f′(a). Stage 1 asks you which points straighten; the rest of the page turns the picture into a limit, an approximation and a proof.
Before you start · 3 quick checks on slopes, function values and |x|, about 2 min
Let \(f\) be defined on an open interval that contains \(a\). For \(h \ne 0\), the difference quotient
\[ \frac{f(a+h) - f(a)}{h} \]is the slope of the chord from \((a, f(a))\) to \((a + h, f(a + h))\). The function \(f\) is differentiable at \(a\) when the limit
\[ f'(a) = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h} \]exists and is a real number. The one-sided derivatives use only \(h \gt 0\):
\[ f'_+(a) = \lim_{h \to 0^+} \frac{f(a+h) - f(a)}{h}, \] \[ f'_-(a) = \lim_{h \to 0^+} \frac{f(a) - f(a-h)}{h}, \]when these limits exist. \(f'(a)\) exists exactly when both one-sided derivatives exist, are real numbers, and are equal.
Why the zoom keeps the same scale on both axes
The zoom in stage 1 shows the window \(a - h \le x \le a + h\), and the vertical range is chosen so that one unit up is as long on the screen as one unit across. Then a slope of 1 looks like 45°, and every chord slope you see is the true one. Stretching one axis more than the other would change every slope in the picture.
The left chord goes from \((a - h, f(a - h))\) to \((a, f(a))\), with slope \(\dfrac{f(a) - f(a-h)}{h}\); the right chord goes to \((a + h, f(a + h))\), with slope \(\dfrac{f(a+h) - f(a)}{h}\). Zooming in by a factor of 10 divides \(h\) by 10.
Zoom in on a point you choose
Choose a function and move the point along its graph: drag it, click on the graph, or focus the point and use the arrow keys. Then say what the graph will look like when the page zooms in on that point. After you answer, each press of Zoom in divides the window's half-width \(h\) by 10, and the table lists the slopes of the two chords from the point to the edges of the window.
| Half-width \(h\) | Left chord slope \(\frac{f(a) - f(a-h)}{h}\) | Right chord slope \(\frac{f(a+h) - f(a)}{h}\) | Change in direction between the chords |
|---|
Four zoom levels only suggest what happens. Whether \(f'(a)\) exists is decided by the limit as \(h \to 0\), as in the definition on the Start tab.
The best straight-line approximation
Near a point where \(f\) has a derivative, the tangent line \(L(x) = f(a) + f'(a)(x - a)\) gives the linear approximation \(f(a + h) \approx f(a) + f'(a)h\). Its error is \(E(h) = f(a + h) - f(a) - f'(a)h\). How fast does that error shrink?
| \(h\) | \(E(h) = e^h - 1 - h\) | \(E(h)/h\) | \(E(h)/h^2\) |
|---|
Goals: find the slope that hugs the curve
The line through \((a, f(a))\) with slope \(m\) is \(y = f(a) + m(x - a)\). Its error at \(x = a + h\) is \(E(h) = f(a + h) - f(a) - mh\). Move \(m\); the table shows \(E(h)\) and \(E(h)/h\) for six values of \(h\).
| \(h\) | \(E(h)\) | \(E(h)/h\) |
|---|
Continuity and derivatives
A derivative forces continuity
Warm-up: the slope of \(x^2\)
Claim. For \(f(x) = x^2\), \(f'(a) = 2a\) for every real \(a\). Build the computation from the difference quotient \(\dfrac{(a+h)^2 - a^2}{h}\), one step at a time.
Let \(f\) be a function defined for every real number, and let \(a\) be a real number. For \(h \ne 0\) write
\[ q(h) = \frac{f(a+h) - f(a)}{h}. \]Assume \(f\) is differentiable at \(a\): \(q(h)\) tends to a real number \(f'(a)\) as \(h \to 0\).
Conclusion. \(f\) is continuous at \(a\): \(f(a + h) \to f(a)\) as \(h \to 0\).
The proof uses the limit laws for sums and products: if \(u(h) \to U\) and \(v(h) \to V\) with \(U\) and \(V\) real, then \(u(h) + v(h) \to U + V\) and \(u(h)\,v(h) \to UV\).
A function can be continuous at \(a\) without a derivative there. \(f(x) = \lvert x\rvert\) is continuous at 0, but its quotient \(\dfrac{\lvert h\rvert}{h}\) is 1 for \(h \gt 0\) and \(-1\) for \(h \lt 0\): the one-sided derivatives are 1 and \(-1\). \(f(x) = \sqrt[3]{x}\) is continuous at 0, but its quotient \(\dfrac{\sqrt[3]{h}}{h} = h^{-2/3}\) grows without bound.
Problems
Each problem has hints and a full solution.
More problems
Further reading
- J. Stewart, Calculus: Early Transcendentals, 8th ed. (Cengage, 2016), sections 2.7, “Derivatives and Rates of Change,” 2.8, “The Derivative as a Function,” and 3.10, “Linear Approximations and Differentials.”
- M. Spivak, Calculus, 4th ed. (Publish or Perish, 2008), chapter 9, “Derivatives.”
- G. Strang, Calculus, 3rd ed. (Wellesley-Cambridge Press, 2017; on MIT OpenCourseWare as RES.18-001), chapter 2, “Derivatives.”
- J. C. Hull, Options, Futures, and Other Derivatives, 10th ed. (Pearson, 2018), chapter 4, “Interest Rates,” on duration.