Divergence in LaTeX (\nabla \cdot)
- LaTeX command
\nabla \cdot- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Divergence operator, nabla dotted with a vector field, giving the net outward flux per unit volume.
Gauss's law \nabla \cdot \mathbf{E} = \rho/\varepsilon_0 and the no-monopole law \nabla \cdot \mathbf{B} = 0 are its best-known uses, and incompressible flow requires \nabla \cdot \mathbf{u} = 0. \cdot carries binary-operator spacing, which is the expected look. Use \cdot, not a period or \bullet. Some mathematical texts prefer \operatorname{div} \mathbf{F}, which avoids treating nabla as a vector. The divergence theorem links it to boundary flux: \int_V \nabla \cdot \mathbf{F}\, dV = \oint_{\partial V} \mathbf{F} \cdot d\mathbf{S}.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Divergence: $\nabla \cdot$
\[ \nabla \cdot \mathbf{E} = \frac{\rho}{\varepsilon_0} \]
\end{document}Related symbols
- Curl
\nabla \times - Multiplication
\times - Vector Field
\vec{E} - Partial Time
\frac{\partial}{\partial t} - Christoffel Symbol
\Gamma^{\lambda}_{\mu\nu} - Tensor
T^{\mu\nu}
Frequently asked questions
- How do I write Divergence in LaTeX?
- Type \nabla \cdot in math mode, for example $\nabla \cdot \mathbf{E} = \frac{\rho}{\varepsilon_0}$. It works in plain LaTeX without loading any package.
- Which package do I need for \nabla \cdot?
- None. \nabla \cdot is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \nabla \cdot in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\nabla \cdot$ in running text.