Level 4 — ApplicationMatrices & Determinants — Introduction

Matrices & Determinants — Introduction

50 marksprintable — key stays hidden on paper

Level 4 — Application (Novel Problems, No Hints)

Time: 60 minutes Total Marks: 50


Q1. (10 marks) A matrix A=[aij]A=[a_{ij}] of order 3×33\times3 is defined by aij={i+jif iji2if i=ja_{ij}=\begin{cases} i+j & \text{if } i\ne j\\ i^2 & \text{if } i=j\end{cases}

(a) Write out AA explicitly. (3) (b) Decompose AA into the sum of a symmetric matrix SS and a skew-symmetric matrix KK, where S=12(A+AT)S=\tfrac12(A+A^{T}) and K=12(AAT)K=\tfrac12(A-A^{T}). (5) (c) State the value of det(K)\det(K) without full expansion, justifying briefly. (2)


Q2. (10 marks) Let A=(2113)A=\begin{pmatrix}2&-1\\1&3\end{pmatrix} and B=(0421)B=\begin{pmatrix}0&4\\-2&1\end{pmatrix}.

(a) Show by direct computation that (AB)T=BTAT(AB)^{T}=B^{T}A^{T}. (5) (b) Determine whether AB=BAAB=BA. If not, compute the matrix ABBAAB-BA. (3) (c) Verify that det(AB)=det(A)det(B)\det(AB)=\det(A)\det(B). (2)


Q3. (10 marks) A cryptographer encodes a message using the key matrix K=(3211).K=\begin{pmatrix}3&2\\1&1\end{pmatrix}. The encoded pair of a letter block is (197)\begin{pmatrix}19\\7\end{pmatrix}, produced by Kx=yK\mathbf{x}=\mathbf{y}, where x\mathbf{x} is the original block.

(a) Find K1K^{-1}. (3) (b) Recover the original block x\mathbf{x}. (4) (c) The cryptographer wants a new key matrix that is NOT invertible so it fails. Give one 2×22\times2 matrix with entries a,b,c,da,b,c,d satisfying a+d=5a+d=5 that is singular, and justify. (3)


Q4. (10 marks) Consider the system 2x+ky=53xy=4\begin{aligned}2x + ky &= 5\\ 3x - y &= 4\end{aligned} where kk is a real parameter.

(a) Using Cramer's rule, express xx and yy in terms of kk. (5) (b) For what value of kk does the system fail to have a unique solution? (2) (c) For that value of kk, is the system consistent or inconsistent? Justify. (3)


Q5. (10 marks) Let M=(123014560).M=\begin{pmatrix}1&2&3\\0&1&4\\5&6&0\end{pmatrix}.

(a) Compute det(M)\det(M) by cofactor expansion along the first column. (4) (b) Without recomputing from scratch, state det(2M)\det(2M) and det(MT)\det(M^{T}), justifying using determinant properties. (3) (c) A new matrix NN is obtained from MM by swapping rows 1 and 3, then multiplying the resulting row 2 by 3-3. State det(N)\det(N) with justification. (3)


Answer keyMark scheme & solutions

Q1 (10)

(a) Entries: diagonal a11=1,a22=4,a33=9a_{11}=1,a_{22}=4,a_{33}=9; off-diagonal aij=i+ja_{ij}=i+j. A=(134345459)A=\begin{pmatrix}1&3&4\\3&4&5\\4&5&9\end{pmatrix} (3) Why: a12=1+2=3a_{12}=1+2=3, etc.; note AA is already symmetric here.

(b) AT=AA^{T}=A (since off-diagonal i+ji+j is symmetric and diagonal is symmetric). So S=12(A+AT)=AS=\tfrac12(A+A^{T})=A and K=12(AAT)=0K=\tfrac12(A-A^{T})=0 (zero matrix). (5) Why: Recognizing AA is symmetric gives AT=AA^T=A immediately (2 for computing ATA^T, 3 for S,KS,K).

(c) det(K)=det(0)=0\det(K)=\det(0)=0. Any 3×33\times3 skew-symmetric matrix has determinant 0 (odd order); here KK is the zero matrix so trivially det=0\det=0. (2)


Q2 (10)

(a) AB=(2113)(0421)=(2767)AB=\begin{pmatrix}2&-1\\1&3\end{pmatrix}\begin{pmatrix}0&4\\-2&1\end{pmatrix}=\begin{pmatrix}2&7\\-6&7\end{pmatrix}. (AB)T=(2677)(AB)^{T}=\begin{pmatrix}2&-6\\7&7\end{pmatrix}. BT=(0241), AT=(2113)B^{T}=\begin{pmatrix}0&-2\\4&1\end{pmatrix},\ A^{T}=\begin{pmatrix}2&1\\-1&3\end{pmatrix}, BTAT=(0677)B^{T}A^{T}=\begin{pmatrix}0&-6\\7&7\end{pmatrix}... recompute: BTAT=(0241)(2113)=(2677)B^TA^T=\begin{pmatrix}0&-2\\4&1\end{pmatrix}\begin{pmatrix}2&1\\-1&3\end{pmatrix}=\begin{pmatrix}2&-6\\7&7\end{pmatrix}. Matches. (5) Marks: AB (2), transpose (1), BTATB^TA^T (2).

(b) BA=(0421)(2113)=(41235)BA=\begin{pmatrix}0&4\\-2&1\end{pmatrix}\begin{pmatrix}2&-1\\1&3\end{pmatrix}=\begin{pmatrix}4&12\\-3&5\end{pmatrix}. ABBAAB\ne BA. ABBA=(247126+375)=(2532)AB-BA=\begin{pmatrix}2-4&7-12\\-6+3&7-5\end{pmatrix}=\begin{pmatrix}-2&-5\\-3&2\end{pmatrix}. (3)

(c) detA=23(1)(1)=7\det A=2\cdot3-(-1)(1)=7; detB=014(2)=8\det B=0\cdot1-4(-2)=8; product =56=56. det(AB)=277(6)=14+42=56\det(AB)=2\cdot7-7\cdot(-6)=14+42=56. Equal. (2)


Q3 (10)

(a) detK=3121=1\det K=3\cdot1-2\cdot1=1. K1=11(1213)=(1213)K^{-1}=\tfrac1{1}\begin{pmatrix}1&-2\\-1&3\end{pmatrix}=\begin{pmatrix}1&-2\\-1&3\end{pmatrix}. (3)

(b) x=K1y=(1213)(197)=(191419+21)=(52)\mathbf{x}=K^{-1}\mathbf{y}=\begin{pmatrix}1&-2\\-1&3\end{pmatrix}\begin{pmatrix}19\\7\end{pmatrix}=\begin{pmatrix}19-14\\-19+21\end{pmatrix}=\begin{pmatrix}5\\2\end{pmatrix}. (4) Check: Kx=(35+225+2)=(197)K\mathbf x=\begin{pmatrix}3\cdot5+2\cdot2\\5+2\end{pmatrix}=\begin{pmatrix}19\\7\end{pmatrix} ✓.

(c) Need adbc=0ad-bc=0 with a+d=5a+d=5. Example a=2,d=3,b=6,c=1a=2,d=3,b=6,c=1: det=66=0\det=6-6=0; singular hence non-invertible. (Any valid singular example accepted.) (3)


Q4 (10)

(a) Coefficient determinant D=2k31=23kD=\begin{vmatrix}2&k\\3&-1\end{vmatrix}=-2-3k. Dx=5k41=54kD_x=\begin{vmatrix}5&k\\4&-1\end{vmatrix}=-5-4k; Dy=2534=815=7D_y=\begin{vmatrix}2&5\\3&4\end{vmatrix}=8-15=-7. x=54k23k=5+4k2+3k,y=723k=72+3k.x=\frac{-5-4k}{-2-3k}=\frac{5+4k}{2+3k},\quad y=\frac{-7}{-2-3k}=\frac{7}{2+3k}. (5)

(b) No unique solution when D=0D=0: 23k=0k=23-2-3k=0\Rightarrow k=-\tfrac23. (2)

(c) At k=23k=-\tfrac23: equations become 2x23y=52x-\tfrac23y=5, i.e. 6x2y=156x-2y=15, and 3xy=46x2y=83x-y=4\Rightarrow 6x-2y=8. Left sides equal but 15815\ne8: inconsistent (parallel lines, no solution). (3)


Q5 (10)

(a) Expand along column 1: detM=114600+52314\det M = 1\cdot\begin{vmatrix}1&4\\6&0\end{vmatrix}-0+5\cdot\begin{vmatrix}2&3\\1&4\end{vmatrix} =1(024)+5(83)=24+25=1=1(0-24)+5(8-3)=-24+25=1. (4)

(b) det(2M)=23detM=81=8\det(2M)=2^3\det M=8\cdot1=8 (order 3, scalar factor cubed). det(MT)=detM=1\det(M^{T})=\det M=1 (transpose preserves determinant). (3)

(c) Row swap multiplies det by 1-1; scaling a row by 3-3 multiplies by 3-3. detN=(1)(3)detM=31=3\det N=(-1)(-3)\det M=3\cdot1=3. (3)


[
{"claim":"Q2 det(AB)=det(A)det(B)=56","code":"A=Matrix([[2,-1],[1,3]]); B=Matrix([[0,4],[-2,1]]); result = ((A*B).det()==A.det()*B.det()) and ((A*B).det()==56)"},
{"claim":"Q3 recovered block x=(5,2)","code":"K=Matrix([[3,2],[1,1]]); x=K.inv()*Matrix([19,7]); result = x==Matrix([5,2])"},
{"claim":"Q4 x,y formulas and D=0 at k=-2/3","code":"k=symbols('k'); D=Matrix([[2,k],[3,-1]]).det(); Dx=Matrix([[5,k],[4,-1]]).det(); Dy=Matrix([[2,5],[3,4]]).det(); result = (simplify(Dx/D - (5+4*k)/(2+3*k))==0) and (simplify(Dy/D - 7/(2+3*k))==0) and (solve(D,k)==[Rational(-2,3)])"},
{"claim":"Q5 det(M)=1, det(2M)=8, det(N)=3","code":"M=Matrix([[1,2,3],[0,1,4],[5,6,0]]); result = (M.det()==1) and ((2*M).det()==8) and (3*M.det()==3)"}
]