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).