Determinant symbols in LaTeX

Symbol Command
$\det$ \det
$\det A$ \det A
\det A = \begin{vmatrix}
a & b \\
c & d
\end{vmatrix}

\[ \det A = \begin{vmatrix} a & b \\ c & d \end{vmatrix} \]

LaTeX function

LaTeX