Integral Notation in LaTeX: from Basic to Multiple Integrals

Calculus notation is a small closed set of commands. Learn six and you can write any integral you will meet in a first course. The core commands \int…

Calculus notation is a small closed set of commands. Learn six and you can write any integral you will meet in a first course.

The core commands

  • \int — the integral sign. Bounds go as _a^b.
  • \iint, \iiint, \oint — double, triple, and contour integrals.
  • \, before dx — a thin space; without it the differential jams against the integrand.
  • \mathrm{d} — an upright d, preferred by journals that distinguish variables from operators.
\int_{0}^{\infty} e^{-x^{2}}\,\mathrm{d}x = \frac{\sqrt{\pi}}{2}

Where the bounds go

In inline maths the limits sit to the side of the sign so lines stay compact. In display maths (\[ \] or equation) you usually want them above and below — force it with \limits, or suppress it with \nolimits.

Differentials and line breaks

For long expressions, break after an equals sign with \begin{aligned} and repeat &= on each line. Never split a differential from its integral sign across a line break — it reads as two separate objects.

latexintegralcalculus

Keep reading

Three ways into the same idea: the notation itself, the lesson that teaches it, and an article that applies it.