Linear Algebra (Full)
Level 5 — Cross-Domain Synthesis, Proof & Computation
Time limit: 90 minutes Total marks: 60
Instructions: Attempt all three questions. Show all reasoning. Where a computational routine is requested, give clear pseudocode/algorithm and hand-execute on the given data. Marks are indicated in brackets.
Question 1 — Spectral Theory Meets a Physical Oscillator [20 marks]
Two identical masses connected by three identical springs (constant ) between two fixed walls have small-oscillation equation of motion where
(a) Prove that any real symmetric matrix has real eigenvalues and that eigenvectors for distinct eigenvalues are orthogonal. State the two facts about that let you invoke the spectral theorem here. [6]
(b) Find the eigenvalues and a corresponding orthonormal eigenbasis of . [5]
(c) The normal-mode angular frequencies are . Using the change of basis where has your orthonormal eigenvectors as columns, show the system decouples into two independent scalar oscillators, and write the general solution . [5]
(d) Classify the quadratic form (the potential energy) as positive/negative definite or indefinite, and connect this classification to physical stability of the equilibrium. [4]
Question 2 — Least Squares, QR, and a Fitting Algorithm [22 marks]
You are given data points : , and wish to fit a line .
(a) Write the overdetermined system explicitly, and derive the normal equations from the principle of minimising . Justify why the minimiser satisfies geometrically (in terms of the four fundamental subspaces). [7]
(b) Solve the normal equations to obtain the best-fit coefficients . [5]
(c) Perform Gram–Schmidt on the columns of to obtain a factorisation ( with orthonormal columns, upper triangular), and re-solve for via . Confirm agreement with (b). [7]
(d) Give pseudocode for a general least-squares solver via QR, and state one numerical reason QR is preferred over forming directly. [3]
Question 3 — Rank, SVD & the Pseudoinverse [18 marks]
Let
(a) Determine by row reduction, identify pivot and free columns, and give bases for the column space and null space. Verify the rank–nullity theorem. [6]
(b) State and prove the rank–nullity theorem for a matrix . [6]
(c) Since is singular, its inverse does not exist. Explain how the Moore–Penrose pseudoinverse (built from the SVD ) provides the minimum-norm least-squares solution to . Specifically: for a general , characterise the set of least-squares solutions and identify which one selects. [6]
Answer keyMark scheme & solutions
Question 1
(a) [6] Let real. Let , , possibly complex. Take conjugate transpose: (using real symmetric so ). Then and also . Since , we get , so . [3] Orthogonality: , , . ; also . So . [2] is real and symmetric (), so the spectral theorem applies: with orthogonal. [1]
(b) [5] . So . [2] : . [1.5] : . [1.5] Orthonormal: , both unit.
(c) [5] , . [1] Sub : . [2] Decoupled: (), (). [1] , and Mode 1 = in-phase (slow), Mode 2 = anti-phase (fast). [1]
(d) [4] Eigenvalues positive definite for . [2] Physically the potential has a strict local minimum at ; positive definiteness ⇔ real positive ⇔ purely oscillatory (no growing modes) ⇒ equilibrium is stable. [2]
Question 2
(a) [7] [2] Minimise . . [3] Geometric: the residual is minimised when is the orthogonal projection of onto , i.e. , meaning , giving . [2]
(b) [5] , . [2] . . [3] So .
(c) [7] Columns , . , . [1.5] . . [2] , so , . [1.5] . : ; . Back-sub : ?? Recompute : components , dot : ; times . Then . This disagrees — recheck dot b directly: . But (b) gave 0.7.
Correction: ; ; ratio . The discrepancy flags an arithmetic error in (b): recompute : rows: eqn ✓; eqn (not 17!). So . Then . [2] Corrected answer: . QR gives ✓ — both methods agree. [stray, credited]
(d) [3]
QR_least_squares(A, b):
Q, R = qr(A) # thin QR, orthonormal cols
y = Q^T b
solve R c = y by back-substitution # R upper triangular
return c
Numerical reason: forming squares the condition number (), amplifying round-off; QR works directly on preserving conditioning. [3]
Question 3
(a) [6] Row reduce : gives . RREF: Pivots in columns 1,2; column 3 free. . [2] Column space basis: original pivot columns , . [2] Null space: , free ; basis , . [1] Rank–nullity: ✓. [1]
(b) [6] Statement: For , . [1] Proof: Let . Reduce to RREF ; row operations don't change null space or the number of pivot columns. There are pivot columns and free columns. Each free variable indexes a basis vector of (set it , others , solve pivots), giving linearly independent null-space vectors that span it — so . [3] Column rank (pivot columns