Linear Algebra Guide

Matrix

A rectangular array of numbers. An mร—n matrix has m rows and n columns. Operations: addition, scalar multiplication, matrix multiplication (requires inner dimensions to match).

Determinant

For 2ร—2: det([[a,b],[c,d]]) = ad โˆ’ bc. Non-zero determinant means the matrix is invertible. det = 0 means singular (no unique solution).

Inverse Matrix

Aโปยน exists only if det(A) โ‰  0. AยทAโปยน = I (identity matrix). For 2ร—2: Aโปยน = (1/det)ยท[[d,-b],[-c,a]]

Eigenvalues & Eigenvectors

Av = ฮปv, where ฮป is an eigenvalue and v is the eigenvector. Found by solving det(A โˆ’ ฮปI) = 0. Used in PCA, stability analysis, quantum mechanics.

Rank

Number of linearly independent rows (or columns). rank(A) = n means full rank (invertible for square). rank < n means dependent rows/columns exist.

Dot Product vs Matrix Multiply

Dot product: aยทb = ฮฃaแตขbแตข (scalar result). Matrix multiply: C = AB where Cแตขโฑผ = ฮฃ Aแตขโ‚– Bโ‚–โฑผ (matrix result, requires A cols = B rows).