The error function is defined by,
$$\operatorname{erf}(x) = \frac{2}{\sqrt{\pi}}\int^{x}_{0}e^{-t^2} dt$$
I started by determining the Taylor polynomial of degree $2n$ around $x=0$ of $e^{-x^2}$. For this I used the Taylor expansion of $e^t$, which has an infinite range of convergence, and made a substitution $t=-x^2$ (here $x=0 \implies t=0$ so it is centered around the same point). This gives
$$T_{2n}(x)=\sum^{2n}_{k=0} \frac{(-x^2)^k}{k!}=\sum^{2n}_{k=0} (-1)^k\frac{x^{2k}}{k!}$$
Next I wanted to determine an upper bound for the error of this approx. ($f(x)=e^{-x^2}$),
$$|f(x)-T_{2n}(x)| = \left|\frac{f^{2n+1}(\xi)}{(2n+1)!}x^{2n+1}\right|$$
Then I proved this recurrence relation for the derivatives of $f$ (which I will denote by $F_n$),
$$F_n=-2xF_{n-1}-2(n-1)F_{n-2}$$
Now because $F_1(0)=0$ this recurrence relation shows that all odd $F_n(0)=0$. But what I wanted to do was find the max value of $F_{2n+1}$ over a given interval $[0,x]$. To do this I take the derivative of $F_{2n+1}$ which is $F_{2n+2}$ and for the max. value,
$$F_{2n+2}=0$$
Using the recurrence relation
$$-2xF_{2n+1}-2(2n+1)F_{2n}=0$$ $$F_{2n+1}=\frac{2n+1}{-x}F_{2n}$$
For some $x$. I tried simplifying this further using the recurrence relation to obtain an expression of the form $F_1=\dots F_0$, but this wasn't easy to evaluate. I decided to plot the derivatives using Desmos, and I saw that all even $F_n$ had a max. at $x=0$. But $(2n+1)$ is odd, so $x=0$ cannot be a solution. What I also see is that the max value of $F_{2n+1}$ approaches $x=0$ for higher derivatives. This would make sense since the fraction in the expression also gets larger for $x\to 0$.
But I'm stuck trying to find an actual expression... I think finding an expression for the even derivatives might be the way to go. Can anyone help me?
