\int takes its limits as subscript and superscript. The thin space \, before dx is the conventional typographic touch. amsmath adds the multiple-integral signs, and \oint is the closed-contour integral used in complex analysis and electromagnetism.
All ways to write it
\int_{a}^{b} f(x)\,dxdefinite integralNo package needed\intindefiniteNo package needed\iintdouble ∬Package: amsmath\iiinttriple ∭Package: amsmath\ointcontour ∮No package needed\int\limits_{a}^{b}limits above and belowNo package needed
Commands marked with a package need that \usepackage line in a LaTeX document.
Example
\int_{0}^{\infty} e^{-x^2}\,dx = \frac{\sqrt{\pi}}{2}The Gaussian integral.
Questions
Should dx be upright or italic?
Both conventions exist. ISO style uses upright \mathrm{d}x; most mathematics journals use italic dx. Be consistent.
Using integral in Confluence
Confluence Cloud has no built-in LaTeX. With LaTeX Math for Confluence you add a math macro to any page, type \int_{a}^{b} f(x)\,dx and it renders inline or as a block, with a live preview while you edit. Every command on this page renders there without extra packages.