Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Examples from Taylor polynomials

All examples from Taylor polynomials.

Back to Taylor polynomials

A Maclaurin polynomial for sin⁡x\sin x

The derivatives at zero alternate between 0,1,0,−10,1,0,-1. The odd-degree polynomial is

P2m+1(x)=∑k=0m(−1)kx2k+1(2k+1)!=x−x33!+x55!−⋯+(−1)mx2m+1(2m+1)!.P_{2m+1}(x) =\sum_{k=0}^{m}(-1)^k\frac{x^{2k+1}}{(2k+1)!} =x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots +(-1)^m\frac{x^{2m+1}}{(2m+1)!}.

A Maclaurin polynomial for cos⁡x\cos x

The derivatives cycle as

cos⁡x,−sin⁡x,−cos⁡x,sin⁡x,cos⁡x,…\cos x,\quad-\sin x,\quad-\cos x,\quad\sin x,\quad\cos x,\ldots

At zero, the odd derivatives vanish. Therefore

P6(x)=1−x22!+x44!−x66!.P_6(x)=1-\frac{x^2}{2!}+\frac{x^4}{4!}-\frac{x^6}{6!}.

Only even powers occur, as expected for the even function cos⁡x\cos x.

Moving the centre to π/4\pi/4

Let h=x−π/4h=x-\pi/4. Since

cos⁡π4=sin⁡π4=22,\cos\frac{\pi}{4}=\sin\frac{\pi}{4}=\frac{\sqrt2}{2},

the degree-three Taylor polynomial is

P3(x)=22−22h−24h2+212h3=22(1−h−h22+h36).\begin{aligned} P_3(x) &=\frac{\sqrt2}{2} -\frac{\sqrt2}{2}h -\frac{\sqrt2}{4}h^2 +\frac{\sqrt2}{12}h^3\\ &=\frac{\sqrt2}{2} \left(1-h-\frac{h^2}{2}+\frac{h^3}{6}\right). \end{aligned}

The coefficient rule is unchanged from the Maclaurin case; only the displacement changes from xx to x−π/4x-\pi/4.

Standard finite expansions

For exe^x, every derivative is exe^x, so every derivative at zero is 11:

Pn(x)=∑k=0nxkk!=1+x+x22!+⋯+xnn!.P_n(x)=\sum_{k=0}^{n}\frac{x^k}{k!} =1+x+\frac{x^2}{2!}+\cdots+\frac{x^n}{n!}.

For ln⁡(1+x)\ln(1+x) and k≥1k\ge1,

dkdxkln⁡(1+x)∣x=0=(−1)k+1(k−1)!,\left.\frac{d^k}{dx^k}\ln(1+x)\right|_{x=0} =(-1)^{k+1}(k-1)!,

so

Pn(x)=∑k=1n(−1)k+1xkk=x−x22+x33−⋯+(−1)n+1xnn.P_n(x)=\sum_{k=1}^{n}(-1)^{k+1}\frac{x^k}{k} =x-\frac{x^2}{2}+\frac{x^3}{3}-\cdots +(-1)^{n+1}\frac{x^n}{n}.

Replacing xx by −x-x gives the finite expansion

−x−x22−x33−⋯−xnn-x-\frac{x^2}{2}-\frac{x^3}{3}-\cdots-\frac{x^n}{n}

for ln⁡(1−x)\ln(1-x).

On this page