\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
| Command | Use | Package | Copy |
|---|---|---|---|
\int_{a}^{b} f(x)\,dx | definite integral | none | |
\int | indefinite | none | |
\iint | double ∬ | amsmath | |
\iiint | triple ∭ | amsmath | |
\oint | contour ∮ | none | |
\int\limits_{a}^{b} | limits above and below | none |
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.
Related symbols
- Summation ∑
\sum_{i=1}^{n} - Partial derivative ∂
\partial - Infinity ∞
\infty - Limit lim
\lim_{x \to a} f(x)
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.