Linear algebra in LaTeX starts with the matrix environments from amsmath: pmatrix for round brackets, bmatrix for square ones and vmatrix for a determinant. A vector is \mathbf{v} or \vec{v}, the transpose is A^\top (or A^T), the inverse A^{-1}, the conjugate transpose A^\dagger, and the norm \|x\|. The determinant \det is built in, while trace and rank are best written with \operatorname{tr} and \operatorname{rank}. The table lists the linear algebra symbols people use most, with the package each one needs; the full list follows below.
| Symbol | Command | Use | Package | Copy |
|---|---|---|---|---|
\begin{pmatrix} a & b \\ c & d \end{pmatrix} | Matrix in parentheses | amsmath | ||
\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} | Matrix in square brackets | amsmath | ||
\begin{vmatrix} a & b \\ c & d \end{vmatrix} | Determinant bars | amsmath | ||
\mathbf{v} | Bold vector | built in | ||
\vec{v} | Vector with an arrow | built in | ||
A^\top | Transpose | built in | ||
A^{-1} | Inverse | built in | ||
A^\dagger | Conjugate transpose | built in | ||
\det(A) | Determinant | built in | ||
\operatorname{tr}(A) | Trace | amsmath | ||
\|x\|_2 | Euclidean norm | built in | ||
\langle u, v \rangle | Inner product | built in |
Separate columns with & and rows with \\. For large matrices with dots use \cdots, \vdots and \ddots; Kronecker and tensor products are on the operators page and index notation on the tensor notation page.
Gunakan simbol ini di dokumen sungguhan
Buka dokumen awal yang sudah memuat beberapa simbol ini beserta paketnya. Edit di Octree dan lihat PDF-nya, tanpa instalasi.
\vec{x}\mathbf{x}\hat{x}A^{\top}A^{-1}\det(A)\text{tr}(A)\text{rank}(A)\lVert x \rVert\| x \|\langle x, y \rangle\otimes\oplus\cdot\times\delta_{ij}\mathbf{0}\lambda\begin{bmatrix} a & b \\ c & d \end{bmatrix}\begin{pmatrix} x \\ y \end{pmatrix}