Linear algebra is the study of vectors, matrices, and linear transformations. It is the language of machine learning, computer graphics, physics, and data science — arguably the most practically important branch of mathematics.
Vectors
A vector in Rn is an ordered list of n real numbers, written as a column:
v=v1v2⋮vn
Operations
Addition
u+v=(u1+v1,u2+v2,…)
Scalar multiplication
cv=(cv1,cv2,…)
Dot product
u⋅v=∑i=1nuivi=∣u∣∣v∣cosθ
Magnitude
∣v∣=v12+v22+⋯+vn2
Two vectors are orthogonal (perpendicular) if and only if their dot product is zero: u⋅v=0.
Matrices
Definition — Matrix
An m×nmatrix is a rectangular array of numbers with m rows and n columns. The entry in row i, column j is denoted Aij.
A=(142536)(2\times3 matrix)
A matrix represents a linear transformation: multiplying by A maps vectors from Rn to Rm. Every linear transformation between finite-dimensional spaces can be represented as a matrix.
Matrix Operations
Multiplication
The product AB of an m×n matrix A and an n×p matrix B is the m×p matrix with entries:
(AB)ij=k=1∑nAikBkj
Matrix multiplication is not commutative: AB=BA in general. It is associative: (AB)C=A(BC).
Transpose
The transposeAT is obtained by reflecting over the diagonal — rows become columns:
(AT)ij=Aji
Inverse
A square matrix A is invertible if there exists A−1 such that AA−1=A−1A=I, where I is the identity matrix. A is invertible if and only if det(A)=0.
Determinants
The determinant is a scalar associated with every square matrix, measuring how much the matrix scales area (or volume in higher dimensions).
det(acbd)=ad−bc
detadgbehcfi=a(ei−fh)−b(di−fg)+c(dh−eg)
det(AB) = det(A)·det(B)
det(Aᵀ) = det(A)
det(A⁻¹) = 1/det(A)
A is invertible ⟺ det(A) ≠ 0
Linear Systems
A system of linear equations can be written compactly as Ax=b:
(2513)(xy)=(47)
If A is invertible, the unique solution is x=A−1b. In practice, Gaussian elimination — row-reducing the augmented matrix [A∣b] — is more efficient. A system has either zero, one, or infinitely many solutions.
Eigenvalues and Eigenvectors
Definition — Eigenvalue / Eigenvector
A nonzero vector v is an eigenvector of matrix A with eigenvalueλ if:
Av=λv
Geometrically: A stretches (or reflects) v by the scalar factor λ, leaving its direction unchanged.
Eigenvalues are found by solving the characteristic equation:
det(A−λI)=0
For each eigenvalue λ, the corresponding eigenvectors are the nonzero solutions to (A−λI)v=0.
Example: For A=(3012), the characteristic equation is (3−λ)(2−λ)=0, giving eigenvalues λ1=3, λ2=2.
Eigenvalues and eigenvectors are fundamental to principal component analysis (PCA), Google's PageRank algorithm, quantum mechanics, and the analysis of differential equations.