LatexNotes

Partial derivative (∂) in LaTeX

\partial produces the partial-derivative symbol, used to differentiate a function of several variables with respect to one of them.

LaTeX command

\partial

Not the symbol you meant? Draw it to find the command →

Typing up handwritten notes? Convert a whole page of handwriting to LaTeX →

Partial derivatives are built with \frac, not with \partial alone: \frac{\partial f}{\partial x} reads as the partial of f with respect to x. The symbol is a mathematical object in its own right, so you assemble the derivative around it rather than treating it as a function.

For higher orders put the power on both \partial and the variable: \frac{\partial^2 f}{\partial x^2}. A mixed second partial adds a thin space between the variables, \frac{\partial^2 f}{\partial x\,\partial y}. Subscript shorthand such as f_x and f_{xy} is a compact alternative.

The same symbol denotes the boundary of a set or region in topology, written \partial \Omega, and the boundary operator. Context makes the meaning clear. Do not substitute the letter d or \delta; a partial derivative specifically requires \partial.

Shorter forms

\partial_x f is common in working, and the physics package's \pdv writes the whole fraction for you.

$\partial_x f$
\usepackage{physics}
$\pdv{f}{x}$
$\pdv[2]{f}{x}$

Examples

$\frac{\partial f}{\partial x}$

a first partial derivative

$\frac{\partial^2 f}{\partial x^2}$

a second partial

$\frac{\partial^2 f}{\partial x\, \partial y}$

a mixed second partial

$\nabla f = \left(\frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}\right)$

gradient components

$\partial \Omega$

the boundary of a region

Tips and common mistakes

Working from handwritten notes?

LatexNotes turns a photo or PDF of handwritten mathematics into LaTeX, graphs and all. It is built with real pdflatex before you see it, and the .tex file is yours to edit or take to Overleaf. Free to try, no sign-up.

See how handwriting to LaTeX works, step by step, or go from GoodNotes to LaTeX if you write on an iPad (Notability works the same way).

Convert your maths to LaTeX →

FAQ

How do I write a partial derivative in LaTeX?

Use \partial inside a fraction: .

How do I write a second or mixed partial derivative?

Second: \frac{\partial^2 f}{\partial x^2}. Mixed: \frac{\partial^2 f}{\partial x\,\partial y}, with a thin space between the variables.

What is the difference between \partial and d for derivatives?

\partial is for partial derivatives of multivariable functions; the ordinary derivative of a single-variable function uses d, as in \frac{dy}{dx}.

How do I write a partial derivative at a point?

Close it with a bar and a subscript: \left. \frac{\partial f}{\partial x} \right|_{x=0}.

See also