Linear Algebra

Search & glossary

Every rule and concept in Linear Algebra, with its definition and a link to the lesson that teaches it. Search by term, by idea, or by lesson title.

Glossary (71)

A = UΣVᵀ, column by column
Every m×nm\times n matrix factors as A=UΣVTA = U\Sigma V^{\mathsf T}:
Singular Values & the SVD › Computing the SVD
A gallery of maps, with their matrices derived
Derive, never memorize: a map's matrix has columns T(e1),T(e2)T(\mathbf e_1), T(\mathbf e_2).
Linear Transformations › Going Deeper: Explanations & Worked Problems
A matrix is a machine for systems
The system 2x+y=72x + y = 7, x−y=2x - y = 2 is the single equation Ax=bA\mathbf x = \mathbf b with $A =
Matrices & Systems › Matrix Multiplication
Absorbing chains and expected times
Some states trap you (absorbing); the natural question becomes "how long until absorption?" First-step analysis: from state ii, one step happens, then you are somewhere new — so Ei=1+∑jpijEjE_i = 1 + \sum_j p_{ij}E_j, a small linear system in the expected times.
Markov Chains & Long-Run Behavior › Probability Meets Eigenvectors
Coordinates without solving
If u1,…,uk\mathbf u_1, \ldots, \mathbf u_k are mutually orthogonal and nonzero, the projection of b\mathbf b onto their span is the sum of the one-dimensional projections: \[ p = b⋅u1u1⋅u1\frac{\mathbf b\cdot\mathbf u_1}{\mathbf u_1\cdot\mathbf u_1} u_1 + …
Orthogonality & Least Squares › Orthogonal Bases and Gram–Schmidt
Decomposing a vector: the along-and-across split
The projection formula does more than find shadows — it splits any u\mathbf u into two orthogonal pieces relative to a direction v\mathbf v: the part along, $proj_ v u = u⋅vv⋅v\tfrac{\mathbf u\cdot\mathbf v}{\mathbf v\cdot\mathbf v}…
Orthogonality & Least Squares › Going Deeper: Explanations & Worked Problems
Diagonalization is a change of glasses
If a matrix AA has nn independent eigenvectors, pack them as the columns of PP and their eigenvalues into the diagonal of DD: then A=PDP−1A = PDP^{-1}.
Diagonalization & Matrix Powers › Changing to the Eigenbasis
Elimination as an algorithm, not an art
The method is fully mechanical.
Row Reduction & Rank › Going Deeper: Explanations & Worked Problems
Elimination records itself
When elimination needs no row swaps, it factors A=LUA = LU: UU is the echelon form (upper triangular) and LL is lower triangular with 11s on the diagonal and, below it, the multipliers used — the entry ℓij\ell_{ij} is the number mm in the step $R_i R…
Row Reduction & Rank › Elimination as a Factorization: A = LU
Finding eigenvalues and eigenvectors: the complete procedure
Step one: eigenvalues are the roots of det⁡(A−λI)=0\det(A - \lambda I) = 0 — the values of λ\lambda making A−λIA - \lambda I singular, because only a singular matrix can send a nonzero vector to zero.
Eigenvalues › Going Deeper: Explanations & Worked Problems
First-step equations for absorption probabilities
Let hih_i be the probability that the chain, started in state ii, is eventually absorbed in a target state TT.
Markov Chains & Long-Run Behavior › Absorbing Chains: Where You End Up
Independence testing is elimination in disguise
To decide whether vectors v1,…,vk\mathbf v_1, \ldots, \mathbf v_k are independent, ask whether c1v1+⋯+ckvk=0c_1\mathbf v_1 + \cdots + c_k\mathbf v_k = \mathbf 0 forces all ci=0c_i = 0 — but that is a homogeneous linear system in the cic_i, with the vectors as columns.
Vector Spaces & Bases › Going Deeper: Explanations & Worked Problems
Invertible ⇔ nonzero determinant
A−1A^{-1} exists exactly when det⁡A≠0\det A \ne 0, and for 2×22\times2: $A^-1 = 1det⁡A\tfrac{1}{\det A}
Determinants & Inverses › The Determinant
Keep the big layers, drop the small ones
Write A=σ1u1v1T+σ2u2v2T+⋯A = \sigma_1\mathbf u_1\mathbf v_1^{\mathsf T} + \sigma_2\mathbf u_2\mathbf v_2^{\mathsf T} + \cdots.
Singular Values & the SVD › Low-Rank Approximation in Practice
Kernel and image
The kernel is everything sent to zero (the solution space of Ax=0A\mathbf x = \mathbf 0); the image is everything hit (the span of the columns).
Linear Transformations › Maps That Respect Addition
Least squares: closest, not exact
When Ax=bA\mathbf x = \mathbf b has no solution, solve ATA x^=ATbA^{\mathsf T}A\,\hat{\mathbf x} = A^{\mathsf T}\mathbf b instead: Ax^A\hat{\mathbf x} is the projection of b\mathbf b onto the column space — the best possible fit.
Orthogonality & Least Squares › Projection and Best Approximation
Matrices from a direction vector
Let LL be the line through the origin along v\mathbf v.
Linear Transformations › Projections and Reflections Across a Line
n steps is the nth power
Starting from the distribution x0\mathbf x_0, after nn steps the distribution is xn=Mnx0\mathbf x_n = M^n\mathbf x_0, and the entry (Mn)ij(M^n)_{ij} is the probability of being in state ii after nn steps, having started in state jj.
Markov Chains & Long-Run Behavior › Distributions Step by Step
Pivot variables in terms of free ones
Keep going past echelon form: scale each pivot to 11 and clear the entries above it too.
Row Reduction & Rank › Reduced Echelon Form and Free Variables
Powers become easy
If Av=λvA\mathbf v = \lambda\mathbf v then Akv=λkvA^k\mathbf v = \lambda^k\mathbf v, and tr(Ak)=∑λik\mathrm{tr}(A^k) = \sum\lambda_i^k.
Eigenvalues › Eigenvalues & Eigenvectors
Proof sketch: every basis has the same size
The exchange argument: if {u1,…,um}\{\mathbf u_1, \ldots, \mathbf u_m\} is independent and {b1,…,bn}\{\mathbf b_1, \ldots, \mathbf b_n\} spans, insert the u\mathbf us one at a time into the spanning set, each time ejecting some b\mathbf b (writing the new u\mathbf u i…
Vector Spaces & Bases › Proofs & Why It Matters
Proof: ad − bc is the area factor
The matrix sends the unit square (spanned by e1,e2\mathbf e_1, \mathbf e_2) to the parallelogram spanned by the columns (a,c)(a, c) and (b,d)(b, d).
Determinants & Inverses › Proofs & Why It Matters
Proof: Aᵏ = PDᵏP⁻¹, and why traces are power sums
A2=(PDP−1)(PDP−1)=PD(P−1P)DP−1=PD2P−1A^2 = (PDP^{-1})(PDP^{-1}) = PD(P^{-1}P)DP^{-1} = PD^2P^{-1} — the inner pair cancels; induction extends to all kk.
Diagonalization & Matrix Powers › Proofs & Why It Matters
Proof: Aᵏv = λᵏv
Induction on kk.
Eigenvalues › Proofs & Why It Matters
Proof: coordinates in a basis are unique
Suppose v=∑aibi=∑cibi\mathbf v = \sum a_i\mathbf b_i = \sum c_i\mathbf b_i in a basis {bi}\{\mathbf b_i\}.
Vector Spaces & Bases › Proofs & Why It Matters
Proof: det(AB) = det A · det B (2×2, by areas)
The map x↦ABx\mathbf x \mapsto AB\mathbf x first scales areas by det⁡B\det B (applying BB), then by det⁡A\det A (applying AA) — so the composite scales areas by the product.
Determinants & Inverses › Proofs & Why It Matters
Proof: eigenvalues sum to the trace, multiply to the determinant (2×2)
Expand the characteristic polynomial: $
Eigenvalues › Proofs & Why It Matters
Proof: eigenvectors of a symmetric matrix are orthogonal
Let Au=λuA\mathbf u = \lambda\mathbf u and Av=μvA\mathbf v = \mu\mathbf v with λ≠μ\lambda \ne \mu.
Symmetric Matrices & Quadratic Forms › Proofs & Why It Matters
Proof: matrix multiplication is composition
Let TAT_A and TBT_B be the maps x↦Ax\mathbf x \mapsto A\mathbf x and x↦Bx\mathbf x \mapsto B\mathbf x.
Matrices & Systems › Proofs & Why It Matters
Proof: pivots decide the trichotomy
In echelon form, a row (0;⋯ ;0 ∣ b)(0;\cdots;0\,|\,b) with b≠0b \ne 0 reads 0=b0 = b: no solution.
Row Reduction & Rank › Proofs & Why It Matters
Proof: rank–nullity
Row reduce AA (m×nm \times n, rank rr): rr pivot columns and n−rn - r free columns.
Row Reduction & Rank › Proofs & Why It Matters
Proof: reflections have determinant −1
A reflection fixes a line and flips the perpendicular direction.
Linear Transformations › Proofs & Why It Matters
Proof: row operations preserve solutions
Each operation is reversible: swapping rows swaps back; scaling by c≠0c \ne 0 undoes by 1c\tfrac1c; adding cc(row ii) to row jj undoes by subtracting.
Matrices & Systems › Proofs & Why It Matters
Proof: the 2×2 inverse formula
Multiply directly: $
Determinants & Inverses › Proofs & Why It Matters
Proof: the columns determine the map
Any x=x1e1+⋯+xnen\mathbf x = x_1\mathbf e_1 + \cdots + x_n\mathbf e_n, so by linearity T(x)=x1T(e1)+⋯+xnT(en)T(\mathbf x) = x_1T(\mathbf e_1) + \cdots + x_nT(\mathbf e_n) — a combination of the images of the basis vectors with weights given by the coordinates.
Linear Transformations › Proofs & Why It Matters
Proof: the normal equations of least squares
The best x^\hat{\mathbf x} minimizes ∣Ax−b∣|A\mathbf x - \mathbf b|, i.e.
Orthogonality & Least Squares › Proofs & Why It Matters
Proof: the projection formula
Seek the multiple cvc\mathbf v of v\mathbf v making the remainder u−cv\mathbf u - c\mathbf v orthogonal to v\mathbf v: (u−cv)⋅v=0(\mathbf u - c\mathbf v)\cdot\mathbf v = 0 gives c=u⋅vv⋅vc = \dfrac{\mathbf u\cdot\mathbf v}{\mathbf v\cdot\mathbf v} in one step.
Orthogonality & Least Squares › Proofs & Why It Matters
Proof: the range of q on the unit circle
Expand x\mathbf x in the orthonormal eigenbasis: x=∑ciqi\mathbf x = \sum c_i\mathbf q_i with ∑ci2=1\sum c_i^2 = 1 on the unit circle.
Symmetric Matrices & Quadratic Forms › Proofs & Why It Matters
Proof: λ = 1 is always an eigenvalue
Let 1=(1,1,…,1)\mathbf 1 = (1, 1, \ldots, 1).
Markov Chains & Long-Run Behavior › Proofs & Why It Matters
Proof: σ₁ is the maximum stretch
Maximize ∣Ax∣2=xT(ATA)x|A\mathbf x|^2 = \mathbf x^{\mathsf T}(A^{\mathsf T}A)\mathbf x over unit vectors x\mathbf x.
Singular Values & the SVD › Proofs & Why It Matters
Quadratic forms and definiteness
A quadratic form q(x)=xTAxq(\mathbf x) = \mathbf x^{\mathsf T}A\mathbf x (write ax2+bxy+cy2ax^2 + bxy + cy^2 with the symmetric matrix $
Symmetric Matrices & Quadratic Forms › The Nicest Matrices in Mathematics
Rank and the rank–nullity theorem
The rank is the number of pivots — the true dimension of what the matrix can reach.
Row Reduction & Rank › Gaussian Elimination
Reading a matrix through its eigenvalues
Along an eigenvector, ∣λ∣>1|\lambda| > 1 stretches, ∣λ∣<1|\lambda| < 1 shrinks, a negative λ\lambda flips, and λ=0\lambda = 0 collapses the direction to 0\mathbf 0 (it lies in the kernel).
Eigenvalues › What the Eigenvalues Tell You
Reading an ellipse off its matrix
If SS is positive definite with eigenvalues λ1,λ2\lambda_1, \lambda_2 and unit eigenvectors q1,q2\mathbf q_1, \mathbf q_2, the level curve xTSx=c\mathbf x^{\mathsf T}S\mathbf x = c is an ellipse with half-axes \[c/λ1\sqrt{c/\lambda_1} along q_1,   …
Symmetric Matrices & Quadratic Forms › Principal Axes and Constrained Extremes
Recurrences are matrix powers
Fibonacci's Fn+1=Fn+Fn−1F_{n+1} = F_n + F_{n-1} is the matrix iteration $F_n+1F_n =
Diagonalization & Matrix Powers › Changing to the Eigenbasis
Row times column
The (i,j)(i, j) entry of ABAB is row ii of AA dotted with column jj of BB.
Matrices & Systems › Matrix Multiplication
Rows give lines, columns give combinations
For a 2×22\times2 system, the row picture draws each equation as a line, and the solution is the point where the lines cross.
Matrices & Systems › The Row Picture and the Column Picture
Singular values: stretch factors for ANY matrix
Eigenvalues need square matrices and can be complex.
Singular Values & the SVD › The Master Decomposition
Solving by ratios of determinants
If det⁡A≠0\det A \ne 0, the solution of Ax=bA\mathbf x = \mathbf b is \[x_i = det⁡Aidet⁡A\frac{\det A_i}{\det A},\] where AiA_i is AA with column ii replaced by b\mathbf b.
Determinants & Inverses › Cramer's Rule and Area Formulas
Span, independence, basis
The span of a set of vectors is everything reachable by linear combinations of them.
Vector Spaces & Bases › The Language of Vector Spaces
Stretch directions
A nonzero vector v\mathbf v is an eigenvector of AA when Av=λvA\mathbf v = \lambda\mathbf v: the matrix only stretches it, by the eigenvalue λ\lambda, and never turns it off its line.
Eigenvalues › Eigenvalues & Eigenvectors
Subspaces cut dimension by conditions
Each independent linear condition on Rn\mathbb R^n removes one dimension: the hyperplane x1+x2+x3+x4=0x_1 + x_2 + x_3 + x_4 = 0 in R4\mathbb R^4 has dimension 33.
Vector Spaces & Bases › The Language of Vector Spaces
The change-of-basis matrix
Put the basis vectors b1,…,bn\mathbf b_1, \ldots, \mathbf b_n as the columns of PP.
Vector Spaces & Bases › Change of Basis
The dominant eigenvalue wins
If x0=c1v1+⋯+cnvn\mathbf x_0 = c_1\mathbf v_1 + \cdots + c_n\mathbf v_n in an eigenbasis, then \[ x_k = A^k x_0 = c_1λ_1^k v_1 + … + c_nλ_n^k v_n,   u(t) = e^At u_0 = c_1e^λ_1t v_1 + …
Diagonalization & Matrix Powers › Long-Run Behavior: Powers and Differential Equations
The matrix IS the transformation
A linear map is determined by where it sends the basis vectors, and those images are the columns of its matrix.
Linear Transformations › Maps That Respect Addition
The projection formula
The projection of u\mathbf u onto v\mathbf v is \[proj_ v u = u⋅vv⋅v\frac{\mathbf u\cdot\mathbf v}{\mathbf v\cdot\mathbf v} v,\] the shadow u\mathbf u casts on the line through v\mathbf v.
Orthogonality & Least Squares › Projection and Best Approximation
The recipe for a best-fit line
To fit y=mx+cy = mx + c to points (xi,yi)(x_i, y_i), i=1,…,ni = 1, \ldots, n, the normal equations ATAx^=ATbA^{\mathsf T}A\hat{\mathbf x} = A^{\mathsf T}\mathbf b with $A =
Orthogonality & Least Squares › Least Squares in Practice
The spectral theorem
A symmetric matrix (A=ATA = A^{\mathsf T}) is as good as it gets: all eigenvalues real, eigenvectors of distinct eigenvalues automatically orthogonal, and a full orthonormal eigenbasis always exists — A=QΛQTA = Q\Lambda Q^{\mathsf T} with QQ a rotation.
Symmetric Matrices & Quadratic Forms › The Nicest Matrices in Mathematics
The subspace test
A subset WW of a vector space is a subspace when it contains 0\mathbf 0 and is closed under the two operations: u,w∈W\mathbf u, \mathbf w \in W implies u+w∈W\mathbf u + \mathbf w \in W, and cu∈Wc\mathbf u \in W for every scalar cc.
Vector Spaces & Bases › Subspaces: Testing and Building
The SVD and best low-rank approximation
The singular value decomposition writes A=∑iσi uiviTA = \sum_i \sigma_i\,\mathbf u_i\mathbf v_i^{\mathsf T}: a sum of rank-one layers, ordered by importance σ1≥σ2≥⋯\sigma_1 \ge \sigma_2 \ge \cdots.
Singular Values & the SVD › The Master Decomposition
Three faces of one number
The determinant answers three seemingly different questions with one number.
Determinants & Inverses › Going Deeper: Explanations & Worked Problems
Three moves solve every system
Swap two rows, scale a row by a nonzero number, add a multiple of one row to another — none of these changes the solution set.
Row Reduction & Rank › Gaussian Elimination
Three tests that agree
For a symmetric SS and q(x)=xTSxq(\mathbf x) = \mathbf x^{\mathsf T}S\mathbf x:
Symmetric Matrices & Quadratic Forms › Classifying Quadratic Forms
Transition matrices and the eigenvalue 1
A Markov chain hops among states with fixed probabilities.
Markov Chains & Long-Run Behavior › Probability Meets Eigenvectors
Two tests, and one quick disqualifier
TT is linear exactly when T(u+v)=Tu+TvT(\mathbf u + \mathbf v) = T\mathbf u + T\mathbf v and T(cu)=cTuT(c\mathbf u) = cT\mathbf u for all vectors and scalars.
Linear Transformations › Linear or Not?
Undo, and reverse the order
The inverse A−1A^{-1} undoes AA: A−1A=AA−1=IA^{-1}A = AA^{-1} = I, where II has ones on the diagonal and zeros elsewhere.
Matrices & Systems › Inverses and Transposes
What a matrix does: track the basis vectors
Everything about AxA\mathbf x is visible in two special inputs.
Matrices & Systems › Going Deeper: Explanations & Worked Problems
When and how
AA (n×nn\times n) is diagonalizable exactly when it has nn independent eigenvectors.
Diagonalization & Matrix Powers › Diagonalizing Step by Step