unfried.
Streak:0 days XP:0

Formula sheet

Linear algebra

Definitions, matrix rules, determinants, eigenvalues and projections.

49 entries in 11 units. Free to use and share.

Jump to a unit (11 units)

Unit 1 Linear systems and row reduction

Row operations

Each keeps the solution set because each can be undone.

OperationExampleUndone by
swap two rowsR1↔R2the same swap
scale a row by k≠0R2→5R2R2→15R2
add a multiple of another rowR3→R3−2R1R3→R3+2R1

Careful: Scaling by 0, multiplying rows together or adding a constant to every entry isn't allowed. An operation acts on the whole row, right side included.

Taught in Row operations

Reading echelon form

A row [ 0⋯0∣b ] with b≠0 means no solution. A row of all zeros gives no information. Otherwise back-substitute, last row first. RREF has every pivot 1 with zeros above and below, and each matrix has exactly one.

Taught in Echelon form and back substitution

Free variables

In a consistent system, a variable whose column has no pivot is free. m equations give at most m pivots, so n unknowns leave at least n−m free.

Careful: Count columns without a pivot, not zero rows.

Taught in RREF, pivots and free variables

Unit 2 Vectors, span and Ax = b

Matrix times vector

Definition.

A
m×n matrix with columns aj
x
vector with entries xj
x1,x2,xn
entries of x
a1,a2,an
columns of A

Careful: x needs one entry per column of A⁠.

Taught in Ax as a combination of columns

Span

The span is the set of all linear combinations. Count directions, not vectors.

VectorsSpan
0 onlythe origin
one nonzero vectora line through 0
two, neither a multiple of the othera plane through 0
two, one a multiple of the othera line through 0

Taught in Span

When Ax = b is solvable

Ax=b has a solution exactly when b is in the span of the columns. It is solvable for every b in Rm exactly when A has a pivot in every row.

Careful: Count pivots in A⁠, not in [ A∣b ]⁠.

Taught in When Ax = b has a solution

Solution sets

x
any solution of Ax=b
p
one particular solution
vh
any solution of Ax=0

Applies: Ax=b is consistent. If Ax=0 has only 0⁠, the solution is unique.

Taught in Solution sets: p + homogeneous

Unit 3 Linear independence and linear transformations

Linear independence

Definition.

c1,cp
weights
v1,vp
the vectors

Careful: No two parallel isn't enough. Test with a pivot in every column of the matrix of the vectors.

Taught in Linear independence

Linear transformation

Definition.

T
map from Rn to Rm
u,v
any vectors
c
any scalar

Careful: A map that moves 0 isn't linear, but T(0)=0 alone proves nothing.

Taught in Linear transformations

One-to-one and onto

x↦Ax is one-to-one exactly when the columns are independent (a pivot in every column), and onto Rm exactly when they span (a pivot in every row).

Taught in One-to-one and onto maps

Unit 4 Matrix algebra

Matrix product

"Do A⁠, then B" is the matrix BA⁠; the factor next to x acts first. Sizes multiply as (m×n)(n×p)=m×p⁠.

Careful: AB usually differs from BA⁠; (A+B)2=A2+AB+BA+B2⁠.

Taught in Multiplication is composition

Inverse of a 2 × 2 matrix

a,b,c,d
entries

Applies: ad−bc≠0⁠. For larger matrices, row-reduce [ A∣I ]⁠.

Careful: If ad−bc=0⁠, there is no inverse.

Taught in Inverses

Inverse of a product

A,B
invertible matrices of the same size

Applies: Both factors are invertible and square.

Careful: A−1B−1 is usually a different matrix.

Taught in The inverse of a product

Invertible matrix theorem

For an n×n matrix, these are equivalent; A is invertible; it has n pivots; Ax=0 has only 0⁠; the columns are independent; Ax=b is solvable for every b⁠; the columns span Rn⁠.

Careful: It needs a square matrix.

Taught in The invertible matrix theorem

LU factorization

Eliminate using only "add a multiple of a higher row". U is the echelon form and L has 1s on the diagonal with each multiplier below. Solve Ly=b forward, then Ux=y back.

Taught in LU factorization

Unit 5 Determinants

Cofactor expansion

A
square matrix
aij
entries
Cij
cofactors
Aij
A without row i and column j
i,j
row and column

Applies: Any row or column; pick the one with the most zeros. A triangular matrix's determinant is the product of its diagonal.

Taught in Cofactor expansion and triangular matrices

Determinant rules

A,B
n×n matrices
c
scalar
n
size

Applies: Square matrices. Also det⁡(A−1)=1/det⁡A⁠. A is invertible exactly when det⁡A≠0⁠.

Careful: There is no rule for sums.

Taught in det(AB) and singular matrices

Cramer's rule

xi
unknown i of Ax=b
Ai(b)
A with column i replaced by b
A
square matrix

Applies: det⁡A≠0⁠; good for one unknown of a small system.

Taught in Cramer's rule and its cost

Unit 6 Subspaces and vector spaces

Subspace test

A set H is a subspace when 0∈H⁠, it is closed under addition, and it is closed under scaling by every real c⁠. One failing example says no; yes needs all three with arbitrary vectors.

Taught in Subspaces of ℝⁿ

Column space and null space

SpaceIsBasis
Col⁡Aspan of the columns, in Rmpivot columns of A itself
Nul⁡Asolutions of Ax=0⁠, in Rnone vector per free variable

Careful: Row operations change Col⁡A⁠; use A's columns, not the RREF's.

Taught in Null space and column space

Vector spaces beyond ℝⁿ

Pn (polynomials of degree at most n⁠), 2×2 matrices and functions are vector spaces. Polynomials of degree exactly n are not.

Taught in Vector spaces beyond ℝⁿ

Unit 7 Basis, dimension and rank

Coordinates in a basis

x
vector
PB
matrix with the basis vectors as columns
[x]B
coordinates in basis B

Applies: B is a basis of Rn⁠.

Taught in Coordinates

Dimensions

SpaceDimension
Rnn
Pnn+1
Mm×nmn
Col⁡Anumber of pivot columns
Nul⁡Anumber of free variables

Taught in Dimension

Rank–nullity theorem

A
m×n matrix
n
number of columns

Applies: Any matrix.

Careful: Count free variables by columns, never by zero rows.

Taught in Rank–nullity

Change of basis

[T]B
matrix of the map in basis B
P
basis vectors as columns
A
standard matrix

Applies: Read right to left; column j is [Abj]B⁠.

Careful: P−1 and P don't cancel, because A sits between them.

Taught in Change of basis

Unit 8 Eigenvalues and eigenvectors

Characteristic equation

A
square matrix
λ
eigenvalue
I
identity

Applies: Always. For 2×2⁠, λ2−(tr⁡A)λ+det⁡A=0⁠.

Careful: Row operations change eigenvalues; read them off the diagonal only for triangular matrices.

Taught in The characteristic equation

Eigenspace

Definition.

Eλ
eigenspace of λ
A
square matrix
λ
eigenvalue
I
identity

Careful: Its dimension is n−rank⁡(A−λI)⁠, at least 1.

Taught in Eigenspaces

Complex eigenvalues

a,b
real and imaginary parts of λ=a±bi
r
stretch, ∣λ∣
θ
angle of (a,b)

Applies: A real 2×2 matrix with negative discriminant: it rotates and scales.

Taught in Complex eigenvalues

Unit 9 Diagonalization and dynamics

Diagonalization

A
n×n matrix
P
eigenvectors as columns
D
eigenvalues on the diagonal, same order

Applies: A has n independent eigenvectors (n distinct eigenvalues is enough). Check with AP=PD⁠.

Careful: A repeated eigenvalue is a reason to count eigenvectors, not a verdict.

Taught in Diagonalization

Matrix powers

A
diagonalizable matrix
k
power
P,D
from A=PDP−1
x
starting vector
c1,c2
weights of x in eigenvectors
λ1,λ2
eigenvalues
v1,v2
eigenvectors

Applies: Parts with ∣λ∣<1 die out; the largest ∣λ∣ wins.

Taught in Matrix powers

Markov steady state

P
Markov matrix, columns adding to 1
q
steady state, entries adding to 1

Applies: Every start converges when some power of P is all positive. The gap shrinks by λ2 each step.

Taught in Markov chains

Systems of linear ODEs

x
solution of x′=Ax
t
time
c1,c2
weights from x(0)
λ1,λ2
eigenvalues of A
v1,v2
eigenvectors

Applies: A diagonalizable. Everything decays exactly when every eigenvalue (real part) is negative.

Taught in Systems of linear ODEs

Fibonacci from eigenvalues

Fn
Fibonacci number
φ,ψ
eigenvalues of [1110]
n
index

Applies: Any n⁠; Fn+1/Fn→φ≈1.618⁠.

Taught in Fibonacci from eigenvalues

Unit 10 Orthogonality and least squares

Projection onto a line

p
projection
b
vector projected
u
nonzero vector along the line

Applies: The error b−p is orthogonal to u⁠.

Taught in Orthogonal projection

Projection onto a subspace

With an orthogonal basis u1,…,uk of W⁠, add the projections onto each ui⁠.

Careful: With a non-orthogonal basis the sum is wrong; orthogonalize first or use the normal equations.

Taught in Orthogonal projection

Orthogonal matrices

Q
matrix with orthonormal columns
I
identity

Applies: For square Q⁠, Q−1=QT⁠, lengths are kept and det⁡Q=±1⁠.

Careful: Orthogonal columns that aren't length 1 don't count.

Taught in Orthonormal bases and orthogonal matrices

Gram–Schmidt

Set u1=v1⁠, and make each uj by subtracting from vj its projections onto the new vectors u1,…,uj−1⁠. Normalize at the end. Then A=QR with R=QTA⁠.

Careful: Project onto the new vectors, not the old ones.

Taught in Gram–Schmidt

Least squares (normal equations)

A
matrix of the system
x^
least-squares solution
b
right side

Applies: Ax=b has no solution; unique when the columns of A are independent.

Taught in Least squares

Fourier coefficients

bn
sine coefficient
f
function on [−π,π]
x
variable
n
frequency index

Applies: Each coefficient is a projection, computed on its own. A ±1 square wave has bn=4/(nπ) for odd n⁠.

Taught in Fourier coefficients as projections

Unit 11 Symmetric matrices and the SVD

Spectral theorem

A
real symmetric matrix
Q
orthonormal eigenvectors
D
eigenvalues, all real

Applies: AT=A⁠. Eigenvectors for different eigenvalues are perpendicular.

Careful: Without symmetry the eigenvectors needn't be perpendicular.

Taught in Symmetric matrices

Quadratic forms

For symmetric A⁠, xTAx is λ1y12+λ2y22 in eigenvector coordinates. All λ > 0 is positive definite, all < 0 negative definite, mixed signs indefinite.

Careful: A positive diagonal isn't enough.

Taught in Quadratic forms

Singular value decomposition

A
any real matrix
U,V
orthogonal matrices
Σ
singular values σ1≥σ2≥⋯≥0
σi
singular values
λi
eigenvalues of ATA

Applies: Every real matrix. Avi=σiui⁠.

Careful: Singular values aren't eigenvalues (the shear has λ = 1, 1 but σ ≈ 1.618, 0.618).

Taught in The SVD picture

Low-rank approximation

Keeping k terms of A=∑σiuiviT gives the closest rank-k matrix (Eckart–Young). PCA's first direction is v1 of the centered data.

Taught in Low-rank compression and PCA