Worked problems from Gaussian elimination to least squares
Mathematics | Undergraduate (Level 5) | December 2026
WHAT IS INSIDE
1. Core Concepts and Theoretical Frameworks
2. Systems of equations and Gaussian elimination
3. Determinants, inverses and Cramer's rule
4. Eigenvalues, eigenvectors and diagonalisation
5. Orthogonality, projections and least squares
6. Step-by-Step Worked Examples
7. Comparative Summary Table
8. Common Exam Pitfalls and Answer Technique
9. Practice Exam Questions with Model Answers
10. Glossary of Exam-Ready Definitions
1. Core Concepts and Theoretical Frameworks
Linear algebra is the study of systems that can be added and scaled. The eight concepts in the table
answer three questions that every exam repeats: does a solution exist, is it unique, and what is the
simplest coordinate system in which to describe it.
Concept Anchor Formula or test Used for
Linear independence Span and basis Only the trivial combination gives Dimension and solvability
zero
Rank Row echelon form Number of non-zero pivots Existence and uniqueness of
solutions
Determinant Volume and det(A) not zero means invertible Inverse and eigenvalues
invertibility
Inverse A A inverse = I 1/det x adjugate for 2x2 and 3x3 Solving Ax = b directly
Eigenvalue equation Characteristic det(A - lambda I) = 0 Stability and modes of a
polynomial system
Diagonalisation Similar matrices A = P D P inverse Powers and decoupled
dynamics
Orthogonality Dot product u dot v = 0; projection = (u dot v / u Decomposition and
dot u) u approximation
Least squares Normal equations A transpose A x = A transpose b Best fit when no exact
solution exists
Keep the three questions in order. A system has no solution when the rank of the coefficient matrix is
less than the rank of the augmented matrix; it has infinitely many when the rank is less than the number
of unknowns; it has exactly one when the rank equals the number of unknowns. Almost every exam
question about systems is a disguised version of that rank test.
2. Systems of equations and Gaussian elimination
Linear Algebra: Systems, Eigenvalues and Diagonalisation Page 1 of 5
,Linear Algebra: Systems, Eigenvalues and Diagonalisation
Gaussian elimination reduces the augmented matrix to row echelon form using three elementary
operations: swap two rows, multiply a row by a non-zero scalar, and add a multiple of one row to
another. Back substitution then gives the solution. The number of pivots is the rank, and comparing the
rank of the coefficient matrix with the number of unknowns classifies the system as consistent with a
unique solution, consistent with infinitely many, or inconsistent.
A homogeneous system always has the trivial solution; it has non-trivial solutions exactly when the
coefficient matrix is singular, which connects the rank test to the determinant. Free variables appear
when there are fewer pivots than unknowns, and the solution set is then an affine subspace whose
dimension equals the number of free variables. That geometric reading is what the exam expects when it
asks for the solution set rather than a single point.
• Unique - rank equals the number of unknowns.
• Infinite - consistent with a free variable.
• Inconsistent - a row of the form 0 = non-zero.
• Homogeneous - non-trivial solutions only if det = 0.
3. Determinants, inverses and Cramer's rule
The determinant of a 2x2 matrix [[a, b], [c, d]] is ad - bc. For larger matrices it is computed by cofactor
expansion along a row or column, or by elimination while tracking row swaps and scaling. A non-zero
determinant means the matrix is invertible, the columns are linearly independent, and the corresponding
system has a unique solution.
The inverse of a 2x2 matrix is the reciprocal of the determinant multiplied by the matrix with the
diagonal entries swapped and the off-diagonal entries negated. For a 3x3 matrix the inverse is the
adjugate divided by the determinant, and the adjugate is the transpose of the cofactor matrix. Cramer's
rule expresses each unknown as a ratio of determinants, which is elegant for small systems and
impractical for large ones.
4. Eigenvalues, eigenvectors and diagonalisation
An eigenvector is a non-zero vector whose direction is unchanged by the matrix; the eigenvalue is the
factor by which it is scaled. The eigenvalues solve the characteristic equation, the determinant of A
minus lambda times the identity set to zero, which is a polynomial of degree n. The eigenvectors for each
eigenvalue are found by solving the homogeneous system (A - lambda I)v = 0.
A matrix is diagonalisable when it has n linearly independent eigenvectors, which is guaranteed when
the eigenvalues are distinct but can also happen with repeated eigenvalues if the eigenspace has full
dimension. Diagonalisation writes A as P D P inverse, where the columns of P are the eigenvectors and
D holds the eigenvalues. It turns matrix powers into powers of scalars, which is how linear recurrence
and differential systems are solved.
5. Orthogonality, projections and least squares
The dot product measures length and angle, and two vectors are orthogonal when their dot product is
zero. The projection of a vector onto a line spanned by u is the scalar (u dot v / u dot u) multiplied by u,
and the residual is orthogonal to the line, which is the geometric content of best approximation. An
orthonormal basis makes every coordinate a dot product and every projection a sum of independent
components.
Linear Algebra: Systems, Eigenvalues and Diagonalisation Page 2 of 5