How many terms are needed, to estimate sum to within 0.0001? sum{n=1,infinity}(-1)^{n+1} (2/n)

mario99

Full Member
Joined
Aug 19, 2020
Messages
882
Determine how many terms are needed to estimate the sum of the series to within 0.00010.0001.

n=1(1)n+12n\sum_{n=1}^{\infty}(-1)^{n+1}\frac{2}{n}

By following the theorem of estimating the alternating series, my calculations are

2n+10.0001\frac{2}{n + 1} \leq 0.0001

n200001=19999n \geq 20000 - 1 = 19999

Thus, 19,99919,999 terms are needed, but the book says 20,00020,000! Why?

n=1(1)n+12n1.3863\sum_{n=1}^{\infty}(-1)^{n+1}\frac{2}{n} \approx 1.3863

n=120000(1)n+12n1.3862\sum_{n=1}^{20000}(-1)^{n+1}\frac{2}{n} \approx 1.3862

n=110000(1)n+12n1.3862\sum_{n=1}^{10000}(-1)^{n+1}\frac{2}{n} \approx 1.3862

Even, n=7000n = 7000, is sufficient.

n=17000(1)n+12n1.3862\sum_{n=1}^{7000}(-1)^{n+1}\frac{2}{n} \approx 1.3862

Why is the answer too big while we can also get a correct estimation within 0.00010.0001 with smaller terms?
 
Determine how many terms are needed to estimate the sum of the series to within 0.00010.0001.

n=1(1)n+12n\sum_{n=1}^{\infty}(-1)^{n+1}\frac{2}{n}

By following the theorem of estimating the alternating series, my calculations are

2n+10.0001\frac{2}{n + 1} \leq 0.0001
...
Why is the answer too big while we can also get a correct estimation within 0.00010.0001 with smaller terms?
Remember that the error formula is an upper bound. For specific series the error may be much lower than this number.

-Dan
 
Thank you topsquark and limiTS for helping me.

Remember that the error formula is an upper bound. For specific series the error may be much lower than this number.

-Dan
This makes sense!


You have to find the n+1n+1 term. You already determined that n=19,999n=19,999.
I don't agree with you because all other examples whatever you get with n n \geq \ something, it is the answer unless the infinite series starts with index n=0n = 0 (or n1n \neq 1) or the answer of nn has a decimal.

For example,

n=0(1)n+12n+1\sum_{n=0}^{\infty}(-1)^{n+1}\frac{2}{n+1}, I would add 1 term to the answer.

n=1(1)n+1n4\sum_{n = 1}^{\infty}\frac{(-1)^{n+1}}{n^4}, Here n101041315.2n \geq \sqrt[4]{10^{10}} - 1 \approx 315.2, I would round up so that, n316n \geq 316

Therefore, do you think that it is just a fancy way to write n=20,000n = 20,000, rather than n=19,999n = 19,999 when both answers are valid and the former is much clearer for the eyes to see?
 
Thus, 19,999 terms are needed, but the book says 20,000! Why?
Can you show us the exact wording of the book's question and answer?

The only explanation I can think of for their answer would be if "within 0.0001" were taken to mean that the last term has to be less than 0.0001.

Maybe you can show us a worked example of the same type, to see if there is anything different in the way they perceive the theorem applying.
 
I tested the OP's claim about the 7,000th term being within 0.0001 of the infinite sum, which happens to converge to ln4\ln 4.

The 7,000th partial sum is approx. 1.386151514, whereas ln41.386294361\ln 4\approx1.386294361, so the error is approx. 0.000142847. Unfortunately, this is still >0.0001>0.0001

The 20,000th partial sum is approx. 1.386244362, and the error is approx. 0.00004999875, which is <0.0001<0.0001. Like topsquark said, the error formula is only an upper bound, but fewer terms could be enough to get within 0.0001. It looks like the 10,000th partial sum is finally within 0.0001. Sorry, 9,999.
 
The book's official answer of 20,000 terms is correct, not 19,999, even if fewer terms get you within 0.0001.
the book chose 20,00020,000 terms, not necessarily 19,99919,999 terms are wrong.

I will show you other ways the book used to solve similar problems. We will compare the new examples with our original post.


Can you show us the exact wording of the book's question and answer?

The only explanation I can think of for their answer would be if "within 0.0001" were taken to mean that the last term has to be less than 0.0001.

Maybe you can show us a worked example of the same type, to see if there is anything different in the way they perceive the theorem applying.
Determine how many terms are needed to estimate the sum of the series to within 0.00010.0001.

This is the exact wording.

OK. I will show you two examples as well as our original post. The two examples will be within 0.010.01.

n=1(1)n+14n3\sum_{n=1}^{\infty}(-1)^{n+1}\frac{4}{n^3}

SSnan+1=4(n+1)30.01|S - S_n| \leq a_{n+1} = \frac{4}{(n+1)^3} \leq 0.01

If n=7n = 7, a8=4830.0078130.01a_8 = \frac{4}{8^3} \approx 0.007813\leq 0.01

And the book says, 77 terms are needed to estimate the sum within 0.010.01

n=1(1)n+12n3\sum_{n=1}^{\infty}(-1)^{n+1}\frac{2}{n^3}

SSnan+1=2(n+1)30.01|S - S_n| \leq a_{n+1} = \frac{2}{(n+1)^3} \leq 0.01

If n=5n = 5, a6=2630.0092590.01a_6 = \frac{2}{6^3} \approx 0.009259 \leq 0.01

And the book says, 55 terms are needed to estimate the sum within 0.010.01

We will follow the same process with the original post.

n=1(1)n+12n\sum_{n=1}^{\infty}(-1)^{n+1}\frac{2}{n}

SSnan+1=2n+10.0001|S - S_n| \leq a_{n+1} = \frac{2}{n+1} \leq 0.0001

If n=19,999n = 19,999, a20,000=220,000=0.00010.0001a_{20,000} = \frac{2}{20,000} = 0.0001 \leq 0.0001

The book must have said, 19,99919,999 terms are needed to estimate the sum within 0.00010.0001
 
I tested the OP's claim about the 7,000th term being within 0.0001 of the infinite sum, which happens to converge to ln4\ln 4.

The 7,000th partial sum is approx. 1.386151514, whereas ln41.386294361\ln 4\approx1.386294361, so the error is approx. 0.000142847. Unfortunately, this is still >0.0001>0.0001

The 20,000th partial sum is approx. 1.386244362, and the error is approx. 0.00004999875, which is <0.0001<0.0001. Like topsquark said, the error formula is only an upper bound, but fewer terms could be enough to get within 0.0001. It looks like the 10,000th partial sum is finally within 0.0001. Sorry, 9,999.
To make sure things are clear, all this is irrelevant to the question as actually intended, though it is stated in a somewhat misleading way. (I only know what was intended by knowing typical problems of this sort, and the vicinity of their answer.)

They asked how many terms are needed, but as we've seen, far fewer than 20,000 terms are really necessary to make the sum be closer than 0.0001.

On the other hand, they didn't ask about making the actual sum that close, but about estimating it that accurately. And they imply that they are talking about using the particular theorem they have just taught to decide how many terms to use; there may well be a different theorem or method.

So in terms of the question itself (as opposed to understanding how series actually work), it makes no difference what number of terms actually produces such an accurate sum. They intend to ask, how many terms does the theorem require you to use in your estimate.

Turning now to the OP:

Determine how many terms are needed to estimate the sum of the series to within 0.0001.

This is the exact wording.
That's what I expected. It didn't sound like you paraphrased the problem, but I wanted to be sure. What I said above does apply.

Thanks for this information.

OK. I will show you two examples as well as our original post. The two examples will be within 0.010.01.

n=1(1)n+14n3\sum_{n=1}^{\infty}(-1)^{n+1}\frac{4}{n^3}

SSnan+1=4(n+1)30.01|S - S_n| \leq a_{n+1} = \frac{4}{(n+1)^3} \leq 0.01

If n=7n = 7, a8=4830.0078130.01a_8 = \frac{4}{8^3} \approx 0.007813\leq 0.01

And the book says, 77 terms are needed to estimate the sum within 0.010.01
It's interesting that they don't show how they actually found this number; they just show the check. (They could have done the same check with a number greater than 7, and it would work; they haven't shown that 7 is the [minimum] number needed (according to the theorem, much less by actual summation).

Presumably, they solved the inequality 4(n+1)30.01\frac{4}{(n+1)^3} \leq 0.01. This becomes 40.01(n+1)34\leq0.01(n+1)^3, so that 400(n+1)3400\leq(n+1)^3, and then n+14001/3>7n+1\geq400^{1/3}>7. Therefore the smallest value of n is 7.

In any case, yes, you did just what they did.

My suspicion is that they (explicitly or implicitly) used a "less than", and solved 2n+1<0.0001\frac{2}{n+1} < 0.0001, for which the smallest integer solution is 20,000, because 19,999 makes it exactly equal. One way or another, this seems to have thrown them off.

But it didn't trick you.
 
You're right, mario99. The answer is 19,999 terms. I misremembered the error formula.
Thank you limiTS.


It's interesting that they don't show how they actually found this number
In fact, they did show how as I did in the first post to find n19,999n \geq 19,999.

They used both methods alternatively. If the infinite series is simple so that you can isolate nn, you are OK (have the freedom) to use any method. On the other hand, the trial and error method will be so effective for series such as

n=1(1)n2nn!\sum_{n=1}^{\infty}(-1)^n\frac{2^n}{n!}

where the factorial with or without exponential is present which makes it very difficult to isolate nn.


My suspicion is that they (explicitly or implicitly) used a "less than", and solved 2n+1<0.0001\frac{2}{n+1} < 0.0001, for which the smallest integer solution is 20,000, because 19,999 makes it exactly equal. One way or another, this seems to have thrown them off.

But it didn't trick you.
My suspicion is the same. I think that they have solved tons of problems and they always found the term an+1<a_{n+1} < the error, which makes the brain unconsious to accept an+1=a_{n+1} = the error.


Thank you Dr.Peterson for the help and I also thank topsquark and limiTS for igniting the spark.
 
Top