Calculus3Power Series3 of 4
Power Series · 3

Taylor and Maclaurin Series

1

Keeping every term

We already know how to build Taylor polynomials for exe^x at 00. We have 1+x\ps{1 + x}, then 1+x+x22!\ps{1 + x + \frac{x^2}{2!}}, then 1+x+x22!+x33!\ps{1 + x + \frac{x^2}{2!} + \frac{x^3}{3!}}, and each extra term gives a polynomial that stays close to exe^x over a wider interval. What happens if we keep going and add every term, with no last term at all?

−3-3
−1-1
11
22
33
55
1010
xx
yy
P1\htmlClass{lc-blue}{P_1}
P2\htmlClass{lc-blue}{P_2}
P3\htmlClass{lc-blue}{P_3}
exe^x
P1=1+xP2=1+x+x22!P3=1+x+x22!+x33!Pn=1+x+⋯+xnn!\displaystyle \begin{aligned}\ps{P_1} &= \ps{1 + x}\\[4pt] \ps{P_2} &= \ps{1 + x + \frac{x^2}{2!}}\\[4pt] \ps{P_3} &= \ps{1 + x + \frac{x^2}{2!} + \frac{x^3}{3!}}\\[4pt] \ps{P_n} &= \ps{1 + x + \cdots + \frac{x^n}{n!}}\end{aligned}

Keeping every term gives an infinite sum, called the Taylor series of exe^x at 00. It's a power series, so the first thing to ask is where it converges.

Find the Taylor series of exe^x at 00 and test where it converges
−3-3
−1-1
11
22
33
55
1010
xx
yy
exe^x
Text solution
Every coefficient is 1n!\frac{\dv{1}}{\dv{n!}}Every derivative of exe^x is exe^x, so every derivative at 00 is e0=1\dv{e^0 = 1}. Since 0!=10! = 1, the n=0n = 0 term is 11.
ex:1+x+x22!+x33!+x44!+⋯\displaystyle e^x:\quad 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \cdots =∑n=0∞xnn!\displaystyle = \sum_{n=0}^{\infty} \frac{x^{\pw{n}}}{\pw{n}!}
ex:1+x+x22!+x33!+⋯=∑n=0∞xnn!\displaystyle \begin{aligned}e^x:\quad &1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots\\ &= \sum_{n=0}^{\infty} \frac{x^{\pw{n}}}{\pw{n}!}\end{aligned}
Ratio testFor any fixed xx, ∣x∣|x| stays fixed while n+1n + 1 grows, so the ratio goes to 0<10 < 1, and the series converges for every xx.
∣xn+1(n+1)!∣÷∣xnn!∣\displaystyle \left|\frac{x^{n+1}}{(n+1)!}\right| \div \left|\frac{x^n}{n!}\right| =∣x∣n+1→0\displaystyle = \frac{|x|}{n+1} \to 0

We can do the same thing for any function ff with derivatives of every order, centered at any number aa. The coefficient of (x−a)n(x - a)^n is f(n)(a)n!\frac{\dv{f^{(n)}(a)}}{\dv{n!}}, where f(n)f^{(n)} means the nnth derivative.

f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+f′′′(a)3!(x−a)3+⋯\displaystyle \dv{f(a)} + \dv{f'(a)}(x-a) + \frac{\dv{f''(a)}}{\dv{2!}}(x-a)^2 + \frac{\dv{f'''(a)}}{\dv{3!}}(x-a)^3 + \cdots =∑n=0∞f(n)(a)n!(x−a)n\displaystyle = \sum_{n=0}^{\infty} \frac{\dv{f^{(n)}(a)}}{\dv{n!}}(x-a)^n
f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+f′′′(a)3!(x−a)3+⋯=∑n=0∞f(n)(a)n!(x−a)n\displaystyle \begin{aligned}&\dv{f(a)} + \dv{f'(a)}(x-a)\\ &\quad + \frac{\dv{f''(a)}}{\dv{2!}}(x-a)^2\\ &\quad + \frac{\dv{f'''(a)}}{\dv{3!}}(x-a)^3 + \cdots\\ &= \sum_{n=0}^{\infty} \frac{\dv{f^{(n)}(a)}}{\dv{n!}}(x-a)^n\end{aligned}

This infinite sum is the Taylor series of ff about aa. Each degree-nn Taylor polynomial is just this series stopped at its (x−a)n(x - a)^n term. When the center is a=0a = 0, we also call it the Maclaurin series of ff.

2

Where a series equals its function

We know that 1+x+x22!+⋯1 + x + \frac{x^2}{2!} + \cdots converges for every xx. But does it actually add up to exe^x? As we add higher-degree terms, the Taylor polynomials stay close to exe^x over wider and wider intervals.

−4-4
−3-3
−2-2
−1-1
11
22
33
55
1010
xx
yy
P2\htmlClass{lc-blue}{P_{2}}
P4\htmlClass{lc-blue}{P_{4}}
P6\htmlClass{lc-blue}{P_{6}}
P8\htmlClass{lc-blue}{P_{8}}
P10\htmlClass{lc-blue}{P_{10}}
exe^x

The error bound settles it for exe^x. Then we'll try 11−x\frac{1}{1-x}, whose series doesn't equal it everywhere.

Where the Taylor series of exe^x and 11−x\frac{1}{1-x} equal their functions
−3-3
−1-1
11
22
33
55
1010
xx
yy
exe^x
1+x+x22!+x33!+⋯=?ex1 + x + \dfrac{x^2}{2!} + \dfrac{x^3}{3!} + \cdots \stackrel{?}{=} e^x
Text solution
The error for exe^x goes to 00In the Lagrange error bound, MM is the largest value of ete^t between 00 and xx, a fixed number once xx is fixed. The fraction is the size of the next term, and the terms of a convergent series go to 00.
∣ ex−(1+x+x22!+⋯+xnn!)∣\displaystyle \left|\,e^x - \ps{\Big(1 + x + \frac{x^2}{2!} + \cdots + \frac{x^n}{n!}\Big)}\right| ≤M ∣x∣n+1(n+1)!→0\displaystyle \le M\,\frac{|x|^{n+1}}{(n+1)!} \to 0
∣ ex−(1+x+⋯+xnn!)∣≤M ∣x∣n+1(n+1)!→0\displaystyle \begin{aligned}&\left|\,e^x - \ps{\Big(1 + x + \cdots + \frac{x^n}{n!}\Big)}\right|\\ &\quad\le M\,\frac{|x|^{n+1}}{(n+1)!} \to 0\end{aligned}
Every coefficient of 11−x\frac{1}{1-x} is 11The nnth derivative at 00 is n!\dv{n!}, and dividing by n!\dv{n!} leaves 11. That's a geometric series with ratio xx, so it converges only when ∣x∣<1|x| < 1.
11−x\displaystyle \frac{1}{1-x} =1+x+x2+x3+⋯\displaystyle = 1 + x + x^2 + x^3 + \cdots =∑n=0∞xn,−1<x<1\displaystyle = \sum_{n=0}^{\infty} x^{\pw{n}}, \qquad \iv{-1 < x < 1}
11−x=1+x+x2+x3+⋯=∑n=0∞xn,−1<x<1\displaystyle \begin{aligned}\frac{1}{1-x} &= 1 + x + x^2 + x^3 + \cdots\\ &= \sum_{n=0}^{\infty} x^{\pw{n}}, \quad \iv{-1 < x < 1}\end{aligned}

So the series of 11−x\frac{1}{1-x} equals the function only on −1<x<1\iv{-1 < x < 1}, even though the function is defined for every xx except 11. One number on each side shows it.

x=12x = \tfrac12
1+12+14+18+⋯\displaystyle \ps{1 + \tfrac12 + \tfrac14 + \tfrac18 + \cdots} =2\displaystyle = 2 =11−12\displaystyle = \frac{1}{1-\frac12}
x=−2x = -2
1−2+4−8+16−⋯ diverges\displaystyle \ps{1 - 2 + 4 - 8 + 16 - \cdots} \ \text{diverges}
11−(−2)\displaystyle \frac{1}{1-(-2)} =13\displaystyle = \frac13

For the standard functions whose series we find in this lesson, the Taylor series equals the function wherever the series converges. So whenever we write a series, we give its interval of convergence with it.

For which x-values do the partial sums approach the function's value?

3

The Maclaurin series for sin⁡x\sin x and cos⁡x\cos x

For sin⁡x\sin x, the derivatives at 00 repeat in a cycle of four, 0,1,0,−1\dv{0, 1, 0, -1}, so every other term of the series is 00.

f(n)(x)f^{(n)}(x)f(n)(0)\dv{f^{(n)}(0)}sin⁡x=\sin x = sin⁡x\sin x0\dv{0} cos⁡x\cos x1\dv{1}xx −sin⁡x-\sin x0\dv{0} −cos⁡x-\cos x−1\dv{-1}−x33!\displaystyle \dv{-}\frac{x^{\pw{3}}}{\pw{3}!} sin⁡x\sin x0\dv{0} cos⁡x\cos x1\dv{1}+x55!\displaystyle \dv{+}\frac{x^{\pw{5}}}{\pw{5}!} −sin⁡x-\sin x0\dv{0} −cos⁡x-\cos x−1\dv{-1}−x77!\displaystyle \dv{-}\frac{x^{\pw{7}}}{\pw{7}!} ⋯\cdots⋯\cdots+⋯+\cdots

Writing this in sigma notation is the tricky part. There's no x2x^2 term, so nn can't be the power. Instead, nn counts the nonzero terms.

xn=0  −  x33!n=1  +  x55!n=2  −  x77!n=3  +  ⋯  \displaystyle \overset{n=0}{x} \;\dv{-}\; \overset{n=1}{\frac{x^{\pw{3}}}{\pw{3}!}} \;\dv{+}\; \overset{n=2}{\frac{x^{\pw{5}}}{\pw{5}!}} \;\dv{-}\; \overset{n=3}{\frac{x^{\pw{7}}}{\pw{7}!}} \;+\; \cdots \;=  ∑n=0∞(−1)n x2n+1(2n+1)!\displaystyle =\; \sum_{n=0}^{\infty} \frac{\dv{(-1)^n}\,x^{\pw{2n+1}}}{(\pw{2n+1})!}
Find the Maclaurin series for sin⁡x\sin x and cos⁡x\cos x
sin⁡x\displaystyle \sin x =  ?\displaystyle = \;?
cos⁡x\displaystyle \cos x =  ?\displaystyle = \;?
Text solution
Build the general term for sin⁡x\sin xThe signs start positive and alternate, so (−1)n\dv{(-1)^n}. The odd powers 1,3,5,7\pw{1, 3, 5, 7} are 2n+1\pw{2n + 1}, and the factorial matches the power. Checking n=2n = 2 gives the third nonzero term.
(−1)2x55!\displaystyle \frac{\dv{(-1)^2}x^{\pw{5}}}{\pw{5}!} =x55!\displaystyle = \frac{x^5}{5!}
cos⁡x\cos x keeps the even powersIts derivatives at 00 cycle through 1,0,−1,0\dv{1, 0, -1, 0}, so the odd powers drop out. The signs still alternate.
cos⁡x\displaystyle \cos x =1−x22!+x44!−x66!+⋯\displaystyle = 1 \dv{-} \frac{x^{\pw{2}}}{\pw{2}!} \dv{+} \frac{x^{\pw{4}}}{\pw{4}!} \dv{-} \frac{x^{\pw{6}}}{\pw{6}!} + \cdots =∑n=0∞(−1)n x2n(2n)!\displaystyle = \sum_{n=0}^{\infty} \frac{\dv{(-1)^n}\,x^{\pw{2n}}}{(\pw{2n})!}
cos⁡x=1−x22!+x44!−x66!+⋯=∑n=0∞(−1)n x2n(2n)!\displaystyle \begin{aligned}\cos x &= 1 \dv{-} \frac{x^{\pw{2}}}{\pw{2}!} \dv{+} \frac{x^{\pw{4}}}{\pw{4}!} \dv{-} \frac{x^{\pw{6}}}{\pw{6}!} + \cdots\\ &= \sum_{n=0}^{\infty} \frac{\dv{(-1)^n}\,x^{\pw{2n}}}{(\pw{2n})!}\end{aligned}
Both equal their series for every xxEvery derivative of sin⁡x\sin x and cos⁡x\cos x stays between −1-1 and 11, so M=1M = 1 in the error bound, and the factorial grows faster than the power for any fixed xx.
M∣x∣n+1(n+1)!\displaystyle \frac{M|x|^{n+1}}{(n+1)!} =∣x∣n+1(n+1)!→0\displaystyle = \frac{|x|^{n+1}}{(n+1)!} \to 0

With sin⁡x\sin x and cos⁡x\cos x, we now have four series to know, each with its interval.

Series to know
ex=\displaystyle e^x =1+x+x22!+x33!+⋯\displaystyle 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots=∑n=0∞xnn!\displaystyle = \sum_{n=0}^{\infty}\frac{x^{\pw{n}}}{\pw{n}!}every x\iv{\text{every } x}
sin⁡x=\displaystyle \sin x =x−x33!+x55!−⋯\displaystyle x - \frac{x^3}{3!} + \frac{x^5}{5!} - \cdots=∑n=0∞(−1)nx2n+1(2n+1)!\displaystyle = \sum_{n=0}^{\infty}\frac{\dv{(-1)^n} x^{\pw{2n+1}}}{(\pw{2n+1})!}every x\iv{\text{every } x}
cos⁡x=\displaystyle \cos x =1−x22!+x44!−⋯\displaystyle 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots=∑n=0∞(−1)nx2n(2n)!\displaystyle = \sum_{n=0}^{\infty}\frac{\dv{(-1)^n} x^{\pw{2n}}}{(\pw{2n})!}every x\iv{\text{every } x}
11−x=\displaystyle \frac{1}{1-x} =1+x+x2+x3+⋯\displaystyle 1 + x + x^2 + x^3 + \cdots=∑n=0∞xn\displaystyle = \sum_{n=0}^{\infty} x^{\pw{n}}−1<x<1\iv{-1 < x < 1}
4

Substituting into a known series

Let's find the Maclaurin series for e−x2e^{\su{-x^2}}. Taking derivatives at 00 gets messy fast. After the first one, each needs the product rule and comes out longer.

f′(x)=−2x e−x2f′′(x)=(4x2−2) e−x2f′′′(x)=(12x−8x3) e−x2f′′′′(x)=(16x4−48x2+12) e−x2\displaystyle \begin{aligned}f'(x) &= -2x\,e^{-x^2}\\ f''(x) &= (4x^2 - 2)\,e^{-x^2}\\ f'''(x) &= (12x - 8x^3)\,e^{-x^2}\\ f''''(x) &= (16x^4 - 48x^2 + 12)\,e^{-x^2}\end{aligned}
nnf(n)(0)\dv{f^{(n)}(0)} 001\dv{1} 110\dv{0} 22−2\dv{-2} 330\dv{0} 4412\dv{12}

But we already know the series for eue^{\su{u}}, and it works for every number u\su{u}. For each xx, −x2\su{-x^2} is just a number, so we can put −x2\su{-x^2} in place of u\su{u}.

eu\displaystyle e^{\su{u}} =1+u+u22!+u33!+⋯ ,every u\displaystyle = 1 + \su{u} + \frac{\su{u}^2}{2!} + \frac{\su{u}^3}{3!} + \cdots, \qquad \text{every } \su{u}
eu=1+u+u22!+u33!+⋯=every u\displaystyle \begin{aligned}e^{\su{u}} &= 1 + \su{u} + \frac{\su{u}^2}{2!} + \frac{\su{u}^3}{3!} + \cdots\\ &\phantom{{}={}}\text{every } \su{u}\end{aligned}
Find the Maclaurin series for e−x2e^{\su{-x^2}} and for x e−x2x\,e^{\su{-x^2}}
e−x2\displaystyle e^{\su{-x^2}} =  ?\displaystyle = \;?
x e−x2\displaystyle x\,e^{\su{-x^2}} =  ?\displaystyle = \;?
Text solution
Put −x2\su{-x^2} in for u\su{u}The power applies to all of −x2\su{-x^2}, minus sign included, so (−x2)n=(−1)nx2n(\su{-x^2})^n = \su{(-1)^n} x^{2n}. The signs alternate and the powers of xx double. The series for eue^{\su{u}} holds for every u\su{u}, so this one holds for every xx.
e−x2=1+(−x2)+(−x2)22!+(−x2)33!+⋯=1−x2+x42!−x63!+⋯=∑n=0∞(−1)nx2nn!,every x\displaystyle \begin{aligned}e^{\su{-x^2}} &= 1 + (\su{-x^2}) + \frac{(\su{-x^2})^2}{2!}\\ &\quad + \frac{(\su{-x^2})^3}{3!} + \cdots\\ &= 1 - x^2 + \frac{x^4}{2!} - \frac{x^6}{3!} + \cdots\\ &= \sum_{n=0}^{\infty}\frac{(-1)^n x^{2n}}{n!}, \quad \iv{\text{every } x}\end{aligned}
Multiply every term by xxEach power of xx goes up by 1\pw{1}, and the coefficients stay the same.
x e−x2\displaystyle x\,e^{-x^2} =x−x3+x52!−x73!+⋯\displaystyle = x - x^{\pw{3}} + \frac{x^{\pw{5}}}{2!} - \frac{x^{\pw{7}}}{3!} + \cdots

Making a function look like 11−u\frac{1}{1-\su{u}}

Now let's find the Maclaurin series for 14+x2\frac{1}{4 + x^2}, and where it equals the function. The series to use is the geometric one, but 4+x24 + x^2 starts with 44 instead of 11. So we factor 44 out of the denominator, and then write the denominator as 11 minus −x24\su{-\frac{x^2}{4}}.

14+x2=14⋅11+x24=14⋅11−(−x24)\displaystyle \begin{aligned}\frac{1}{4 + x^2} &= \frac14 \cdot \frac{1}{1 + \su{\frac{x^2}{4}}}\\[2pt] &= \frac14 \cdot \frac{1}{1 - \big(\su{-\frac{x^2}{4}}\big)}\end{aligned}
u\displaystyle \su{u} =−x24\displaystyle = \su{-\frac{x^2}{4}}
11−u\displaystyle \frac{1}{1-\su{u}} =1+u+u2+u3+⋯ ,∣u∣<1\displaystyle = 1 + \su{u} + \su{u}^2 + \su{u}^3 + \cdots, \qquad |\su{u}| < 1
11−u=1+u+u2+u3+⋯=∣u∣<1\displaystyle \begin{aligned}\frac{1}{1-\su{u}} &= 1 + \su{u} + \su{u}^2 + \su{u}^3 + \cdots\\ &\phantom{{}={}}|\su{u}| < 1\end{aligned}
Find the Maclaurin series for 14+x2\frac{1}{4+x^2} and where it equals the function
14+x2\displaystyle \frac{1}{4+x^2} =  ?\displaystyle = \;?
Text solution
Put −x24\su{-\frac{x^2}{4}} in for u\su{u}Multiplying by the 14\frac14 outside gives denominators of 4n+14^{n+1}.
14+x2=14(1−x24+x416−⋯)=14−x216+x464−⋯=∑n=0∞(−1)nx2n4n+1\displaystyle \begin{aligned}\frac{1}{4+x^2} &= \frac14\Big(1 - \frac{x^2}{4} + \frac{x^4}{16} - \cdots\Big)\\ &= \frac14 - \frac{x^2}{16} + \frac{x^4}{64} - \cdots\\ &= \sum_{n=0}^{\infty}\frac{(-1)^n x^{2n}}{4^{n+1}}\end{aligned}
The condition on u\su{u} becomes a condition on xxAt x=±2x = \pm 2, ∣u∣=1|\su{u}| = 1 and the terms don't approach 00, so both endpoints are out.
∣−x24∣<1  →  x2<4  →  −2<x<2\displaystyle \Big|\su{-\frac{x^2}{4}}\Big| < 1 \;\to\; x^2 < 4 \;\to\; \iv{-2 < x < 2}

Even though 14+x2\frac{1}{4+x^2} is defined for every real number xx, its series equals it only on −2<x<2\iv{-2 < x < 2}. The interval came from the geometric series, not from the function.

5

Finding derivatives from a series

To find the sixth derivative of e−x2e^{-x^2} at 00, we could keep differentiating. But the fourth derivative is already (16x4−48x2+12)e−x2(16x^4 - 48x^2 + 12)e^{-x^2}, so two more rounds of the product rule would be a nightmare. Instead, let's get it straight from the series we found by substitution.

Find f(6)(0)\dv{f^{(6)}(0)} for f(x)=e−x2f(x) = e^{-x^2}
f(x)\displaystyle f(x) =e−x2\displaystyle = e^{-x^2}
f(6)(0)\displaystyle \dv{f^{(6)}(0)} =  ?\displaystyle = \;?
Text solution
Check on the derivatives we knowThe series came without any derivatives, yet n!\dv{n!} times its coefficients gives the derivatives we found earlier.
2!×(−1)=−2=f′′(0)4!×12!=12=f′′′′(0)\displaystyle \begin{aligned}\dv{2!} \times (-1) &= \dv{-2} = \dv{f''(0)}\\[4pt] \dv{4!} \times \frac{1}{2!} &= \dv{12} = \dv{f''''(0)}\end{aligned}
Why only the xnx^n term is leftDifferentiate nn times and plug in x=0x = 0. Lower powers have differentiated to 00, and higher powers still have a factor of xx. For n=2n = 2:
d2dx2(1−x2+x42!−⋯)\displaystyle \frac{d^2}{dx^2}\Big(1 - x^2 + \frac{x^4}{2!} - \cdots\Big) =−2+6x2−5x4+⋯\displaystyle = -2 + 6x^2 - 5x^4 + \cdots
x=0:−2\displaystyle {x = 0:}\quad \dv{-2} =2!×(−1)\displaystyle = \dv{2!} \times (-1)
Read off the sixth derivativeThe coefficient of x6x^6 is −13!-\frac{1}{3!}. The 3!3! belongs to the series, and the 6!\dv{6!} comes from taking six derivatives. There are no odd powers, so every odd derivative at 00 is 0\dv{0}.
f(6)(0)=6!×(−13!)=−7206=−120f(5)(0)=5!×0=0\displaystyle \begin{aligned}\dv{f^{(6)}(0)} &= \dv{6!} \times \Big(-\frac{1}{3!}\Big)\\ &= -\frac{720}{6} = \dv{-120}\\[4pt] \dv{f^{(5)}(0)} &= \dv{5!} \times 0 = \dv{0}\end{aligned}

The same thing happens for any power series that equals f(x)f(x) near 00, no matter how we found it. Differentiating the xnx^n term nn times multiplies its coefficient by n!\dv{n!}, and every other term is 00 at x=0x = 0.

nth derivative at 0\displaystyle \dv{n\text{th derivative at } 0} =n!×(coefficient of xn)\displaystyle = \dv{n!} \times (\text{coefficient of } x^n)

Can we find a high derivative from the series without differentiating?

6

Differentiating and integrating term by term

We want power series for 1(1−x)2\frac{1}{(1-x)^2}, ln⁡(1+x)\ln(1+x) and arctan⁡x\arctan x. None of them comes from substituting into a known series, but each is one derivative away from a series we know.

ddx 11−x\displaystyle \frac{d}{dx}\,\frac{1}{1-x} =1(1−x)2\displaystyle = \frac{1}{(1-x)^2}
ddx ln⁡(1+x)\displaystyle \frac{d}{dx}\,\ln(1+x) =11+x\displaystyle = \frac{1}{1+x}
ddx arctan⁡x\displaystyle \frac{d}{dx}\,\arctan x =11+x2\displaystyle = \frac{1}{1+x^2}

So can we differentiate or integrate a power series term by term, like a polynomial? Let's test it on sin⁡x\sin x, where we already know the answer. The power rule brings down a 3\pw{3}, which cancels with the 3\pw{3} in 3!\pw{3}!.

ddx(x−x33!+x55!−⋯)=1−3x23!+5x45!−⋯=1−x22!+x44!−⋯\displaystyle \begin{aligned}\frac{d}{dx}\Big(x - \frac{x^{\pw{3}}}{\pw{3}!} + \frac{x^{\pw{5}}}{\pw{5}!} - \cdots\Big) &= 1 - \frac{\pw{3}x^2}{\pw{3}!} + \frac{\pw{5}x^4}{\pw{5}!} - \cdots\\[2pt] &= 1 - \frac{x^{\pw{2}}}{\pw{2}!} + \frac{x^{\pw{4}}}{\pw{4}!} - \cdots\end{aligned}
ddx(x−x33!+x55!−⋯)=1−3x23!+5x45!−⋯=1−x22!+x44!−⋯\displaystyle \begin{aligned}&\frac{d}{dx}\Big(x - \frac{x^{\pw{3}}}{\pw{3}!} + \frac{x^{\pw{5}}}{\pw{5}!} - \cdots\Big)\\[2pt] &= 1 - \frac{\pw{3}x^2}{\pw{3}!} + \frac{\pw{5}x^4}{\pw{5}!} - \cdots\\[2pt] &= 1 - \frac{x^{\pw{2}}}{\pw{2}!} + \frac{x^{\pw{4}}}{\pw{4}!} - \cdots\end{aligned}

That's the series for cos⁡x\cos x, the derivative of sin⁡x\sin x. This isn't a coincidence. As long as we stay inside the interval of convergence, we can differentiate or integrate a power series term by term, just like a polynomial.

Find the power series for 1(1−x)2\frac{1}{(1-x)^2}, ln⁡(1+x)\ln(1+x), and arctan⁡x\arctan x
1(1−x)2\displaystyle \frac{1}{(1-x)^2} =  ?\displaystyle = \;?
ln⁡(1+x)\displaystyle \ln(1+x) =  ?\displaystyle = \;?
arctan⁡x\displaystyle \arctan x =  ?\displaystyle = \;?
Text solution
Differentiate for 1(1−x)2\frac{1}{(1-x)^2}The interval stays −1<x<1\iv{-1 < x < 1}.
1(1−x)2=ddx(1+x+x2+⋯)=1+2x+3x2+⋯=∑n=0∞(n+1)xn\displaystyle \begin{aligned}\frac{1}{(1-x)^2} &= \frac{d}{dx}\big(1 + x + x^2 + \cdots\big)\\[2pt] &= 1 + 2x + 3x^2 + \cdots\\[2pt] &= \sum_{n=0}^{\infty}(n+1)x^{\pw{n}}\end{aligned}
Integrate for ln⁡(1+x)\ln(1+x), then find C\dv{C}Put −x\su{-x} in for u\su{u} to get 11+x\frac{1}{1+x}, integrate term by term, and plug in x=0x = 0: ln⁡1=0\dv{\ln 1 = 0} on the left and C\dv{C} on the right.
ln⁡(1+x)=∫(1−x+x2−⋯ ) dx=C+x−x22+x33−⋯\displaystyle \begin{aligned}\ln(1+x) &= \int (1 - x + x^2 - \cdots)\,dx\\[2pt] &= \dv{C} + x - \frac{x^{\pw{2}}}{\pw{2}} + \frac{x^{\pw{3}}}{\pw{3}} - \cdots\end{aligned}
x=0:ln⁡1\displaystyle {x = 0:}\quad \dv{\ln 1} =0\displaystyle = \dv{0} =C\displaystyle = \dv{C}
Integrate for arctan⁡x\arctan xPut −x2\su{-x^2} in for u\su{u} to get 11+x2=1−x2+x4−⋯\frac{1}{1+x^2} = 1 - x^2 + x^4 - \cdots, then integrate. C=arctan⁡0=0\dv{C = \arctan 0 = 0}, and both endpoints converge by the alternating series test.
arctan⁡x\displaystyle \arctan x =∑n=0∞(−1)nx2n+12n+1,−1≤x≤1\displaystyle = \sum_{n=0}^{\infty}\frac{(-1)^n x^{\pw{2n+1}}}{\pw{2n+1}}, \quad \iv{-1 \le x \le 1}

The radius of convergence stays the same, but the endpoints can change, so we check them again. Integrating divides each term by n+1\pw{n+1}, and the smaller terms can be just enough for an endpoint to converge. That's what happens to ln⁡(1+x)\ln(1+x) at x=1x = 1.

x=1x = 1
1−1+1−1+⋯ diverges\displaystyle \ps{1 - 1 + 1 - 1 + \cdots} \ \text{diverges}
1−12+13−14+⋯ converges\displaystyle \ps{1 - \frac12 + \frac13 - \frac14 + \cdots} \ \text{converges}
x=−1x = -1
−(1+12+13+14+⋯) diverges\displaystyle \ps{-\Big(1 + \frac12 + \frac13 + \frac14 + \cdots\Big)} \ \text{diverges}
ln⁡(1+x)\displaystyle \ln(1+x) =x−x22+x33−⋯\displaystyle = x - \frac{x^2}{2} + \frac{x^3}{3} - \cdots =∑n=1∞(−1)n+1xnn,−1<x≤1\displaystyle = \sum_{n=1}^{\infty}\frac{(-1)^{n+1}x^{\pw{n}}}{\pw{n}}, \qquad \iv{-1 < x \le 1}

The denominators in the series for ln⁡(1+x)\ln(1+x) and arctan⁡x\arctan x are n\pw{n} and 2n+1\pw{2n+1} because each term was integrated once. In exe^x, sin⁡x\sin x, and cos⁡x\cos x, the factorials come from dividing by n!\dv{n!} in the Taylor formula.

The series to know
ex=\displaystyle e^x =1+x+x22!+x33!+⋯\displaystyle 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots=∑n=0∞xnn!\displaystyle = \sum_{n=0}^{\infty}\frac{x^{\pw{n}}}{\pw{n}!}every x\iv{\text{every } x}
sin⁡x=\displaystyle \sin x =x−x33!+x55!−⋯\displaystyle x - \frac{x^3}{3!} + \frac{x^5}{5!} - \cdots=∑n=0∞(−1)nx2n+1(2n+1)!\displaystyle = \sum_{n=0}^{\infty}\frac{\dv{(-1)^n} x^{\pw{2n+1}}}{(\pw{2n+1})!}every x\iv{\text{every } x}
cos⁡x=\displaystyle \cos x =1−x22!+x44!−⋯\displaystyle 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots=∑n=0∞(−1)nx2n(2n)!\displaystyle = \sum_{n=0}^{\infty}\frac{\dv{(-1)^n} x^{\pw{2n}}}{(\pw{2n})!}every x\iv{\text{every } x}
11−x=\displaystyle \frac{1}{1-x} =1+x+x2+x3+⋯\displaystyle 1 + x + x^2 + x^3 + \cdots=∑n=0∞xn\displaystyle = \sum_{n=0}^{\infty} x^{\pw{n}}−1<x<1\iv{-1 < x < 1}
ln⁡(1+x)=\displaystyle \ln(1+x) =x−x22+x33−⋯\displaystyle x - \frac{x^2}{2} + \frac{x^3}{3} - \cdots=∑n=1∞(−1)n+1xnn\displaystyle = \sum_{n=1}^{\infty}\frac{(-1)^{n+1}x^{\pw{n}}}{\pw{n}}−1<x≤1\iv{-1 < x \le 1}
arctan⁡x=\displaystyle \arctan x =x−x33+x55−⋯\displaystyle x - \frac{x^3}{3} + \frac{x^5}{5} - \cdots=∑n=0∞(−1)nx2n+12n+1\displaystyle = \sum_{n=0}^{\infty}\frac{(-1)^n x^{\pw{2n+1}}}{\pw{2n+1}}−1≤x≤1\iv{-1 \le x \le 1}
7

The Taylor series of ln⁡x\ln x about x=1x = 1

A Maclaurin series is centred at 00, but ln⁡0\ln 0 is undefined, so ln⁡x\ln x doesn't have one. Instead, we expand it about x=1x = 1, in powers of x−1\su{x - 1}. Plugging in 11 makes every power of x−1\su{x - 1} zero, so only the constant term is left.

Find the Taylor series of ln⁡x\ln x about x=1x = 1 and the interval where it holds
ln⁡x\displaystyle \ln x =  ?\displaystyle = \;?
about x\displaystyle \small\text{about }x =1\displaystyle = 1
Text solution
The derivatives at 11They are 0,1,−1,2,−6\dv{0, 1, -1, 2, -6}. After the constant term, the signs alternate and the sizes are 0!,1!,2!,3!\dv{0!, 1!, 2!, 3!}.
f(n)(1)\displaystyle \dv{f^{(n)}(1)} =(−1)n+1(n−1)!\displaystyle = \dv{(-1)^{n+1}(n-1)!}
Simplify the coefficient firstSince n!=n(n−1)!\dv{n! = n(n-1)!}, the (n−1)!\dv{(n-1)!} cancels. The constant term is ln⁡1=0\dv{\ln 1 = 0}, so the series starts at n=1n = 1.
f(n)(1)n!\displaystyle \frac{\dv{f^{(n)}(1)}}{\dv{n!}} =(−1)n+1(n−1)!n!\displaystyle = \frac{\dv{(-1)^{n+1}(n-1)!}}{\dv{n!}} =(−1)n+1n\displaystyle = \frac{(-1)^{n+1}}{n}
ln⁡x\displaystyle \ln x =∑n=1∞(−1)n+1(x−1)nn\displaystyle = \sum_{n=1}^{\infty}\frac{(-1)^{n+1}(\su{x-1})^n}{n}
The interval, from ln⁡(1+u)\ln(1 + \su{u})ln⁡x=ln⁡(1+(x−1))\ln x = \ln\big(1 + (\su{x - 1})\big), so this is the series for ln⁡(1+u)\ln(1 + \su{u}) with u=x−1\su{u} = \su{x - 1}, which holds for −1<u≤1-1 < \su{u} \le 1. Add 11 throughout.
−1<x−1\displaystyle -1 < \su{x - 1} ≤1  →  0<x≤2\displaystyle \le 1 \;\to\; \iv{0 < x \le 2}
Check a derivative3!\dv{3!} times the coefficient of (x−1)3(\su{x-1})^3 gives back the third derivative.
f′′′(1)\displaystyle \dv{f'''(1)} =3!×13\displaystyle = \dv{3!} \times \frac13 =2\displaystyle = \dv{2} =213\displaystyle = \frac{2}{1^3}

On a graph, y=ln⁡xy = \ln x is y=ln⁡(1+x)y = \ln(1 + x) shifted 11 unit to the right, and its interval moves 11 unit to the right as well.

xx
yy
ln⁡(1+x)\ln(1+x)
ln⁡x\ln x
−1\htmlClass{lc-green}{-1}
00
1\htmlClass{lc-green}{1}
ln⁡(1+x)\ln(1+x)
0\htmlClass{lc-green}{0}
11
2\htmlClass{lc-green}{2}
ln⁡x\ln x
8

The binomial series

We already have the series for 11−x\frac{1}{1-x}, which is (1−x)−1(1-x)^{-1}. But what about other powers of a binomial? For example, what is the series for 1+x\sqrt{1+x}, which is (1+x)12(1+x)^{\dv{\frac12}}?

Find the Maclaurin series for 1+x\sqrt{1+x}, and use it to find the binomial series for (1+x)k(1+x)^{\dv{k}}
1+x\displaystyle \sqrt{1+x} =  ?\displaystyle = \;?
(1+x)k\displaystyle (1+x)^{\dv{k}} =  ?\displaystyle = \;?
Text solution
Bring down the exponent each timeEach derivative multiplies by the current exponent and lowers it by 11.
f′(x)=12(1+x)−12f′′(x)=12(−12)(1+x)−32f′′′(x)=12(−12)(−32)(1+x)−52\displaystyle \begin{aligned}f'(x) &= \dv{\tfrac12}(1+x)^{\dv{-\frac12}}\\[4pt] f''(x) &= \dv{\tfrac12\big(-\tfrac12\big)}(1+x)^{\dv{-\frac32}}\\[4pt] f'''(x) &= \dv{\tfrac12\big(-\tfrac12\big)\big(-\tfrac32\big)}(1+x)^{\dv{-\frac52}}\end{aligned}
At x=0x = 0, only the exponents are leftEvery power of 1+01 + 0 is 11, so each derivative at 00 is the product of the exponents. Leave it unmultiplied over n!\dv{n!} to see the pattern.
1+x=1+12x+12(−12)2!x2+12(−12)(−32)3!x3+⋯=1+x2−x28+x316−⋯\displaystyle \begin{aligned}\sqrt{1+x} &= 1 + \dv{\tfrac12} x + \frac{\dv{\frac12\big(-\frac12\big)}}{\dv{2!}}x^2\\ &\quad + \frac{\dv{\frac12\big(-\frac12\big)\big(-\frac32\big)}}{\dv{3!}}x^3 + \cdots\\[2pt] &= 1 + \frac{x}{2} - \frac{x^2}{8} + \frac{x^3}{16} - \cdots\end{aligned}
Check the pattern with k=2\dv{k = 2}With k\dv{k} in place of 12\dv{\frac12}, the factors on top go k\dv{k}, k−1\dv{k - 1}, k−2\dv{k - 2}. For k=2\dv{k = 2}, the third is 2−2=0\dv{2 - 2 = 0}, so the series stops at (1+x)2(1+x)^2. For k=−1\dv{k = -1}, it gives 1−x+x2−x3+⋯1 - x + x^2 - x^3 + \cdots, the series for 11+x\frac{1}{1+x}.
k=2:1+2x+2⋅12!x2+2⋅1⋅03!x3+⋯=1+2x+x2\displaystyle \begin{aligned}&\dv{k = 2}:\\ &1 + \dv{2}x + \frac{\dv{2\cdot 1}}{\dv{2!}}x^2 + \frac{\dv{2\cdot 1\cdot 0}}{\dv{3!}}x^3 + \cdots\\ &= 1 + 2x + x^2\end{aligned}

There's nothing special about the exponent 12\dv{\frac12}. For any exponent k\dv{k}, the coefficient of xnx^n has nn factors on top, starting at k\dv{k} and going down by 11 each time, all divided by n!\dv{n!}. This is the binomial series.

(1+x)k=1+kx+k(k−1)2!x2+k(k−1)(k−2)3!x3+⋯=−1<x<1\displaystyle \begin{aligned}(1+x)^{\dv{k}} &= 1 + \dv{k}x + \frac{\dv{k(k-1)}}{\dv{2!}}x^2 + \frac{\dv{k(k-1)(k-2)}}{\dv{3!}}x^3 + \cdots\\[2pt] &\phantom{{}={}}\iv{{-1} < x < 1}\end{aligned}
(1+x)k=1+kx+k(k−1)2!x2+k(k−1)(k−2)3!x3+⋯=−1<x<1\displaystyle \begin{aligned}&(1+x)^{\dv{k}}\\ &= 1 + \dv{k}x + \frac{\dv{k(k-1)}}{\dv{2!}}x^2\\ &\quad + \frac{\dv{k(k-1)(k-2)}}{\dv{3!}}x^3 + \cdots\\[2pt] &\phantom{{}={}}\iv{{-1} < x < 1}\end{aligned}

To use the binomial series on a root like 9+x\sqrt{9+x}, factor out the constant first to get a 11 inside the root.

9+x\displaystyle \sqrt{9+x} =9 1+x9\displaystyle = \sqrt9\,\sqrt{1 + \su{\tfrac{x}{9}}} =3(1+x9)12\displaystyle = 3\Big(1 + \su{\frac{x}{9}}\Big)^{\dv{\frac12}}

Then let u=x9\su{u} = \su{\frac{x}{9}} with k=12\dv{k = \frac12}. For a function written as a constant times (1+u)k(1+\su{u})^{\dv{k}}, we can substitute into the binomial series and multiply by the constant, without taking derivatives. Now our table of series to know is complete.

Series to know
ex=\displaystyle e^x =1+x+x22!+x33!+⋯\displaystyle 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots=∑n=0∞xnn!\displaystyle = \sum_{n=0}^{\infty}\frac{x^{\pw{n}}}{\pw{n}!}every x\iv{\text{every } x}
sin⁡x=\displaystyle \sin x =x−x33!+x55!−⋯\displaystyle x - \frac{x^3}{3!} + \frac{x^5}{5!} - \cdots=∑n=0∞(−1)nx2n+1(2n+1)!\displaystyle = \sum_{n=0}^{\infty}\frac{\dv{(-1)^n} x^{\pw{2n+1}}}{(\pw{2n+1})!}every x\iv{\text{every } x}
cos⁡x=\displaystyle \cos x =1−x22!+x44!−⋯\displaystyle 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots=∑n=0∞(−1)nx2n(2n)!\displaystyle = \sum_{n=0}^{\infty}\frac{\dv{(-1)^n} x^{\pw{2n}}}{(\pw{2n})!}every x\iv{\text{every } x}
11−x=\displaystyle \frac{1}{1-x} =1+x+x2+x3+⋯\displaystyle 1 + x + x^2 + x^3 + \cdots=∑n=0∞xn\displaystyle = \sum_{n=0}^{\infty} x^{\pw{n}}−1<x<1\iv{-1 < x < 1}
ln⁡(1+x)=\displaystyle \ln(1+x) =x−x22+x33−⋯\displaystyle x - \frac{x^2}{2} + \frac{x^3}{3} - \cdots=∑n=1∞(−1)n+1xnn\displaystyle = \sum_{n=1}^{\infty}\frac{(-1)^{n+1}x^{\pw{n}}}{\pw{n}}−1<x≤1\iv{-1 < x \le 1}
arctan⁡x=\displaystyle \arctan x =x−x33+x55−⋯\displaystyle x - \frac{x^3}{3} + \frac{x^5}{5} - \cdots=∑n=0∞(−1)nx2n+12n+1\displaystyle = \sum_{n=0}^{\infty}\frac{(-1)^n x^{\pw{2n+1}}}{\pw{2n+1}}−1≤x≤1\iv{-1 \le x \le 1}
(1+x)k=\displaystyle (1+x)^{\dv{k}} =1+kx+k(k−1)2!x2\displaystyle 1 + \dv{k}x + \frac{\dv{k(k-1)}}{\dv{2!}}x^2+k(k−1)(k−2)3!x3+⋯\displaystyle + \frac{\dv{k(k-1)(k-2)}}{\dv{3!}}x^3 + \cdots−1<x<1\iv{-1 < x < 1}

Summary

Taylor and Maclaurin series
f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+⋯\displaystyle \dv{f(a)} + \dv{f'(a)}(x-a) + \frac{\dv{f''(a)}}{\dv{2!}}(x-a)^2 + \cdots =∑n=0∞f(n)(a)n!(x−a)n\displaystyle = \sum_{n=0}^{\infty}\frac{\dv{f^{(n)}(a)}}{\dv{n!}}(x-a)^n
f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+⋯=∑n=0∞f(n)(a)n!(x−a)n\displaystyle \begin{aligned}&\dv{f(a)} + \dv{f'(a)}(x-a)\\ &\quad + \frac{\dv{f''(a)}}{\dv{2!}}(x-a)^2 + \cdots\\ &= \sum_{n=0}^{\infty}\frac{\dv{f^{(n)}(a)}}{\dv{n!}}(x-a)^n\end{aligned}

The coefficient of (x−a)n(x - a)^n is the nnth derivative at aa divided by n!\dv{n!}. When the centre is a=0a = 0, we call it the Maclaurin series. For these standard functions, the series equals f(x)f(x) on its interval of convergence, which is centred at aa. Outside that interval, the series diverges even where f(x)f(x) is defined.

Maclaurin series to know
ex=\displaystyle e^x =1+x+x22!+x33!+⋯\displaystyle 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots=∑n=0∞xnn!\displaystyle = \sum_{n=0}^{\infty}\frac{x^{\pw{n}}}{\pw{n}!}every x\iv{\text{every } x}
sin⁡x=\displaystyle \sin x =x−x33!+x55!−⋯\displaystyle x - \frac{x^3}{3!} + \frac{x^5}{5!} - \cdots=∑n=0∞(−1)nx2n+1(2n+1)!\displaystyle = \sum_{n=0}^{\infty}\frac{\dv{(-1)^n} x^{\pw{2n+1}}}{(\pw{2n+1})!}every x\iv{\text{every } x}
cos⁡x=\displaystyle \cos x =1−x22!+x44!−⋯\displaystyle 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots=∑n=0∞(−1)nx2n(2n)!\displaystyle = \sum_{n=0}^{\infty}\frac{\dv{(-1)^n} x^{\pw{2n}}}{(\pw{2n})!}every x\iv{\text{every } x}
11−x=\displaystyle \frac{1}{1-x} =1+x+x2+x3+⋯\displaystyle 1 + x + x^2 + x^3 + \cdots=∑n=0∞xn\displaystyle = \sum_{n=0}^{\infty} x^{\pw{n}}−1<x<1\iv{-1 < x < 1}
ln⁡(1+x)=\displaystyle \ln(1+x) =x−x22+x33−⋯\displaystyle x - \frac{x^2}{2} + \frac{x^3}{3} - \cdots=∑n=1∞(−1)n+1xnn\displaystyle = \sum_{n=1}^{\infty}\frac{(-1)^{n+1}x^{\pw{n}}}{\pw{n}}−1<x≤1\iv{-1 < x \le 1}
arctan⁡x=\displaystyle \arctan x =x−x33+x55−⋯\displaystyle x - \frac{x^3}{3} + \frac{x^5}{5} - \cdots=∑n=0∞(−1)nx2n+12n+1\displaystyle = \sum_{n=0}^{\infty}\frac{(-1)^n x^{\pw{2n+1}}}{\pw{2n+1}}−1≤x≤1\iv{-1 \le x \le 1}
(1+x)k=\displaystyle (1+x)^{\dv{k}} =1+kx+k(k−1)2!x2\displaystyle 1 + \dv{k}x + \frac{\dv{k(k-1)}}{\dv{2!}}x^2+k(k−1)(k−2)3!x3+⋯\displaystyle + \frac{\dv{k(k-1)(k-2)}}{\dv{3!}}x^3 + \cdots−1<x<1\iv{-1 < x < 1}

For exe^x, sin⁡x\sin x, and cos⁡x\cos x, the denominator has the factorial of the power, and each series equals its function for every xx. For ln⁡(1+x)\ln(1+x) and arctan⁡x\arctan x, each term is divided by its power rather than a factorial, because they come from integrating.

Substituting into a known series
e−x2=1+(−x2)+(−x2)22!+⋯=1−x2+x42!−⋯\displaystyle \begin{aligned}e^{\su{-x^2}} &= 1 + (\su{-x^2})\\ &\quad + \frac{(\su{-x^2})^2}{2!} + \cdots\\ &= 1 - x^2 + \frac{x^4}{2!} - \cdots\end{aligned}
14+x2=14⋅11−(−x24)∣−x24∣<1→  −2<x<2\displaystyle \begin{aligned}\frac{1}{4+x^2} &= \frac14 \cdot \frac{1}{1 - \big(\su{-\frac{x^2}{4}}\big)}\\[2pt] \Big|\su{-\frac{x^2}{4}}\Big| &< 1\\ &\to\; \iv{-2 < x < 2}\end{aligned}

For e−x2e^{\su{-x^2}}, let u=−x2\su{u} = \su{-x^2} and replace each u\su{u} in the eue^{\su{u}} series with (−x2)(\su{-x^2}), keeping the parentheses so that (−x2)n(\su{-x^2})^n simplifies to (−1)nx2n\su{(-1)^n} x^{2n}. If the denominator has a constant other than 11, factor it out first, as in 4+x2=4(1+x24)4 + x^2 = 4\left(1 + \su{\frac{x^2}{4}}\right). The geometric series 11−u\frac{1}{1-\su{u}} needs ∣u∣<1|\su{u}| < 1, so with u=−x24\su{u} = \su{-\frac{x^2}{4}}, we need ∣−x24∣<1\big|\su{-\frac{x^2}{4}}\big| < 1, which gives −2<x<2\iv{-2 < x < 2}. Multiplying the series by xx increases every power of xx by 1\pw{1}.

Differentiating and integrating term by term
1(1−x)2=ddx(1+x+x2+⋯)=1+2x+3x2+⋯\displaystyle \begin{aligned}&\frac{1}{(1-x)^2}\\ &= \frac{d}{dx}\big(1 + x + x^2 + \cdots\big)\\ &= 1 + 2x + 3x^2 + \cdots\end{aligned}
ln⁡(1+x)\displaystyle \ln(1+x) =C+x−x22+⋯\displaystyle = \dv{C} + x - \frac{x^2}{2} + \cdots
x=0:C\displaystyle {x = 0:}\quad \dv{C} =ln⁡1\displaystyle = \dv{\ln 1} =0\displaystyle = \dv{0}

Inside its interval of convergence, we can differentiate or integrate a power series term by term, just like a polynomial. Integrating term by term adds a constant C\dv{C}. Find C\dv{C} by plugging in x=0x = 0 on both sides. The radius of convergence stays the same, but the endpoints can change, so test each endpoint again after integrating.

Finding derivatives from a series
f(n)(a)\displaystyle {\dv{f^{(n)}(a)}} =n!×(coefficient of (x−a)n)\displaystyle = {\dv{n!} \times \big(\text{coefficient of } (x-a)^n\big)}
e−x2:f(6)(0)\displaystyle {e^{-x^2}:\quad \dv{f^{(6)}(0)}} =6!×(−13!)\displaystyle = \dv{6!} \times \Big(-\frac{1}{3!}\Big) =−120\displaystyle = \dv{-120}
f(n)(a)=n!×(coefficientof (x−a)n)\displaystyle \begin{aligned}&\dv{f^{(n)}(a)}\\ &= \dv{n!} \times \big(\text{coefficient}\\ &\qquad \text{of } (x-a)^n\big)\end{aligned}
e−x2:f(6)(0)=6!×(−13!)f(6)(0)=−120\displaystyle \begin{aligned}&e^{-x^2}:\\ &\dv{f^{(6)}(0)} = \dv{6!} \times \Big(-\frac{1}{3!}\Big)\\ &\phantom{\dv{f^{(6)}(0)}}= \dv{-120}\end{aligned}

To find f(n)(a)\dv{f^{(n)}(a)} without differentiating nn times, find the series for ff about aa and multiply the coefficient of (x−a)n(x - a)^n by n!\dv{n!}. This works no matter how the series was found. If a power doesn't appear in the series, that derivative is 0\dv{0}.

9

Practice

Use known series and term-by-term operations whenever you can, instead of computing repeated derivatives from scratch.

1
Find the first three nonzero terms and the general term of the Maclaurin series for cos⁡(3x)\cos(3x).

If u=3xu = 3x, what are u2u^2 and u4u^4?

If you got 1−32x2+18x41 - \frac32x^2 + \frac18x^4 Check the powers of 3x3x. Both the 33 and the xx get raised to each power, so (3x)2(3x)^2 is 9x29x^2, not 3x23x^2.

Substitute 3x\su{3x} into the cosine seriesWe know the Maclaurin series for cos⁡u\cos \su{u}, so let u=3x\su{u} = \su{3x}.
cos⁡u\displaystyle \cos \su{u} =1−u22!+u44!−⋯ ,u\displaystyle = 1 - \frac{\su{u}^2}{2!} + \frac{\su{u}^4}{4!} - \cdots, \qquad \su{u} =3x\displaystyle = \su{3x}
Compute the first three termsSquaring 3x\su{3x} gives 9x29x^2, and raising it to the fourth power gives 81x481x^4.
cos⁡(3x)\displaystyle \cos(\su{3x}) =1−(3x)22!+(3x)44!−⋯\displaystyle = 1 - \frac{(\su{3x})^2}{2!} + \frac{(\su{3x})^4}{4!} - \cdots =1−9x22+81x424−⋯\displaystyle = 1 - \frac{9x^2}{2} + \frac{81x^4}{24} - \cdots =1−92x2+278x4−⋯\displaystyle = 1 - \frac92x^2 + \frac{27}{8}x^4 - \cdots
Find the general termRaising 3x\su{3x} to the power 2n\pw{2n} gives 32nx2n3^{2n}x^{2n}, and 32n3^{2n} is 9n9^n.
(−1)n(3x)2n(2n)!\displaystyle \frac{\dv{(-1)^n}(\su{3x})^{\pw{2n}}}{(\pw{2n})!} =(−1)n 9n x2n(2n)!\displaystyle = \frac{\dv{(-1)^n}\,9^n\,x^{\pw{2n}}}{(\pw{2n})!}
2
Find the Maclaurin series for x1+4x2\dfrac{x}{1+4x^2} and the interval on which the series equals the function.
<x<< x <

Write 1+4x21 + 4x^2 in the form 1−u1 - u. What is uu?

The geometric series converges when ∣u∣<1|u| < 1. What does that mean for xx?

If you got −1<x<1-1 < x < 1 Check the convergence condition. The condition ∣u∣<1|u| < 1 applies to −4x2-4x^2, not to xx.

If you got −14<x<14-\frac14 < x < \frac14 Check the inequality for xx. From x2<14x^2 < \frac14, take the square root of both sides.

Expand the fractionWrite 1+4x21 + 4x^2 as 1−(−4x2)1 - (\su{-4x^2}), and substitute u=−4x2\su{u} = \su{-4x^2} into the geometric series.
1+4x2\displaystyle 1 + 4x^2 =1−(−4x2),11+4x2\displaystyle = 1 - (\su{-4x^2}), \qquad \frac{1}{1+4x^2} =1−4x2+16x4−64x6+⋯\displaystyle = 1 - 4x^2 + 16x^4 - 64x^6 + \cdots
Multiply by xxMultiplying the series by xx increases every power by 1\pw{1}.
x1+4x2\displaystyle \frac{x}{1+4x^2} =x−4x3+16x5−⋯\displaystyle = x - 4x^3 + 16x^5 - \cdots =∑n=0∞(−1)n4nx2n+1\displaystyle = \sum_{n=0}^{\infty}(-1)^n 4^n x^{\pw{2n+1}}
Find the open intervalThe geometric series converges when ∣u∣<1|\su{u}| < 1, so set ∣−4x2∣<1|\su{-4x^2}| < 1.
∣−4x2∣<1  →  x2<14  →  −12<x<12\displaystyle |\su{-4x^2}| < 1 \;\to\; x^2 < \frac14 \;\to\; \iv{-\frac12 < x < \frac12}
Check the endpointsAt x=12x = \frac12 and x=−12x = -\frac12, the terms alternate between 12\frac12 and −12-\frac12 and don't approach 00, so the series diverges at both endpoints.
x\displaystyle x =12: 12−12+12−⋯,x\displaystyle = \tfrac12:\ \ps{\tfrac12 - \tfrac12 + \tfrac12 - \cdots}, \qquad x =−12: −12+12−12+⋯both diverge\displaystyle = -\tfrac12:\ \ps{-\tfrac12 + \tfrac12 - \tfrac12 + \cdots} \qquad \text{both diverge}
3
Which function has the Maclaurin series x2−x43!+x65!−⋯x^2 - \dfrac{x^4}{3!} + \dfrac{x^6}{5!} - \cdots?

What happens if you factor an xx out of every term?

If you got sin⁡(x2)\sin(x^2) Check the second term. In sin⁡(x2)\sin(x^2), replacing xx with x2x^2 turns x3x^3 into (x2)3=x6(x^2)^3 = x^6, not x4x^4.

The denominators are 11, 3!3!, and 5!5!, which matches the series for sin⁡x\sin x. The exponents 2\pw{2}, 4\pw{4}, and 6\pw{6} are each 11 higher than the powers in sin⁡x\sin x, so factor out an xx.
xsin⁡x\displaystyle x\sin x =x(x−x33!+x55!−⋯)\displaystyle = x\Big(x - \frac{x^{\pw{3}}}{\pw{3}!} + \frac{x^{\pw{5}}}{\pw{5}!} - \cdots\Big) =x2−x43!+x65!−⋯\displaystyle = x^{\pw{2}} - \frac{x^{\pw{4}}}{3!} + \frac{x^{\pw{6}}}{5!} - \cdots
Plugging x2x^2 into sin⁡x\sin x gives exponents that increase by 44 each time, not by 22.
sin⁡(x2)\displaystyle \sin(x^2) =x2−(x2)33!+⋯\displaystyle = x^2 - \frac{(x^2)^3}{3!} + \cdots =x2−x63!+⋯\displaystyle = x^2 - \frac{x^{\pw{6}}}{3!} + \cdots
4
Find the Maclaurin series for 1(1+x)2\dfrac{1}{(1+x)^2}. Give the first four terms and the general term.

What do you get if you differentiate 11+x\frac{1}{1+x} using the chain rule?

If you got −1+2x−3x2+4x3−⋯-1 + 2x - 3x^2 + 4x^3 - \cdots Check the sign. Differentiating 11+x\frac{1}{1+x} gives −1(1+x)2-\frac{1}{(1+x)^2}, so multiply by −1-1 to get 1(1+x)2\frac{1}{(1+x)^2}.

Relate the function to a derivativeBy the chain rule, the derivative of 11+x\frac{1}{1+x} is −1(1+x)2-\frac{1}{(1+x)^2}, so we multiply that derivative by −1-1 to get our function.
ddx 11+x\displaystyle \frac{d}{dx}\,\frac{1}{1+x} =−1(1+x)2  →  1(1+x)2\displaystyle = -\frac{1}{(1+x)^2} \;\to\; \frac{1}{(1+x)^2} =−ddx 11+x\displaystyle = -\frac{d}{dx}\,\frac{1}{1+x}
Write the series for 11+x\frac{1}{1+x}Replace xx with −x-x in the geometric series 11−x\frac{1}{1-x}.
11+x\displaystyle \frac{1}{1+x} =1−x+x2−x3+x4−⋯\displaystyle = 1 - x + x^2 - x^3 + x^4 - \cdots
Differentiate and multiply by −1-1Differentiate the series term by term, then multiply by −1-1 to undo the negative sign from the derivative.
1(1+x)2\displaystyle \frac{1}{(1+x)^2} =−(−1+2x−3x2+4x3−⋯)\displaystyle = -\big(-1 + 2x - 3x^2 + 4x^3 - \cdots\big) =1−2x+3x2−4x3+⋯\displaystyle = 1 - 2x + 3x^2 - 4x^3 + \cdots =∑n=0∞(−1)n(n+1)xn\displaystyle = \sum_{n=0}^{\infty}(-1)^n(n+1)x^{\pw{n}}
5
Find the first four nonzero terms of the Maclaurin series for ln⁡(2+x)\ln(2+x).

Differentiate ln⁡(2+x)\ln(2+x) to get 12+x\frac{1}{2+x}, and factor out 22 from the denominator.

After integrating, plug in x=0x = 0 on both sides to find the constant CC.

If you got x2−x28+x324−x464\frac{x}{2} - \frac{x^2}{8} + \frac{x^3}{24} - \frac{x^4}{64} Check the constant term. At x=0x = 0, the left side is ln⁡2\ln 2, not 00.

If you got ln⁡2+x−x24+x312\ln 2 + x - \frac{x^2}{4} + \frac{x^3}{12} Don't forget the factor of 12\frac12 that comes from factoring 22 out of the denominator.

Find the derivativeThe derivative of ln⁡(2+x)\ln(2+x) is 12+x\frac{1}{2+x}, so factor out 22 to set up a geometric series.
(ln⁡(2+x))′\displaystyle \big(\ln(2+x)\big)' =12+x\displaystyle = \frac{1}{2+x} =12⋅11+x2\displaystyle = \frac12\cdot\frac{1}{1+\su{\frac{x}{2}}} =12⋅11−(−x2)\displaystyle = \frac12\cdot\frac{1}{1-\big(\su{-\frac{x}{2}}\big)}
Expand the derivativeExpand the geometric series with u=−x2\su{u} = \su{-\frac{x}{2}}, then multiply through by 12\frac12.
12+x\displaystyle \frac{1}{2+x} =12(1−x2+x24−x38+⋯)\displaystyle = \frac12\Big(1 - \frac{x}{2} + \frac{x^2}{4} - \frac{x^3}{8} + \cdots\Big) =12−x4+x28−x316+⋯\displaystyle = \frac12 - \frac{x}{4} + \frac{x^2}{8} - \frac{x^3}{16} + \cdots
Integrate term by termIntegrating term by term brings back ln⁡(2+x)\ln(2+x) with an integration constant C\dv{C}.
ln⁡(2+x)\displaystyle \ln(2+x) =C+x2−x28+x324−x464+⋯\displaystyle = \dv{C} + \frac{x}{2} - \frac{x^2}{8} + \frac{x^3}{24} - \frac{x^4}{64} + \cdots
Find the constant C\dv{C}Plug in x=0x = 0 on both sides to find C\dv{C}.
x\displaystyle x =0: ln⁡2\displaystyle = 0:\ \dv{\ln 2} =C  →  ln⁡(2+x)\displaystyle = \dv{C} \;\to\; \ln(2+x) =ln⁡2+x2−x28+x324−⋯\displaystyle = \ln 2 + \frac{x}{2} - \frac{x^2}{8} + \frac{x^3}{24} - \cdots
6
A function ff has derivatives of every order, and f(n)(2)=(n+1)!3nf^{(n)}(2) = \dfrac{(n+1)!}{3^n} for n=0,1,2,…n = 0, 1, 2, \ldots (a) Write the first four terms and the general term of the Taylor series of ff about x=2x = 2. (b) Find the interval of convergence of this series.
(b)<x<< x <

In a Taylor series centered at 22, the coefficient of (x−2)n(x-2)^n is f(n)(2)n!\frac{f^{(n)}(2)}{n!}. How does that simplify?

In the ratio test, what does n+2n+1⋅∣x−2∣3\frac{n+2}{n+1}\cdot\frac{|x-2|}{3} approach as nn goes to infinity?

If you got −3<x<3-3 < x < 3 Check the center of the series. The series uses powers of x−2x - 2, so the interval is centered at 22, not 00.

If you got only x=2x = 2 Remember to divide f(n)(2)f^{(n)}(2) by n!n! to get the coefficient. Leaving off n!n! makes the ratio go to infinity.

Find the coefficientsThe coefficient of (x−2)n(x-2)^n is f(n)(2)n!\frac{\dv{f^{(n)}(2)}}{\dv{n!}}, and dividing (n+1)!\dv{(n+1)!} by n!\dv{n!} leaves n+1n+1.
f(n)(2)n!\displaystyle \frac{\dv{f^{(n)}(2)}}{\dv{n!}} =(n+1)!3n n!\displaystyle = \frac{\dv{(n+1)!}}{\dv{3^n}\,\dv{n!}} =n+13n\displaystyle = \frac{n+1}{3^n}
Write the Taylor seriesSubstitute n=0,1,2,3n = 0, 1, 2, 3 to find the first four coefficients, then multiply each by the matching power of x−2x-2.
1+23(x−2)+13(x−2)2+427(x−2)3+⋯\displaystyle 1 + \frac23(x-2) + \frac13(x-2)^2 + \frac{4}{27}(x-2)^3 + \cdots =∑n=0∞(n+1)(x−2)n3n\displaystyle = \sum_{n=0}^{\infty}\frac{(n+1)(x-2)^{\pw{n}}}{3^n}
Apply the ratio testThe ratio of successive terms approaches ∣x−2∣3\frac{|x-2|}{3}, which must be less than 11 for the series to converge.
n+2n+1⋅∣x−2∣3→∣x−2∣3<1  →  ∣x−2∣<3  →  −1<x<5\displaystyle \frac{n+2}{n+1}\cdot\frac{|x-2|}{3} \to \frac{|x-2|}{3} < 1 \;\to\; |x-2| < 3 \;\to\; \iv{-1 < x < 5}
Check the endpointsAt x=5x = 5 and x=−1x = -1, the terms don't approach 00, so the series diverges at both endpoints.
x\displaystyle x =5: ∑(n+1) diverges,x\displaystyle = 5:\ \ps{\sum (n+1)} \ \text{diverges}, \qquad x =−1: ∑(−1)n(n+1) diverges\displaystyle = -1:\ \ps{\sum (-1)^n(n+1)} \ \text{diverges}
7
The Taylor series of ff about x=1x = 1 is ∑n=0∞(x−1)nn2+1\displaystyle\sum_{n=0}^{\infty}\frac{(x-1)^n}{n^2+1}. Find f′′′(1)f'''(1).

How is the coefficient of (x−1)3(x-1)^3 related to f′′′(1)f'''(1)?

In the given series, the coefficient of (x−1)3(x-1)^3 comes from setting n=3n = 3.
coefficient of (x−1)3\displaystyle \text{coefficient of } (x-1)^3 =132+1\displaystyle = \frac{1}{3^2+1} =110\displaystyle = \frac{1}{10}
The coefficient of (x−1)3(x-1)^3 is f′′′(1)3!\frac{\dv{f'''(1)}}{\dv{3!}}, so multiply the coefficient by 3!\dv{3!}.
f′′′(1)\displaystyle \dv{f'''(1)} =3!×110\displaystyle = \dv{3!} \times \frac{1}{10} =610\displaystyle = \frac{6}{10} =35\displaystyle = \frac35
8
Use the binomial series to find the first three terms of the Maclaurin series for 14+x\dfrac{1}{\sqrt{4+x}}.

Rewrite 14+x\frac{1}{\sqrt{4+x}} as (4+x)−12(4+x)^{-\frac12}, and factor out 44.

What is 4−124^{-\frac12}?

If you got 1−x8+3x21281 - \frac{x}{8} + \frac{3x^2}{128} Don't forget the factor of 4−12=124^{-\frac12} = \frac12 in front.

If you got 2−x4+3x2642 - \frac{x}{4} + \frac{3x^2}{64} The power is −12-\frac12, so 4−124^{-\frac12} is 14=12\frac{1}{\sqrt4} = \frac12, not 22.

Factor out 44Write 14+x\frac{1}{\sqrt{4+x}} as (4+x)−12(4+x)^{\dv{-\frac12}} and factor out 4−12=124^{-\frac12} = \frac12.
14+x\displaystyle \frac{1}{\sqrt{4+x}} =(4+x)−12\displaystyle = (4+x)^{\dv{-\frac12}} =4−12(1+x4)−12\displaystyle = 4^{-\frac12}\Big(1 + \su{\frac{x}{4}}\Big)^{\dv{-\frac12}} =12(1+x4)−12\displaystyle = \frac12\Big(1 + \su{\frac{x}{4}}\Big)^{\dv{-\frac12}}
Expand (1+u)−12(1+\su{u})^{\dv{-\frac12}}Use the binomial series for (1+u)k(1+\su{u})^{\dv{k}} with k=−12\dv{k = -\frac12}.
(1+u)−12\displaystyle (1+\su{u})^{\dv{-\frac12}} =1+(−12)u+(−12)(−32)2!u2+⋯\displaystyle = 1 + \Big(\dv{-\frac12}\Big)\su{u} + \frac{\dv{\big(-\frac12\big)\big(-\frac32\big)}}{\dv{2!}}\su{u}^2 + \cdots =1−u2+38u2−⋯\displaystyle = 1 - \frac{\su{u}}{2} + \frac38\su{u}^2 - \cdots
Substitute u=x4\su{u} = \su{\frac{x}{4}} and multiply by 12\frac12Replace u\su{u} with x4\su{\frac{x}{4}}, then multiply each term by the 12\frac12 out front.
u\displaystyle \su{u} =x4:12(1−x8+3x2128−⋯)\displaystyle = \su{\frac{x}{4}}:\quad \frac12\Big(1 - \frac{x}{8} + \frac{3x^2}{128} - \cdots\Big) =12−x16+3x2256−⋯\displaystyle = \frac12 - \frac{x}{16} + \frac{3x^2}{256} - \cdots
9
Use the binomial series to find the first three nonzero terms of the Maclaurin series for arcsin⁡x\arcsin x.

What is the derivative of arcsin⁡x\arcsin x?

Write (1−x2)−12(1-x^2)^{-\frac12} as (1+u)k(1+u)^k. What are uu and kk?

After integrating, plug in x=0x = 0 to find the constant CC.

If you got x−x36+3x540x - \frac{x^3}{6} + \frac{3x^5}{40} Check the sign of uu. The expression under the square root is 1−x21 - x^2, so u=−x2u = -x^2, and that makes the second term of the series for (1−x2)−12(1-x^2)^{-\frac12} equal to −12(−x2)=+12x2-\frac12(-x^2) = +\frac12 x^2.

Differentiate arcsin⁡x\arcsin xThe derivative of arcsin⁡x\arcsin x is (1−x2)−12(1-x^2)^{-\frac12}, which matches (1+u)k(1+\su{u})^{\dv{k}} with k=−12\dv{k = -\frac12} and u=−x2\su{u} = \su{-x^2}.
(arcsin⁡x)′\displaystyle (\arcsin x)' =11−x2\displaystyle = \frac{1}{\sqrt{1-x^2}} =(1−x2)−12\displaystyle = (1-x^2)^{\dv{-\frac12}} =(1+u)−12,u\displaystyle = (1+\su{u})^{\dv{-\frac12}}, \qquad \su{u} =−x2\displaystyle = \su{-x^2}
Expand the derivative using the binomial seriesUse the binomial series with k=−12\dv{k = -\frac12}, and substitute u=−x2\su{u} = \su{-x^2}.
(1+u)−12\displaystyle (1+\su{u})^{\dv{-\frac12}} =1−u2+38u2−⋯  →  (1−x2)−12\displaystyle = 1 - \frac{\su{u}}{2} + \frac38\su{u}^2 - \cdots \;\to\; (1-x^2)^{\dv{-\frac12}} =1+x22+3x48+⋯\displaystyle = 1 + \frac{x^2}{2} + \frac{3x^4}{8} + \cdots
Integrate term by termIntegrate each term to find arcsin⁡x\arcsin x, and plug in x=0x = 0 to check that C=0\dv{C = 0}.
arcsin⁡x\displaystyle \arcsin x =C+x+x36+3x540+⋯ ,x\displaystyle = \dv{C} + x + \frac{x^3}{6} + \frac{3x^5}{40} + \cdots, \qquad x =0: C\displaystyle = 0:\ \dv{C} =arcsin⁡0\displaystyle = \dv{\arcsin 0} =0\displaystyle = \dv{0}