Formula sheet
Vectors and matrices — Formula Sheet
7 formulas from Linear Algebra, each with what it means, when to use it and the trap it sets.
Dot product
- What it says
- How much one vector points along another, as a single number.
- When to reach for it
- Angles between vectors, testing perpendicularity, and projections.
- Watch out
- The result is a scalar, not a vector. Zero means perpendicular, not "no answer".
Positive, so the two vectors point broadly the same way.
Vector length
- What it says
- Pythagoras, in as many dimensions as you like.
- When to reach for it
- Normalising a vector, or any distance in space.
- Watch out
- A unit vector is v divided by its length — dividing by the length squared is the standard slip.
So the unit vector in that direction is (3/5, 4/5).
Matrix product
- What it says
- Entry i,j is row i of A dotted with column j of B.
- When to reach for it
- Composing two transformations, or applying a matrix to a vector.
- Watch out
- Inner dimensions must match: (m×n)(n×p) gives m×p. And AB is generally not BA — matrix multiplication does not commute.
Check the shapes before computing anything.
Determinant of a 2×2
- What it says
- The signed factor by which the matrix scales area.
- When to reach for it
- Testing invertibility, and as the denominator of the 2×2 inverse.
- Watch out
- Determinant zero means singular — no inverse, and the transformation flattens space.
The rows are proportional, so the matrix is not invertible.
Inverse of a 2×2
- What it says
- Swap the diagonal, negate the off-diagonal, divide by the determinant.
- When to reach for it
- Solving Ax = b for a small system, or undoing a transformation.
- Watch out
- Inverting a matrix is nothing like inverting its entries. And it fails outright when det A = 0.
Always verify by checking that A⁻¹A gives the identity.
Orthogonal projection
- What it says
- The shadow of v cast onto the line through u.
- When to reach for it
- Least squares, Gram–Schmidt, and splitting a vector into components.
- Watch out
- The denominator u·u disappears only when u is already a unit vector. Dropping it otherwise scales the answer wrongly.
What is left, (0,4), is perpendicular to u — always check that.
Eigenvalues
- What it says
- Directions the matrix only stretches, and the factor by which it stretches them.
- When to reach for it
- Stability, principal axes, diagonalisation, and systems of differential equations.
- Watch out
- Subtract λ from the diagonal only. Then solve (A−λI)v = 0 for each λ to get its eigenvectors.
A diagonal matrix wears its eigenvalues on its diagonal.
Other formula sheets
- Numbers and operations
- Algebra building blocks
- Lines and graphs
- Limits and continuity
- What a derivative is
- Differentiation techniques
- Applications of derivatives
- Integration
- Applications of integrals
- Techniques of integration
- Sequences and series
- Parametric and polar
- Multivariable calculus
- Differential equations
- Probability and statistics