Navigation

Taylor Polynomials

9.5 Some examples

17 problems · hints, answers and solutions shown beside each one

Stage 2 · Procedural

Q1Stage 2

Give the 16th-order Maclaurin polynomial for f(x)=sinx+cosxf(x)=\sin x+ \cos x.

Hint

The derivatives of f(x)f(x) repeat themselves.

Answer
T16(x)=1+x12x213!x3+14!x4+15!x516!x617!x7+18!x8+19!x9110!x10111!x11+112!x12+113!x13114!x14115!x15+116!x16\begin{align*} T_{16}(x)&=1\textcolor{blue}{+}x \textcolor{red}{-}\frac{1}{2}x^2 \textcolor{red}{-}\frac{1}{3!}x^3 \textcolor{blue}{+}\frac{1}{4!}x^4 \textcolor{blue}{+}\frac{1}{5!}x^5 \textcolor{red}{-}\frac{1}{6!}x^6 \textcolor{red}{-}\frac{1}{7!}x^7 \textcolor{blue}{+}\frac{1}{8!}x^8 \textcolor{blue}{+}\frac{1}{9!}x^9 \textcolor{red}{-}\frac{1}{10!}x^{10} \textcolor{red}{-}\frac{1}{11!}x^{11}\\ &\qquad\textcolor{blue}{+}\frac{1}{12!}x^{12} \textcolor{blue}{+}\frac{1}{13!}x^{13} \textcolor{red}{-}\frac{1}{14!}x^{14} \textcolor{red}{-}\frac{1}{15!}x^{15} \textcolor{blue}{+}\frac{1}{16!}x^{16} \end{align*}
Full solution

If we were to find the 16th-order Maclaurin polynomial for a generic function, we might expect to have to differentiate 16 times (ugh). But, we know that the derivatives of sines and cosines repeat themselves. So, it's enough to figure out the pattern:

f(x)=sinx+cosxf(0)=1f(x)=cosxsinxf(0)=1f(x)=sinxcosxf(0)=1f(x)=cosx+sinxf(0)=1f(4)=sinx+cosxf(4)(0)=1\begin{align*} f(x)&=\sin x + \cos x & f(0)&=1\\ f'(x)&=\cos x - \sin x & f'(0)&=1\\ f''(x)&=-\sin x - \cos x & f''(0)&=-1\\ f'''(x)&=-\cos x +\sin x & f'''(0)&=-1\\ f^{(4)}&=\sin x + \cos x & f^{(4)}(0)&=1 \end{align*}

Since f(4)(x)=f(x)f^{(4)}(x)=f(x), our derivatives repeat from here. They follow the pattern:
+1\textcolor{blue}{+1}, +1\textcolor{blue}{+1}, 1\textcolor{red}{-1}, 1\textcolor{red}{-1}.

T16(x)=1+x12x213!x3+14!x4+15!x516!x617!x7+18!x8+19!x9110!x10111!x11+112!x12+113!x13114!x14115!x15+116!x16\begin{align*} T_{16}(x)&=1\textcolor{blue}{+}x \textcolor{red}{-}\frac{1}{2}x^2 \textcolor{red}{-}\frac{1}{3!}x^3 \textcolor{blue}{+}\frac{1}{4!}x^4 \textcolor{blue}{+}\frac{1}{5!}x^5 \textcolor{red}{-}\frac{1}{6!}x^6 \textcolor{red}{-}\frac{1}{7!}x^7 \textcolor{blue}{+}\frac{1}{8!}x^8 \textcolor{blue}{+}\frac{1}{9!}x^9 \textcolor{red}{-}\frac{1}{10!}x^{10} \textcolor{red}{-}\frac{1}{11!}x^{11}\\ &\qquad\textcolor{blue}{+}\frac{1}{12!}x^{12} \textcolor{blue}{+}\frac{1}{13!}x^{13} \textcolor{red}{-}\frac{1}{14!}x^{14} \textcolor{red}{-}\frac{1}{15!}x^{15} \textcolor{blue}{+}\frac{1}{16!}x^{16} \end{align*}
Q2Stage 2

Give the 100th-order Taylor polynomial for s(t)=4.9t2t+10s(t)=4.9t^2-t+10 about t=5t=5.

Hint

You are approximating a polynomial with a polynomial.

Answer

T100(t)=127.5+48(t5)+4.9(t5)2=4.9t2t+10T_{100}(t)=127.5+48(t-5)+4.9(t-5)^2=4.9t^2-t+10

Full solution

A Taylor polynomial gives a polynomial approximation for a function s(t)s(t). Since s(t)s(t) is itself a polynomial, any nnth-order Taylor polynomial, with nn greater than or equal to the degree of s(t)s(t), will simply give s(t)s(t). So, in our case, T100(t)=s(t)=4.9t2t+10T_{100}(t)=s(t)=4.9t^2-t+10. If that isn't satisfying, you can go through the normal method of calculating T100(t)T_{100}(t).

s(t)=4.9t2t+10s(5)=4.9(25)5+10=127.5s(t)=9.8t1s(5)=9.8(5)1=48s(t)=9.8s(5)=9.8\begin{align*} s(t)&=4.9t^2-t+10 & s(5)&=4.9(25)-5+10=127.5\\ s'(t)&=9.8t-1 & s'(5)&=9.8(5)-1=48\\ s''(t)&=9.8 & s''(5)&=9.8 \end{align*}

The rest of the derivatives of s(t)s(t) are identically zero, so they are (in particular) zero when t=5t=5. Therefore,

T100(t)=127.5+48(t5)+129.8(t5)2=127.5+48(t5)+4.9(t5)2\begin{align*} T_{100}(t)&=127.5+48(t-5)+\frac{1}{2}9.8(t-5)^2\\ &=127.5+48(t-5)+4.9(t-5)^2 \end{align*}

We can now check that T100(t)T_{100}(t) really is the same as s(t)s(t).

T100(t)=127.5+48(t5)+4.9(t5)2=127.5+48(t5)+4.9(t210t+25)=[127.5+48(5)+4.9(25)]+[484.9(10)]t+4.9t2=10t+4.9t2=s(t)\begin{align*} T_{100}(t)&=127.5+48(t-5)+4.9(t-5)^2\\ &=127.5+48(t-5)+4.9(t^2-10t+25)\\ &=[127.5+48(-5)+4.9(25)]+[48-4.9(10)]t+4.9t^2\\ &=10-t+4.9t^2=s(t) \end{align*}

as expected.

Q3Stage 2

Write the nnth-order Taylor polynomial for f(x)=2xf(x)=2^x about x=1x=1 in sigma notation.

Hint

Recall ddx{2x}=2xlog2\ds\diff{}{x}\left\{2^x\right\}=2^x\log 2, where log2\log 2 is the constant loge2\log_e2.

Answer

Tn(x)=k=0n2(log2)kk!(x1)kT_n(x)=\ds\sum_{k=0}^n \frac{2(\log 2)^k}{k!}(x-1)^k

Full solution

Let's start by differentiating f(x)f(x) and looking for a pattern. Remember that log2=loge2\log 2 = \log_e 2 is a constant number.

f(x)=2xf(x)=2xlog2f(x)=2x(log2)2f(3)(x)=2x(log2)3f(4)(x)=2x(log2)4f(5)(x)=2x(log2)5\begin{align*}f(x)&=2^x\\ f'(x)&=2^x\log 2\\ f''(x)&=2^x\left(\log 2\right)^2\\ f^{(3)}(x)&=2^x\left(\log 2\right)^3\\ f^{(4)}(x)&=2^x\left(\log 2\right)^4\\ f^{(5)}(x)&=2^x\left(\log 2\right)^5\end{align*}

So, in general,

f(k)(x)=2x(log2)k\begin{align*}f^{(k)}(x)&=2^x\left(\log 2\right)^k\end{align*}

We notice that this formula works even when k=0k=0 and k=1k=1. When x=1x=1,

f(k)(1)=2(log2)k\begin{align*}f^{(k)}(1)&=2\left(\log 2\right)^k\end{align*}

The nnth-order Taylor polynomial of f(x)f(x) about x=1x=1 is

Tn(x)=k=0nf(k)(1)k!(x1)k=k=0n2(log2)kk!(x1)k\begin{align*}T_{n}(x)&=\sum_{k=0}^n \frac{f^{(k)}(1)}{k!}(x-1)^k\\ &=\sum_{k=0}^n \frac{2(\log 2)^k}{k!}(x-1)^k\end{align*}
Q4Stage 2

Find the 6th-order Taylor polynomial of f(x)=x2logx+2x2+5f(x)=x^2\log x+2x^2+5 about x=1x=1, remembering that logx\log x is the natural logarithm of xx, logex\log_ex.

Hint

Just keep differentiating–it gets easier!

Answer

T6(x)=7+5(x1)+72(x1)2+13(x1)3112(x1)4+130(x1)5160(x1)6T_6(x)=7+5(x-1)+\frac{7}{2}(x-1)^2+\frac{1}{3}(x-1)^3-\frac{1}{12}(x-1)^4+\frac{1}{30}(x-1)^5-\frac{1}{60}(x-1)^6

Full solution

We need to know the first six derivatives of f(x)f(x) at x=1x=1. Let's get started.

f(x)=x2logx+2x2+5f(1)=7f(x)=(x2)1x+(2x)logx+4x=2xlogx+5xf(1)=5f(x)=(2x)1x+(2)logx+5=2logx+7f(1)=7f(x)=2x1f(1)=2f(4)=2x2f(4)(1)=2f(5)=4x3f(5)(1)=4f(6)=12x4f(6)(1)=12\begin{align*} f(x)&=x^2\log x + 2x^2+5 & \color{red}f(1)&\color{red}=7\\ f'(x)&=(x^2)\frac{1}{x}+(2x)\log x + 4x \\ &=2x\log x + 5x& \color{red}f'(1)&\color{red}=5\\ f''(x)&=(2x)\frac{1}{x}+(2)\log x + 5\\ &=2\log x + 7& \color{red}f''(1)&\color{red}=7\\ f'''(x)&=2x^{-1}& \color{red}f'''(1)&\color{red}=2\\ f^{(4)}&=-2x^{-2}& \color{red}f^{(4)}(1)&\color{red}=-2\\ f^{(5)}&=4x^{-3}& \color{red}f^{(5)}(1)&\color{red}=4\\ f^{(6)}&=-12x^{-4}& \color{red}f^{(6)}(1)&\color{red}=-12 \end{align*}

Now, we can plug in.

T6(x)=f(1)+f(1)(x1)+12f(1)(x1)2+13!f(1)(x1)3+14!f(4)(1)(x1)4+15!f(5)(1)(x1)5+16!f(6)(1)(x1)6=7+5(x1)+12(7)(x1)2+13!(2)(x1)3+14!(2)(x1)4+15!(4)(x1)5+16!(12)(x1)6=7+5(x1)+72(x1)2+13(x1)3112(x1)4+130(x1)5160(x1)6\begin{align*} T_6(x)&=\textcolor{red}{f(1)}+\textcolor{red}{f'(1)}(x-1)+\frac{1}{2}\textcolor{red}{f''(1)}(x-1)^2+\frac{1}{3!}\textcolor{red}{f'''(1)}(x-1)^3\\ &\quad +\frac{1}{4!}\textcolor{red}{f^{(4)}(1)}(x-1)^4 +\frac{1}{5!}\textcolor{red}{f^{(5)}(1)}(x-1)^5 +\frac{1}{6!}\textcolor{red}{f^{(6)}(1)}(x-1)^6\\ &=\textcolor{red}{7}+\textcolor{red}{5}(x-1)+\frac{1}{2}(\textcolor{red}{7})(x-1)^2 +\frac{1}{3!}(\textcolor{red}{2})(x-1)^3\\ &\quad+\frac{1}{4!}(\textcolor{red}{-2})(x-1)^4 +\frac{1}{5!}(\textcolor{red}{4})(x-1)^5 +\frac{1}{6!}(\textcolor{red}{-12})(x-1)^6\\ &=7+5(x-1)+\frac{7}{2}(x-1)^2+\frac{1}{3}(x-1)^3-\frac{1}{12}(x-1)^4+\frac{1}{30}(x-1)^5-\frac{1}{60}(x-1)^6 \end{align*}
Q5Stage 2

Give the nnth-order Maclaurin polynomial for 11x\dfrac{1}{1-x} in sigma notation.

Hint

Start by differentiating, and finding the pattern for f(k)(0)f^{(k)}(0). Remember the chain rule!

Answer

Tn(x)=k=0nxkT_n(x)=\ds\sum_{k=0}^n x^k

Full solution

We'll start by differentiating and looking for a pattern.

f(x)=11x=(1x)1\begin{align*}f(x)&=\frac{1}{1-x}=(1-x)^{-1}\end{align*}

Using the chain rule,

f(x)=(1)(1x)2(1)=(1x)2f(x)=(2)(1x)3(1)=2(1x)3f(3)(x)=(3)(2)(1x)4(1)=2(3)(1x)4f(4)(x)=(4)(2)(3)(1x)5(1)=2(3)(4)(1x)5f(5)(x)=(5)(2)(3)(4)(1x)6(1)=2(3)(4)(5)(1x)6\begin{align*}f'(x)&=(-1)(1-x)^{-2}(-1)=(1-x)^{-2}\\ f''(x)&=(-2)(1-x)^{-3}(-1)=2(1-x)^{-3}\\ f^{(3)}(x)&=(-3)(2)(1-x)^{-4}(-1)=2(3)(1-x)^{-4}\\ f^{(4)}(x)&=(-4)(2)(3)(1-x)^{-5}(-1)=2(3)(4)(1-x)^{-5}\\ f^{(5)}(x)&=(-5)(2)(3)(4)(1-x)^{-6}(-1)=2(3)(4)(5)(1-x)^{-6}\end{align*}

Recognizing the pattern,

f(k)(x)=k!(1x)(k+1)f(k)(0)=k!(1)(k+1)=k!\begin{align*}f^{(k)}(x)&=k!(1-x)^{-(k+1)}\\ f^{(k)}(0)&=k!(1)^{-(k+1)}=k!\end{align*}

The nnth-order Maclaurin polynomial for f(x)f(x) is

Tn(x)=k=0nf(k)(0)k!xk=k=0nk!k!xk=k=0nxk\begin{align*}T_n(x)&=\sum_{k=0}^n \frac{f^{(k)}(0)}{k!}x^k\\ &=\sum_{k=0}^n \frac{k!}{k!}x^k\\ &=\sum_{k=0}^n x^k\end{align*}
Q6Stage 2

Find the 20th-order Maclaurin polynomial for sin(x4)\sin(x^4).

Hint

Manipulate a known polynomial, rather than working from the definition.

Answer

x4x123!+x205!x^4-\frac{x^{12}}{3!}+\frac{x^{20}}{5!}

Full solution

The 5th-order Maclaurin polynomial for sin(x)\sin(x) is T5(x)=xx33!+x55!T_5(x)=x-\frac{x^3}{3!}+\frac{x^5}{5!}, so the 20th-order Maclaurin polynomial for sin(x4)\sin(x^4) is T5(x4)=x4x123!+x205!T_5(x^4)=x^4-\frac{x^{12}}{3!}+\frac{x^{20}}{5!}. (We use here Theorem 9.5.8 from the textbook.)

Q7Stage 2

Find the 5th-order Maclaurin polynomial for the derivative of arctangent, 11+x2\frac{1}{1+x^2}.

Hint

Manipulate a known polynomial, rather than working from the definition.

Answer

1x2+x41-x^2+x^4

Full solution

Let f(x)=11+x2f(x)=\frac{1}{1+x^2} and g(x)=11xg(x)=\frac{1}{1-x}. To use Theorem 9.5.8 from the textbook, we note 11+x2=11[x2]\frac{1}{1+x^2}=\frac{1}{1-[-x^2]}. That is, f(x)=g(x2)f(x)=g(-x^2).

Tf,3=1+x+x2+x3    Tg,6=1+[x2]+[x2]2+[x2]3=1x2+x4x6    Tg,5=1x2+x4\begin{align*} T_{f,3}&= 1+\textcolor{red}{x}+\textcolor{red}{x}^2+\textcolor{red}{x}^3\\ \implies T_{g,6}&= 1+\textcolor{blue}{[-x^2]}+\textcolor{blue}{[-x^2]}^2+\textcolor{blue}{[-x^2]}^3\\ &=1-x^2+x^4-x^6\\ \implies T_{g,5}&=1-x^2+x^4 \end{align*}

(We note here that the coefficient of x5x^5 is 0.)

Q8Stage 2

Use Maclaurin polynomials to evaluate limx0exsinxcosxx2x3\ds\lim_{x \to 0}\frac{e^x-\sin x - \cos x -x^2}{x^3}.

Hint

The lowest-order terms in the numerator cancel out.

Answer

13\frac13

Full solution

For xx close to 0, lower powers dominate higher powers.

ex1+x+x22!+x33!+x44!sinxx+x33!x55!cosx1+x22!x44!So, exsinxcosxx2(1+x+x22!+x33!+x44!)  +(x+x33!x55!)  +(1+x22!x44!)  x2=2x33!x55!\begin{align*} \color{red}e^x & \approx \color{red}1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\frac{x^4}{4!}\\ \color{blue}-\sin x &\approx \color{blue}-x+\frac{x^3}{3!}-\frac{x^5}{5!}\\ \color{olive}-\cos x &\approx \color{olive}-1+\frac{x^2}{2!}-\frac{x^4}{4!}\\ \text{So, }\quad e^x-\sin x -\cos x -x^2 & \approx \left(\textcolor{red}{1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\frac{x^4}{4!}}\right)\\ &~~+\left(\textcolor{blue}{-x+\frac{x^3}{3!}-\frac{x^5}{5!}}\right)\\ &~~+\left(\textcolor{olive}{-1+\frac{x^2}{2!}-\frac{x^4}{4!}}\right)\\ &~~-x^2\\ &=\frac{2x^3}{3!}-\frac{x^5}{5!} \end{align*}

Then,

limx0exsinxcosxx2x3=limx02x33!x55!x3=limx023!x25!=23!=13\lim_{x \to 0}\frac{e^x-\sin x-\cos x-x^2}{x^3}=\lim_{x \to 0}\frac{\frac{2x^3}{3!}-\frac{x^5}{5!}}{x^3}=\lim_{x \to 0}\frac{2}{3!}-\frac{x^2}{5!}=\frac{2}{3!}=\frac13

Stage 3 · Application

Q9Stage 3

Calculate the 33rd-order Taylor Polynomial for f(x)=xxf(x)=x^x about x=1x=1.

Hint

You'll need to differentiate xxx^x. This is accomplished using logarithmic differentiation, covered in Section 4.4.

Answer

T3(x)=1+(x1)+(x1)2+12(x1)3T_3(x)=1+(x-1)+(x-1)^2+\frac{1}{2}(x-1)^3

Full solution

We'll need to know the first three derivatives of xxx^x at x=1x=1. This is a good review of logarithmic differentiation, covered in Section 4.4.

f(x)=xxf(1)=1log(f(x))=log(xx)=xlogxddx{log(f(x))}=ddx{xlogx}f(x)f(x)=x1x+logx=1+logxf(x)=xx[1+logx]f(1)=1f(x)=ddx{xx}[1+logx]+xxddx{1+logx}=(xx[1+logx])[1+logx]+xx1x=xx((1+logx)2+1x)f(1)=2f(x)=ddx{xx}((1+logx)2+1x)+xxddx{(1+logx)2+1x}=xx[1+logx]((1+logx)2+1x)+xx[2x(1+logx)1x2]=xx((1+logx)3+3x(1+logx)1x2)f(1)=3\begin{align*}f(x)&=x^x& \color{red}f(1)&\color{red}=1\\ \log(f(x))&=\log\left(x^x\right)=x\log x\\ \diff{}{x}\left\{\log(f(x))\right\}&=\diff{}{x}\left\{x\log x\right\}\\ \frac{f'(x)}{f(x)}&=x\cdot\frac{1}{x}+\log x=1+\log x\\ f'(x)&=x^x\left[1+\log x\right] & \color{red}f'(1)&\color{red}=1\\ f''(x)&=\diff{}{x}\left\{x^x\right\}[1+\log x] + x^x \diff{}{x}\left\{1+\log x\right\}\\ &=\left(x^x\left[1+\log x\right]\right)\left[1+\log x\right]+x^x\cdot\frac{1}{x}\\ &=x^x\left((1+\log x)^2+\frac{1}{x}\right)& \color{red}f''(1)&\color{red}=2\\ f'''(x)&=\diff{}{x}\left\{x^x\right\}\left((1+\log x)^2+\frac{1}{x}\right)+x^x\diff{}{x}\left\{(1+\log x)^2+\frac{1}{x}\right\}\\ &=x^x\left[1+\log x\right]\left(\left(1+\log x\right)^2+\frac{1}{x}\right)+x^x \left[\frac{2}{x}(1+\log x)-\frac{1}{x^2}\right]\\ &=x^x\left(\left(1+\log x\right)^3+\frac{3}{x}\left(1+\log x\right)-\frac{1}{x^2}\right)& \color{red}f'''(1)&\color{red}=3\end{align*}

Now, we can plug in:

T3(x)=f(1)+f(1)(x1)+12f(1)(x1)2+13!f(1)(x1)3=1+1(x1)+12(2)(x1)2+16(3)(x1)3=1+(x1)+(x1)2+12(x1)3\begin{align*}T_3(x)&=\textcolor{red}{f(1)}+\textcolor{red}{f'(1)}(x-1)+\frac{1}{2}\textcolor{red}{f''(1)}(x-1)^2+\frac{1}{3!}\textcolor{red}{f'''(1)}(x-1)^3\\ &=\textcolor{red}{1}+\textcolor{red}{1}(x-1)+\frac{1}{2}(\textcolor{red}{2})(x-1)^2+\frac{1}{6}(\textcolor{red}{3})(x-1)^3\\ &=1+(x-1)+(x-1)^2+\frac{1}{2}(x-1)^3\end{align*}
Q10Stage 3

Use a 5th-order Maclaurin polynomial for 6arctanx6\arctan x to approximate π\pi.

Hint

What is 6arctan(13)6\arctan \left(\dfrac{1}{\sqrt{3}}\right)?

Answer

π=6arctan(13)824533.156\pi=6\arctan\left(\dfrac{1}{\sqrt3}\right)\approx\dfrac{82}{45}\sqrt{3}\approx3.156

Full solution

We note that 6arctan(13)=6(π6)=π6\arctan\left(\dfrac{1}{\sqrt3}\right)=6\left(\dfrac{\pi}{6}\right)=\pi. We will find the 5th-order Maclaurin polynomial T5(x)T_5(x) for f(x)=6arctanxf(x)=6\arctan x. Then π=f(13)T5(13)\pi=f\left(\dfrac{1}{\sqrt{3}}\right) \approx T_5\left(\dfrac{1}{\sqrt{3}}\right). Let's begin by finding the first five derivatives of f(x)=6arctanxf(x)=6\arctan x.

f(x)=6arctanxf(0)=0f(x)=6(11+x2)f(0)=6f(x)=6(02x(1+x2)2)=12(x(1+x2)2)f(0)=0f(x)=12((1+x2)2x2(1+x2)(2x)(1+x2)4)=12((1+x2)4x2(1+x2)3)=12(13x2(1+x2)3)f(0)=12f(4)(x)=12((1+x2)3(6x)(13x2)3(1+x2)2(2x)(1+x2)6)=12(6x(1+x2)6x(13x2)(1+x2)4)=144(xx3(1+x2)4)f(4)(0)=0f(5)(x)=144((1+x2)4(13x2)(xx3)4(1+x2)3(2x)(1+x2)8)=144((1+x2)(13x2)8x(xx3)(1+x2)5)=1445x410x2+1(1+x2)5f(5)(0)=144\begin{align*} f(x)&=6\arctan x&f(0)&=0\\ f'(x)&=6\left(\frac{1}{1+x^2}\right)&f'(0)&=6\\ f''(x)&=6\left(\frac{0-2x}{(1+x^2)^2}\right)=-12\left(\frac{x}{(1+x^2)^2}\right)&f''(0)&=0\\ f'''(x)&=-12\left(\frac{(1+x^2)^2-x\cdot 2(1+x^2)(2x)}{(1+x^2)^4}\right)\\ &=-12\left(\frac{(1+x^2)-4x^2}{(1+x^2)^3}\right)\\ &=-12\left(\frac{1-3x^2}{(1+x^2)^3}\right)&f'''(0)&=-12\\ f^{(4)}(x)&=-12\left(\frac{(1+x^2)^3(-6x)-(1-3x^2)\cdot3(1+x^2)^2(2x)}{(1+x^2)^6}\right)\\ &=-12\left(\frac{-6x(1+x^2)-6x(1-3x^2)}{(1+x^2)^4}\right)\\ &=144\left(\frac{x-x^3}{(1+x^2)^4}\right)&f^{(4)}(0)&=0\\ f^{(5)}(x)&=144\left(\frac{(1+x^2)^4(1-3x^2)-(x-x^3)\cdot4(1+x^2)^3(2x)}{(1+x^2)^{8}}\right)\\ &=144\left(\frac{(1+x^2)(1-3x^2)-8x(x-x^3)}{(1+x^2)^{5}}\right)\\ &=144\frac{5x^4-10x^2+1}{(1+x^2)^5}&f^{(5)}(0)&=144 \end{align*}

We now use these values to compute the 5th-order Maclaurin polynomial for f(x)f(x).

T5(x)=f(0)+f(0)x+12f(0)x2+13!f(0)x3+14!f(4)(0)x4+15!f(5)(0)x5=6x126x3+144120x5=6x2x3+65x5\begin{align*}T_5(x)&=f(0)+f'(0)x+\frac{1}{2}f''(0)x^2+\frac{1}{3!}f'''(0)x^3+\frac{1}{4!}f^{(4)}(0)x^4 +\frac{1}{5!}f^{(5)}(0)x^5\\ &=6x-\frac{12}{6}x^3+\frac{144}{120}x^5\\ &=6x-2x^3+\frac{6}{5}x^5\end{align*}

Now, if we want to approximate f(13)=6arctan(13)=πf\left(\dfrac{1}{\sqrt{3}}\right)=6\arctan\left(\dfrac{1}{\sqrt{3}}\right)=\pi:

π=f(13)T5(13)=63233+6535=23(1133+159)3.156\begin{align*}\pi&=f\left(\dfrac{1}{\sqrt{3}}\right) \approx T_5\left(\dfrac{1}{\sqrt{3}}\right)= \frac{6}{\sqrt{3}}-\frac{2}{\sqrt{3}^3}+\frac{6}{5\sqrt{3}^5}\\ &=2\sqrt{3}\left(1-\frac{1}{3\cdot3}+\frac{1}{5\cdot 9}\right)\approx 3.156\end{align*}

Remark: There are numerous methods for computing π\pi to any desired degree of accuracy. Many of them use the Maclaurin expansion of arctanx\arctan x. In 1706 John Machin computed π\pi to 100 decimal digits by using the Maclaurin expansion together with
π=16arctan154arctan1239\pi = 16 \arctan\frac{1}{5} -4\arctan\frac{1}{239}.

Q11Stage 3

Write the 100100th-order Taylor polynomial for f(x)=x(logx1)f(x)=x(\log x -1) about x=1x=1 in sigma notation.

Hint

After a few derivatives, this will be very similar to Example 9.5.2.

Answer

T100(x)=1+k=2100(1)kk(k1)(x1)kT_{100}(x)=-1+\ds\sum_{k=2}^{100}\frac{(-1)^k}{k(k-1)}(x-1)^k

Full solution

Let's start by differentiating, and looking for a pattern.

f(x)=x(logx1)f(1)=1f(x)=x(1x)+logx1=logxf(1)=0f(x)=1x=x1f(1)=1f(3)(x)=(1)x2f(3)(1)=1f(4)(x)=(2)(1)x3=2!x3f(4)(1)=2!f(5)(x)=(3)(2)(1)x4=3!x4f(4)(1)=3!f(6)(x)=(4)(3)(2)(1)x5=4!x5f(4)(1)=4!f(7)(x)=(5)(4)(3)(2)(1)x6=5!x6f(7)(1)=5!f(8)(x)=(6)(5)(4)(3)(2)(1)x7=6!x7f(8)(1)=6!\begin{align*}f(x)&=x(\log x -1)&f(1)&=-1\\ f'(x)&=x\left(\frac{1}{x}\right)+\log x -1 = \log x&f'(1)&=0\\ f''(x)&=\frac{1}{x}=x^{-1}&f''(1)&=1\\ f^{(3)}(x)&=(-1)x^{-2}&f^{(3)}(1)&=-1\\ f^{(4)}(x)&=(-2)(-1)x^{-3}=2!x^{-3}&f^{(4)}(1)&=2!\\ f^{(5)}(x)&=(-3)(-2)(-1)x^{-4}=-3!x^{-4}&f^{(4)}(1)&=-3!\\ f^{(6)}(x)&=(-4)(-3)(-2)(-1)x^{-5}=4!x^{-5}&f^{(4)}(1)&=4!\\ f^{(7)}(x)&=(-5)(-4)(-3)(-2)(-1)x^{-6}=-5!x^{-6}&f^{(7)}(1)&=-5!\\ f^{(8)}(x)&=(-6)(-5)(-4)(-3)(-2)(-1)x^{-7}=6!x^{-7}&f^{(8)}(1)&=6!\end{align*}

When k2k \geq 2, making use of the fact that 0!=10!=1 and (1)k2=(1)k(-1)^{k-2}=(-1)^k:

f(k)(x)=(1)k2(k2)!x(k1)f(k)(1)=(1)k(k2)!\begin{align*}f^{(k)}(x)&=(-1)^{k-2}(k-2)!x^{-(k-1)}&f^{(k)}(1)&=(-1)^k(k-2)!\end{align*}

Now we use the standard form of a Taylor polynomial. Since the first two terms don't fit the pattern, we add those outside of the sigma.

T100(x)=k=0100f(k)(1)k!(x1)k=f(1)+f(1)(x1)+k=2100f(k)(1)k!(x1)k=1+0(x1)+k=2100(1)k(k2)!k!(x1)k=1+k=2100(1)kk(k1)(x1)k\begin{align*}T_{100}(x)&=\sum_{k=0}^{100}\frac{f^{(k)}(1)}{k!}(x-1)^k\\ &=f(1)+f'(1)(x-1)+\sum_{k=2}^{100}\frac{f^{(k)}(1)}{k!}(x-1)^k\\ &=-1+0(x-1)+\sum_{k=2}^{100}\frac{(-1)^k(k-2)!}{k!}(x-1)^k\\ &=-1+\sum_{k=2}^{100}\frac{(-1)^k}{k(k-1)}(x-1)^k\end{align*}
Q12Stage 3

Write the (2n)(2n)th-order Taylor polynomial for f(x)=sinxf(x)=\sin x about x=π4x=\dfrac{\pi}{4} in sigma notation.

Hint

Treat the even and odd powers separately.

Answer

$T_{2n}(x)=\sum_{\ell=0}^{n}\frac{(-1)^\ell}{(2\ell)!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{2\ell} +\sum_{\ell=0}^{n-1}\frac{(-1)^\ell}{(2\ell+1)!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{2\ell+1}$

Full solution

Recall that

T2n(x)=k=02nf(k)(π4)k!(xπ4)k\begin{equation*} T_{2n}(x)=\sum_{k=0}^{2n} \frac{f^{(k)}\left(\frac{\pi}{4}\right)}{k!}\left(x-\frac{\pi}{4}\right)^k \end{equation*}

Let's start by taking some derivatives. Of course, since we're differentiating sine, the derivatives will repeat every four iterations.

f(x)=sinxf(π4)=12f(x)=cosxf(π4)=12f(x)=sinxf(π4)=12f(x)=cosxf(π4)=12\begin{align*} f(x)&=\sin x & f\left(\frac{\pi}{4}\right)&=\frac{1}{\sqrt 2}\\ f'(x)&=\cos x & f'\left(\frac{\pi}{4}\right)&=\frac{1}{\sqrt{2}}\\ f''(x)&=-\sin x & f''\left(\frac{\pi}{4}\right)&=-\frac{1}{\sqrt 2}\\ f'''(x)&=-\cos x & f'''\left(\frac{\pi}{4}\right)&=-\frac{1}{\sqrt{2}}\\ \end{align*}

So, the pattern of derivatives is 12\dfrac{1}{\sqrt{2}}, 12\dfrac{1}{\sqrt{2}}, 12-\dfrac{1}{\sqrt{2}}, 12-\dfrac{1}{\sqrt{2}}, 12\dfrac{1}{\sqrt{2}}, 12\dfrac{1}{\sqrt{2}}, 12-\dfrac{1}{\sqrt{2}}, 12-\dfrac{1}{\sqrt{2}}, etc. This is a little tricky to write in sigma notation. We can deal with the “doubles" by separating the even and odd powers. The first few terms of T2nT_{2n} that contain even powers of (xπ4)\left(x-\frac{\pi}{4}\right) are

12k=012!2(xπ4)2k=2+14!2(xπ4)4k=4\begin{align*} \underbrace{\frac{1}{\sqrt{2}}}_{k=0} -\underbrace{\frac{1}{2!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{2}}_{k=2} +\underbrace{\frac{1}{4!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{4}}_{k=4} \end{align*}

Observe that the signs alternate between successive terms. So if we rename kk to 22\ell these terms are

12=012!2(xπ4)2=1+14!2(xπ4)4=2\begin{align*} \underbrace{\frac{1}{\sqrt{2}}}_{\ell=0} -\underbrace{\frac{1}{2!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{2}}_{\ell=1} +\underbrace{\frac{1}{4!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{4}}_{\ell=2} \end{align*}

and the th\ell^{\rm th} term here is (1)(2)!2(xπ4)2\frac{(-1)^\ell}{(2\ell)!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{2\ell}. To verify that this really is the th\ell^{\rm th} term, evaluate this for =0,1,2\ell=0,1,2 explicitly. When k=2nk=2n, =n\ell=n so that

0k2nk evenf(k)(π4)k!(xπ4)k==0n(1)(2)!2(xπ4)2\begin{align*} \sum_{\atp{0\le k\le 2n}{k{\rm\ even}}} \frac{f^{(k)}\left(\frac{\pi}{4}\right)}{k!}\left(x-\frac{\pi}{4}\right)^k =\sum_{\ell=0}^{n}\frac{(-1)^\ell}{(2\ell)!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{2\ell} \end{align*}

Now for the odd powers. The first few terms of T2nT_{2n} that contain odd powers of (xπ4)\left(x-\frac{\pi}{4}\right) are

12(xπ4)k=113!2(xπ4)3k=3+15!2(xπ4)5k=5\begin{align*} \underbrace{\frac{1}{\sqrt{2}}\left(x-\frac{\pi}{4}\right)}_{k=1} -\underbrace{\frac{1}{3!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{3}}_{k=3} +\underbrace{\frac{1}{5!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{5}}_{k=5} \end{align*}

Observe that the signs again alternate between successive terms. So if we rename kk to 2+12\ell+1 these terms are

12(xπ4)=013!2(xπ4)3=1+15!2(xπ4)5=2\begin{align*} \underbrace{\frac{1}{\sqrt{2}}\left(x-\frac{\pi}{4}\right)}_{\ell=0} -\underbrace{\frac{1}{3!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{3}}_{\ell=1} +\underbrace{\frac{1}{5!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{5}}_{\ell=2} \end{align*}

and the th\ell^{\rm th} term here is (1)(2+1)!2(xπ4)2+1\frac{(-1)^\ell}{(2\ell+1)!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{2\ell+1}. To verify that this really is the th\ell^{\rm th} term, evaluate this for =0,1,2\ell=0,1,2 explicitly. The largest odd integer that is smaller than 2n2n is 2n12n-1 and when k=2n1=2+1k=2n-1=2\ell+1, =n1\ell=n-1 so that

0k2nk oddf(k)(π4)k!(xπ4)k==0n1(1)(2+1)!2(xπ4)2+1\begin{align*} \sum_{\atp{0\le k\le 2n}{k{\rm\ odd}}} \frac{f^{(k)}\left(\frac{\pi}{4}\right)}{k!}\left(x-\frac{\pi}{4}\right)^k =\sum_{\ell=0}^{n-1}\frac{(-1)^\ell}{(2\ell+1)!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{2\ell+1} \end{align*}

Putting the even and odd powers together

T2n(x)==0n(1)(2)!2(xπ4)2+=0n1(1)(2+1)!2(xπ4)2+1\begin{align*} T_{2n}(x)&=\sum_{\ell=0}^{n}\frac{(-1)^\ell}{(2\ell)!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{2\ell} +\sum_{\ell=0}^{n-1}\frac{(-1)^\ell}{(2\ell+1)!\sqrt{2}}\left(x-\frac{\pi}{4}\right)^{2\ell+1} \end{align*}
Q13Stage 3

Estimate the sum below

1+12+13!+14!++1157!1+\frac{1}{2}+\frac{1}{3!}+\frac{1}{4!}+\cdots +\frac{1}{157!}

by interpreting it as a Maclaurin polynomial.

Hint

Compare this to the Maclaurin polynomial for exe^x.

Answer
1+12+13!+14!++1157!e11+\frac{1}{2}+\frac{1}{3!}+\frac{1}{4!}+\cdots +\frac{1}{157!}\approx e-1
Full solution

From Example 9.5.1

in the text, we see that the nnth Maclaurin polynomial for f(x)=exf(x)=e^x is

Tn(x)=k=0n1k!xk=1+x+x22+x33!+x44!++xnn!\begin{align*}T_n(x)&=\sum_{k=0}^n\frac{1}{k!}x^k=1+x+\frac{x^2}{2}+\frac{x^3}{3!}+\frac{x^4}{4!}+\cdots +\frac{x^n}{n!}\end{align*}

If n=157n=157 and x=1x=1,

T157(1)=k=01571k!=1+1+12+13!+14!++1157!\begin{align*}T_{157}(1)&=\sum_{k=0}^{157}\frac{1}{k!}=1+1+\frac{1}{2}+\frac{1}{3!}+\frac{1}{4!}+\cdots +\frac{1}{157!}\end{align*}

Although we wouldn't expect T157(1)T_{157}(1) to be exactly equal to e1e^1, it's probably pretty close. So, we estimate

1+12+13!+14!++1157!e11+\frac{1}{2}+\frac{1}{3!}+\frac{1}{4!}+\cdots +\frac{1}{157!}\approx e-1
Q14Stage 3

Estimate the sum below

k=0100(1)k2k!(5π4)2k\sum_{k=0}^{100}\frac{(-1)^k}{2k!}\left(\frac{5\pi}{4}\right)^{2k}

by interpreting it as a Maclaurin polynomial.

Hint

Compare this to the Maclaurin polynomial for cosine.

Answer

We estimate that the sum is close to 12-\dfrac{1}{\sqrt{2}}.

Full solution

While you're working with sums, it's easy to mistake a constant for a function. The sum given in this question is some number: π\pi is a constant, and kk is an index– if you wrote out all 100 terms of this sum, there would be no letter kk. So, the sum given is indeed a number, but we don't want to have to add 100 terms to get a good idea of what number it is.

From Example 9.5.3

in the text, we see that the (2n)(2n)th-order Maclaurin polynomial for f(x)=cosxf(x)=\cos x is

T2n(x)=k=0n(1)k(2k)!x2k\begin{align*}T_{2n}(x)&=\sum_{k=0}^n \frac{(-1)^k}{(2k)! }\cdot x^{2k}\end{align*}

If n=100n=100 and x=5π4x=\dfrac{5\pi}{4}, this equation becomes

T200(5π4)=k=0100(1)k(2k)!(5π4)2k\begin{align*}T_{200}\left(\frac{5\pi}{4}\right)&=\sum_{k=0}^{100} \frac{(-1)^k}{(2k)! }\cdot \left(\frac{5\pi}{4}\right)^{2k}\end{align*}

So, the sum corresponds to the 200th Maclaurin polynomial for f(x)=cosxf(x)=\cos x evaluated at x=5π4x=\frac{5\pi}{4}. We should be careful to understand that T200(x)T_{200}(x) is not equal to f(x)f(x), in general. However, when xx is reasonably close to 00, these two functions are approximations of one another. So, we estimate

k=0100(1)k2k!(5π4)2k=T200(5π4)cos(5π4)=12\sum_{k=0}^{100}\frac{(-1)^k}{2k!}\left(\frac{5\pi}{4}\right)^{2k} = T_{200}\left(\frac{5\pi}{4}\right) \approx \cos\left(\frac{5\pi}{4}\right)=-\frac{1}{\sqrt{2}}
Q15Stage 3

Consider the function

f(x)=sin2xlog(1+2x)f(x)=\sin^2 x \cdot \log(1+2x)
  1. What is the linear approximation of f(x)f(x), centred at the origin?

  2. Which power function does f(x)f(x) most closely resemble

near the origin?

Answer
  1. y=0y=0

  2. 2x32x^3

Full solution
  1. We can answer the first question directly, or by finding a Maclaurin polynomial for f(x)f(x), which we'll do in the second part anyways. If we wanted to do it directly, it would look something like this:

    f(0)=0f(x)=2sinxcosxlog(1+2x)+sin2x21+2xf(0)=0\begin{align*} f(0)&=0\\ f'(x)&=2\sin x \cos x \log(1+2x)+\sin^2x\cdot\frac{2}{1+2x}\\ f'(0)&=0 \end{align*}

    So, the linear approximation is y=0y=0.

  2. If we you did the first part separately, then you already know that the power function will have a power greater than 1. Let's find a Maclaurin polynomial for f(x)f(x):

    • sinxxx33!\sin x \approx x-\frac{x^3}{3!}

    • log(1+x)xx22+x33\log(1+x) \approx x-\frac{x^2}{2}+\frac{x^3}{3}, so log(1+2x)2x(2x)22+(2x)33\log(1+2x) \approx 2x-\frac{(2x)^2}{2}+\frac{(2x)^3}{3}

    • So, f(x)(xx33!)2(2x(2x)22+(2x)33)f(x) \approx \left( x-\frac{x^3}{3!}\right)^2\cdot\left(2x-\frac{(2x)^2}{2}+\frac{(2x)^3}{3}\right), which equals 2x32x^3 plus some higher-order terms (that will be dominated by the lowest-order term).

    So, f(x)f(x) most closely resembles 2x32x^3 when x0x \approx 0.

Q16Stage 3

Evaluate

limx7exsin(x7)[log(8x)]2\lim_{x \to 7}\frac{e^x\cdot\sin(x-7)}{[\log(8-x)]^2}

by changing variables and using Maclaurin polynomials.

Hint

Let y=7xy=7-x. You know the Maclaurin polynomials for log(1+y)\log(1+y) and sin(y)=sin(y)\sin(-y)=-\sin(y).

Answer

DNE

Full solution

Let y=7x.y=7-x. Then the function we're taking the limit of turns into:

e7ysin(y)[log(1+y)]2=e7sin(y)ey[log(1+y)]2 .\frac{e^{7-y}\cdot\sin(-y)}{[\log(1+y)]^2}=\frac{-e^7\cdot \sin(y)}{e^y[\log(1+y)]^2}~.

For yy close to 0, we know:

ey1+y+y22!+y33!sin(y)yy33!log(1+y)yy22+y33\begin{align*} e^{y}&\approx 1+y+\frac{y^2}{2!}+\frac{y^3}{3!}\\ \sin(y)&\approx y-\frac{y^3}{3!}\\ \log(1+y)&\approx y-\frac{y^2}{2}+\frac{y^3}{3} \end{align*}

So, the numerator looks like e7sin(y)e7(yy33!)-e^7\sin(y)\approx e^7\left(y-\frac{y^3}{3!}\right), which looks like e7xe^7 \cdot x for yy close to 0. The denominator looks like (1+y+y22!+y33!)[yy22+y33]2\left(1+y+\frac{y^2}{2!}+\frac{y^3}{3!}\right)\cdot\left[y-\frac{y^2}{2}+\frac{y^3}{3}\right]^2, which looks like y2y^2 when yy is close to 0. So, all together, our limit looks like limy0e7y\lim\limits_{y \to 0}\frac{e^7}{y}, which DNE.

Q17Stage 3

For which value(s) of nn, if any, is the following limit equal to a positive constant?

limx0(ex)n1log(1+6x)sinx\lim_{x \to 0}\frac{\left(e^x\right)^n-1}{\log(1+6x)\cdot \sin x}
Hint

For the Maclaurin polynomial, note (ex)n=enx(e^x)^n=e^{nx}.

Answer

none

Full solution

Let's replace some of the constituent functions with their second-order Maclaurin polynomials.

  • (en)x=enx1+(nx)+(nx)22(e^n)^x=e^{nx}\approx 1+(nx)+\frac{(nx)^2}{2}

  • log(1+6x)(6x)(6x)22\log(1+6x)\approx (6x)-\frac{(6x)^2}{2}

  • sinxx\sin x \approx x

So, for xx very close to 0,

(ex)n1log(1+6x)sinx(nx)+(nx)22((6x)(6x)22)x=nx+n22x26x218x3=n+n22x6x18x2\frac{\left(e^x\right)^n-1}{\log(1+6x)\cdot \sin x}\approx \frac{(nx)+\frac{(nx)^2}{2}}{\left((6x)-\frac{(6x)^2}{2}\right)\cdot x} = \frac{nx+\frac{n^2}{2}x^2}{6x^2-18x^3}=\frac{n+\frac{n^2}{2}x}{6x-18x^2}

As x0x \to 0, for any nonzero value of nn, the numerator is nonzero, while the denominator is 0, so the limit won't be a real number. If we set n=0n=0, then we get a numerator that is always 0, so the functon is identically 0 over its entire domain, so its limit would be 0.

Therefore, there is no value of nn that results in a limit that is a positive constant.

From the UBC Math 100 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.