Robotics
← Roadmap/Foundations

Linear Algebra

Vectors, matrices, eigenstuff — the language of robotics.

Progress0/25 questions

Why it matters in robotics

Linear algebra is the language of robotics: every rigid-body pose, rotation, camera projection, and state estimate is a vector or matrix operation. Rotation and transformation matrices are what place objects and sensors in space and describe how they move, and the same operations are what let a robot combine noisy measurements into a single reliable estimate, solve for the best-fitting answer when it has more data than unknowns, and know when a system of equations has no solution, one solution, or many. It is the foundation that kinematics, control, estimation, and SLAM are all built on.

What to study

  • Vectors, matrix multiplication, and linear transformations as geometric operations (rotation, scaling, projection)
  • The four fundamental subspaces: column space, null space, rank, and what they imply about Ax = b solvability
  • Eigenvalues, eigenvectors, and diagonalization — the basis of stability analysis and principal directions
  • Orthogonality, least-squares, and the SVD for solving overdetermined systems and low-rank approximation

Where to study

Cheatsheet

Symbols used below

AAm×nm \times n matrix (a linear map)
x,bx, bvectors in Ax=bA x = b
rank(A)\mathrm{rank}(A)dimension of the column space
N(A)N(A)null space: {x:Ax=0}\{x : Ax = 0\}
λ,v\lambda, veigenvalue, eigenvector
U,Σ,VU, \Sigma, VSVD factors: A=UΣVA = U \Sigma V^\top
σi\sigma_isingular value (diagonal entry of Σ\Sigma)

Solvability of Ax=bAx = b

A solution exists iff bb is in the column space of AA.

If it exists, it's unique iff N(A)={0}N(A) = \{0\} (columns independent). Otherwise solutions form a family: one particular solution plus anything in N(A)N(A).

Rank-nullity

rank(A)+dimN(A)=n\mathrm{rank}(A) + \dim N(A) = n (number of columns).

More independent columns leaves less room for a null space — full column rank forces N(A)={0}N(A) = \{0\}.

Eigenvalues & eigenvectors

Av=λvAv = \lambda v — the transform only scales vv, it doesn't rotate it off its own line.

If AA has nn independent eigenvectors, A=PΛP1A = P \Lambda P^{-1} with Λ\Lambda diagonal — repeated matrix powers and stability both reduce to looking at the λi\lambda_i.

SVD

A=UΣVA = U \Sigma V^\top for any matrix (square, rectangular, singular — always exists).

VV^\top rotates, Σ\Sigma stretches along orthogonal axes by σi0\sigma_i \ge 0, UU rotates again. Keeping only the largest σi\sigma_i gives the best low-rank approximation of AA.

Least squares

When Ax=bAx = b is overdetermined (more rows than columns, no exact solution), the best-fit x^\hat{x} minimizes Axb2\|Ax - b\|^2.

It solves the normal equations: AAx^=AbA^\top A \hat{x} = A^\top b.

vAv = λvuAueigenvector v keeps its direction (only scaled); u is rotated away
An eigenvector's direction is unchanged by the transform — it is only scaled by its eigenvalue λ. A general vector gets rotated off its original line.
 EigendecompositionSVD
Applies toSquare matrices onlyAny m×nm \times n matrix
Requiresnn independent eigenvectors to existAlways exists
Axes usedEigenvectors (not generally orthogonal)Orthonormal input/output bases UU, VV
Typical useStability, repeated dynamics (AkA^k)Rank, pseudo-inverse, low-rank approximation
unit circleA = UΣVᵀσ₁σ₂ellipse (axes = singular values)
The SVD A = UΣVᵀ maps the unit sphere to an ellipsoid: Vᵀ rotates, Σ scales each axis by a singular value σᵢ ≥ 0, and U rotates again. The singular values are those axis lengths.

Application focus

Select an application above.

Practice questions (25)