brand banner

Linear Algebra LaTeX

Some basic LaTeX snippets common used in Linear Algebra.

Updated ยท 2 min read ยท #mathematics ยท #linear-algebra ยท #latex

Linear Algebra LaTeX

Some basic LaTeX snippets common used in Linear Algebra.


1. Vector Notation

๐‘ฃโƒ—=[๐‘ฃ1๐‘ฃ2โ‹ฎ๐‘ฃ๐‘›]
\vec{v} = \begin{bmatrix} v_1 \\ v_2 \\ \vdots \\ v_n \end{bmatrix}

2. Matrix Notation

๐ด=[๐‘Ž11๐‘Ž12โ€ฆ๐‘Ž1๐‘›๐‘Ž21๐‘Ž22โ€ฆ๐‘Ž2๐‘›โ‹ฎโ‹ฎโ‹ฑโ‹ฎ๐‘Ž๐‘š1๐‘Ž๐‘š2โ€ฆ๐‘Ž๐‘š๐‘›]
A = \begin{bmatrix}
a_{11} & a_{12} & \cdots & a_{1n} \\
a_{21} & a_{22} & \cdots & a_{2n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{m1} & a_{m2} & \cdots & a_{mn}
\end{bmatrix}

3. Dot Product

๐‘ขโƒ—โ‹…๐‘ฃโƒ—=โˆ‘๐‘–=1๐‘›๐‘ข๐‘–๐‘ฃ๐‘–
\vec{u} \cdot \vec{v} = \sum_{i=1}^{n} u_i v_i

4. Cross Product (3D vectors)

๐‘ขโƒ—ร—๐‘ฃโƒ—=|๐‘–ฬ‚๐‘—ฬ‚๐‘˜ฬ‚๐‘ข1๐‘ข2๐‘ข3๐‘ฃ1๐‘ฃ2๐‘ฃ3|
\vec{u} \times \vec{v} = \begin{vmatrix}
\hat{i} & \hat{j} & \hat{k} \\
u_1 & u_2 & u_3 \\
v_1 & v_2 & v_3
\end{vmatrix}

5. Determinant of a 2x2 Matrix

det([๐‘Ž๐‘๐‘๐‘‘])=๐‘Ž๐‘‘โˆ’๐‘๐‘
\det\left(\begin{bmatrix} a & b \\ c & d \end{bmatrix}\right) = ad - bc

6. Identity Matrix

๐ผ=[10โ€ฆ001โ€ฆ0โ‹ฎโ‹ฎโ‹ฑโ‹ฎ00โ€ฆ1]
I = \begin{bmatrix}
1 & 0 & \cdots & 0 \\
0 & 1 & \cdots & 0 \\
\vdots & \vdots & \ddots & \vdots \\
0 & 0 & \cdots & 1
\end{bmatrix}

7. Inverse of a Matrix (if it exists)

๐ดโˆ’1such that๐ด๐ดโˆ’1=๐ผ
A^{-1} \quad \text{such that} \quad AA^{-1} = I

8. Eigenvalue Equation

๐ด๐‘ฃโƒ—=๐œ†๐‘ฃโƒ—
A\vec{v} = \lambda \vec{v}

9. Rank of a Matrix

rank(๐ด)
\text{rank}(A)


ยฉ 2026 James Yap

Personal Website and Knowledge Base