Why Taylor Calculations Need Care
A Taylor polynomial is built from derivatives evaluated at a chosen center. Its formula is compact, but several details must agree: the derivative order, the factorial, the center, and the power of the centered variable. A mistake in any one of these can produce a plausible-looking polynomial that does not match the function’s derivatives at the center.
This tutorial focuses on diagnosing those errors. The main check is direct: a Taylor polynomial of degree \(n\) centered at \(a\) must have the same value and the same derivatives through order \(n\) as the function at \(a\). That check often reveals an error before the polynomial is used as a local model.
The Formula and Its Parts
Each index \(k\) identifies a matching trio: the \(k\)th derivative \(f^{(k)}(a)\), the divisor \(k!\), and the power \((x-a)^k\). The term for \(k=0\) is the constant \(f(a)\); the term for \(k=1\) uses \(f'(a)(x-a)\). The terms continue in the same order up to \(k=n\).
The phrase degree \(n\) means that powers above \(n\) are not included. It does not promise that the coefficient of \((x-a)^n\) is nonzero, or that every lower power appears. If a derivative at the center is zero, its corresponding term is zero.
Why the Derivative Order and Factorial Match
The factorial is not an optional adjustment. It ensures that differentiating the \(k\)th term \(k\) times gives \(f^{(k)}(a)\) at the center. The same fact also gives a reliable way to check a proposed polynomial.
For \(k\geq j\), differentiating \((x-a)^k\) \(j\) times gives \(\frac{k!}{(k-j)!}(x-a)^{k-j}\).
If \(k>j\), the result still contains a positive power of \(x-a\), so it is zero at \(x=a\). If \(k<j\), differentiating \(j\) times gives zero.
For \(k=j\), the coefficient \(f^{(j)}(a)/j!\) is multiplied by \(j!\). The result is \(f^{(j)}(a)\).
Thus, for every \(j\) from \(0\) through \(n\), \(P_n^{(j)}(a)=f^{(j)}(a)\). This is a complete justification for the derivative check: in the \(j\)th derivative, all terms except the one indexed by \(j\) vanish at the center, and that term’s factorial cancels exactly.
Worked Example: Checking Derivative Order and Factorials
Worked Example: Checking Derivative Order and Factorials
Find the degree-three Taylor polynomial for \(f(x)=\ln x\) centered at \(a=1\). Then examine what happens if the third derivative is mistakenly placed in the squared-term slot.
Differentiate in order:
Evaluate each derivative at \(1\):
Use derivative order \(k\) with factorial \(k!\) and power \((x-1)^k\):
Check the result by differentiating:
Now put the third-derivative value \(2\) in the squared-term slot, but retain the factorial for that slot. The resulting term is \(\frac{2}{2!}(x-1)^2=(x-1)^2\). Its second derivative at \(1\) is \(2\), not the required value \(-1\). If the factorial is also omitted, the term becomes \(2(x-1)^2\), whose second derivative is \(4\). In either case the check fails. The squared-term slot must use \(f''(1)=-1\), not \(f'''(1)=2\).
Worked Example: Keeping the Center Consistent
Worked Example: Keeping the Center Consistent
Find the degree-two Taylor polynomial for \(f(x)=x^2+1\) centered at \(a=1\), and check why using powers of \(x\) in place of powers of \(x-1\) is an error.
The needed derivatives and their values at the center are:
Substitute these into the formula, keeping the center \(1\) in each power:
At the center, the polynomial gives \(P_2(1)=1+1=2=f(1)\). Also, \(P_2'(x)=2x\), so \(P_2'(1)=2=f'(1)\), and \(P_2''(x)=2\), so \(P_2''(1)=2=f''(1)\).
A mistaken expression \(2+2x+x^2\) uses the right numerical derivative values but the wrong powers. At \(x=1\), it gives \(2+2+1=5\), whereas \(f(1)=2\). The correction is to use \((x-a)^k\), not \(x^k\), whenever the center is \(a\). Only when \(a=0\) do these powers become \(x^k\).
Worked Example: Missing Powers and the Meaning of Degree
Worked Example: Missing Powers and the Meaning of Degree
Find the degree-four Taylor polynomial for \(f(x)=\sin x\) centered at \(0\). Use the result to explain why a Taylor polynomial need not contain every power up to its stated degree.
The function and its first four derivatives, evaluated at \(0\), are:
Write every slot through order four, including the zero coefficients:
The \(x^2\) and \(x^4\) terms are absent because their coefficients are zero, not because the calculation stopped early. The polynomial has degree three, which is less than or equal to four. Check it: \(P_4(0)=0\), \(P_4'(x)=1-\frac{x^2}{2}\), \(P_4'(0)=1\), \(P_4''(x)=-x\), \(P_4''(0)=0\), \(P_4'''(x)=-1\), and \(P_4^{(4)}(x)=0\). These agree with the corresponding derivatives of \(\sin x\) at \(0\).
A Practical Error Check
When a Taylor polynomial looks wrong, compare its terms against the formula before expanding or simplifying. This separates structural errors from ordinary algebra errors. In particular, do not assume that a polynomial is correct merely because its terms seem to have plausible coefficients.
Common warning signs include using \(f^{(k)}(a)\) beside a different power, evaluating derivatives at a point other than the stated center, or treating a zero coefficient as if it justified skipping the calculation. Once the polynomial is assembled, check that \(P_n^{(j)}(a)=f^{(j)}(a)\) for each \(j=0,1,\ldots,n\). A failed check identifies that something in the calculation needs correction.
Common Mistakes and Corrections
| Mistake | Why it fails | Correction |
|---|---|---|
| Using a derivative of the wrong order | The coefficient in the \(k\)th slot must reproduce the \(k\)th derivative at the center. | Match \(f^{(k)}(a)\) with \(k!\) and \((x-a)^k\). |
| Omitting \(k!\) | Repeated differentiation multiplies the power by \(k!\). | Divide the \(k\)th derivative value by \(k!\). |
| Using \(x^k\) at a nonzero center | The polynomial may not even have the correct value at \(a\). | Use \((x-a)^k\) for every term. |
| Expecting every power through \(n\) to appear | A derivative at the center may be zero. | Include the slot; simplify it to zero only after evaluating its coefficient. |
These checks concern the polynomial’s construction and its derivatives at the center. They do not, by themselves, establish how accurate the polynomial is away from the center. For the calculation at hand, however, they provide a direct way to catch the errors addressed here.
Check Your Understanding
For each question, use the Taylor polynomial formula and its derivative check to explain your answer.
- In the term of order \(3\), which derivative, factorial, and power belong together for a polynomial centered at \(a\)?
- If \(f''(a)=6\), what is the coefficient of \((x-a)^2\), and what is the second derivative of that term at \(a\)?
- Why is replacing \((x-a)^k\) with \(x^k\) generally incorrect when \(a\neq 0\)?
- Can a degree-five Taylor polynomial have no \(x^5\) term? Give the reason.
- What values should you compare when checking a proposed degree-\(n\) Taylor polynomial at its center?