Euler Hall — free maths guides

The Taylor polynomial: a polynomial that agrees at one point, well

Write a Taylor polynomial of a stated degree about a stated centre. The idea in plain words, a worked example, and a check with the answers shown — part of the free Calculus II guides.

Approximate a curve with the polynomial that copies it locally

A calculator needse0.1e^{0.1} and has no exponential inside it. It has addition and multiplication, which are cheap and exact. A Taylor polynomial is the bridge: a polynomial built out of the function's own derivatives at one point, which agrees with the function there and bends the same way nearby.

The recipe is short. Choose a centreaa. Then

Each term copies one derivative:Pn(a)=f(a)P_n(a)=f(a),Pn′(a)=f′(a)P_n'(a)=f'(a), and so on up to thenn-th. That is the whole definition, and everything else in this module is a consequence.

The factorials are not decoration. They are exactly what makes the copying work. Thekk-th derivative of(x−a)k(x-a)^k isk!k!, so dividing byk!k! leavesf(k)(a)f^{(k)}(a) and nothing else — the higher powers contribute zero atx=ax=a because they still contain(x−a)(x-a).

Degree is a budget, not a difficulty. A degree-2 polynomial has three coefficients, so it can pin three numbers: the value and the first two derivatives. Asking for one more derivative always costs one more coefficient.

Why the coefficients are forced

Suppose a polynomialPP of degree at mostnn hasP(a)=f(a)P(a)=f(a),P′(a)=f′(a)P'(a)=f'(a), …, andP(n)(a)=f(n)(a)P^{(n)}(a)=f^{(n)}(a). There is only ONE such polynomial, and it is the Taylor polynomial.

The reason is a counting argument with a formula behind it. WriteP(x)=c0+c1(x−a)+⋯+cn(x−a)nP(x)=c_0+c_1(x-a)+\cdots+c_n(x-a)^n. Differentiating once and settingx=ax=a kills every term exceptc1c_1. Differentiating twice leaves2c22c_2, three times3⋅2c33\cdot2c_3, and in generalk!ckk!c_k. So the derivative conditions forceck=f(k)(a)/k!c_k=f^{(k)}(a)/k! — one condition per coefficient, and no freedom left.

That is also why thek!k! appears: it is the derivative of thekk-th power, not a convention someone chose.

Worked example: three polynomials

*f(x)=xf(x)=\sqrt{x} about44.**f(4)=2f(4)=2,f′(x)=12xf'(x)=\frac{1}{2\sqrt x} sof′(4)=14f'(4)=\frac14,f′′(x)=−14x3/2f''(x)=-\frac{1}{4x^{3/2}} sof′′(4)=−132f''(4)=-\frac{1}{32}. Then

P2(x)=2+(x−4)4−(x−4)264.P_2(x)=2+\frac{(x-4)}{4}-\frac{(x-4)^2}{64}.

So4.2≈2+0.05−0.0464=2.049375\sqrt{4.2}\approx2+0.05-\frac{0.04}{64}=2.049375, against the true2.0493902.049390.

*f(x)=ln⁡xf(x)=\ln x about11.** All derivatives at 1 are±1\pm1, soP3(x)=(x−1)−(x−1)22+(x−1)33P_3(x)=(x-1)-\frac{(x-1)^2}{2}+\frac{(x-1)^3}{3}.

*f(x)=x3f(x)=x^3 about11.** A polynomial's Taylor series terminates: expanding by the binomial theorem gives1+3(x−1)+3(x−1)2+(x−1)31+3(x-1)+3(x-1)^2+(x-1)^3, and the next term is genuinely zero.

The third example is worth noticing: for a polynomial the approximation is exact, just written in a different frame.

By the end you can
  • Write a Taylor polynomial of a stated degree about a stated centre
  • Explain why each derivative is divided by its factorial
  • Evaluate a Taylor polynomial at a point and say why it is only an approximation
Check yourself
  1. 1. Give the degree-2 Taylor polynomial off(x)=xf(x)=\sqrt{x} about99.
  2. 2. Compute the coefficient ofx4x^4 in the Maclaurin polynomial ofe2xe^{2x}.
  3. 3. How many derivatives at00 doesP4P_4 match?
Answers

1.f(9)=3f(9)=3,f′(9)=16f'(9)=\frac16,f′′(9)=−14⋅27=−1108f''(9)=-\frac{1}{4\cdot27}=-\frac{1}{108}, soP2(x)=3+(x−9)6−(x−9)2216P_2(x)=3+\frac{(x-9)}{6}-\frac{(x-9)^2}{216}. 2.244!=1624=23\frac{2^4}{4!}=\frac{16}{24}=\frac23. 3.f,f′,f′′,f′′′,f(4)f,f',f'',f''',f^{(4)} — four derivatives besides the value.

Work out where to start — free, no accountAnswer six real questions — free, no account