Determinant in LaTeX (\det(A))
- LaTeX command
\det(A)- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Determinant of a square matrix A, the scalar giving its signed volume scaling factor.
\det is a predefined operator, so it prints upright with correct spacing; typing det(A) would italicize three separate variables. Key identities include \det(AB) = \det(A)\det(B) and \det(A^{-1}) = 1/\det(A). Unlike \sin, \det can take limits placed under it in display style, like \lim. For an explicit matrix, the vmatrix environment draws vertical bars directly, so \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc reads naturally. Parentheses are optional when the argument is a single letter, \det A, as with other operators.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Determinant: $\det(A)$
\[ \det\begin{pmatrix} a & b \\ c & d \end{pmatrix} = ad - bc \]
\end{document}Related symbols
All Algebra Linear →Frequently asked questions
- How do I write Determinant in LaTeX?
- Type \det(A) in math mode, for example $\det\begin{pmatrix} a & b \\ c & d \end{pmatrix} = ad - bc$. It works in plain LaTeX without loading any package.
- Which package do I need for \det(A)?
- None. \det(A) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \det(A) in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\det(A)$ in running text.
Editor LaTeX AI Terbaik, Alternatif Overleaf
Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI
- Jana diagram TikZ yang cantik menggunakan AI
- Muat naik imej dan tukar ke LaTeX dengan lancar
- Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan