A Maclaurin series writes a function as a sum of powers of x. That lets us cancel, divide, differentiate or integrate term by term. Let's start with two limits that give 00 when we plug in 0, and see what the series say is really happening near 0.
The second limit needs the series for ex2. We don't need a new series for that. The series for e□ works for any expression in the box, as long as we put the same expression in every term.
The series for e□
e□=1+□+2!□2+3!□3+⋯
Find limx→0x3sinx−x and limx→01−cosxex2−1 using series
x→0limx3sinx−x=?
x→0lim1−cosxex2−1=?
Text solution
Subtract x from the series for sinxThe x cancels, so the top starts at x3. Stopping at sinx≈x would give a top of 0 that tells us nothing.
sinx−x=−6x3+120x5−⋯
Divide by x3Every term after −61 still has a power of x, so it goes to 0.
x3sinx−x=−61+120x2−⋯→−61
Write the top and the bottomPut x2 in the box, and subtract the 1s. Both start with an x2 term.
ex2−1=x2+2x4+⋯
1−cosx=2x2−24x4+⋯
Divide the top and the bottom by x2
21−24x2+⋯1+2x2+⋯→211=2
How many terms do we need to find the limit?
2
Finding derivatives from a series
Series also give us derivatives at 0. Let's find the sixth derivative of f(x)=e−x2 at 0. When we differentiate by hand, each derivative comes out longer than the one before, so six of them would be a lot of work. The series gets there much faster.
If you differentiate x6 six times, you get 6!. Any smaller power becomes 0, and any larger power still has a factor of x, which is 0 at x=0. So the x6 term is the only one that contributes to f(6)(0).
coefficient of x6=6!f(6)(0)
For f(x)=e−x2, find f(6)(0) and decide whether f has a relative maximum or minimum at 0
f(x)=e−x2
f(6)(0)=?
relative max or min at 0?
Text solution
Put −x2 in each boxThe x6 comes from the cubed term. Its 3! belongs to the third power of the box, so it stays 3! even though the power of x is 6.
3!(−x2)3=−3!x6
e−x2=1−x2+2!x4−3!x6+⋯
Match the coefficient of x6Set −3!1 equal to 6!f(6)(0) and multiply by 6!.
f(6)(0)=−3!6!=−6720=−120
Read off f′(0) and f′′(0)Only even powers appear, so every odd derivative at 0 is 0,f′(0) and f(5)(0) included. The coefficient of x2 is −1.
f′(0)=0
f′′(0)=2!⋅(−1)=−2<0
Since f′(0)=0 and f′′(0)<0, the tangent at 0 is horizontal and the curve is concave down there. So by the second derivative test, f has a relative maximum at 0. On the graph, that's the highest point, (0,1).
f′(0)=0
f′′(0)=−2<0
→relative maximum
The same idea works for a Taylor series centered at any other value x=a.
coefficient of (x−a)n=n!f(n)(a)
3
Adding up a series of numbers
So far we've used Maclaurin series to find limits and derivatives at 0. Now let's use them to add up an infinite series of numbers. The sum 1+2+2!22+3!23+⋯ has no x in it, but its factorials look like the series for ex. Write the numbers under that series, term under term, and 2 sits wherever x does.
So the sum is e2. Let's use the same matching on a sum that starts one term late, and on one with alternating signs.
Find the sum of each series by matching it to a Maclaurin series
1+2+2!22+3!23+⋯=?
n=1∑∞n!2n=?
n=0∑∞32n+1(2n+1)!(−1)nπ2n+1=?
Text solution
A sum that starts at n=1Starting at n=1 leaves out the first term of the series for e2, the 1, so we subtract it from the total.
n=1∑∞n!2n=2+2!22+3!23+⋯=e2−1
Combine π and 3Both are raised to 2n+1, so they make one number raised to that power.
32n+1π2n+1=(3π)2n+1
Match it to sinxOdd powers, odd factorials and alternating signs make the series for sinx, with x=3π.
3π−3!(3π)3+5!(3π)5−⋯=sin3π=23
To find which function a series comes from, look at its denominators and signs.
Common Maclaurin series
Every power, factorials, all signs positive
ex=1+x+2!x2+3!x3+⋯
Odd powers, odd factorials, alternating signs
sinx=x−3!x3+5!x5−⋯
Even powers, even factorials, alternating signs
cosx=1−2!x2+4!x4−⋯
Every power from x, denominators equal to the power, alternating signs
ln(1+x)=x−2x2+3x3−⋯
Odd powers, denominators equal to the power, alternating signs
arctanx=x−3x3+5x5−⋯
Every power, no denominators, all signs positive
1−x1=1+x+x2+x3+⋯
Check the denominators before the signs. A series can have alternating signs just because x is negative.
e−3=1−3+2!32−3!33+⋯
The series for e−3 has alternating signs because each odd power of −3 is negative, but the denominators are still factorials.
Which known series matches these terms?
4
Integrating functions with no known antiderivative
Let's find the area under y=e−x2 from x=0 to x=1.
∫01e−x2dx=?
With an extra x beside dx, u-substitution would do it. Without one, it doesn't.
∫xe−x2dx
u=−x2,du=−2xdx
→−21∫eudu
∫e−x2dx
u=−x2,du=−2xdx
In fact, e−x2 has no antiderivative made of functions we know. But we found its series in section 2, and every term of it is a power of x, so we can integrate term by term with the power rule.
Find ∫01e−x2dx by integrating its Taylor series term by term
∫01e−x2dx=?
Text solution
Integrate one power at a timeRaise each power by 1 and divide by the new power. For 2x4, that's 5⋅2=10 in the denominator.
∫2x4dx=5⋅2x5=10x5
Plug in 1 and 0At x=1 each power is 1, and at x=0 every term is 0, so the integral becomes a series of numbers.
∫01e−x2dx=[x−3x3+10x5−42x7+⋯]01
=1−31+101−421+2161−⋯
The antiderivative as a seriesIntegrating from 0 to x instead, with t inside the integral, gives a power series for the antiderivative.
∫0xe−t2dt=x−3x3+10x5−42x7+⋯
The denominators 1,3,10,42,216 are 1⋅0!,3⋅1!,5⋅2!,7⋅3!,9⋅4!, and none of our known series has those, so we can't name the exact sum. But the terms alternate and get small quickly, so the first few of them give a close estimate. That's the next section.
5
Estimating the integral with an alternating series
Let's estimate ∫01e−x2dx=1−31+101−421+⋯ with an error under 0.01. How many terms do we need to keep? Look at the running totals as we add the terms one by one.
The signs alternate and the terms decrease toward 0, so each running total lands on the other side of the true value, a little closer each time. The true value is always between two running totals in a row. So the error is less than the size of the first term left out. That's the alternating series error bound.
Estimate ∫01e−x2dx to within 0.01, and decide whether the estimate is too big or too small
∫01e−x2dx=1−31+101−421+⋯
error<0.01
too big or too small?
Text solution
Find the first term left out that's under 0.01Check the first term left out, not the last term kept. Stopping after three terms leaves out 421, which is too big, so we keep −421 as well.
421≈0.024>0.01
2161≈0.0046<0.01
∫01e−x2dx≈1−31+101−421=3526≈0.743
Too big or too small?The first term left out is positive, so the next running total is above 3526, and the true value lies between them. The estimate is too small.
+2161>0→∫01e−x2dx>3526
CheckA calculator gives about 0.7468, just above our estimate.
0.7468−3526≈0.004<2161
How does the first term left out give us an error bound?
Summary
Limits at 0 from series
x3sinx−x=x3−6x3+120x5−⋯=−61+120x2−⋯→−61
To find a limit as x→0, write out each series until a term doesn't cancel. Then divide the top and bottom by the lowest power of x. As x approaches 0, every term with an x goes to 0, and the constant terms give the limit. If you stop too early and replace sinx with only x, the top becomes 0, but only because you've left out every term that doesn't cancel.
Derivatives from coefficients
f(n)(0)=n!⋅(coefficient of xn)
e−x2=1−x2+2!x4−3!x6+⋯
f(6)(0)=6!⋅(−3!1)=−120
In a Taylor series about 0, the n-th derivative at 0 is n! times the coefficient of xn. If a power of x doesn't appear in the series, its coefficient is 0, so that derivative is 0.
For e−x2, substituting −x2 into e□ gives the x6 term 3!(−x2)3=−3!x6. The 3! belongs to the third power of the box, so it stays 3! even though the power of x is 6.
Testing for a relative maximum or minimum
f′(0)=0
f′′(0)=2!⋅(−1)=−2<0
→relative maximum at 0
If a series has no x term, f′(0)=0, so the tangent line at 0 is horizontal. Then f′′(0)=2!⋅(coefficient of x2). If f′′(0)<0, the curve is concave down and has a relative maximum at 0. If f′′(0)>0, it has a relative minimum.
For a Taylor series centered at x=a, the coefficient of (x−a)n is n!f(n)(a).
Sums of number series
ex=1+x+2!x2+⋯
sinx=x−3!x3+5!x5−⋯
cosx=1−2!x2+4!x4−⋯
ln(1+x)=x−2x2+3x3−⋯
arctanx=x−3x3+5x5−⋯
1−x1=1+x+x2+⋯
n=1∑∞n!2n=e2−1
Look at the denominators and signs to find which known Maclaurin series matches. The number raised to each power is x. Check denominators before signs, because a negative x can also make signs alternate.
If the sum starts at n=1 instead of n=0, subtract the missing first term from the function's value.
Integrating term by term
∫2x4dx=10x5
∫0xe−t2dt=x−3x3+10x5−42x7+⋯
When a function has no antiderivative we can write, replace it with its Taylor series and integrate term by term. Each power xn integrates to n+1xn+1.
Estimating alternating series
1−31+101−421=3526
error<2161
+2161→too small
When the terms alternate signs and decrease to 0, the error is less than the size of the first term left out. If that term is positive, adding it would make the running total larger, so the estimate is too small. If it's negative, the estimate is too big.
6
Practice
Enter exact values as fractions or simplified expressions unless a decimal is asked for.
1
Use a Maclaurin series to find x→0limx4ex2−1−x2.
Replace u with x2 in eu=1+u+2!u2+3!u3+⋯. What are the first three terms?
After subtracting 1 and x2, which power of x is the first one left on top?
If you got 0 Check whether you cut off the series too early. The 1 and x2 cancel, so you need the terms after them.
Plugging in 0 gives 00, so let's replace ex2 with its series.
ex2=1+x2+2!x4+3!x6+⋯
Subtract 1 and x2, and the first two terms cancel.
ex2−1−x2=2x4+6x6+⋯
Now divide each term by x4, and let x go to 0.
x4ex2−1−x2=21+6x2+⋯→21
2
Let f(x)=x2cosx. Find f(6)(0).
Which power of x in the series for cosx becomes x6 when multiplied by x2?
What factorial divides f(6)(0) to give the coefficient of x6?
If you got −1 You found the x6 coefficient of cosx itself, before multiplying by x2. The x6 term comes from the x4 term of cosx.
Multiplying the series for cosx by x2 adds 2 to each power, so the x6 term comes from the x4 term of cosx.
x2cosx=x2(1−2!x2+4!x4−⋯)=x2−2x4+24x6−⋯
The coefficient of x6 is 6!f(6)(0), so set it equal to 241 and solve for f(6)(0).
6!f(6)(0)=241→f(6)(0)=24720=30
3
Find the sum of n=0∑∞9n(2n)!(−1)nπ2n.
Rewrite 9n as a power of 3.
Which known series has alternating signs, even powers, and even factorials?
If you got cos9π Check how 9n combines with π2n. Since 9=32,9n=32n, so 9nπ2n=(3π)2n, not (9π)2n.
Rewrite 9n as 32n so both π and 3 are raised to the power 2n.
Estimate to within 0.001The series alternates with terms decreasing in size to 0, and 352801 is the first term under 0.001, so we keep the terms before it.
6001≈0.0017>0.001,352801≈0.00003<0.001
1−181+6001=18001703≈0.946
Check whether it's too big or too smallThe first term left out is negative, so the true value of the integral is less than the estimate.