The LaTeX command for rank is \operatorname{rank} (rank of a matrix).
\operatorname{rank}Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.
| Command | Package | Use it when |
|---|---|---|
\operatorname{rank}(A) recommended | amsmath | One-off use, upright with operator spacing. |
\DeclareMathOperator{\rank}{rank} | amsmath (preamble) | In the preamble, then write \rank(A) everywhere. |
Write \operatorname{rank} inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. This symbol needs the amsmath package, so add \usepackage{amsmath} to your preamble.
$\operatorname{rank}(A) = n$Open this example in the live preview: it renders as you type, with no compiler and no signup.
\ker\gcd\deg\arg\hom\operatorname{sgn}\operatorname{tr}\operatorname{diag}\operatorname{span}\operatorname*{argmax}\operatorname*{argmin}\operatorname{lcm}\sin\cosMath operators in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \operatorname{rank} in math mode after adding \usepackage{amsmath} to your preamble. For example, $\operatorname{rank}(A) = n$.
It comes from the amsmath package: add \usepackage{amsmath} to your preamble.
Plain rank(A) is set in italics as if it were r times a times n times k; \text{rank} loses the operator spacing.