Alternating series numerical evaluation

71 Views Asked by At

Im trying to solve a question that is similar to this one, so any help with this one will be greatly appreciated. I know that the final answer is 84 terms.

Consider the Taylor expansion:

$$ln(1+x)=x-\frac{x^2}{2}+\frac{x^3}{3}-\frac{x^4}{4}+...$$

Estimate how many terms are required to obtain $ln(\frac{31}{16})$ to four decimal places accuracy.

I've started off so far by saying $$ln(1+x)=\sum_{n=1}^\infty(-1)^{n+1}\frac{x^n}{n}$$ and $$(1+x)= \frac{31}{16} \text{ so }x=\frac{15}{16}$$

Thanks in advance.

2

There are 2 best solutions below

0
On

You'll need the Lagrange form of the remainder (see my hint). We're evaluating this expansion at $x = \frac{15}{16}$, and the expansion is centered at $c = 0$.

We now need to find $n$ such that

$$ \left| \frac{f^{(n+1)}(\zeta)}{(n+1)!} \left( \frac{15}{16} \right)^{n+1} \right| \leq 0.00005 $$

We can take $f^{(n+1)}(\zeta) = 1 $ as the derivatives are just terms of the expansion, and it's probably the best we can do. Now we just test values of $n$ and see what happens.

0
On

Hint In an alternating series, the error is smaller then the absolute value of the first missing term.

This means that, for $x>0$, you have $$|ln(1+x)-\sum_{n=1}^N (-1)^{n+1}\frac{x^n}{n}| \leq \frac{x^{N+1}}{N+1}$$

Now, se $x=\frac{15}{16}$ and estimate for whicn $N$ do you have $$\frac{15^{N+1}}{16^{N+1}(N+1)}<0.0001$$