Why Estimate a Derivative?
A derivative measures an instantaneous rate of change. In many problems, you can find it exactly by differentiating a formula. A calculator’s numerical derivative feature provides another way to estimate the derivative at a particular input. This is useful for checking a calculation, examining a function defined by a complicated expression, or finding a numerical slope when an exact derivative is not required.
A calculator’s result is an estimate, not a proof that a derivative exists and not a substitute for an analytic derivative when the problem asks you to show your work. A strong solution identifies the function and input, obtains the numerical value, interprets its meaning, and compares it with an analytic derivative when one is available.
Using a Numerical Derivative Feature
Calculator models use different menus and commands. A graphing calculator may offer a numerical derivative command such as \(\operatorname{nDeriv}(f(X),X,a)\), or a menu option for evaluating a derivative at a point. In either case, provide the function, the variable, and the specified input. Check that you have entered the intended function and that the calculator is in the correct angle mode if trigonometric functions are involved. AP Calculus uses radians for trigonometric calculus.
The calculator estimates a local rate of change by using function values close to the input. One common mathematical approximation is the symmetric difference quotient:
where \(h\) is a small nonzero number. A calculator may use a more refined numerical procedure, so you should not assume that every model uses this exact calculation internally. The formula illustrates the underlying idea: compare nearby function values to estimate the slope at the center input.
Why the Symmetric Estimate Approaches the Derivative
The derivative definition explains why a two-sided estimate can work. Rewrite the symmetric difference quotient as an average of two ordinary difference quotients:
As \(h\) approaches zero, the first quotient approaches \(f'(a)\) by the derivative definition. For the second quotient, set \(k=-h\). Then
As \(h\) approaches zero, \(k\) also approaches zero, so this quotient approaches \(f'(a)\) as well. The average of two quantities that both approach \(f'(a)\) also approaches \(f'(a)\). Thus, when \(f'(a)\) exists, the symmetric difference quotient approaches the derivative.
This argument explains the method’s purpose, but it does not make every calculator output reliable in every situation. Numerical calculations use finite precision and nearby function values. A result should be checked for correct input, sensible scale, and agreement with known calculus when possible.
Worked Examples
Worked Example: Trigonometric Function at a Specified Input
Estimate the derivative of \(f(x)=x^2+\sin x\) at \(x=1\), then compare it with the analytic derivative. Use radian mode.
Enter the function and input in the calculator’s numerical derivative feature, for example, \(\operatorname{nDeriv}(X^2+\sin X,X,1)\). The calculator gives approximately \(2.540302306\).
Differentiate analytically:
At \(x=1\),
The calculator estimate agrees with the analytic result to the displayed digits. The point on the graph has vertical coordinate
So the tangent slope is approximately \(2.540302306\) at \((1,1.841470985)\). The tangent line, using the point-slope form, is approximately
Check: substituting \(x=1\) into this line gives \(y-1.841470985=0\), hence \(y=1.841470985=f(1)\). Its slope is \(2.540302306\), agreeing with the analytic derivative at the input.
Worked Example: Logarithmic Function and Tangent Line
Estimate the derivative of \(g(x)=\ln x\) at \(x=2\), compare the estimate with the analytic derivative, and state the tangent line.
Enter \(\operatorname{nDeriv}(\ln(X),X,2)\), or use the equivalent numerical derivative feature. The calculator returns approximately \(0.5\).
Since \(g'(x)=1/x\), the exact derivative at the input is
The numerical estimate matches the analytic value. The point on the curve is \((2,\ln 2)\), where \(\ln 2\approx 0.693147181\). The tangent line is therefore
Check: at \(x=2\), the right side is \(0.5(2-2)=0\), so the line gives \(y=0.693147181\), the curve’s value to the displayed precision. The line’s slope is \(0.5\), which is also \(g'(2)\).
Worked Example: Interpreting a Derivative as Velocity
A particle’s position, in meters, is \(s(t)=t^3-6t^2+9t\), where \(t\) is measured in seconds. Estimate its velocity at \(t=1.5\) seconds and compare it with the analytic derivative.
Enter \(\operatorname{nDeriv}(T^3-6T^2+9T,T,1.5)\). The calculator estimates the derivative as \(-2.25\).
Differentiate the position function to obtain velocity:
Substitute \(t=1.5\), showing the intermediate values:
The analytic value agrees with the calculator estimate. The particle is moving in the negative direction at \(2.25\) meters per second at that instant. Its position there is
Thus the tangent to the position graph at \((1.5,3.375)\) has slope \(-2.25\) meters per second. Check: the derivative formula gives \(-2.25\) at \(t=1.5\), and the position formula gives \(3.375\) meters, so the point and slope are consistent.
When a Numerical Result Can Mislead
A calculator can return a number even when the derivative does not exist. For example, let \(q(x)=|x|\) and evaluate a symmetric difference quotient at \(x=0\). For any \(h>0\),
This calculation may suggest a derivative of zero, but the derivative does not exist. The right-hand difference quotient is \(\frac{|h|-0}{h}=1\) for \(h>0\), while the left-hand difference quotient is \(\frac{|-h|-0}{h}=1\) if written with positive \(h\); using a negative increment \(k<0\), the left-hand derivative quotient is \(\frac{|k|}{k}=-1\). The one-sided slopes differ, so there is no single tangent slope at the corner. A symmetric estimate cancels the two sides and conceals that failure.
Good Habits for Calculator-Based Derivative Estimates
Before using an estimate in a solution, make the calculation interpretable and checkable:
- Enter the correct function, variable, and specified input. A small entry error can produce a plausible but irrelevant value.
- Use radians for trigonometric functions in calculus calculations.
- Compare the estimate with an analytic derivative when the function is differentiable and the derivative is manageable.
- Interpret the result in context. For a graph, it is a tangent slope; for position as a function of time, it is velocity.
- Include units when the quantities have units. A rate’s units are the output units divided by the input units.
- Do not claim more precision than the calculator display or the problem supports.
On an AP free-response problem, follow the directions about calculator use and show the reasoning the question requests. If it asks for a derivative estimate, state the input and the approximate value clearly. If it asks for justification or an analytic derivative, a calculator output by itself is not that justification.
Check Your Understanding
Answer each question. For numerical estimates, identify the input and explain what the result represents.
- What does a calculator’s numerical derivative feature estimate at \(x=a\)?
- For \(f(x)=x^2\), what analytic value should a numerical derivative estimate produce at \(x=3\)?
- Why does the symmetric difference quotient approach \(f'(a)\) when the derivative exists?
- Why does a symmetric estimate of \(|x|\) at zero fail to show that the derivative exists?
- If \(s(t)\) is position measured in meters and \(t\) is measured in seconds, what are the units of \(s'(t)\)?