Integral in LaTeX
An integral is written with \int, and its limits like indices: the lower one with _ and the upper one with ^. Add a small space \, before dx so the differential does not run into the integrand.
Definite integral
\int_0^1 x^2 \, dx = \frac{1}{3}Double integral
\iint_D f(x, y) \, dx \, dyClosed contour integral
\oint_C \vec{E} \cdot d\vec{l}Limits above and below the sign
\int\limits_{a}^{b} f(x) \, dxCommon mistakes
- No space before dx: f(x)dx looks like the product f(x)·d·x.
- A multi-character limit without braces: \int_0^2\pi only takes the 2. Correct: \int_0^{2\pi}.
See also
Don't want to memorize commands?
Draw a formula or paste a screenshot, and CamteX turns it into ready LaTeX.