Linear Algebra
Vectors, matrices, eigenstuff — the language of robotics.
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
Solvability of
A solution exists iff is in the column space of .
If it exists, it's unique iff (columns independent). Otherwise solutions form a family: one particular solution plus anything in .
Rank-nullity
(number of columns).
More independent columns leaves less room for a null space — full column rank forces .
Eigenvalues & eigenvectors
— the transform only scales , it doesn't rotate it off its own line.
If has independent eigenvectors, with diagonal — repeated matrix powers and stability both reduce to looking at the .
SVD
for any matrix (square, rectangular, singular — always exists).
rotates, stretches along orthogonal axes by , rotates again. Keeping only the largest gives the best low-rank approximation of .
Least squares
When is overdetermined (more rows than columns, no exact solution), the best-fit minimizes .
It solves the normal equations: .
| Eigendecomposition | SVD | |
|---|---|---|
| Applies to | Square matrices only | Any matrix |
| Requires | independent eigenvectors to exist | Always exists |
| Axes used | Eigenvectors (not generally orthogonal) | Orthonormal input/output bases , |
| Typical use | Stability, repeated dynamics () | Rank, pseudo-inverse, low-rank approximation |
Application focus
Practice questions (25)
- Eigenvalues and Eigenvectors of a Rotation Matrixeasy
- Determinant of a Valid Rotation Matrixeasy
- 3×3 matrix with two linearly dependent columns — invertible?easy
- When can a matrix not be inverted?easy
- Singular values vs eigenvaluesmedium
- Null space of an invertible matrixeasy
- Column space of an invertible matrixeasy
- Solve XA = BX for the matrix Xhard
- If Ax = Ay with x ≠ y, is A singular?easy
- If AB is invertible and A is invertible, is B invertible?easy
- Determinant of a rank-deficient n×n matrixeasy
- Determinant of the identity matrixeasy
- Rank of AᵀAmedium
- Product of all eigenvalues of a square matrixeasy
- Maximum dimension of a subspace of singular matriceshard
- Rank of Aᵀeasy
- Conjugate transpose of a real matrixeasy
- Rank of a matrix vs rank of a tensorhard
- Explain eigenvectorsIntervieweasy
- How the determinant changes when a matrix is scaledIntervieweasy
- What is the SVD?Interviewmedium
- Solving Ax = 0Interviewmedium
- Intersection of two lines in 3D spaceInterviewmedium
- Point closest to multiple lines in spaceInterviewhard
- Valid rotation matrix and valid quaternionInterviewmedium