Matrices & Determinants — Introduction
LEVEL 5 — Mastery Paper (Cross-domain: Math + Physics + Coding)
Time limit: 75 minutes
Total marks: 50
Instructions: Answer all questions. Show full working. Proofs must be rigorous. Pseudocode/code may be in any clear syntax.
Question 1 — Structure, Proof & Computation (18 marks)
Let be any square matrix of order .
(a) Prove that any square matrix can be written uniquely as the sum of a symmetric matrix and a skew-symmetric matrix . State and explicitly in terms of and . (5)
(b) For find and explicitly and verify . (4)
(c) Prove that for any skew-symmetric matrix of odd order, . Hence state for the matrix found in part (b) without direct expansion. (5)
(d) Write pseudocode for a function decompose(A) that returns for an input matrix, using only element-wise operations and transpose. Comment on its time complexity in terms of . (4)
Question 2 — Physics Application: Coupled System via Cramer & Inversion (18 marks)
Two masses on frictionless rails are connected by springs. At static equilibrium the displacements (in metres) satisfy the stiffness equations from applied forces , :
(units: stiffness in N/m).
(a) Compute the determinant of the stiffness matrix and explain physically why guarantees a unique equilibrium. (3)
(b) Solve for using Cramer's rule. (4)
(c) Find (the compliance matrix) and re-solve the system by matrix inversion, confirming the answer in (b). (5)
(d) The elastic potential energy is where . Using your solution, compute in joules. Also verify the identity and explain why these agree. (6)
Question 3 — Non-commutativity & a Structural Claim (14 marks)
(a) Give an explicit pair of matrices with , and show both products. (3)
(b) Prove the general property for conformable matrices () and (), working from the definition of the entry. (6)
(c) A student claims: "For all matrices, ." Disprove this with a counterexample, and separately prove the correct multiplicative property holds for the specific matrices , by computing both sides. (5)
Answer keyMark scheme & solutions
Question 1
(a) [5 marks] Define and . (1) Then . (1) ⇒ symmetric. ⇒ skew-symmetric. (1, why: transpose is linear and ) Uniqueness: suppose with symmetric, skew. Take transpose: . Adding/subtracting gives , . (2)
(b) [4 marks] . (1) . (1.5) . (1.5) (Sum check: — award full if verified.)
(c) [5 marks] For skew-symmetric : . Then . (1) Left: . (1) Right: for order . (1) So . For odd , , giving . (1) Here (odd), so . (1)
(d) [4 marks]
function decompose(A): # A is n x n
n = rows(A)
AT = transpose(A)
S = zeros(n,n); K = zeros(n,n)
for i in 1..n:
for j in 1..n:
S[i][j] = 0.5*(A[i][j] + AT[i][j])
K[i][j] = 0.5*(A[i][j] - AT[i][j])
return (S, K)
Transpose is , the double loop is ; total . (loop correctness 2, complexity 2)
Question 2
(a) [3 marks] . (1) ⇒ invertible ⇒ system has a unique solution ; physically a unique equilibrium configuration exists (no rigid-body zero modes / positive-definite stable equilibrium). (2)
(b) [4 marks] . ; m. (2) ; m. (2)
(c) [5 marks] . (2) . (2) Matches (b). (1)
(d) [6 marks] by construction, so . (identity, 2) J. (3) They agree because substituted into directly yields . (1)
Question 3
(a) [3 marks] Take , . , . . (3)
(b) [6 marks] . (1) . (2) . (2) Both equal the same scalar sum for every ; orders match (), so . (1)
(c) [5 marks] Counterexample: , : but . Claim false. (2) Multiplicative check: , , product . (1) , . (2) Equal ✓.
[
{"claim":"Q1(c): odd-order skew matrix has zero determinant (n=3 example)","code":"K=Matrix([[0,2,Rational(-1,2)],[-2,0,1],[Rational(1,2),-1,0]]); result = (K.det()==0)"},
{"claim":"Q2(b): Cramer solution x1=15/4, x2=27/8","code":"K=Matrix([[5,-2],[-2,4]]); F=Matrix([12,6]); x=K.solve(F); result = (x[0]==Rational(15,4) and x[1]==Rational(27,8))"},
{"claim":"Q2(d): U=32.625 J via both formulas","code":"K=Matrix([[5,-2],[-2,4]]); F=Matrix([12,6]); x=K.solve(F); U1=(x.T*K*x)[0]/2; U2=(x.T*F)[0]/2; result = (U1==U2 and U1==Rational(261,8))"},
{"claim":"Q3(c): det(AB)=detA*detB=21 and det(A+B)!=detA+detB for A=B=I","code":"A=Matrix([[1,2],[0,3]]); B=Matrix([[4,1],[1,2]]); prod=(A.det()*B.det()); I=eye(2); result = ((A*B).det()==21 and prod==21 and (I+I).det()!=I.det()+I.det())"}
]