Estimating a Derivative
Real data rarely comes with a formula, and some formulas are too messy to differentiate on the spot. This guide shows how to estimate a derivative from a table, from a graph, and with a calculator, and why a centered estimate usually wins.
A derivative is a limit of average rates over shrinking intervals. When you cannot shrink the interval (a table only has its readings) or do not want to (the formula is messy), use an average rate over a small interval as an estimate: \(f'(a) \approx \dfrac{f(b) - f(c)}{b - c}\) with \(c \lt a \lt b\) as close to \(a\) as the information allows. Centering the interval on \(a\) usually gives a better estimate. Always include units: output units per input unit.
1The idea
An estimate of \(f'(a)\) is the slope of a secant line close to the tangent line at \(a\). The closer the two points and the more evenly they sit around \(a\), the closer the secant slope is to the true slope.
\(f(x) = 2^x\) at \(x = 1\)
- 1Forward: \(\dfrac{2^{1.1} - 2^{1}}{0.1} \approx 1.435\).
- 2Centered: \(\dfrac{2^{1.1} - 2^{0.9}}{0.2} \approx 1.387\).
- 3The true value is \(2\ln 2 \approx 1.386\). The centered estimate is off by about 0.001; the forward estimate is off by about 0.05.
2From a table
River depth
The depth \(D(t)\) of a river, in feet, \(t\) hours after midnight:
| \(t\) (hr) | 0 | 3 | 5 | 8 | 12 |
|---|---|---|---|---|---|
| \(D(t)\) (ft) | 2.1 | 3.4 | 4.0 | 4.6 | 5.8 |
Estimate \(D'(5)\) and interpret it.
- 1A derivative needs a tiny interval, but the table only offers the readings it has. Use the two readings closest to \(t = 5\) on either side: \(t = 3\) and \(t = 8\).
- 2\(D'(5) \approx \dfrac{D(8) - D(3)}{8 - 3} = \dfrac{4.6 - 3.4}{5} = 0.24\).
- 3One-sided alternatives give \(\frac{4.0 - 3.4}{2} = 0.3\) and \(\frac{4.6 - 4.0}{3} = 0.2\). They are acceptable estimates too, but the interval around 5 balances the two sides.
“\(D'(5) \approx \dfrac{D(8) - D(3)}{8 - 3} = 0.24\). At \(t = 5\) hours, the depth of the river is increasing at about 0.24 feet per hour.”
Show the quotient you used, then interpret with units and the time.
Use the neighbors that straddle it
Estimate \(f'(2)\) from this table.
| \(x\) | 1 | 1.5 | 2.5 | 3 |
|---|---|---|---|---|
| \(f(x)\) | 6.2 | 7.0 | 9.4 | 11.1 |
- 1There is no reading at \(x = 2\). The closest readings on each side are \(x = 1.5\) and \(x = 2.5\), centered on 2.
- 2\(f'(2) \approx \dfrac{9.4 - 7.0}{2.5 - 1.5} = 2.4\).
\(\frac{D(12) - D(0)}{12}\) is a correct average rate over 12 hours, but it is a poor estimate of the rate at \(t = 5\). Use the closest readings available.
Write \(\approx\), not \(=\). The table gives an average rate; the derivative is an instantaneous rate, and the two are only close.
3From a graph
Slope of a drawn tangent line
Use Figure 2 to estimate the derivative of the function at \(x = 1\).
- 1Draw (or imagine) the tangent line at x = 1: it touches the curve there and runs in the same direction.
- 2Pick two points on the tangent line that are far apart and easy to read. Far-apart points reduce the effect of small reading errors.
- 3From about \((0, 3.7)\) to about \((4, 1.5)\): \(\dfrac{1.5 - 3.7}{4 - 0} = \dfrac{-2.2}{4} = -0.55\).
Two points on the curve itself give a secant slope. For a derivative at a point, the two points must lie on the tangent line, which touches the curve only at that point.
4With a calculator
\(f(x) = e^{\sin x}\) at \(x = 1\)
- 1Use the calculator’s numerical derivative (for example, nDeriv on a TI-84, or the derivative template), in radian mode.
- 2Enter the function, the variable \(x\), and the point 1: the result is about 1.253.
A calculator’s numerical derivative computes a centered difference quotient with a tiny spacing. It is very accurate for smooth functions, but it can report a number at a corner, where no derivative exists. Use it for values, not to decide whether a derivative exists.
Quick reference
| Source | Estimate of f′(a) |
|---|---|
| Table with a in it | \(\frac{f(b) - f(c)}{b - c}\), nearest readings c and b on either side of a |
| Table without a | Same idea: the two readings that straddle a |
| Graph | Slope between two far-apart points on the tangent line |
| Formula, messy | Calculator numerical derivative |
| Always | Use ≈, and give units |