What is general formulation of an integration i.e., $\int_0^\infty e^{-x^n} dx$.
Well I did some calculation but the answer is wrong, but am not getting where did I got wrong.
But if that's correct, it doesn't work for anything except $n=1$.
Your error is that $e^{-x^n} =e^{-y^{n/2}} $, not $e^{-y}$.