Linear Algebra Essentials
Level 2 — Recall & Standard Problems Time limit: 30 minutes Total marks: 40
Answer all questions. Show working where required. Use notation for vectors and matrices.
Q1. (3 marks) Define the following in one line each, giving the number of indices needed to specify an element: (a) scalar, (b) vector, (c) 3rd-order tensor.
Q2. (4 marks) Let and . (a) Compute the dot product . (2 marks) (b) State whether the vectors are orthogonal and justify. (2 marks)
Q3. (5 marks) For the vector , compute: (a) the norm, (b) the norm, (c) the norm.
Q4. (4 marks) Given Compute the product and state its dimensions.
Q5. (4 marks) Compute the determinant of
Q6. (5 marks) For : (a) State the condition for a matrix to be invertible. (1 mark) (b) Compute . (4 marks)
Q7. (4 marks) State whether each statement is TRUE or FALSE and give a one-line reason: (a) . (b) An orthogonal matrix satisfies . (c) The trace of a matrix equals the sum of its eigenvalues. (d) A symmetric matrix always has real eigenvalues.
Q8. (5 marks) Find the eigenvalues of and find an eigenvector for the larger eigenvalue.
Q9. (3 marks) Define rank of a matrix. Determine the rank of
Q10. (3 marks) A matrix is symmetric with eigenvalues . Is positive definite? Explain in one sentence using the definition of a positive definite matrix.
END OF PAPER
Answer keyMark scheme & solutions
Q1. (3 marks)
- (a) Scalar: a single number, 0 indices. (1)
- (b) Vector: an ordered array of numbers, 1 index. (1)
- (c) 3rd-order tensor: a multidimensional array requiring 3 indices to specify an element. (1) Why: number of indices = order/rank of the object.
Q2. (4 marks)
- (a) . (2)
- (b) Not orthogonal, since dot product . (2) Why: orthogonality ⟺ dot product zero.
Q3. (5 marks)
- (a) . (1.5)
- (b) . (2)
- (c) . (1.5) Why: definitions of norms.
Q4. (4 marks) (3) Dimensions: . (1) Why: ; row-by-column products.
Q5. (4 marks) Expand along first row: (4) Why: cofactor expansion.
Q6. (5 marks)
- (a) Invertible ⟺ determinant (equivalently full rank). (1)
- (b) . (1) (3) Why: inverse formula .
Q7. (4 marks, 1 each)
- (a) FALSE — (order reverses).
- (b) TRUE — definition of orthogonal matrix.
- (c) TRUE — trace = sum of eigenvalues.
- (d) TRUE — real symmetric matrices have real eigenvalues (spectral theorem).
Q8. (5 marks) Characteristic equation: . . (3) Larger eigenvalue : solve : , eigenvector . (2) Why: eigenvalues from characteristic polynomial; eigenvector from null space.
Q9. (3 marks) Rank = number of linearly independent rows (= independent columns) = dimension of column space. (1.5) Row 2 = 2 × Row 1, so only one independent row ⟹ rank . (1.5)
Q10. (3 marks) Yes, is positive definite. (1) A symmetric matrix is positive definite ⟺ all eigenvalues are strictly positive; here . (2)
[
{"claim":"a·b = -5","code":"a=Matrix([3,-1,2]); b=Matrix([1,4,-2]); result = (a.dot(b) == -5)"},
{"claim":"L2 norm of (2,-3,6) is 7","code":"v=Matrix([2,-3,6]); result = (sqrt(v.dot(v)) == 7)"},
{"claim":"AB = [[8,11],[6,15]]","code":"A=Matrix([[1,2],[0,3]]); B=Matrix([[4,1],[2,5]]); result = (A*B == Matrix([[8,11],[6,15]]))"},
{"claim":"det M = 8","code":"M=Matrix([[2,1,0],[1,3,1],[0,1,2]]); result = (M.det() == 8)"},
{"claim":"eigenvalues of [[2,1],[1,2]] are 1 and 3","code":"A=Matrix([[2,1],[1,2]]); result = (set(A.eigenvals().keys()) == {1,3})"},
{"claim":"inverse of [[4,7],[2,6]]","code":"A=Matrix([[4,7],[2,6]]); result = (A.inv() == Matrix([[Rational(3,5),Rational(-7,10)],[Rational(-1,5),Rational(2,5)]]))"}
]