The standard Normal distribution probability density function is $$p(x) = \frac{1}{\sqrt{2\pi}}e^{-x^2/2},\int_{-\infty}^{\infty}p(t)\,dt = 1$$ i.e., mean 0 and variance 1. The cumulative distribution function is given by the improper integral $$P(x) = \frac{1}{\sqrt{2\pi}}\int_{-\infty}^{x}e^{-t^2/2}\,dt$$ Describe a numerical method for approximating $P(x)$ given a value of $x$ to a prescribed absolute error $\tau$. Your solution should be as efficient as possible. Justify your answer.
I believe we need to consider the case where $x > 0$ and $x < 0$ and then use one a numerical approximating method that is the most accurate to use. That is the crux of the problem, there are many methods, does one need to try each and everyone to see which one is best. Is there way of determining which one is the best given this particular problem before actually performing any computations. Any suggestions is greatly appreciated.
Say we look at $x<0$ only. Then consider a change of variable of the form $u=\frac{t}{1-t}$ to have$$P(x)=\int_{-1}^{\frac{x}{1-x}}\frac{e^{-\frac{u^2}{2 (u+1)^2}}}{\sqrt{2 \pi } (u+1)^2}du$$ which is manageable stuff since $$\lim_{u\to -1}\frac{e^{-\frac{u^2}{2 (u+1)^2}}}{\sqrt{2 \pi } (u+1)^2}=0.$$