Linear Algebra: core formula cheat sheet
Matrices
- (AB)ᵢⱼ = row i of A · column j of B; AB is defined when A has as many columns as B has rows
- In general AB ≠ BA; (AB)ᵀ = BᵀAᵀ; (AB)⁻¹ = B⁻¹A⁻¹
- 2 × 2 inverse: [[a, b], [c, d]]⁻¹ = (1/(ad − bc))·[[d, −b], [−c, a]]
- A is invertible ⇔ det A ≠ 0 ⇔ rank A = n ⇔ Ax = 0 has only x = 0
Determinants
- det [[a, b], [c, d]] = ad − bc
- 3 × 3: cofactor expansion along any row or column
- Row swap flips the sign; scaling a row by k scales det by k; adding a multiple of a row changes nothing
- det(AB) = det A · det B; det(Aᵀ) = det A
Row reduction and rank
- RREF: leading 1s, zeros above and below each pivot
- rank = number of pivots; nullity = n − rank (rank–nullity theorem)
- Ax = b is consistent ⇔ rank A = rank [A | b]
- Free variables → infinitely many solutions
Eigenvalues and vectors
- Solve det(A − λI) = 0 for λ; then (A − λI)v = 0 for v
- For 2 × 2: λ² − (trace)λ + det = 0
- Sum of eigenvalues = trace; product = determinant
- Dot product u·v = Σuᵢvᵢ; u ⊥ v ⇔ u·v = 0
mathaigpt.com/exams/linear-algebra