Determinant Notation in LaTeX: \det and Vertical Bars

Two legitimate ways to write det — as an operator or as bars around an array — plus the brace group that keeps multi-character labels from falling apart.

A determinant has two legitimate spellings: an operator applied to a name, or bars drawn around the entries. The choice is about what the reader must see, but the bars carry a technical requirement — they have to come from the environment so they grow with the rows. The enclosed grid is a matrix (Systems of Equations shows the augmented variant), and the expansion underneath is a sum (Summation).

Which one to use

Situation Write this Because
A named matrix
\det A
Operator form; brackets optional.
Explicit entries
vmatrix
Bars grow with the rows.
Determinant of a product
\det(AB)
Parentheses around the product, not bars.
A subscripted name
\det A_{n}
Brace multi-character labels.
Cofactor expansion
\sum_j a_{ij} C_{ij}
Reuses summation notation.
Double bars
Vmatrix
That is a Gram determinant or a norm.

The commands

What Type this Renders as
Operator form Upright function name. Plain det prints as d·e·t in italics.
\det(A)
\det(A)
Bare operator on a grid The operator takes the matrix environment directly as its argument.
\det \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}
\det \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}
Bar form Vertical-bar delimiters, and the value of the determinant itself rather than a function call.
\begin{vmatrix} a & b \\ c & d \end{vmatrix}
\begin{vmatrix} a & b \\ c & d \end{vmatrix}
Double-bar variant Capital V prints ‖ ‖, which most books reserve for norms rather than determinants.
\begin{Vmatrix} a & b \\ c & d \end{Vmatrix}
\begin{Vmatrix} a & b \\ c & d \end{Vmatrix}
Value computed The 2×2 result everyone looks up; note the row separator sits between the two rows.
\begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc
\begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc
Named with a subscript Multi-token subscripts need braces, or the index escapes the label.
\det(A_{3}) \quad \det(\lambda I - A)
\det(A_{3}) \quad \det(\lambda I - A)
Cofactor expansion Sign alternation written as a power, minor as capital M.
\det(A) = \sum_{j=1}^{n} (-1)^{i+j} a_{ij} M_{ij}
\det(A) = \sum_{j=1}^{n} (-1)^{i+j} a_{ij} M_{ij}
Product property Explicit parentheses stop the operator from appearing to apply to the whole product.
\det(AB) = \det(A)\det(B)
\det(AB) = \det(A)\det(B)
Singularity test The usual reason a determinant appears in a worked solution at all.
\det(A) = 0 \iff A^{-1} \text{ does not exist}
\det(A) = 0 \iff A^{-1} \text{ does not exist}
Transpose invariance Superscript T upright via mathsf, since italic T reads as a variable named T.
\det(A^{\mathsf{T}}) = \det(A)
\det(A^{\mathsf{T}}) = \det(A)

Worked examples

Two spellings, one quantity

\det(A) = \begin{vmatrix} 2 & 1 \\ 5 & 3 \end{vmatrix} = 1
\det(A) = \begin{vmatrix} 2 & 1 \\ 5 & 3 \end{vmatrix} = 1

Operator form names it, bar form shows the arrangement, and the arithmetic closes the line.

Expansion along a row

\begin{vmatrix} a & b & c \\ d & e & f \\ g & h & i \end{vmatrix} = aei + bfg + cdh - ceg - bdi - afh
\begin{vmatrix} a & b & c \\ d & e & f \\ g & h & i \end{vmatrix} = aei + bfg + cdh - ceg - bdi - afh

The Rule of Sarrus stated as a single identity; the 3×3 grid above it justifies the sign pattern.

Solving for an unknown

\begin{vmatrix} x & 2 \\ 3 & 5 \end{vmatrix} = 0 \iff 5x - 6 = 0
\begin{vmatrix} x & 2 \\ 3 & 5 \end{vmatrix} = 0 \iff 5x - 6 = 0

Common exam shape: the determinant is given as zero and something must be recovered from it.

Eigenvalue equation

\det(\lambda I - A) = 0
\det(\lambda I - A) = 0

Characteristic polynomial in one line, which is why \lambda needs no special handling beyond being a Greek command.

Common mistakes

  • Writing det(A) unescaped inside maths mode. It prints as the italic product of d, e and t and reads as three variables.
  • Confusing vmatrix with Vmatrix. One pair of bars, one pair each — the capital form is normally reserved for matrix norms.
  • Forgetting that & separates cells and \\ separates rows. Swapping them produces a grid with the wrong shape rather than an error message.
  • Writing A^{-1} and \det(A)^{-1} close together without distinguishing them: the first is the inverse matrix, the second is the reciprocal of a number.

Questions about this notation

Do I need brackets after \det?
Not always. \det A is valid and common when A is a single symbol; parentheses help when the argument is a sum, a product or a matrix environment, because the operator otherwise looks like it applies only to the first token.
Which environment gives vertical bars?
vmatrix. The family is pmatrix for round brackets, bmatrix for square, Bmatrix for braces, vmatrix for single bars, Vmatrix for double, and matrix for none at all.
How do I write a determinant that is not square?
You cannot, and LaTeX will not stop you trying. Only square arrangements have a determinant, so a non-square grid should be written as a plain matrix with a note about rank instead.
How do I write dots or a block matrix inside a determinant?
Inside vmatrix use \vdots for a vertical run, \ddots for the diagonal and \cdots across a row; blocks are separated with the usual & and \\. If the bars are only decoration and you are applying an operator to a matrix, write \det A instead: \det takes no delimiters and prints upright, so it cannot be mistaken for a product of three letters.

Keep reading

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