Tutorials › AP Calculus › Taylor Polynomials for Function Differences

Power Series and Taylor Polynomials · Tutorial 871 of 999

Taylor Polynomials for Function Differences

Use a Taylor polynomial centered at \(a\) to organize the linear and higher-order contributions to the change from \(f(a)\) to \(f(a+h)\).

Advanced 10 min read

What You'll Learn

  • Write the degree-\(n\) Taylor polynomial centered at \(a\).
  • Derive the polynomial model for \(f(a+h)-f(a)\).
  • Interpret the linear term as the first-order contribution to change.
  • Identify how higher-order terms refine that contribution.
  • Check a change calculation by subtracting the polynomial’s value at its center.
  • Recognize when a Taylor-polynomial change is exact for a polynomial function.

Introduction: A Polynomial Model for Change

A Taylor polynomial centered at \(a\) approximates a function near \(a\). When the question is about how much the function changes from \(x=a\) to \(x=a+h\), the relevant quantity is not \(f(a+h)\) by itself, but the difference \(f(a+h)-f(a)\).

Subtracting the function’s value at the center removes the constant term of its Taylor polynomial. What remains separates the modeled change into contributions: a linear contribution, a quadratic contribution, a cubic contribution, and so on. The linear term describes the first-order effect of the displacement \(h\); higher-order terms adjust that model.

Key idea: For a Taylor polynomial centered at \(a\), the polynomial model for \(f(a+h)-f(a)\) is obtained by removing the constant term. Each remaining term represents a contribution to the modeled change.

The Taylor Polynomial and Its Change Form

Suppose \(f\) has derivatives through order \(n\) at \(a\), where \(n\) is a positive integer. The degree-\(n\) Taylor polynomial for \(f\) centered at \(a\) is

$$ T_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k. $$

Here \(f^{(0)}(a)\) means \(f(a)\), and \(0!=1\). Setting \(x=a+h\) gives \(x-a=h\), so

$$ T_n(a+h)=\sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}h^k. $$

At the center, every positive power of \(x-a\) is zero. Thus \(T_n(a)=f(a)\). Subtracting this value yields the Taylor-polynomial model for the change:

$$ T_n(a+h)-T_n(a) = \sum_{k=1}^{n}\frac{f^{(k)}(a)}{k!}h^k. $$
Definition: The degree-\(n\) Taylor-polynomial model for the change from \(a\) to \(a+h\) is $$ \Delta T_n(h)=T_n(a+h)-T_n(a) =\sum_{k=1}^{n}\frac{f^{(k)}(a)}{k!}h^k. $$ It approximates \(f(a+h)-f(a)\) by using the degree-\(n\) Taylor polynomial centered at \(a\).

The first terms, when present, are

$$ \Delta T_n(h) = f'(a)h +\frac{f''(a)}{2!}h^2 +\frac{f'''(a)}{3!}h^3 +\cdots +\frac{f^{(n)}(a)}{n!}h^n. $$

The linear contribution is \(f'(a)h\). It is the change predicted by the tangent-line model. The quadratic and higher-order contributions modify that prediction. A term can contribute zero if its derivative coefficient is zero, or if the corresponding power of \(h\) is zero.

Why Subtraction Produces the Change Formula

The change formula follows directly from the definition of the Taylor polynomial. This short derivation also explains why the constant term must disappear.

1
Evaluate at the displaced input.
Substitute \(x=a+h\), so each power \((x-a)^k\) becomes \(h^k\).
2
Evaluate at the center.
Substitute \(x=a\). Every term with \(k\geq 1\) is zero, leaving \(T_n(a)=f(a)\).
3
Subtract.
The \(k=0\) term in \(T_n(a+h)\) is \(f(a)\), so it cancels with \(T_n(a)\). The terms indexed from \(1\) to \(n\) remain.

In equations, the cancellation is

$$ \begin{aligned} T_n(a+h)-T_n(a) &=\left(f(a)+\sum_{k=1}^{n}\frac{f^{(k)}(a)}{k!}h^k\right)-f(a)\\ &=\sum_{k=1}^{n}\frac{f^{(k)}(a)}{k!}h^k. \end{aligned} $$

This is an identity for the Taylor polynomial. It does not, by itself, claim that the polynomial change equals the actual function change. The latter is approximated by the polynomial change; the quality of that approximation depends on the function and on the displacement. No error bound is implied by this formula alone.

Worked Example: An Exact Change for a Cubic

Worked Example: An Exact Change for a Cubic

Let \(f(x)=x^3-2x\), and model the change from \(a=1\) to \(a+h=1.2\), so \(h=0.2\). Use the degree-3 Taylor polynomial.

First calculate the derivatives and their values at the center:

$$ \begin{aligned} f(x)&=x^3-2x, & f(1)&=1-2=-1,\\ f'(x)&=3x^2-2, & f'(1)&=3-2=1,\\ f''(x)&=6x, & f''(1)&=6,\\ f'''(x)&=6, & f'''(1)&=6. \end{aligned} $$

The Taylor polynomial is therefore

$$ T_3(x) =-1+(x-1)+\frac{6}{2}(x-1)^2+\frac{6}{6}(x-1)^3. $$

At \(x=1.2\), the displacement is \(h=0.2\). The contributions to the modeled change are

$$ \begin{aligned} f'(1)h&=1(0.2)=0.2,\\ \frac{f''(1)}{2!}h^2&=\frac{6}{2}(0.2)^2=3(0.04)=0.12,\\ \frac{f'''(1)}{3!}h^3&=\frac{6}{6}(0.2)^3=1(0.008)=0.008. \end{aligned} $$

Adding these contributions gives

$$ \Delta T_3(0.2)=0.2+0.12+0.008=0.328. $$

Check by evaluating the polynomial at both inputs. At the center, \(T_3(1)=-1\). At \(1.2\),

$$ \begin{aligned} T_3(1.2) &=-1+0.2+3(0.2)^2+(0.2)^3\\ &=-1+0.2+0.12+0.008\\ &=-0.672. \end{aligned} $$

Thus \(T_3(1.2)-T_3(1)=-0.672-(-1)=0.328\), matching the sum of the contributions. Since \(f\) is a cubic and we used its degree-3 Taylor polynomial, this change is exact. Direct substitution confirms it: \(f(1.2)=1.728-2.4=-0.672\), while \(f(1)=-1\), so \(f(1.2)-f(1)=0.328\).

How the Terms Contribute

For a small displacement, the powers \(h^2,h^3,\ldots\) are often smaller in magnitude than \(h\). This helps explain why the linear term is a useful first model of change. But “higher order” does not mean “always negligible”: the derivative coefficients matter, and the displacement may not be small. The polynomial records the contributions without deciding in advance that any one of them can be ignored.

The sign of each contribution depends on both its derivative coefficient and the power of \(h\). If \(h\) is negative, an odd power of \(h\) is negative and an even power is positive. A negative derivative coefficient can reverse the contribution’s sign. Adding signed terms—not just their magnitudes—is essential.

Some terms may be absent. If \(f''(a)=0\), the quadratic contribution is zero. If \(f\) has symmetry that forces certain Taylor coefficients to vanish, the corresponding powers do not appear. The change formula simply includes the coefficients that are nonzero.

Worked Example: Exponential Change Through Cubic Order

Worked Example: Exponential Change Through Cubic Order

Let \(f(x)=e^x\), centered at \(a=1\), and take \(h=0.1\). Find the degree-3 Taylor-polynomial model for the change.

Every derivative of \(e^x\) is \(e^x\), so the first three derivatives at \(1\) are all \(e\). The change contributions are

$$ \begin{aligned} f'(1)h&=e(0.1)=\frac{e}{10},\\ \frac{f''(1)}{2!}h^2&=\frac{e}{2}(0.1)^2=\frac{e}{200},\\ \frac{f'''(1)}{3!}h^3&=\frac{e}{6}(0.1)^3=\frac{e}{6000}. \end{aligned} $$

Therefore,

$$ \begin{aligned} \Delta T_3(0.1) &=\frac{e}{10}+\frac{e}{200}+\frac{e}{6000}\\ &=\frac{600e+30e+e}{6000}\\ &=\frac{631e}{6000}. \end{aligned} $$

For a check, the polynomial centered at \(1\) is

$$ T_3(x)=e+e(x-1)+\frac{e}{2}(x-1)^2+\frac{e}{6}(x-1)^3. $$

Thus \(T_3(1)=e\), and substituting \(x=1.1\) gives

$$ T_3(1.1) =e+\frac{e}{10}+\frac{e}{200}+\frac{e}{6000}. $$

Subtracting \(T_3(1)=e\) leaves \(631e/6000\), as before. This is the polynomial’s modeled change, not an assertion that the exponential function’s actual change is exactly that value.

Worked Example: A Missing Linear Contribution

Worked Example: A Missing Linear Contribution

Let \(f(x)=\cos x\), centered at \(a=0\), and consider \(h=0.2\). Use the degree-4 Taylor polynomial.

The values needed at the center are \(f(0)=1\), \(f'(0)=0\), \(f''(0)=-1\), \(f'''(0)=0\), and \(f^{(4)}(0)=1\). Thus

$$ T_4(x)=1-\frac{x^2}{2!}+\frac{x^4}{4!}. $$

There is no linear contribution because \(f'(0)=0\), and no cubic contribution because \(f'''(0)=0\). The remaining contributions to the change are

$$ \begin{aligned} \frac{f''(0)}{2!}h^2 &=-\frac{(0.2)^2}{2} =-\frac{0.04}{2} =-0.02,\\ \frac{f^{(4)}(0)}{4!}h^4 &=\frac{(0.2)^4}{24} =\frac{0.0016}{24} =\frac{1}{15000}. \end{aligned} $$

Since \(-0.02=-300/15000\), the total is

$$ \Delta T_4(0.2) =-\frac{300}{15000}+\frac{1}{15000} =-\frac{299}{15000}. $$

Check by substitution: \(T_4(0)=1\), while \(T_4(0.2)=1-0.02+1/15000\). Their difference is \(-0.02+1/15000=-299/15000\), which agrees with the term-by-term calculation.

A Common Mistake: Keeping the Constant Term

The constant term \(f(a)\) is part of the Taylor polynomial’s estimate for the function value. It is not part of the change, because it is present at both the starting and ending inputs and cancels when the values are subtracted.

Worked Example: Correcting a Constant-Term Error

Take \(f(x)=x^2\), center \(a=2\), and displacement \(h=0.1\). The degree-2 Taylor polynomial is exact here:

$$ T_2(x)=4+4(x-2)+(x-2)^2. $$

A common incorrect calculation substitutes \(h=0.1\) into \(T_2(a+h)\) and calls the whole result the change:

$$ 4+4(0.1)+(0.1)^2=4.41. $$

This is the modeled value \(T_2(2.1)\), not the modeled change. At the starting point, \(T_2(2)=4\), so the correction is to subtract that starting value:

$$ T_2(2.1)-T_2(2)=4.41-4=0.41. $$

The contribution formula gives the same result: \(f'(2)h=4(0.1)=0.4\), and \(f''(2)h^2/2=2(0.01)/2=0.01\), so \(0.4+0.01=0.41\). Finally, check against the actual function: \(f(2.1)-f(2)=(2.1)^2-2^2=4.41-4=0.41\). The polynomial is exact because \(f\) is a degree-2 polynomial.

Using the Change Model Carefully

To apply the formula reliably, specify the center \(a\), the displacement \(h\), and the degree \(n\). Then evaluate the derivatives at the center, include the factorial in every coefficient, and sum the signed contributions from \(k=1\) through \(n\). A final subtraction check—\(T_n(a+h)-T_n(a)\)—helps catch the common error of reporting a function-value estimate as a change.

The formula is useful because it organizes local change by powers of the displacement. It makes clear which part is linear, which parts correct the linear model, and which coefficients vanish. For a polynomial of degree at most \(n\), the model gives the exact change. For other functions, it is a polynomial approximation; deciding how accurate it is requires additional information about the function and is a separate question.

Takeaway: The degree-\(n\) Taylor model for a change is the sum of the nonconstant Taylor terms. Begin with \(f'(a)h\), add the higher-order contributions through degree \(n\), and remember that an approximation to change is not automatically an error guarantee.

Check Your Understanding

Answer each question using the Taylor-polynomial change formula.

  1. Why does the constant term \(f(a)\) disappear when forming \(T_n(a+h)-T_n(a)\)?
  2. Write the degree-3 Taylor-polynomial model for the change in terms of \(f'(a)\), \(f''(a)\), \(f'''(a)\), and \(h\).
  3. If \(f'(a)=0\), which contribution is absent, and what terms may still contribute to the change?
  4. For \(f(x)=x^2\), centered at \(a=3\), and \(h=-0.1\), calculate the linear and quadratic contributions to the change model.
  5. When does a degree-\(n\) Taylor polynomial give an exact change for a polynomial function?

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