Linear Algebra (Full)
Level 4 — Application (novel problems, no hints) Time: 60 minutes | Total marks: 50
Answer all questions. Show full working. Calculators not permitted.
Question 1 (10 marks)
Consider the matrix
(a) Reduce to reduced row echelon form. (3)
(b) State the rank of and give a basis for the column space of . (3)
(c) Find a basis for the null space of and verify the rank–nullity theorem for . (4)
Question 2 (10 marks)
A linear transformation has matrix
(a) Find the eigenvalues and a corresponding orthonormal eigenbasis of . (5)
(b) Hence write with orthogonal and diagonal, and use this to determine whether the quadratic form is positive definite. Justify. (5)
Question 3 (10 marks)
The points , , lie in .
(a) Find the area of triangle . (4)
(b) Find the vector (Cartesian) equation of the plane through , , . (3)
(c) Find the perpendicular distance from the origin to this plane. (3)
Question 4 (10 marks)
Fit a line by least squares to the data
(a) Set up the normal equations explicitly. (4)
(b) Solve for and . (4)
(c) Compute the residual sum of squares for your fit. (2)
Question 5 (10 marks)
Let
(a) Compute and find its eigenvalues. (4)
(b) Hence state the singular values of . (3)
(c) Using the singular values, compute the determinant of two ways (directly, and as the product of singular values) and confirm they agree in absolute value. (3)
Answer keyMark scheme & solutions
Question 1
(a) Start with . , : : (3) — correct elimination steps (1), zero row (1), leading 1s in reduced form (1).
(b) Pivots in columns 1 and 3, so rank = 2. Basis for column space = columns 1 and 3 of original : (3) — rank (1), identify pivot columns (1), original columns (1).
(c) Free variables . From RREF: , . Null space basis: those two vectors; nullity . Rank–nullity: number of columns. ✓ (4) — back-solve (1), two basis vectors (2), verification (1).
Question 2
(a) Characteristic polynomial: . Eigenvalues , .
- : .
- : .
Orthonormalize: , . (5) — char poly (1), eigenvalues (1), eigenvectors (2), normalization (1).
(b) Since is symmetric with all eigenvalues (3 and 1), is positive definite. (5) — (2), orthogonality (1), positive-definite criterion via eigenvalues (2).
Question 3
(a) , . . Area . (4) — two edge vectors (1), cross product (2), area (1).
(b) Normal , or simplified . Plane through : (3) — normal (1), point substitution (1), equation (1).
(c) Distance . (3) — distance formula (1), substitution (1), value (1).
Question 4
(a) , , . (Sums: , , , .) (4) — matrix (1), (1.5), (1.5).
(b) Solve . Determinant . Fit: . (4) — determinant (1), Cramer/elimination (2), values (1).
(c) Predictions: at : . Residuals: ; ; ; . RSS . (2) — predictions/residuals (1), RSS (1).
Question 5
(a) . Char poly: . Eigenvalues and . (4) — (2), eigenvalues (2).
(b) Singular values : , . (3)
(c) Direct: . Product of singular values: . . ✓ (3) — direct det (1), product (1), agreement (1).
[
{"claim":"Q2 eigenvalues of M are 1 and 3","code":"M=Matrix([[2,1],[1,2]]); ev=sorted(M.eigenvals().keys()); result=(ev==[1,3])"},
{"claim":"Q3 area of triangle PQR is 3*sqrt(2)/2","code":"P=Matrix([1,0,2]); Q=Matrix([3,1,1]); R=Matrix([2,2,0]); c=(Q-P).cross(R-P); area=c.norm()/2; result=simplify(area-3*sqrt(2)/2)==0"},
{"claim":"Q4 least squares solution a=0.9, b=0.4","code":"A=Matrix([[1,0],[1,1],[1,2],[1,3]]); y=Matrix([1,1,2,2]); c=(A.T*A).inv()*A.T*y; result=(c==Matrix([Rational(9,10),Rational(2,5)]))"},
{"claim":"Q4 RSS equals 0.2","code":"A=Matrix([[1,0],[1,1],[1,2],[1,3]]); y=Matrix([1,1,2,2]); c=(A.T*A).inv()*A.T*y; r=y-A*c; rss=(r.T*r)[0]; result=simplify(rss-Rational(1,5))==0"},
{"claim":"Q5 singular values of B are 3*sqrt(5) and sqrt(5)","code":"B=Matrix([[3,0],[4,5]]); ev=sorted((B.T*B).eigenvals().keys()); svs=sorted([sqrt(e) for e in ev]); result=(svs==sorted([sqrt(5),3*sqrt(5)]))"}
]