We already know how to build Taylor polynomials for ex at 0. We have 1+x, then 1+x+2!x2, then 1+x+2!x2+3!x3, and each extra term gives a polynomial that stays close to ex over a wider interval. What happens if we keep going and add every term, with no last term at all?
Keeping every term gives an infinite sum, called the Taylor series of ex at 0. It's a power series, so the first thing to ask is where it converges.
Find the Taylor series of ex at 0 and test where it converges
Text solution
Every coefficient is n!1Every derivative of ex is ex, so every derivative at 0 is e0=1. Since 0!=1, the n=0 term is 1.
ex:1+x+2!x2+3!x3+4!x4+⋯=n=0∑∞n!xn
ex:1+x+2!x2+3!x3+⋯=n=0∑∞n!xn
Ratio testFor any fixed x,∣x∣ stays fixed while n+1 grows, so the ratio goes to 0<1, and the series converges for every x.
(n+1)!xn+1÷n!xn=n+1∣x∣→0
We can do the same thing for any function f with derivatives of every order, centered at any number a. The coefficient of (x−a)n is n!f(n)(a), where f(n) means the nth derivative.
This infinite sum is the Taylor series of f about a. Each degree-n Taylor polynomial is just this series stopped at its (x−a)n term. When the center is a=0, we also call it the Maclaurin series of f.
2
Where a series equals its function
We know that 1+x+2!x2+⋯ converges for every x. But does it actually add up to ex? As we add higher-degree terms, the Taylor polynomials stay close to ex over wider and wider intervals.
The error bound settles it for ex. Then we'll try 1−x1, whose series doesn't equal it everywhere.
Where the Taylor series of ex and 1−x1 equal their functions
Text solution
The error for ex goes to 0In the Lagrange error bound, M is the largest value of et between 0 and x, a fixed number once x is fixed. The fraction is the size of the next term, and the terms of a convergent series go to 0.
ex−(1+x+2!x2+⋯+n!xn)≤M(n+1)!∣x∣n+1→0
ex−(1+x+⋯+n!xn)≤M(n+1)!∣x∣n+1→0
Every coefficient of 1−x1 is 1The nth derivative at 0 is n!, and dividing by n! leaves 1. That's a geometric series with ratio x, so it converges only when ∣x∣<1.
1−x1=1+x+x2+x3+⋯=n=0∑∞xn,−1<x<1
1−x1=1+x+x2+x3+⋯=n=0∑∞xn,−1<x<1
So the series of 1−x1 equals the function only on −1<x<1, even though the function is defined for every x except 1. One number on each side shows it.
x=21
1+21+41+81+⋯=2=1−211
x=−2
1−2+4−8+16−⋯diverges
1−(−2)1=31
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 sinx and cosx
For sinx, the derivatives at 0 repeat in a cycle of four, 0,1,0,−1, so every other term of the series is 0.
Build the general term for sinxThe signs start positive and alternate, so (−1)n. The odd powers 1,3,5,7 are 2n+1, and the factorial matches the power. Checking n=2 gives the third nonzero term.
5!(−1)2x5=5!x5
cosx keeps the even powersIts derivatives at 0 cycle through 1,0,−1,0, so the odd powers drop out. The signs still alternate.
cosx=1−2!x2+4!x4−6!x6+⋯=n=0∑∞(2n)!(−1)nx2n
cosx=1−2!x2+4!x4−6!x6+⋯=n=0∑∞(2n)!(−1)nx2n
Both equal their series for every xEvery derivative of sinx and cosx stays between −1 and 1, so M=1 in the error bound, and the factorial grows faster than the power for any fixed x.
(n+1)!M∣x∣n+1=(n+1)!∣x∣n+1→0
With sinx and cosx, we now have four series to know, each with its interval.
Series to know
ex=1+x+2!x2+3!x3+⋯=n=0∑∞n!xnevery x
sinx=x−3!x3+5!x5−⋯=n=0∑∞(2n+1)!(−1)nx2n+1every x
cosx=1−2!x2+4!x4−⋯=n=0∑∞(2n)!(−1)nx2nevery x
1−x1=1+x+x2+x3+⋯=n=0∑∞xn−1<x<1
4
Substituting into a known series
Let's find the Maclaurin series for e−x2. Taking derivatives at 0 gets messy fast. After the first one, each needs the product rule and comes out longer.
But we already know the series for eu, and it works for every number u. For each x,−x2 is just a number, so we can put −x2 in place of u.
eu=1+u+2!u2+3!u3+⋯,every u
eu=1+u+2!u2+3!u3+⋯=every u
Find the Maclaurin series for e−x2 and for xe−x2
e−x2=?
xe−x2=?
Text solution
Put −x2 in for uThe power applies to all of −x2, minus sign included, so (−x2)n=(−1)nx2n. The signs alternate and the powers of x double. The series for eu holds for every u, so this one holds for every x.
Multiply every term by xEach power of x goes up by 1, and the coefficients stay the same.
xe−x2=x−x3+2!x5−3!x7+⋯
Making a function look like 1−u1
Now let's find the Maclaurin series for 4+x21, and where it equals the function. The series to use is the geometric one, but 4+x2 starts with 4 instead of 1. So we factor 4 out of the denominator, and then write the denominator as 1 minus −4x2.
4+x21=41⋅1+4x21=41⋅1−(−4x2)1
u=−4x2
1−u1=1+u+u2+u3+⋯,∣u∣<1
1−u1=1+u+u2+u3+⋯=∣u∣<1
Find the Maclaurin series for 4+x21 and where it equals the function
4+x21=?
Text solution
Put −4x2 in for uMultiplying by the 41 outside gives denominators of 4n+1.
The condition on u becomes a condition on xAt x=±2,∣u∣=1 and the terms don't approach 0, so both endpoints are out.
−4x2<1→x2<4→−2<x<2
Even though 4+x21 is defined for every real number x, its series equals it only on −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−x2 at 0, we could keep differentiating. But the fourth derivative is already (16x4−48x2+12)e−x2, 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) for f(x)=e−x2
f(x)=e−x2
f(6)(0)=?
Text solution
Check on the derivatives we knowThe series came without any derivatives, yet n! times its coefficients gives the derivatives we found earlier.
2!×(−1)4!×2!1=−2=f′′(0)=12=f′′′′(0)
Why only the xn term is leftDifferentiate n times and plug in x=0. Lower powers have differentiated to 0, and higher powers still have a factor of x. For n=2:
dx2d2(1−x2+2!x4−⋯)=−2+6x2−5x4+⋯
x=0:−2=2!×(−1)
Read off the sixth derivativeThe coefficient of x6 is −3!1. The 3! belongs to the series, and the 6! comes from taking six derivatives. There are no odd powers, so every odd derivative at 0 is 0.
f(6)(0)f(5)(0)=6!×(−3!1)=−6720=−120=5!×0=0
The same thing happens for any power series that equals f(x) near 0, no matter how we found it. Differentiating the xn term n times multiplies its coefficient by n!, and every other term is 0 at x=0.
nth derivative at 0=n!×(coefficient of xn)
Can we find a high derivative from the series without differentiating?
6
Differentiating and integrating term by term
We want power series for (1−x)21,ln(1+x) and arctanx. None of them comes from substituting into a known series, but each is one derivative away from a series we know.
dxd1−x1=(1−x)21
dxdln(1+x)=1+x1
dxdarctanx=1+x21
So can we differentiate or integrate a power series term by term, like a polynomial? Let's test it on sinx, where we already know the answer. The power rule brings down a 3, which cancels with the 3 in 3!.
That's the series for cosx, the derivative of sinx. 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−x)21,ln(1+x), and arctanx
(1−x)21=?
ln(1+x)=?
arctanx=?
Text solution
Differentiate for (1−x)21The interval stays −1<x<1.
Integrate for ln(1+x), then find CPut −x in for u to get 1+x1, integrate term by term, and plug in x=0:ln1=0 on the left and C on the right.
ln(1+x)=∫(1−x+x2−⋯)dx=C+x−2x2+3x3−⋯
x=0:ln1=0=C
Integrate for arctanxPut −x2 in for u to get 1+x21=1−x2+x4−⋯, then integrate. C=arctan0=0, and both endpoints converge by the alternating series test.
arctanx=n=0∑∞2n+1(−1)nx2n+1,−1≤x≤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, and the smaller terms can be just enough for an endpoint to converge. That's what happens to ln(1+x) at x=1.
x=1
1−1+1−1+⋯diverges
1−21+31−41+⋯converges
x=−1
−(1+21+31+41+⋯)diverges
ln(1+x)=x−2x2+3x3−⋯=n=1∑∞n(−1)n+1xn,−1<x≤1
The denominators in the series for ln(1+x) and arctanx are n and 2n+1 because each term was integrated once. In ex,sinx, and cosx, the factorials come from dividing by n! in the Taylor formula.
The series to know
ex=1+x+2!x2+3!x3+⋯=n=0∑∞n!xnevery x
sinx=x−3!x3+5!x5−⋯=n=0∑∞(2n+1)!(−1)nx2n+1every x
cosx=1−2!x2+4!x4−⋯=n=0∑∞(2n)!(−1)nx2nevery x
1−x1=1+x+x2+x3+⋯=n=0∑∞xn−1<x<1
ln(1+x)=x−2x2+3x3−⋯=n=1∑∞n(−1)n+1xn−1<x≤1
arctanx=x−3x3+5x5−⋯=n=0∑∞2n+1(−1)nx2n+1−1≤x≤1
7
The Taylor series of lnx about x=1
A Maclaurin series is centred at 0, but ln0 is undefined, so lnx doesn't have one. Instead, we expand it about x=1, in powers of x−1. Plugging in 1 makes every power of x−1 zero, so only the constant term is left.
Find the Taylor series of lnx about x=1 and the interval where it holds
lnx=?
about x=1
Text solution
The derivatives at 1They are 0,1,−1,2,−6. After the constant term, the signs alternate and the sizes are 0!,1!,2!,3!.
f(n)(1)=(−1)n+1(n−1)!
Simplify the coefficient firstSince n!=n(n−1)!, the (n−1)! cancels. The constant term is ln1=0, so the series starts at n=1.
n!f(n)(1)=n!(−1)n+1(n−1)!=n(−1)n+1
lnx=n=1∑∞n(−1)n+1(x−1)n
The interval, from ln(1+u)lnx=ln(1+(x−1)), so this is the series for ln(1+u) with u=x−1, which holds for −1<u≤1. Add 1 throughout.
−1<x−1≤1→0<x≤2
Check a derivative3! times the coefficient of (x−1)3 gives back the third derivative.
f′′′(1)=3!×31=2=132
On a graph, y=lnx is y=ln(1+x) shifted 1 unit to the right, and its interval moves 1 unit to the right as well.
8
The binomial series
We already have the series for 1−x1, which is (1−x)−1. But what about other powers of a binomial? For example, what is the series for 1+x, which is (1+x)21?
Find the Maclaurin series for 1+x, and use it to find the binomial series for (1+x)k
1+x=?
(1+x)k=?
Text solution
Bring down the exponent each timeEach derivative multiplies by the current exponent and lowers it by 1.
At x=0, only the exponents are leftEvery power of 1+0 is 1, so each derivative at 0 is the product of the exponents. Leave it unmultiplied over n! to see the pattern.
Check the pattern with k=2With k in place of 21, the factors on top go k,k−1,k−2. For k=2, the third is 2−2=0, so the series stops at (1+x)2. For k=−1, it gives 1−x+x2−x3+⋯, the series for 1+x1.
k=2:1+2x+2!2⋅1x2+3!2⋅1⋅0x3+⋯=1+2x+x2
There's nothing special about the exponent 21. For any exponent k, the coefficient of xn has n factors on top, starting at k and going down by 1 each time, all divided by n!. This is the binomial series.
To use the binomial series on a root like 9+x, factor out the constant first to get a 1 inside the root.
9+x=91+9x=3(1+9x)21
Then let u=9x with k=21. For a function written as a constant times (1+u)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=1+x+2!x2+3!x3+⋯=n=0∑∞n!xnevery x
sinx=x−3!x3+5!x5−⋯=n=0∑∞(2n+1)!(−1)nx2n+1every x
The coefficient of (x−a)n is the nth derivative at a divided by n!. When the centre is a=0, we call it the Maclaurin series. For these standard functions, the series equals f(x) on its interval of convergence, which is centred at a. Outside that interval, the series diverges even where f(x) is defined.
Maclaurin series to know
ex=1+x+2!x2+3!x3+⋯=n=0∑∞n!xnevery x
sinx=x−3!x3+5!x5−⋯=n=0∑∞(2n+1)!(−1)nx2n+1every x
cosx=1−2!x2+4!x4−⋯=n=0∑∞(2n)!(−1)nx2nevery x
1−x1=1+x+x2+x3+⋯=n=0∑∞xn−1<x<1
ln(1+x)=x−2x2+3x3−⋯=n=1∑∞n(−1)n+1xn−1<x≤1
arctanx=x−3x3+5x5−⋯=n=0∑∞2n+1(−1)nx2n+1−1≤x≤1
(1+x)k=1+kx+2!k(k−1)x2+3!k(k−1)(k−2)x3+⋯−1<x<1
For ex,sinx, and cosx, the denominator has the factorial of the power, and each series equals its function for every x. For ln(1+x) and arctanx, 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)+2!(−x2)2+⋯=1−x2+2!x4−⋯
4+x21−4x2=41⋅1−(−4x2)1<1→−2<x<2
For e−x2, let u=−x2 and replace each u in the eu series with (−x2), keeping the parentheses so that (−x2)n simplifies to (−1)nx2n. If the denominator has a constant other than 1, factor it out first, as in 4+x2=4(1+4x2). The geometric series 1−u1 needs ∣u∣<1, so with u=−4x2, we need −4x2<1, which gives −2<x<2. Multiplying the series by x increases every power of x by 1.
Differentiating and integrating term by term
(1−x)21=dxd(1+x+x2+⋯)=1+2x+3x2+⋯
ln(1+x)=C+x−2x2+⋯
x=0:C=ln1=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. Find C by plugging in x=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)=n!×(coefficient of (x−a)n)
e−x2:f(6)(0)=6!×(−3!1)=−120
f(n)(a)=n!×(coefficientof (x−a)n)
e−x2:f(6)(0)=6!×(−3!1)f(6)(0)=−120
To find f(n)(a) without differentiating n times, find the series for f about a and multiply the coefficient of (x−a)n by n!. This works no matter how the series was found. If a power doesn't appear in the series, that derivative is 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).
If u=3x, what are u2 and u4?
If you got 1−23x2+81x4 Check the powers of 3x. Both the 3 and the x get raised to each power, so (3x)2 is 9x2, not 3x2.
Substitute 3x into the cosine seriesWe know the Maclaurin series for cosu, so let u=3x.
cosu=1−2!u2+4!u4−⋯,u=3x
Compute the first three termsSquaring 3x gives 9x2, and raising it to the fourth power gives 81x4.
Which function has the Maclaurin series x2−3!x4+5!x6−⋯?
What happens if you factor an x out of every term?
If you got sin(x2) Check the second term. In sin(x2), replacing x with x2 turns x3 into (x2)3=x6, not x4.
The denominators are 1,3!, and 5!, which matches the series for sinx. The exponents 2,4, and 6 are each 1 higher than the powers in sinx, so factor out an x.
xsinx=x(x−3!x3+5!x5−⋯)=x2−3!x4+5!x6−⋯
Plugging x2 into sinx gives exponents that increase by 4 each time, not by 2.
sin(x2)=x2−3!(x2)3+⋯=x2−3!x6+⋯
4
Find the Maclaurin series for (1+x)21. Give the first four terms and the general term.
What do you get if you differentiate 1+x1 using the chain rule?
If you got −1+2x−3x2+4x3−⋯ Check the sign. Differentiating 1+x1 gives −(1+x)21, so multiply by −1 to get (1+x)21.
Relate the function to a derivativeBy the chain rule, the derivative of 1+x1 is −(1+x)21, so we multiply that derivative by −1 to get our function.
dxd1+x1=−(1+x)21→(1+x)21=−dxd1+x1
Write the series for 1+x1Replace x with −x in the geometric series 1−x1.
1+x1=1−x+x2−x3+x4−⋯
Differentiate and multiply by −1Differentiate the series term by term, then multiply by −1 to undo the negative sign from the derivative.
Find the first four nonzero terms of the Maclaurin series for ln(2+x).
Differentiate ln(2+x) to get 2+x1, and factor out 2 from the denominator.
After integrating, plug in x=0 on both sides to find the constant C.
If you got 2x−8x2+24x3−64x4 Check the constant term. At x=0, the left side is ln2, not 0.
If you got ln2+x−4x2+12x3 Don't forget the factor of 21 that comes from factoring 2 out of the denominator.
Find the derivativeThe derivative of ln(2+x) is 2+x1, so factor out 2 to set up a geometric series.
(ln(2+x))′=2+x1=21⋅1+2x1=21⋅1−(−2x)1
Expand the derivativeExpand the geometric series with u=−2x, then multiply through by 21.
2+x1=21(1−2x+4x2−8x3+⋯)=21−4x+8x2−16x3+⋯
Integrate term by termIntegrating term by term brings back ln(2+x) with an integration constant C.
ln(2+x)=C+2x−8x2+24x3−64x4+⋯
Find the constant CPlug in x=0 on both sides to find C.
x=0:ln2=C→ln(2+x)=ln2+2x−8x2+24x3−⋯
6
A function f has derivatives of every order, and f(n)(2)=3n(n+1)! for n=0,1,2,… (a) Write the first four terms and the general term of the Taylor series of f about x=2. (b) Find the interval of convergence of this series.
(b)<x<
In a Taylor series centered at 2, the coefficient of (x−2)n is n!f(n)(2). How does that simplify?
In the ratio test, what does n+1n+2⋅3∣x−2∣ approach as n goes to infinity?
If you got −3<x<3 Check the center of the series. The series uses powers of x−2, so the interval is centered at 2, not 0.
If you got only x=2 Remember to divide f(n)(2) by n! to get the coefficient. Leaving off n! makes the ratio go to infinity.
Find the coefficientsThe coefficient of (x−2)n is n!f(n)(2), and dividing (n+1)! by n! leaves n+1.
n!f(n)(2)=3nn!(n+1)!=3nn+1
Write the Taylor seriesSubstitute n=0,1,2,3 to find the first four coefficients, then multiply each by the matching power of x−2.
Apply the ratio testThe ratio of successive terms approaches 3∣x−2∣, which must be less than 1 for the series to converge.
n+1n+2⋅3∣x−2∣→3∣x−2∣<1→∣x−2∣<3→−1<x<5
Check the endpointsAt x=5 and x=−1, the terms don't approach 0, so the series diverges at both endpoints.
x=5:∑(n+1)diverges,x=−1:∑(−1)n(n+1)diverges
7
The Taylor series of f about x=1 is n=0∑∞n2+1(x−1)n. Find f′′′(1).
How is the coefficient of (x−1)3 related to f′′′(1)?
If you got 101 This is the coefficient of (x−1)3. Remember that this coefficient equals 3!f′′′(1), so you still need to multiply by 3!.If you got 601 Check how you solved for f′′′(1). Since the coefficient is 3!f′′′(1), multiply the coefficient by 3!, rather than dividing by it.
In the given series, the coefficient of (x−1)3 comes from setting n=3.
coefficient of (x−1)3=32+11=101
The coefficient of (x−1)3 is 3!f′′′(1), so multiply the coefficient by 3!.
f′′′(1)=3!×101=106=53
8
Use the binomial series to find the first three terms of the Maclaurin series for 4+x1.
Rewrite 4+x1 as (4+x)−21, and factor out 4.
What is 4−21?
If you got 1−8x+1283x2 Don't forget the factor of 4−21=21 in front.
If you got 2−4x+643x2 The power is −21, so 4−21 is 41=21, not 2.
Factor out 4Write 4+x1 as (4+x)−21 and factor out 4−21=21.
4+x1=(4+x)−21=4−21(1+4x)−21=21(1+4x)−21
Expand (1+u)−21Use the binomial series for (1+u)k with k=−21.
Substitute u=4x and multiply by 21Replace u with 4x, then multiply each term by the 21 out front.
u=4x:21(1−8x+1283x2−⋯)=21−16x+2563x2−⋯
9
Use the binomial series to find the first three nonzero terms of the Maclaurin series for arcsinx.
What is the derivative of arcsinx?
Write (1−x2)−21 as (1+u)k. What are u and k?
After integrating, plug in x=0 to find the constant C.
If you got x−6x3+403x5 Check the sign of u. The expression under the square root is 1−x2, so u=−x2, and that makes the second term of the series for (1−x2)−21 equal to −21(−x2)=+21x2.
Differentiate arcsinxThe derivative of arcsinx is (1−x2)−21, which matches (1+u)k with k=−21 and u=−x2.
(arcsinx)′=1−x21=(1−x2)−21=(1+u)−21,u=−x2
Expand the derivative using the binomial seriesUse the binomial series with k=−21, and substitute u=−x2.
(1+u)−21=1−2u+83u2−⋯→(1−x2)−21=1+2x2+83x4+⋯
Integrate term by termIntegrate each term to find arcsinx, and plug in x=0 to check that C=0.