Derivatives, integrals, limits, at differential operators.
The core calculus symbols in LaTeX are all built in. A derivative in LaTeX is a fraction, \frac{dy}{dx}, or a prime, f'(x); a partial derivative uses \partial, as in \frac{\partial f}{\partial x}; an integral is \int_a^b f(x)\,dx; and a limit is \lim_{x \to 0}. Multiple integrals such as \iint and \iiint come from amsmath, and the physics package adds shortcuts like \dv and \pdv. The table lists the calculus symbols people use most, with the package each one needs; the full list follows below.
| Symbol | Command | Use | Package | Copy |
|---|---|---|---|---|
\frac{dy}{dx} | Derivative (Leibniz notation) | built in | ||
f'(x) | Derivative (prime notation); f''(x) for the second | built in | ||
\frac{d^2 y}{dx^2} | Second derivative | built in | ||
\frac{\partial f}{\partial x} | Partial derivative | built in | ||
\dot{x} | Time derivative (Newton dot); \ddot{x} for the second | built in | ||
\int_a^b f(x)\,dx | Definite integral | built in | ||
\iint_D f\,dA | Double integral (\iiint for triple) | amsmath | ||
\oint_C | Contour (closed line) integral | built in | ||
\lim_{x \to 0} | Limit | built in | ||
\nabla f | Gradient | built in | ||
\dv{f}{x} | Derivative shortcut | physics | ||
\pdv{f}{x} | Partial derivative shortcut | physics |
Add a thin space \, before the differential so f(x)\,dx does not run together. Some style guides set the d upright; define \newcommand{\diff}{\mathop{}\!\mathrm{d}} once and write \int f(x) \diff x. Sums and series are on the summation symbols page, and the gradient and nabla are covered with the machine learning symbols.
\partial\nabla\int\int_{a}^{b}\iint\iiint\oint\frac{d}{dx}\frac{\partial}{\partial x}\lim_{x \to a}\lim_{x \to \infty}\infty\sum_{n=1}^{\infty}\prod_{n=1}^{\infty}f'(x)f''(x)\dot{x}\ddot{x}\to\Big|_{a}^{b}