In [27]:
from sympy import *

x, a = symbols('x a')

integrate(exp(-x*x), (x, -oo, oo))


Out[27]:
$$\sqrt{\pi}$$