Find
Try the obvious substitution and see it fail. Setting gives , but there is no factor in the integrand to absorb, so the substitution cannot be completed. Integration by parts also loops without ever simplifying. This is not a lack of cleverness: the failure is structural.
Know the theoretical statement. By Liouville theorem on integration in finite terms, has no elementary antiderivative — none can be written with polynomials, roots, exponentials, logarithms and trigonometric functions in finitely many operations. Compare , which is elementary precisely because the extra makes the substitution work.
Introduce the error function as a definition. Mathematicians name the missing antiderivative:
The prefactor is chosen so that , which makes erf a probability in statistics.
Invert the definition to answer the question. Differentiating the definition gives , so multiplying by undoes the normalisation:
Contrast with the definite integral over the whole line. Although no elementary antiderivative exists, the definite integral is famously exact:
obtained by squaring and switching to polar coordinates. Having a closed-form definite integral is entirely compatible with having no closed-form indefinite one.
Need to solve a different problem like this? Open the solver →