integrate (1/(x**2+1),(x,0,oo ))
integrate(1/(x**2 + 1), (x, 0, oo))
Need more control? Try SymPy Live.