\documentclass{standalone} \begin{document} \begin{math} \int_{a}^{b} x^2 \,dx \end{math} \end{document}