Why Derivatives Determine the Coefficients
A Taylor polynomial is designed to agree with a function near a chosen center \(a\). One way to impose that agreement is to require the polynomial and function to have the same value, slope, and higher derivatives at \(a\). These conditions do more than make the polynomial resemble the function: they determine each coefficient in turn.
The key is to write the polynomial using powers of \(x-a\). At the center, those powers have a useful property: differentiating \(k\) times makes the \(k\)th power contribute a nonzero value, while the other powers contribute zero. The size of that contribution is \(k!\), which explains the factorial in the Taylor coefficient formula.
Set Up the Matching Conditions
Let \(n\) be a nonnegative integer, let \(a\) be a real number, and suppose \(f\) has derivatives through order \(n\) at \(a\). A polynomial of degree at most \(n\), written in powers of \(x-a\), has the form
To match the function’s derivatives through order \(n\), require that \(P_n^{(k)}(a)=f^{(k)}(a)\) for each integer \(k\) from \(0\) to \(n\). The order-zero condition means \(P_n(a)=f(a)\). For positive \(k\), the condition matches the \(k\)th derivatives at the center.
The phrase “degree at most \(n\)” allows some of the highest coefficients to be zero. The derivative-matching setup requires only that the relevant derivatives of \(f\) exist at \(a\); it does not require that \(f\) equal this polynomial away from the center.
How the Shifted Powers Behave
Consider one term \((x-a)^j\) and differentiate it \(k\) times. If \(k\leq j\), repeated application of the power rule gives
If \(k>j\), the derivative is zero because differentiating a degree-\(j\) polynomial more than \(j\) times gives zero. Now evaluate at \(x=a\). When \(j>k\), the remaining power has positive exponent and vanishes. When \(j=k\), no power remains, and the product of factors is \(k!\). When \(j<k\), the derivative is already zero.
Here \(0!=1\), so the statement includes \(k=0\): the zeroth derivative is the original term, and \((x-a)^j\) evaluated at \(a\) is \(1\) if \(j=0\) and \(0\) otherwise.
Deriving the Coefficient Formula
Differentiate \(P_n(x)=\sum_{j=0}^{n}c_j(x-a)^j\) exactly \(k\) times and evaluate at \(a\). Differentiation and evaluation apply term by term because the sum is finite. By the behavior of shifted powers, every term disappears except the one whose exponent is \(k\). Thus \(P_n^{(k)}(a)=k!c_k\). The matching condition says this value must be \(f^{(k)}(a)\), so solving for \(c_k\) gives the result.
\(P_n(x)=\sum_{j=0}^{n}c_j(x-a)^j\).
At \(x=a\), only the term with exponent \(k\) contributes, with value \(k!c_k\).
\(k!c_k=f^{(k)}(a)\), so \(c_k=f^{(k)}(a)/k!\).
This argument also explains the role of each derivative: the value \(f^{(k)}(a)\) is not itself the coefficient in general. It equals \(k!\) times that coefficient because the \(k\)th derivative of \((x-a)^k\), evaluated at \(a\), is \(k!\). For \(k=0\), the formula reads \(c_0=f(a)\), as expected from matching the function’s value.
Worked Examples
Worked Example: Matching a Cubic at a Nonzero Center
Find the degree-three Taylor polynomial for \(f(x)=x^3-2x+4\) centered at \(a=1\), using derivative matching.
First calculate the required derivatives:
Evaluate each at \(x=1\):
Use \(c_k=f^{(k)}(1)/k!\). The coefficients are \(c_0=3/0!=3\), \(c_1=1/1!=1\), \(c_2=6/2!=6/2=3\), and \(c_3=6/3!=6/6=1\). Therefore
Check by expanding. Since \((x-1)^2=x^2-2x+1\) and \((x-1)^3=x^3-3x^2+3x-1\),
In particular, \(P_3\) and \(f\) have the same derivatives through order three at \(1\). The expansion confirms the result directly in this case.
Worked Example: A Function with a Product in Its Derivatives
Find the degree-three Taylor polynomial for \(f(x)=x^2e^x\) centered at \(a=0\).
Differentiate using the product rule:
At the center, \(e^0=1\), so
The coefficients are \(c_0=0\), \(c_1=0\), \(c_2=2/2!=1\), and \(c_3=6/3!=1\). Hence
Verify the matching directly: \(P_3'(x)=2x+3x^2\), \(P_3''(x)=2+6x\), and \(P_3'''(x)=6\). At zero these give \(P_3(0)=0\), \(P_3'(0)=0\), \(P_3''(0)=2\), and \(P_3'''(0)=6\), which agree with the derivatives of \(f\) calculated above.
Worked Example: A Fourth-Degree Polynomial at Zero
Find the degree-four Taylor polynomial for \(f(x)=e^{x^2}\) centered at \(a=0\).
Differentiate successively using the chain rule and product rule:
Substitute \(x=0\):
Divide each value by the corresponding factorial. The coefficients are \(1/0!=1\), \(0/1!=0\), \(2/2!=1\), \(0/3!=0\), and \(12/4!=12/24=1/2\). Therefore
For a check, its derivatives are \(P_4'(x)=2x+2x^3\), \(P_4''(x)=2+6x^2\), \(P_4'''(x)=12x\), and \(P_4^{(4)}(x)=12\). At zero their values are \(1,0,2,0,12\), including the polynomial itself as the order-zero derivative. These match the corresponding values of \(f\).
A Common Factorial Mistake
A frequent error is to use \(f^{(k)}(a)\) directly as the coefficient of \((x-a)^k\). That ignores the factor produced by differentiating the power \(k\) times. For example, let \(f(x)=x^2\) at \(a=0\), and suppose we try \(P_2(x)=c_0+c_1x+c_2x^2\). Since \(f''(0)=2\), the incorrect choice \(c_2=2\) would give \(P_2(x)=2x^2\). But
The correction is to solve the matching equation \(P_2''(0)=2!c_2=f''(0)=2\). Thus \(c_2=2/2!=1\), giving \(P_2(x)=x^2\), whose second derivative at zero is indeed \(2\). The factorial is therefore required for the derivative-matching condition to hold.
Why the Derivation Matters
The coefficient formula is not an arbitrary convention to memorize. It follows from the way derivatives act on powers centered at \(a\). Expressing the polynomial in powers of \(x-a\) makes each matching condition isolate exactly one coefficient. This gives a systematic route from derivative information to a polynomial model.
It also provides a practical check on calculations: after forming a Taylor polynomial, differentiate it and evaluate at the center. Its derivatives of orders \(0\) through \(n\) should reproduce the corresponding derivative values of the function. A mismatch usually indicates an incorrect derivative, an omitted factorial, or a mistake in evaluating at the center.
Derivative matching describes how the polynomial behaves at the center; by itself, it does not state how accurate the polynomial is at points away from the center. Questions about approximation error require additional results. Here the conclusion is specifically about the coefficients needed to match the prescribed derivatives.
Check Your Understanding
Use the derivative-matching argument, rather than memorizing coefficients, to answer these questions.
- Why does evaluating the \(k\)th derivative of \((x-a)^j\) at \(a\) give zero when \(j\ne k\)?
- For a Taylor polynomial centered at \(a\), what equation relates \(c_k\) to \(f^{(k)}(a)\)?
- For \(f(x)=x^3\) centered at \(a=0\), calculate the coefficient of \(x^3\) and verify the third derivative match.
- What incorrect coefficient would result from omitting \(k!\) when matching the second derivative of \(f(x)=x^2\) at zero?
- What must be true about the derivatives of \(f\) at \(a\) in order to form its degree-\(n\) Taylor polynomial by this method?