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.
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.