The question: The error function defined by $$erf(x) = \frac{2}{\sqrt{\pi}} \int_{0}^{x} e^{-t^{2}} dt. $$ The error function can also be formed as a series. $$ \frac{2}{\sqrt{\pi}} \sum_{k=0}^{\infty} \frac{(-1)^{k}x^{2k+1}}{(2k+1)k!} $$. The series can also be formed as $$ \frac{2}{\sqrt{\pi}} e^{x^{2}} \sum_{k=0}^{\infty} \frac{2^k x^{2k+1}}{1 \cdot 3\cdot 5 \cdots (2k+1)} $$
Use the series to approximate the $\text{erf}(1)$ to within $10^{-7}$
The Attempt: I have no idea how to set a bound for each series. Do I have to use the Remainder Theorem for Taylor Series? Please give me hints on how to solve this problem. Thank you very much!
When $x=1,$ the absolute values of the terms of the first series form a positive monotonic decreasing sequence, and the terms themselves are alternating $+-.$ So the error after summing from $k=0$ to $k=n$ is between $0$ and the value of the next term ($k=n+1$). So for the absolute value of the error, we have $$|erf(1)-\sum_{k=0}^n\frac {(-1)^k}{(2k+1)k!}| <\frac {2}{\sqrt \pi}\frac {1}{(2n+3)(n+1)!}$$ which is less than $10^{-7}$ for $n\geq 9.$
For the second series, for convenience write it as $erf(x)=(2/\sqrt \pi)e^{x^2}\sum_{k=0}^{\infty}A_kx^{2k+1}.$ Observe that $A_{k+1}=2A_k/(2k+3).$
When $n$ is large enough that $2x^2/(2n+5)<1$ we have $$|\sum_{k=n+1}^{\infty}A_kx^{2k+1}|=|x^{2n+3}A_{n+1}|\cdot |(1+\frac {2x^2}{2n+5}(1+\frac {2x^2}{2n+7}(1+...)|\leq $$ $$\leq |x^{2n+3}A_{n+1}|\cdot |1+\frac {2x^2}{2n+5}(1+\frac {2x^2}{2n+7}(1+..)|=$$ $$=|x^{2n+3}A_{n+1}| \sum_{j=0}^{\infty}(\frac {2x^2}{2n+5})^{-j}.$$ The last series, above, is geometric.