Tutorials › AP Calculus › Taylor Coefficients from Derivatives

Power Series and Taylor Polynomials · Tutorial 860 of 999

Taylor Coefficients from Derivatives

Build a Taylor polynomial from derivative values at its center, keeping track of derivative order, powers of \(x-a\), and factorials.

Advanced 9 min read

What You'll Learn

  • State the formula for the degree-\(n\) Taylor polynomial centered at \(a\).
  • Calculate coefficients from successive derivative values at the center.
  • Explain why the coefficient of \((x-a)^k\) uses \(f^{(k)}(a)/k!\).
  • Build Taylor polynomials for polynomial, rational, and radical functions.
  • Identify and correct errors involving the center and factorials.

From Derivatives to Polynomial Coefficients

A Taylor polynomial records information about a function and its derivatives at one chosen input, called the center. The coefficient of each power of \(x-a\) comes from a particular derivative evaluated at that center. The derivative order determines which coefficient is used, and a factorial adjusts for the repeated differentiation of that power.

This tutorial focuses on calculating those coefficients. A Taylor polynomial can be formed from derivative values at a point, but that fact alone does not assert that the polynomial equals the function everywhere, or even that an infinite series represents the function. Here we work with finite polynomials and the derivatives needed to construct them.

Definition: If \(f\) has derivatives through order \(n\) at \(x=a\), its degree-\(n\) Taylor polynomial 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\).

Written term by term, the same definition is

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

The index \(k\) identifies both the derivative and the power: the \(k\)th derivative supplies the coefficient of \((x-a)^k\). Do not confuse the derivative value \(f^{(k)}(a)\) with the coefficient itself. The coefficient is that value divided by \(k!\).

Why the Factorial Appears

To see where the factorial comes from, consider a polynomial written in powers of \(x-a\): \(P(x)=c_0+c_1(x-a)+c_2(x-a)^2+\cdots+c_n(x-a)^n\). Differentiate a term \((x-a)^j\) exactly \(k\) times and then set \(x=a\). If \(j<k\), that term has already differentiated to zero. If \(j>k\), its \(k\)th derivative still contains a positive power of \(x-a\), so it is zero at \(x=a\). Only the term with \(j=k\) remains: its \(k\)th derivative is the constant \(k!\).

$$ \left.\frac{d^k}{dx^k}\bigl(c_k(x-a)^k\bigr)\right|_{x=a} =c_k k!. $$

Consequently, for a polynomial written in powers of \(x-a\), its \(k\)th derivative at \(a\) is \(k!c_k\). Solving for the coefficient gives \(c_k=P^{(k)}(a)/k!\). The Taylor-polynomial formula uses the corresponding derivative values of \(f\) to set each coefficient.

Key takeaway: The coefficient of \((x-a)^k\) in the degree-\(n\) Taylor polynomial is $$ \frac{f^{(k)}(a)}{k!}, \qquad 0\le k\le n. $$ Evaluate the derivative at the center, then divide by the factorial of its order.

A Reliable Calculation Process

Keep the center visible throughout the calculation. In particular, the powers are powers of \(x-a\), not automatically powers of \(x\). A useful process is to write down the center and degree, calculate the derivatives in order, evaluate each at the center, and only then divide by the appropriate factorial.

1
Record the center and degree.
For a degree-\(n\) polynomial centered at \(a\), you need derivative values from order \(0\) through \(n\).
2
Calculate derivatives successively.
Start with \(f\), then find \(f'\), \(f''\), and continue through \(f^{(n)}\).
3
Evaluate at the center.
Find \(f(a), f'(a),\ldots,f^{(n)}(a)\).
4
Divide and assemble.
For each order \(k\), divide \(f^{(k)}(a)\) by \(k!\) and multiply by \((x-a)^k\).

Worked Examples

Worked Example: A Polynomial Centered at \(a=2\)

Find the degree-3 Taylor polynomial for \(f(x)=x^3-2x^2+4x+1\), centered at \(a=2\).

We need the function and its first three derivatives:

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

Evaluate each at \(x=2\):

$$ \begin{aligned} f(2)&=8-8+8+1=9,\\ f'(2)&=3(4)-4(2)+4=12-8+4=8,\\ f''(2)&=6(2)-4=12-4=8,\\ f'''(2)&=6. \end{aligned} $$

Now divide the derivative values by the matching factorials: \(0!=1\), \(1!=1\), \(2!=2\), and \(3!=6\). The coefficients are \(9\), \(8\), \(8/2=4\), and \(6/6=1\). Therefore,

$$ T_3(x)=9+8(x-2)+4(x-2)^2+(x-2)^3. $$

Check by differentiating this answer. At \(x=2\), its value is \(9\). Its first derivative is \(8+8(x-2)+3(x-2)^2\), which is \(8\) at \(2\). Its second derivative is \(8+6(x-2)\), which is \(8\) at \(2\). Its third derivative is \(6\). These match \(f(2), f'(2), f''(2), f'''(2)\), respectively.

Worked Example: A Rational Function Centered at \(a=1\)

Find the degree-3 Taylor polynomial for \(f(x)=\frac{1}{3-x}\), centered at \(a=1\). The function is defined near \(1\), so its derivatives there can be evaluated.

Write \(f(x)=(3-x)^{-1}\). Repeated differentiation gives

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

For the first derivative, the chain-rule factors cancel: differentiating \((3-x)^{-1}\) gives \(-1(3-x)^{-2}(-1)=(3-x)^{-2}\). Evaluating all four quantities at \(1\) yields

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

Divide by \(0!,1!,2!,3!\), in order. The coefficients are \(1/2\), \(1/4\), \(1/4\div2=1/8\), and \(3/8\div6=1/16\). Thus

$$ T_3(x)=\frac12+\frac14(x-1)+\frac18(x-1)^2+\frac1{16}(x-1)^3. $$

To check, differentiate the polynomial. Its first derivative at \(1\) is \(1/4\); its second derivative at \(1\) is \(2(1/8)=1/4\); its third derivative is \(6(1/16)=3/8\). Its value at \(1\) is \(1/2\). All four quantities agree with the derivatives of \(f\) evaluated at the center.

Worked Example: A Radical Function Centered at \(a=4\)

Find the degree-4 Taylor polynomial for \(f(x)=\sqrt{x}\), centered at \(a=4\). Since \(4\) is positive, the derivatives used below exist in a neighborhood of the center.

Using \(f(x)=x^{1/2}\), successive derivatives are

$$ \begin{aligned} f'(x)&=\frac12x^{-1/2},\\ f''(x)&=-\frac14x^{-3/2},\\ f'''(x)&=\frac38x^{-5/2},\\ f''''(x)&=-\frac{15}{16}x^{-7/2}. \end{aligned} $$

At \(x=4\), the powers are \(4^{1/2}=2\), \(4^{3/2}=8\), \(4^{5/2}=32\), and \(4^{7/2}=128\). Therefore,

$$ \begin{aligned} f(4)&=2,\\ f'(4)&=\frac{1}{2\cdot2}=\frac14,\\ f''(4)&=-\frac{1}{4\cdot8}=-\frac1{32},\\ f'''(4)&=\frac{3}{8\cdot32}=\frac3{256},\\ f''''(4)&=-\frac{15}{16\cdot128}=-\frac{15}{2048}. \end{aligned} $$

Divide these values by the factorials \(1,1,2,6,24\), respectively. The coefficients are \(2\), \(1/4\), \(-1/64\), \(3/1536=1/512\), and \(-15/49152=-5/16384\). The result is

$$ T_4(x)=2+\frac14(x-4)-\frac1{64}(x-4)^2 +\frac1{512}(x-4)^3-\frac5{16384}(x-4)^4. $$

Check the derivative values at \(4\). The constant term gives \(T_4(4)=2\). The first derivative at \(4\) is \(1/4\). The second derivative there is \(2(-1/64)=-1/32\). The third derivative is \(3!(1/512)=3/256\), and the fourth derivative is \(4!(-5/16384)=-120/16384=-15/2048\). Each matches the corresponding derivative of \(\sqrt{x}\).

Common Mistake: Forgetting the Factorial

A frequent error is to use \(f^{(k)}(a)\) itself as the coefficient of \((x-a)^k\). For example, in the rational-function example, \(f''(1)=1/4\). Writing \(1/4\) as the coefficient of \((x-1)^2\) is incorrect. The second-order coefficient is \(f''(1)/2!=1/8\).

The error is visible by differentiating the incorrect term. If the term were \(\frac14(x-1)^2\), its second derivative would be \(2(\frac14)=\frac12\), not the required value \(f''(1)=\frac14\). With the corrected coefficient, the second derivative is \(2(\frac18)=\frac14\), as required.

Check before finishing: For the \(k\)th term, verify both pieces: its power is \((x-a)^k\), and its coefficient is \(f^{(k)}(a)/k!\). The factorial is \(k!\), not \(k\), and it applies even when the derivative value is negative.

What These Coefficients Do—and Do Not—Tell You

The coefficient calculations encode the function’s value and successive derivative values at the center. In particular, the degree-zero term gives the function value there; the degree-one coefficient is the first derivative there; and higher coefficients require the corresponding factorial adjustment.

These facts describe how to construct the finite Taylor polynomial. They do not, by themselves, prove that the polynomial equals \(f(x)\) away from \(a\), or determine how close its values are to the function. Those are separate questions. For this calculation, the essential requirements are that the needed derivatives exist at the center and that each derivative is evaluated and divided by the correct factorial.

Check Your Understanding

Use the derivative-based coefficient rule to answer each question.

  1. For a degree-2 Taylor polynomial centered at \(a=3\), what derivative values are needed, and what factorial divides each one?
  2. If \(f'''(a)=-12\), what is the coefficient of \((x-a)^3\)?
  3. For \(f(x)=x^2\) centered at \(a=1\), calculate the degree-2 Taylor polynomial using derivatives.
  4. A student uses \(f''(a)\) as the coefficient of \((x-a)^2\). What factor is missing, and how can differentiating the term reveal the error?
  5. Does constructing a Taylor polynomial from derivatives alone prove that it equals the function for every \(x\)? Explain briefly.

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