Tutorials › AP Calculus › Applying Curvature Bounds to Estimate Approximation Error

Linearization and Local Change · Tutorial 307 of 999

Applying Curvature Bounds to Estimate Approximation Error

Use a bound on curvature across an interval to guarantee how far a function can differ from its linear approximation.

Intermediate 9 min read

What You'll Learn

  • State the second-derivative bound for linearization error and its conditions
  • Find a valid curvature bound across the interval being considered
  • Estimate the largest absolute error over a specified range
  • Compare error bounds when the step size changes
  • Identify why the second derivative at just the base point may not suffice

From a Linear Estimate to an Error Guarantee

A linearization gives a tangent-line estimate near a base point \(a\). But how accurate is that estimate across a particular interval? A bound on the second derivative answers this by placing a guaranteed limit on the absolute error.

The important detail is that the bound must apply throughout the interval between the base point and the input being estimated. The second derivative at the base point alone does not generally provide that guarantee.

Key idea: If the magnitude of the second derivative is at most \(M\) throughout an interval, then the linearization error at distance \(h\) from the base point is at most \(\frac{M}{2}h^2\).

The Error Bound

Let \(f\) be a function with a continuous second derivative on an interval containing \(a\) and \(x\). Its linearization at \(a\) is

$$ L_a(x)=f(a)+f'(a)(x-a). $$

The absolute error at \(x\) is the distance between the function value and the linear estimate:

$$ E(x)=|f(x)-L_a(x)|. $$
Theorem: Suppose \(|f''(t)|\le M\) for every \(t\) between \(a\) and \(x\), where \(M\ge 0\). Then $$ |f(x)-L_a(x)|\le \frac{M}{2}(x-a)^2. $$ The bound must hold over the whole interval between \(a\) and \(x\), not merely at \(a\).

If the estimate is needed for every \(x\) in an interval extending at most \(h\) units from \(a\), and the same bound \(|f''(t)|\le M\) holds throughout that interval, then

$$ |f(x)-L_a(x)|\le \frac{M}{2}h^2. $$

Thus the maximum absolute error over the interval is no greater than \(\frac{M}{2}h^2\). This is a guaranteed upper bound, not necessarily the exact maximum error.

Why the Bound Works

The error-bound theorem follows from the integral form of the remainder. Define \(g(t)=f(t)-L_a(t)\). Since \(L_a(a)=f(a)\) and \(L_a'(a)=f'(a)\), the difference satisfies \(g(a)=0\) and \(g'(a)=0\). Also, \(g''(t)=f''(t)\).

For \(x\ge a\), applying the Fundamental Theorem of Calculus twice gives

$$ g(x)=\int_a^x g'(u)\,du =\int_a^x\left(\int_a^u f''(t)\,dt\right)du =\int_a^x (x-t)f''(t)\,dt. $$

The last equality changes the order of integration: for each \(t\) from \(a\) to \(x\), the variable \(u\) runs from \(t\) to \(x\), producing the factor \(x-t\). Taking absolute values and using \(|f''(t)|\le M\),

$$ |g(x)| \le \int_a^x (x-t)|f''(t)|\,dt \le M\int_a^x(x-t)\,dt =\frac{M}{2}(x-a)^2. $$

For \(x<a\), the same argument integrates from \(x\) to \(a\); the nonnegative weight in the error integral is \(t-x\), whose integral is \(\frac12(a-x)^2\). Since \((a-x)^2=(x-a)^2\), the same bound follows. This explains both the factor \(\frac12\) and why the distance from the base point is squared.

Worked Example: Bounding the Error for a Square Root

Worked Example: A Square-Root Estimate Near 4

Use the linearization of \(f(x)=\sqrt{x}\) at \(a=4\) to bound the absolute error for \(3\le x\le5\).

First, \(f(4)=2\) and \(f'(x)=\frac{1}{2\sqrt{x}}\), so \(f'(4)=\frac14\). Therefore,

$$ L_4(x)=2+\frac14(x-4). $$

Next, \(f''(x)=-\frac{1}{4x^{3/2}}\), so \(|f''(x)|=\frac{1}{4x^{3/2}}\). On \([3,5]\), this magnitude is largest at \(x=3\), giving

$$ M=\frac{1}{4(3)^{3/2}}=\frac{1}{12\sqrt{3}}. $$

Every point in the interval is at most \(h=1\) unit from \(a=4\). The error bound is therefore

$$ |f(x)-L_4(x)| \le \frac{M}{2}(1)^2 =\frac{1}{24\sqrt{3}} \approx 0.0241. $$

For a check at the endpoint \(x=5\), the linear estimate is \(L_4(5)=2+\frac14=\frac94\), while \(f(5)=\sqrt5\). The absolute error is \(\left|\sqrt5-\frac94\right|\approx0.0139\), which is less than \(0.0241\). The check is consistent with the guaranteed bound.

Comparing Step Sizes

When the same curvature bound \(M\) applies, the error bound varies with the square of the step size. If the step size is halved, the bound is multiplied by \((\frac12)^2=\frac14\). If the step size is doubled, the bound is multiplied by \(2^2=4\).

When the curvature bounds differ across the intervals being compared, compare the full quantities \(\frac12 M h^2\). A smaller step does not by itself guarantee a smaller calculated bound if the second-derivative bound is much larger on the smaller interval.

Worked Example: Comparing Two Step Sizes

For \(f(x)=x^2\), compare error bounds for linearization at \(a=2\) when estimating throughout \([1.6,2.4]\) and \([1.8,2.2]\).

Since \(f(2)=4\), \(f'(x)=2x\), and \(f'(2)=4\), the linearization is

$$ L_2(x)=4+4(x-2). $$

Also, \(f''(x)=2\), so \(M=2\) works on both intervals. For the first interval, \(h=0.4\), and the bound is

$$ \frac{M}{2}h^2 =\frac{2}{2}(0.4)^2 =0.16. $$

For the second interval, \(h=0.2\), and the bound is

$$ \frac{M}{2}h^2 =\frac{2}{2}(0.2)^2 =0.04. $$

The step size was halved, and the bound fell to one quarter: \(0.04=0.16/4\). To check the estimates directly, \(f(x)-L_2(x)=x^2-[4+4(x-2)]=(x-2)^2\). Its largest value on the first interval is \(0.4^2=0.16\), and on the second it is \(0.2^2=0.04\). In this example, the bounds equal the actual maximum absolute errors.

Worked Example: A Curvature Bound for a Logarithm

Worked Example: Estimating \(\ln x\) Near 1

Use the linearization of \(f(x)=\ln x\) at \(a=1\) to bound the error for \(0.9\le x\le1.1\).

Because \(f(1)=0\) and \(f'(x)=1/x\), the derivative at the base point is \(f'(1)=1\). Thus

$$ L_1(x)=x-1. $$

The second derivative is \(f''(x)=-1/x^2\), so \(|f''(x)|=1/x^2\). This is largest on \([0.9,1.1]\) at \(x=0.9\), and

$$ M=\frac{1}{(0.9)^2}=\frac{100}{81}. $$

The largest distance from the base point is \(h=0.1=\frac{1}{10}\). Hence

$$ |f(x)-L_1(x)| \le \frac12\left(\frac{100}{81}\right)\left(\frac{1}{10}\right)^2 =\frac{1}{162} \approx 0.006173. $$

Check at \(x=0.9\): \(L_1(0.9)=-0.1\), and \(\ln(0.9)\approx-0.105361\). The absolute error is approximately \(0.005361\), below \(0.006173\). At \(x=1.1\), the estimate is \(0.1\) and \(\ln(1.1)\approx0.095310\), giving an absolute error of approximately \(0.004690\), also below the bound.

A Common Mistake: Using Only the Curvature at the Base Point

A tempting shortcut is to substitute \(|f''(a)|\) for \(M\) without checking the rest of the interval. That number describes curvature at one point; it need not bound the curvature everywhere the estimate is being used.

Worked Example: Why a Point Value May Fail

Consider \(f(x)=e^x\), linearized at \(a=0\), for \(0\le x\le1\). Since \(f(0)=1\) and \(f'(0)=1\), \(L_0(x)=1+x\). Also, \(f''(x)=e^x\).

The incorrect calculation uses \(f''(0)=1\) as though it were a bound on the whole interval. At \(x=1\), it would claim

$$ |e-(1+1)|=e-2\le \frac12(1)(1)^2=\frac12. $$

But \(e-2\approx0.7183\), which is greater than \(0.5\); the claimed bound fails. The correction is to bound the second derivative throughout \([0,1]\). There, \(e^x\le e\), so \(M=e\) is valid and the theorem gives

$$ |f(x)-L_0(x)|\le\frac{e}{2}(1)^2 \approx1.3591. $$

At \(x=1\), the actual error \(e-2\approx0.7183\) is below this corrected bound. The upper bound is less tight, but it is guaranteed.

Using the Bound Carefully

A reliable estimate requires four choices: the base point, the interval of inputs, a valid upper bound \(M\) for \(|f''|\) on that interval, and the greatest distance \(h\) from the base point. The resulting value \(\frac12Mh^2\) is an error guarantee for all the inputs considered.

  • Use the magnitude \(|f''|\) when finding \(M\); the bound concerns absolute error.
  • Check the entire interval, including the part between the base point and each target input.
  • Keep \(M\) and \(h\) paired with the interval on which they were determined.
  • Interpret the result as an upper bound, not automatically as the actual error or exact maximum.

This estimate is useful when a linear approximation is convenient but its accuracy must be assessed. It converts information about how rapidly the derivative changes into a quantitative guarantee about how far the function can depart from its tangent-line estimate.

Check Your Understanding

Use the second-derivative bound and show the interval and curvature bound you use in each calculation.

  1. If \(|f''(x)|\le 6\) between \(a\) and \(a+0.1\), what upper bound does the theorem give for the absolute linearization error at \(a+0.1\)?
  2. If a valid curvature bound \(M\) stays the same and the step size changes from \(h\) to \(3h\), by what factor does the error bound change?
  3. For \(f(x)=x^2\) linearized at \(a=1\), use \(M=2\) to bound the error when \(|x-1|\le0.3\).
  4. Why is \(|f''(a)|\) not automatically a valid choice for \(M\) on an interval?
  5. If two intervals have different curvature bounds \(M_1,M_2\) and step sizes \(h_1,h_2\), what quantities should be compared?

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon