So I have a continuous distribution with CDF $F(x) = 1 - \exp((-x^2)/2), x>0$.
For the mean, I got the derivative $f(x) = x\exp((-x^2)/2)$, but the integral for $E(X)$ gives me $-\sqrt{2\pi}/2$, which must not be right, since the CDF is only defined for $x>0$.
Also, any tips on how to calculate the variance, because I feel the formula $E(X^2) - \mu^2$ will lead me to similarly strange results. Is this the CDF of a known distribution that I am missing?