Why Taylor-Polynomial Errors Are Easy to Miss
A Taylor polynomial can look convincing even when one coefficient is wrong. The powers may be in the right order, and the arithmetic may be tidy, while a misplaced center, omitted factorial, or incorrect sign changes the polynomial.
A dependable check begins with the formula: each coefficient comes from a derivative evaluated at the center, divided by the factorial matching that derivative's order. The power uses the displacement from the center. These parts work together, so checking them one at a time is more reliable than judging the finished expression by appearance.
The Formula as a Diagnostic Checklist
Read each term as a matched set: the derivative order \(k\), the value \(f^{(k)}(a)\), the denominator \(k!\), and the displacement power \((x-a)^k\) must all have the same index \(k\). The center \(a\) is where derivatives are evaluated; the variable \(x\) appears in the displacement.
For example, the term of degree two is \(f''(a)(x-a)^2/2!\). Replacing \(f''(a)\) by \(f''(x)\) makes the coefficient depend on \(x\); replacing \((x-a)^2\) with \(x^2\) changes the center; omitting \(2!\) doubles that term.
Write down \(a\) and \(n\) before calculating coefficients.
Find \(f(a), f'(a), \ldots, f^{(n)}(a)\), evaluating each at the same center.
For each \(k\), use \(f^{(k)}(a)/k!\) as the coefficient of \((x-a)^k\).
Differentiate the polynomial and verify that its derivatives through order \(n\), at \(a\), match those of \(f\).
Why the Coefficients Have This Form
The formula is not an arbitrary recipe. Its coefficients are exactly the ones that make the polynomial agree with the function's derivatives at the center. To see why, write a degree-\(n\) polynomial in powers of the displacement as \(P_n(x)=\sum_{k=0}^{n}c_k(x-a)^k\).
Consider its \(j\)th derivative evaluated at \(x=a\). A term with \(k<j\) disappears when differentiated \(j\) times. A term with \(k>j\) still contains a positive power of \(x-a\), so it is zero at \(a\). Only the term with \(k=j\) contributes, giving \(P_n^{(j)}(a)=j!c_j\). Therefore, requiring \(P_n^{(j)}(a)=f^{(j)}(a)\) forces \(c_j=f^{(j)}(a)/j!\). This applies to each \(j\) from zero through \(n\), which gives the stated formula.
Worked Example: Finding a Missing Factorial
Worked Example: Finding a Missing Factorial
Find the degree-three Taylor polynomial for \(f(x)=\ln x\) centered at \(a=2\), and diagnose the error in using \(f'''(2)\) directly as the coefficient of \((x-2)^3\).
Differentiate and evaluate each derivative at \(2\):
Apply the formula, keeping each derivative with its matching factorial and displacement power:
The cubic coefficient is \(1/24\), not \(1/4\): the third derivative value must be divided by \(3!=6\). To check, differentiate the polynomial:
At \(x=2\), these give \(P_3(2)=\ln 2\), \(P_3'(2)=1/2\), \(P_3''(2)=-1/4\), and \(P_3'''(2)=1/4\), matching the function's values and derivatives there. If the cubic coefficient were incorrectly set to \(1/4\), its third derivative would be \(6(1/4)=3/2\), not \(f'''(2)=1/4\).
Worked Example: Let the Derivatives Determine the Signs
Worked Example: Let the Derivatives Determine the Signs
Find the degree-four Taylor polynomial for \(f(x)=\cos x\) centered at \(0\). Then check a common sign error: writing a positive \(x^2/2\) term.
Differentiate and evaluate at the center:
Substitute the derivative values, including their signs, into the formula:
Check by differentiating and evaluating at zero:
Also \(P_4(0)=1\), so all five values match those of \(f\). If the quadratic term were mistakenly \(+x^2/2\), the candidate's second derivative at zero would be \(+1\). But \(f''(0)=-1\), so the sign error is exposed immediately. Signs come from the evaluated derivatives; they are not assigned by a rule that every Taylor polynomial must alternate.
Worked Example: Keep the Center in Both Places
Worked Example: Keep the Center in Both Places
Find the degree-two Taylor polynomial for \(f(x)=e^x\) centered at \(a=1\). Compare it with two errors: evaluating derivatives at \(0\) instead of \(1\), and using powers of \(x\) instead of powers of \(x-1\).
Because the function and its first two derivatives are all \(e^x\), the required values at the center are \(f(1)=e\), \(f'(1)=e\), and \(f''(1)=e\). Thus
Check the value and derivatives at the center:
All three match \(f(1)\), \(f'(1)\), and \(f''(1)\). If the derivatives were evaluated at \(0\), the values would each be \(1\), giving the wrong candidate \(1+(x-1)+(x-1)^2/2\); its value at \(1\) is \(1\), not \(e\). If instead the correct coefficients were paired with powers of \(x\), the candidate would be \(e(1+x+x^2/2)\). At \(x=1\) it equals \(e(1+1+1/2)=5e/2\), not \(f(1)=e\). Both errors fail the simplest check: the polynomial must have the same value as the function at its center.
A Common Mistake: Mixing Up the Center and the Displacement
A frequent error is to treat \(a\) itself as the quantity that gets raised to a power, or to substitute the evaluation point into the displacement. The power is always \((x-a)^k\). At the center, \(x=a\), so every positive-degree displacement power is zero. Away from the center, the displacement can be positive or negative; its sign belongs to the expression \(x-a\).
For instance, when the center is \(2\) and the point of evaluation is \(1\), the displacement is \(1-2=-1\), not \(2\) and not \(1\). The quadratic displacement is \((-1)^2=1\), while the cubic displacement is \((-1)^3=-1\). Losing the minus sign in an odd power changes that term's sign.
Check Your Understanding
Use the Taylor-polynomial formula and the derivative-at-the-center check to answer these questions.
- For a polynomial centered at \(a\), what expression should appear in the power of its degree-\(k\) term?
- What factorial divides \(f^{(4)}(a)\) in a Taylor polynomial?
- If a proposed quadratic Taylor polynomial has second derivative \(3\) at the center, what value must \(f''(a)\) have for the polynomial to be correct?
- Why does a term with power greater than \(j\) contribute zero to the \(j\)th derivative evaluated at the center?
- Does a correct Taylor polynomial have alternating signs in every case? Explain what determines the signs.