If we take the harmonic series 1+21+31+41+⋯ and switch every second sign to a minus, does the new series add up to a number? The harmonic series diverges to infinity, and none of our tests decide the new one. The terms n1 approach 0, so the nth-term test tells us nothing, and the integral test and the comparison tests only work when every term is positive. The factor (−1)n+1 is 1 for odd n and −1 for even n, so we can write the new series as ∑n=1∞n(−1)n+1.
All positive terms
1+21+31+41+⋯
Alternating signs
1−21+31−41+⋯=n=1∑∞n(−1)n+1
Let's track the partial sums as positions on a number line, starting at 0. A positive term moves us to the right by its size, and a negative term moves us to the left. In the harmonic series every step goes right, so the positions go to infinity. Here the steps switch direction.
Each step turns back by lessBecause 31<21, stepping right from 21 doesn't reach back to 1. Because 41<31, stepping left from 65 doesn't reach back to 21. So each new position stays inside the stretch of the step before it.
21<65<1
21<127<65
The stretches close in on one numberThe stretch lengths are the step sizes 21,31,41,…, which approach 0. So only one number S is inside every stretch, and the partial sums approach it from both sides.
21<127<⋯<S
S<⋯<6047<65<1
So ∑n(−1)n+1 converges, even though ∑n1, with the very same sizes, diverges. The same reasoning works for any series whose signs alternate. We write ∣an∣ for the size of the nth term, its absolute value. If the sizes decrease, each position stays inside the previous stretch, and if they also approach 0, the series converges. This is the alternating series test.
The alternating series test
Signs alternate
the signs of an alternate
Sizes decrease
∣an+1∣≤∣an∣
Sizes approach 0
∣an∣→0
⟹∑an converges
2
When both the top and the bottom increase
Let's test an alternating series where both the numerator and the denominator increase. The sizes of its terms are nlnn, and since lnn and n both grow, we can't tell just by looking whether they decrease. The first few sizes even go up before they come down.
2ln23ln34ln45ln5≈0.347≈0.366≈0.347≈0.322
Does ∑n=2∞n(−1)nlnn converge or diverge?
n=2∑∞n(−1)nlnn
converges or diverges?
Text solution
Check the limit firstlnx and x both go to infinity, so we use L'Hôpital's rule. The sizes approach 0.
x→∞limxlnx=x→∞lim1x1=0
Find where the sizes decreaseThe derivative of f(x)=xlnx is negative when lnx>1, that is x>e≈2.72. So the sizes decrease from n=3 on.
f′(x)=x21−lnx<0 for x>e
Split off the first termFrom n=3 on, the sizes decrease to 0, so that part converges. Adding 2ln2 only shifts the sum by a fixed number, so the whole series converges.
n=2∑∞n(−1)nlnn=2ln2+n=3∑∞n(−1)nlnn
Checking the limit first matters. Take 2−23+34−45+⋯. Its sizes decrease, but they approach 1 instead of 0, so it diverges by the nth-term test.
n=1∑∞n(−1)n+1(n+1)=2−23+34−45+⋯?
∣an∣=nn+1→1=0
The alternating series test only tells us when a series converges. If the sizes approach 0 but aren't decreasing from any point on, it gives no conclusion, and we have to try another test.
You'll also see alternating series written with cos(nπ) instead of (−1)n. They're the same thing, so a series ∑cos(nπ)bn with bn>0 alternates, and we run the same two checks on bn.
cosπ=−1,cos2π=1,cos3π=−1
cos(nπ)=(−1)n
cosπcos2πcos3πcos(nπ)=−1=1=−1=(−1)n
3
Estimating the sum of an alternating series
If we stop after four terms of 1−21+31−41+⋯, we get 127. How close is 127 to the actual sum S, and is it too high or too low? The number line from the first section answers both.
Find the error bound and whether the estimate is too high or too low after 4 terms and after 5 terms of 1−21+31−⋯
Text solution
Look at the first term left outAfter four terms, that's +51, a step from 127 to 6047. Every later sum stays inside that stretch, so S does too.
127<S<127+51=6047
Read off the error and the sideThe stretch is only 51 long, so the error is less than 51. The step went right, so 127 is too low.
After five termsThe first term left out is −61, a step left to 6037. The error is less than 61, and this time the estimate 6047 is too high.
6037=6047−61<S<6047
This works for any alternating series once the sizes of the terms we leave out decrease toward 0. The sum S is always between our estimate and that estimate plus the next term.
error≤∣first term left out∣
first term left out>0first term left out<0→estimate too low→estimate too high
first term left out>0→estimate too lowfirst term left out<0→estimate too high
Does the error bound come from the last term we added or the first term we left out?
We can also turn the bound around and decide how many terms to add for the accuracy we want.
Find how many terms of ∑n=1∞n2(−1)n+1 give an error less than 0.005
n=1∑∞n2(−1)n+1=1−41+91−⋯
error<0.005
number of terms=?
Text solution
Make the first term left out small enoughEach term has size n21, and 0.005 is 2001, so we need n2>200.
n21<2001→n2>200
Find the first such term142=196 isn't enough, but 152=225 is. So the 15th term is the first one we leave out, and we add the first 14 terms.
1961≈0.0051>0.005
2251≈0.0044<0.005
Too high or too lowWhen n=15,(−1)16=1, so the 15th term is +2251, a step right toward S. The sum of the first 14 terms is slightly too low.
4
When the signs follow no pattern
So far, our series have either had all positive terms or terms that alternate with each step. Now let's look at ∑n2sinn, whose signs follow no fixed pattern. The sign of each term comes from sinn, the y-value of y=sinx at x=n. Since π≈3.14 and 2π≈6.28, the signs come in runs.
sin1,sin2,sin3sin4,sin5,sin6sin7>0<0>0
Because the period 2π isn't a whole number, the signs never settle into a plus-minus pattern, so the alternating series test doesn't apply. And because some terms are negative, we can't use direct comparison or the integral test either.
Does ∑n=1∞n2sinn converge or diverge?
n=1∑∞n2sinn=sin1+4sin2+9sin3+⋯
converges or diverges?
Text solution
Make every term positiveWith absolute values, every term is positive, so we can use direct comparison. Since ∣sinn∣≤1, we compare with ∑n21, a p-series with p=2>1.
Why the original series convergesThe steps to the right are some of the absolute values, so their total never passes ∑∣an∣ and approaches a finite number. The same goes for the steps to the left. Our position is the difference of the two totals, so it approaches a finite number too.
position=total to the right−total to the left
That argument works for any series. When the series of absolute values converges, the original series converges too, no matter what signs the terms have, and we say it converges absolutely. When a series converges but its series of absolute values diverges, we say it converges conditionally.
Converges absolutely
∑∣an∣ converges⟹∑an converges
Converges conditionally
∑an converges,∑∣an∣ diverges
The alternating harmonic series ∑n(−1)n+1 converges conditionally. Its absolute values make the harmonic series, and both its steps to the left and its steps to the right add up to infinity. It still converges, because its signs alternate and its sizes decrease to 0.
21+41+61+⋯=21(1+21+31+⋯)
1>21,31>41,51>61,…
An alternating sign pattern doesn't automatically mean conditional convergence. For ∑n2(−1)n+1, the absolute values give ∑n21, which converges, so it converges absolutely.
∑n2(−1)n+1 converges∑n21 converges
absolutely
∑n(−1)n+1 converges∑n1 diverges
conditionally
What does removing the signs tell us about convergence?
5
Absolutely, conditionally, or diverges
When we have an alternating series, we want to know whether it converges absolutely, converges conditionally, or diverges. Testing in the right order saves work.
First check
an→0?
no→diverges
Second check
∑∣an∣ converges?
yes→absolutely
Third check
alternating seriestest passes?
yes→conditionally
If we only run the alternating series test on ∑n2(−1)n, we might say it converges conditionally, but ∑n21 converges, so it converges absolutely. The other mistake is stopping after the series of absolute values diverges. For ∑n(−1)n, the series ∑n1 diverges, but n1 decreases to 0, so it converges conditionally.
Does ∑n=1∞n2+1(−1)nn converge absolutely, converge conditionally, or diverge?
n=1∑∞n2+1(−1)nn
absolutely, conditionally,
or diverges?
Text solution
The terms approach 0The denominator has degree 2 and the numerator has degree 1, so the nth-term test doesn't decide it.
∣an∣=n2+1n→0
The absolute values divergeFor large n,n2+1n behaves like n2n=n1. A limit comparison with n1 gives 1, so ∑∣an∣ diverges like the harmonic series, and the series doesn't converge absolutely.
The sizes decreaseThe top and the bottom both increase, so we take the derivative of f(x)=x2+1x. Its numerator 1−x2 is negative for x>1, so the alternating series test passes. The series converges, but not absolutely, so it converges conditionally.
f′(x)=(x2+1)2(x2+1)−2x2=(x2+1)21−x2<0 for x>1
The same three checks sort the whole alternating p-series by the value of p.
signs alternate∣an∣ decreasingfrom some n on∣an∣→0⟹∑an converges
If the terms alternate in sign, their sizes ∣an∣ decrease, and their sizes approach 0, then the series converges. On the number line, each position stays inside the stretch of the step before it, and the partial sums approach a single value S.
cos(nπ) equals (−1)n, so it alternates in the exact same way. If the top and bottom of ∣an∣ both increase, write it as a function f(x) with x in place of n, like xlnx. If the derivative f′(x) is negative for large x, the function is decreasing, so the sizes decrease from that point on. The sizes only need to decrease from some term on, because the first few terms never decide whether a series converges. If ∣an∣ doesn't approach 0, the series diverges by the nth-term test. The alternating series test only ever shows convergence.
Alternating series error bound
error≤∣first term left out∣
1−21+31−41=127first term left out +51→within 51, too low
Once the omitted term sizes decrease toward 0, the next step on the number line is the first term left out. The total sum S is between where you stopped and that next position. So the error is at most the size of the first term left out.
If the first term left out is positive, the next step moves right, so the estimate is too low. If it's negative, the next step moves left, so the estimate is too high. To find how many terms are needed for an error less than a given bound, find the position of the first term whose size is less than that bound, and add all the terms before it.
Absolute and conditional convergence
∑∣an∣ converges⟹∑an converges (absolutely)
∑∣an∣ converges⟹∑an converges(absolutely)
∑an converges,∑∣an∣ diverges:conditionally
∑an converges,∑∣an∣ diverges:conditionally
If the series of absolute values ∑∣an∣ converges, then the original series ∑an converges too, no matter what signs the terms have. We say it converges absolutely. For series like ∑n2sinn, where the signs follow no regular pattern, use ∣sinn∣≤1 to compare ∑∣an∣ with ∑n21.
If ∑an converges but ∑∣an∣ diverges, the series converges conditionally. The alternating harmonic series 1−21+31−41+⋯ converges conditionally because it passes the alternating series test, even though ∑n1 diverges.
The order of checks
∑np(−1)n
p0<pp>1≤1≤0→absolutely→conditionally→diverges
To test an alternating series, first check if the terms approach 0. If not, it diverges by the nth-term test. If they do approach 0, test the series of absolute values ∑∣an∣. If ∑∣an∣ converges, the series converges absolutely, and you never have to check whether the sizes decrease. If ∑∣an∣ diverges, use the alternating series test. If the sizes decrease to 0, it converges conditionally.
Take the alternating p-series ∑np(−1)n. When p>1,∑np1 converges, so the series converges absolutely. When 0<p≤1,∑np1 diverges, but the sizes decrease to 0, so the alternating series converges conditionally. When p≤0, the terms don't approach 0, so the series diverges.
6
Practice
(−1)n and (−1)n+1 differ only in which sign comes first. Either way, the signs alternate.
1
Does n=1∑∞n(−1)n+1 converge absolutely, converge conditionally, or diverge?
Look at the series of absolute values, ∑n1. Which p-series is that?
The series of absolute values diverges, but the signs alternate. Does n1 decrease and approach 0?
If you got diverges The series of absolute values diverges, but the signs alternate, so check the alternating series test before deciding.
As n goes to infinity, the denominator increases, so the size of each term approaches 0.
∣an∣=n1→0
Test for absolute convergenceThe series of absolute values is a p-series with p=21, which is less than 1, so it diverges.
∑n1=∑n211,p=21≤1→∑∣an∣ diverges
Test for conditional convergenceThe denominator n increases while the numerator stays 1, so the sizes decrease to 0, and the alternating series test passes.
n+11<n1,n1→0→converges conditionally
2
Does n=1∑∞2n+1(−1)nn converge absolutely, converge conditionally, or diverge?
What does 2n+1n approach as n goes to infinity?
If you got converges conditionally Check the limit of the terms as n→∞. A series can converge only if its terms approach 0.
The terms alternate, but their sizes approach 21 rather than 0, so by the nth-term test the series diverges.
∣an∣=2n+1n:31,52,73,…
n→∞lim2n+1n=n→∞lim2+n11=21=0→diverges
3
Does n=1∑∞n2+1cosn converge absolutely, converge conditionally, or diverge?
In radians, what are the signs of cos1,cos2, and cos3?
Since ∣cosn∣≤1, what is an upper bound for the size of each term?
If you got diverges The signs do not alternate at every step, but that only means the alternating series test cannot be used. Test the series of absolute values directly.
The signs do not alternate each step, so the alternating series test does not apply.
cos1>0,cos2<0,cos3<0,cos4<0,cos5>0
Test for absolute convergenceSince ∣cosn∣≤1, we can compare the absolute values directly to n21.
Find where the sizes decreaseThe sizes increase at first, so use the derivative of f(x)=xlnx to find where they begin decreasing.
f(x)=xlnx,f′(x)=xx1x−lnx⋅2x1=2x232−lnx<0 for x>e2≈7.39
7ln7≈0.7355,8ln8≈0.7352,9ln9≈0.7324
The sizes decrease from n=8 on and approach 0, so the alternating series test passes.
decreasing from n=8 on,∣an∣→0→converges conditionally
5
The sum of the first three terms of n=1∑∞n3(−1)n+1 is used to approximate its sum S. (a) Give an upper bound for the error. (b) Is the approximation greater than S or less than S?
Which term is the first one left out of the three-term sum?
If you got 271271 is the last term kept. The error bound is the size of the first term left out.
(b)
Is the first term left out positive or negative?
Add the first three terms to find the estimate.
1−81+271=216216−27+8=216197
Find the error boundThe error is at most the absolute value of the first term left out, which is the term for n=4.
first term left out: −431=−641→error≤641
Compare the estimate to SThe first term left out is negative, so adding the next term would decrease the total. That means the three-term estimate is greater than S.
−641<0→216197>S
6
For which values of p does n=1∑∞np(−1)n converge conditionally?
What happens at p=1, where the series is ∑n(−1)n?
If p=0, what are the terms of the series?
If you got 0<p<1 Check p=1, where ∑n1 diverges but the alternating series ∑n(−1)n converges.
If you got p>0 For p>1, the absolute values form a convergent p-series, so the series converges absolutely.
If you got p≤1 For p≤0, the terms do not approach 0, so the series diverges.
For p>1, the series of absolute values converges.
p>1:∑np1 converges→absolutely
For 0<p≤1, the series of absolute values diverges, but the sizes decrease to 0.