Menu Close

Algebra of matrices and linear equations: UPSC Maths Optional PYQ Solutions (2008–2026)

All 26 questions UPSC has asked on algebra of matrices and linear equations in the Mathematics Optional (Paper I, Linear Algebra) from 2008 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Linear Algebra topic-wise PYQs page.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the answer was worked out again independently with computer algebra (SymPy).
  • ✓ Proof checked step by step for “prove that” questions, every step was checked against the definitions.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2026 · 1a 2025 · 3a 2023 · 4a 2022 · 2a 2021 · 3c(ii) 2021 · 4a(i) 2020 · 4a 2019 · 1d 2019 · 3c 2018 · 1a 2018 · 3a 2017 · 4b 2016 · 1a(i) 2016 · 1b(i) 2015 · 1b 2014 · 1b 2014 · 2b(i) 2013 · 1a 2013 · 2b(ii) 2012 · 2a(ii) 2012 · 2c 2011 · 1a 2011 · 1b 2010 · 3a 2008 · 1a 2008 · 3a

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Find all the values of a for which the system of homogeneous equations ax+y+z=0x+y−z=0x+y−az=0 has non-trivial solutions, and hence determine all the solutions for each value of a.

2026 · Paper I · Q1a · 10 marks

Solution

For non-trivial solutions the coefficient determinant must vanish:

∣a1111−111−a∣=a(−a+1)−1(−a+1)+1(1−1)=−a2+2a−1=−(a−1)2.\begin{vmatrix} a & 1 & 1\\ 1 & 1 & -1\\ 1 & 1 & -a\end{vmatrix} = a(-a+1)-1(-a+1)+1(1-1) = -a^2+2a-1=-(a-1)^2 .

So the system has non-trivial solutions only when a=1a=1 (a double root).

For a=1a=1 the equations are x+y+z=0,x+y−z=0,x+y−z=0x+y+z=0,\; x+y-z=0,\; x+y-z=0. Subtracting the first two gives 2z=02z=0, so z=0z=0 and y=−xy=-x. The coefficient matrix has rank 2, so the solution space is one-dimensional:

(x,y,z)=k(1,−1,0),k∈ℝ.(x,y,z)=k\,(1,-1,0),\qquad k\in\mathbb{R}.

For every other value of aa the only solution is x=y=z=0x=y=z=0.

✓ Checked by computer We solved the system by computer (SymPy): the determinant is −(a−1)2-(a-1)^2 and the solution set for a=1a=1 matched.

↑ Back to the question list

Reduce the following matrix to echelon form : A=[2−221−360−11−7102]

2025 · Paper I · Q3a · 15 marks

Solution

R1↔R3R_1\leftrightarrow R_3: (1−7102−360−12−221)→R3−2R1R2+3R1(1−71020−15305012−18−3)→R3/3R2/(−5)(1−710203−6−104−6−1).\begin{pmatrix}1&-7&10&2\\-3&6&0&-1\\2&-2&2&1\end{pmatrix}\xrightarrow[R_3-2R_1]{R_2+3R_1}\begin{pmatrix}1&-7&10&2\\0&-15&30&5\\0&12&-18&-3\end{pmatrix}\xrightarrow[R_3/3]{R_2/(-5)}\begin{pmatrix}1&-7&10&2\\0&3&-6&-1\\0&4&-6&-1\end{pmatrix}. R3→3R3−4R2R_3\to3R_3-4R_2: (1−710203−6−10061)(echelon form; rank 3).\begin{pmatrix}1&-7&10&2\\0&3&-6&-1\\0&0&6&1\end{pmatrix}\quad\text{(echelon form; rank }3). Continuing to the row-reduced echelon form: (10013010000116).\begin{pmatrix}1&0&0&\frac13\\0&1&0&0\\0&0&1&\frac16\end{pmatrix}.

✓ Checked by computer We checked by computer (SymPy): rank 3, and the reduced row echelon form as shown.

↑ Back to the question list

Find the rank of the matrix A=[12−10−130−4213−2111−1] by reducing it to row-reduced echelon form.

2023 · Paper I · Q4a · 15 marks

Solution

→R4−R1R2+R1,R3−2R1(12−1005−1−40−35−20−12−1)→R2↔R4,R2⋅(−1)(12−1001−210−35−205−1−4)\xrightarrow[R_4-R_1]{R_2+R_1,\;R_3-2R_1}\begin{pmatrix}1&2&-1&0\\0&5&-1&-4\\0&-3&5&-2\\0&-1&2&-1\end{pmatrix}\xrightarrow{R_2\leftrightarrow R_4,\;R_2\cdot(-1)}\begin{pmatrix}1&2&-1&0\\0&1&-2&1\\0&-3&5&-2\\0&5&-1&-4\end{pmatrix} →R4−5R2R3+3R2(12−1001−2100−11009−9)→R4+9R3(12−1001−2100−110000).\xrightarrow[R_4-5R_2]{R_3+3R_2}\begin{pmatrix}1&2&-1&0\\0&1&-2&1\\0&0&-1&1\\0&0&9&-9\end{pmatrix}\xrightarrow{R_4+9R_3}\begin{pmatrix}1&2&-1&0\\0&1&-2&1\\0&0&-1&1\\0&0&0&0\end{pmatrix}. Clearing above the pivots: RREF=(1001010−1001−10000).\text{RREF}=\begin{pmatrix}1&0&0&1\\0&1&0&-1\\0&0&1&-1\\0&0&0&0\end{pmatrix}. Three non-zero rows: rank A=3A=3.

✓ Checked by computer We checked by computer (SymPy): reduced row echelon form as shown; rank 3.

↑ Back to the question list

Find all solutions to the following system of equations by row-reduced method : x1+2x2−x3=22x1+3x2+5x3=5−x1−3x2+8x3=−1

2022 · Paper I · Q2a · 15 marks

Solution

Augmented matrix: (12−1|2235|5−1−38|−1)→R3+R1R2−2R1(12−1|20−17|10−17|1)→R3−R2(1013|401−7|−1000|0).\left(\begin{array}{ccccc}1&2&-1&\vert&2\\2&3&5&\vert&5\\-1&-3&8&\vert&-1\end{array}\right)\xrightarrow[R_3+R_1]{R_2-2R_1}\left(\begin{array}{ccccc}1&2&-1&\vert&2\\0&-1&7&\vert&1\\0&-1&7&\vert&1\end{array}\right)\xrightarrow{R_3-R_2}\left(\begin{array}{ccccc}1&0&13&\vert&4\\0&1&-7&\vert&-1\\0&0&0&\vert&0\end{array}\right). (The last step also uses R2⋅(−1)R_2\cdot(-1), then R1−2R2R_1-2R_2.) Rank of AA = rank of [A|b][A|b] = 2<32<3, so there are infinitely many solutions. With x3=tx_3=t: x1=4−13t,x2=−1+7t,x3=t(t∈ℝ).x_1=4-13t,\qquad x_2=-1+7t,\qquad x_3=t\qquad(t\in\mathbb{R}). Check (t=0t=0): (4,−1,0)(4,-1,0) gives 4−2=24-2=2, 8−3=58-3=5, −4+3=−1-4+3=-1. ✓

✓ Checked by computer We checked by computer (SymPy): the augmented matrix reduces as shown; each solution satisfies all three equations.

↑ Back to the question list

For two square matrices A and B of order 2, show that trace (AB)= trace (BA). Hence show that AB−BA≠I2, where I2 is an identity matrix of order 2.

2021 · Paper I · Q3c(ii) · 7 marks

Solution

Let A=(aij)A=(a_{ij}), B=(bij)B=(b_{ij}). Then tr(AB)=∑i∑jaijbji=∑j∑ibjiaij=tr(BA).\operatorname{tr}(AB)=\sum_i\sum_j a_{ij}b_{ji}=\sum_j\sum_i b_{ji}a_{ij}=\operatorname{tr}(BA). (For 2×22\times2: both equal a11b11+a12b21+a21b12+a22b22a_{11}b_{11}+a_{12}b_{21}+a_{21}b_{12}+a_{22}b_{22}.)

Hence tr(AB−BA)=tr(AB)−tr(BA)=0\operatorname{tr}(AB-BA)=\operatorname{tr}(AB)-\operatorname{tr}(BA)=0. But tr(I2)=2≠0\operatorname{tr}(I_2)=2\neq0. So AB−BA≠I2AB-BA\neq I_2, for any 2×22\times2 matrices AA and BB. ◼\blacksquare

✓ Proof checked step by step A proof, checked step by step.

↑ Back to the question list

Reduce the following matrix to a row-reduced echelon form and hence also, find its rank : A=[132410022026262391106]

2021 · Paper I · Q4a(i) · 10 marks

Solution

→R4−3R1R3−2R1(132410022000−2−2000−5−23)→R3+2R2,R4+5R2R2/2(13241001100000000033).\xrightarrow[R_4-3R_1]{R_3-2R_1}\begin{pmatrix}1&3&2&4&1\\0&0&2&2&0\\0&0&-2&-2&0\\0&0&-5&-2&3\end{pmatrix}\xrightarrow[R_3+2R_2,\;R_4+5R_2]{R_2/2}\begin{pmatrix}1&3&2&4&1\\0&0&1&1&0\\0&0&0&0&0\\0&0&0&3&3\end{pmatrix}. Then R3↔R4R_3\leftrightarrow R_4, R3/3R_3/3, and clear above the pivots: RREF=(1300−10010−10001100000).\text{RREF}=\begin{pmatrix}1&3&0&0&-1\\0&0&1&0&-1\\0&0&0&1&1\\0&0&0&0&0\end{pmatrix}. Three non-zero rows: rank A=3A=3.

✓ Checked by computer We checked by computer (SymPy): reduced row echelon form as shown; rank 3.

↑ Back to the question list

Let A=[1022−13418]andB=[−1122−4016−1−1]. (i) Find AB. (ii) Find det(A) and det(B). (iii) Solve the following system of linear equations : x+2z=3,2x−y+3z=3,4x+y+8z=14

2020 · Paper I · Q4a · 15 marks

Solution

(i) Multiplying row by column, AB=(−11+0+122+0−22+0−2−22+4+184+0−34−1−3−44−4+488+0−88+1−8)=(100010001)=I.AB=\begin{pmatrix}-11+0+12&2+0-2&2+0-2\\-22+4+18&4+0-3&4-1-3\\-44-4+48&8+0-8&8+1-8\end{pmatrix}=\begin{pmatrix}1&0&0\\0&1&0\\0&0&1\end{pmatrix}=I . (ii) detA=1(−8−3)−0+2(2+4)=1\det A=1(-8-3)-0+2(2+4)=1. Since AB=IAB=I, detAdetB=1\det A\det B=1, so detB=1\det B=1.

(iii) The system is AX=(3,3,14)TAX=(3,3,14)^T, and A−1=BA^{-1}=B. So X=B(3314)=(−33+6+28−12+0+1418−3−14)=(121):x=1,y=2,z=1.X=B\begin{pmatrix}3\\3\\14\end{pmatrix}=\begin{pmatrix}-33+6+28\\-12+0+14\\18-3-14\end{pmatrix}=\begin{pmatrix}1\\2\\1\end{pmatrix}:\qquad x=1,\;y=2,\;z=1 .

✓ Checked by computer We checked by computer (SymPy): AB=IAB=I, both determinants equal 1, and (1,2,1)(1,2,1) solves the system.

↑ Back to the question list

If A=[1211−4130−3]andB=[2111−1021−1] then show that AB=6I3. Use this result to solve the following system of equations : 2x+y+z=5x−y=02x+y−z=1

2019 · Paper I · Q1d · 10 marks

Solution

AB=(2+2+21−2+11+0−12−4+21+4+11+0−16+0−63+0−33+0+3)=(600060006)=6I3.AB=\begin{pmatrix}2+2+2&1-2+1&1+0-1\\2-4+2&1+4+1&1+0-1\\6+0-6&3+0-3&3+0+3\end{pmatrix}=\begin{pmatrix}6&0&0\\0&6&0\\0&0&6\end{pmatrix}=6I_3 . The system is BX=(5,0,1)TBX=(5,0,1)^T. From AB=6IAB=6I, B−1=16AB^{-1}=\frac16A. So X=16A(501)=16(5+0+15−0+115+0−3)=(112):x=1,y=1,z=2.X=\frac16A\begin{pmatrix}5\\0\\1\end{pmatrix}=\frac16\begin{pmatrix}5+0+1\\5-0+1\\15+0-3\end{pmatrix}=\begin{pmatrix}1\\1\\2\end{pmatrix}:\qquad x=1,\;y=1,\;z=2 .

✓ Checked by computer We checked by computer (SymPy): AB=6IAB=6I and the solution (1,1,2)(1,1,2).

↑ Back to the question list

Let A=(572111−81235034−31) (i) Find the rank of matrix A. (ii) Find the dimension of the subspace V={(x1,x2,x3,x4)∈ℝ4|A(x1x2x3x4)=0}

2019 · Paper I · Q3c · 20 marks

Solution

(i) R1↔R2R_1\leftrightarrow R_2, then clear the first column: (11−815721235034−31)→(11−810242−40121−20121−2)→(11−810121−200000000).\begin{pmatrix}1&1&-8&1\\5&7&2&1\\2&3&5&0\\3&4&-3&1\end{pmatrix}\to\begin{pmatrix}1&1&-8&1\\0&2&42&-4\\0&1&21&-2\\0&1&21&-2\end{pmatrix}\to\begin{pmatrix}1&1&-8&1\\0&1&21&-2\\0&0&0&0\\0&0&0&0\end{pmatrix}. Rank A=2A=2.

(ii) VV is the null space of AA, so by rank–nullity dimV=4−2=2\dim V=4-2=2. (A basis is {(29,−21,1,0),(−3,2,0,1)}\{(29,-21,1,0),(-3,2,0,1)\}.)

✓ Checked by computer We checked by computer (SymPy): rank 2, null space of dimension 2.

↑ Back to the question list

Let A be a 3×2 matrix and B a 2×3 matrix. Show that C=A⋅B is a singular matrix.

2018 · Paper I · Q1a · 10 marks

Solution

rank(AB)≤min(rankA,rankB)\operatorname{rank}(AB)\le\min(\operatorname{rank}A,\operatorname{rank}B). AA is 3×23\times2, so rankA≤2\operatorname{rank}A\le2. Hence rankC=rank(AB)≤2<3.\operatorname{rank}C=\operatorname{rank}(AB)\le2<3 . A 3×33\times3 matrix of rank less than 3 has detC=0\det C=0, so CC is singular.

(Directly: BB is 2×32\times3, so BX=0BX=0 has a non-zero solution X∈ℝ3X\in\mathbb{R}^3, since there are more unknowns than equations. Then CX=A(BX)=0CX=A(BX)=0 with X≠0X\ne0, so CC is singular.) ◼\blacksquare

✓ Proof checked step by step A proof, checked step by step.

↑ Back to the question list

For the system of linear equations x+3y−2z=−15y+3z=−8x−2y−5z=7 determine which of the following statements are true and which are false : (i) The system has no solution. (ii) The system has a unique solution. (iii) The system has infinitely many solutions.

2018 · Paper I · Q3a · 13 marks

Solution

(13−2|−1053|−81−2−5|7)→R3−R1(13−2|−1053|−80−5−3|8)→R3+R2(13−2|−1053|−8000|0).\left(\begin{array}{ccccc}1&3&-2&\vert&-1\\0&5&3&\vert&-8\\1&-2&-5&\vert&7\end{array}\right)\xrightarrow{R_3-R_1}\left(\begin{array}{ccccc}1&3&-2&\vert&-1\\0&5&3&\vert&-8\\0&-5&-3&\vert&8\end{array}\right)\xrightarrow{R_3+R_2}\left(\begin{array}{ccccc}1&3&-2&\vert&-1\\0&5&3&\vert&-8\\0&0&0&\vert&0\end{array}\right). Rank of the coefficient matrix == rank of the augmented matrix =2<3=2<3, so the system is consistent with one free variable:

    1. has no solution: false
    1. has a unique solution: false
    1. has infinitely many solutions: true

(z=tz=t, y=−8−3t5y=\frac{-8-3t}{5}, x=19+19t5x=\frac{19+19t}{5}.)

✓ Checked by computer We checked by computer (SymPy): det=0\det=0, and rank AA = rank [A|b][A|b] = 2.

↑ Back to the question list

Consider the following system of equations in x, y, z : x+2y+2z=1x+ay+3z=3x+11y+az=b. (i) For which values of a does the system have a unique solution? (ii) For which pair of values (a,b) does the system have more than one solution?

2017 · Paper I · Q4b · 15 marks

Solution

det(1221a3111a)=a2−4a−5=(a−5)(a+1).\det\begin{pmatrix}1&2&2\\1&a&3\\1&11&a\end{pmatrix}=a^2-4a-5=(a-5)(a+1). (i) Unique solution exactly when det≠0\det\neq0, i.e. a≠5a\neq5 and a≠−1a\neq-1 (for every bb).

(ii) If det=0\det=0, reduce the augmented matrix:

  • a=5a=5: rows (1,2,2|1)(1,2,2\,|\,1), (0,3,1|2)(0,3,1\,|\,2), (0,0,0|b−7)(0,0,0\,|\,b-7). Consistent, with infinitely many solutions, iff b=7b=7.
  • a=−1a=-1: rows (1,2,2|1)(1,2,2\,|\,1), (0,−3,1|2)(0,-3,1\,|\,2), (0,0,0|−b−5)(0,0,0\,|\,-b-5). Infinitely many solutions iff b=−5b=-5.

More than one solution for (a,b)=(5,7)(a,b)=(5,7) and (a,b)=(−1,−5)(a,b)=(-1,-5).

✓ Checked by computer We checked by computer (SymPy): det=(a−5)(a+1)\det=(a-5)(a+1), and the echelon forms for a=5a=5 and a=−1a=-1.

↑ Back to the question list

Using elementary row operations, find the inverse of A=[121132101].

2016 · Paper I · Q1a(i) · 6 marks

Solution

(121|100132|010101|001)→R3−R1R2−R1(121|100011|−1100−20|−101)→R3+2R2(121|100011|−110002|−321)\left(\begin{array}{ccccccc}1&2&1&\vert&1&0&0\\1&3&2&\vert&0&1&0\\1&0&1&\vert&0&0&1\end{array}\right)\xrightarrow[R_3-R_1]{R_2-R_1}\left(\begin{array}{ccccccc}1&2&1&\vert&1&0&0\\0&1&1&\vert&-1&1&0\\0&-2&0&\vert&-1&0&1\end{array}\right)\xrightarrow{R_3+2R_2}\left(\begin{array}{ccccccc}1&2&1&\vert&1&0&0\\0&1&1&\vert&-1&1&0\\0&0&2&\vert&-3&2&1\end{array}\right) R3/2R_3/2, then R2−R3R_2-R_3, then R1−2R2−R3R_1-2R_2-R_3: A−1=12(3−2110−1−321).A^{-1}=\frac12\begin{pmatrix}3&-2&1\\1&0&-1\\-3&2&1\end{pmatrix}.

✓ Checked by computer We checked by computer (SymPy): AA−1=IAA^{-1}=I.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Using elementary row operations, find the condition that the linear equations x−2y+z=a2x+7y−3z=b3x+5y−2z=c have a solution.

2016 · Paper I · Q1b(i) · 7 marks

Solution

(1−21|a27−3|b35−2|c)→R3−3R1R2−2R1(1−21|a011−5|b−2a011−5|c−3a)→R3−R2(1−21|a011−5|b−2a000|c−a−b).\left(\begin{array}{ccccc}1&-2&1&\vert&a\\2&7&-3&\vert&b\\3&5&-2&\vert&c\end{array}\right)\xrightarrow[R_3-3R_1]{R_2-2R_1}\left(\begin{array}{ccccc}1&-2&1&\vert&a\\0&11&-5&\vert&b-2a\\0&11&-5&\vert&c-3a\end{array}\right)\xrightarrow{R_3-R_2}\left(\begin{array}{ccccc}1&-2&1&\vert&a\\0&11&-5&\vert&b-2a\\0&0&0&\vert&c-a-b\end{array}\right). The system has a solution iff the last row is consistent: c−a−b=0,i.e.c=a+b.c-a-b=0,\quad\text{i.e.}\quad c=a+b . (Then there are infinitely many solutions, since the coefficient rank is 2.)

✓ Checked by computer We checked by computer (SymPy): the echelon form of the augmented matrix as shown.

↑ Back to the question list

Reduce the following matrix to row echelon form and hence find its rank : [123421451557811417].

2015 · Paper I · Q1b · 10 marks

Solution

→R3−R1,R4−8R1R2−2R1(12340−3−2−303230−15−10−15)→R4−5R2R3+R2(12340−3−2−300000000).\xrightarrow[R_3-R_1,\;R_4-8R_1]{R_2-2R_1}\begin{pmatrix}1&2&3&4\\0&-3&-2&-3\\0&3&2&3\\0&-15&-10&-15\end{pmatrix}\xrightarrow[R_4-5R_2]{R_3+R_2}\begin{pmatrix}1&2&3&4\\0&-3&-2&-3\\0&0&0&0\\0&0&0&0\end{pmatrix}. Two non-zero rows in echelon form: rank =2=2.

✓ Checked by computer We checked by computer (SymPy): rank 2.

↑ Back to the question list

Using elementary row or column operations, find the rank of the matrix [01−3−10011310211−20].

2014 · Paper I · Q1b · 10 marks

Solution

Order the rows R4,R1,R3,R2R_4,R_1,R_3,R_2 (row swaps): (11−2001−3−131020011)→R3−3R1(11−2001−3−10−2620011)→R3+2R2(11−2001−3−100000011).\begin{pmatrix}1&1&-2&0\\0&1&-3&-1\\3&1&0&2\\0&0&1&1\end{pmatrix}\xrightarrow{R_3-3R_1}\begin{pmatrix}1&1&-2&0\\0&1&-3&-1\\0&-2&6&2\\0&0&1&1\end{pmatrix}\xrightarrow{R_3+2R_2}\begin{pmatrix}1&1&-2&0\\0&1&-3&-1\\0&0&0&0\\0&0&1&1\end{pmatrix}. After swapping the last two rows the matrix is in echelon form with three non-zero rows: rank =3=3.

✓ Checked by computer We checked by computer (SymPy): rank 3, determinant 0.

↑ Back to the question list

Investigate the values of λ and μ so that the equations x+y+z=6, x+2y+3z=10, x+2y+λz=μ have (1) no solution, (2) a unique solution, (3) an infinite number of solutions.

2014 · Paper I · Q2b(i) · 10 marks

Solution

(111|6123|1012λ|μ)→(111|6012|400λ−3|μ−10).\left(\begin{array}{ccccc}1&1&1&\vert&6\\1&2&3&\vert&10\\1&2&\lambda&\vert&\mu\end{array}\right)\to\left(\begin{array}{ccccc}1&1&1&\vert&6\\0&1&2&\vert&4\\0&0&\lambda-3&\vert&\mu-10\end{array}\right).

  1. No solution: λ=3\lambda=3 and μ≠10\mu\neq10 (the last row reads 0=μ−10≠00=\mu-10\neq0).
  2. Unique solution: λ≠3\lambda\neq3 (μ\mu arbitrary), since the coefficient matrix then has rank 3.
  3. Infinitely many solutions: λ=3\lambda=3 and μ=10\mu=10 (rank 2 for both matrices).

✓ Checked by computer We checked by computer (SymPy): the echelon form of the augmented matrix.

↑ Back to the question list

Find the inverse of the matrix : A=[1312−1732−1] by using elementary row operations. Hence solve the system of linear equations x+3y+z=102x−y+7z=213x+2y−z=4

2013 · Paper I · Q1a · 10 marks

Solution

Row-reduce [A|I][A\,|\,I]: →R3−3R1R2−2R1(131|1000−75|−2100−7−4|−301)→R3−R2(131|1000−75|−21000−9|−1−11).\xrightarrow[R_3-3R_1]{R_2-2R_1}\left(\begin{array}{ccccccc}1&3&1&\vert&1&0&0\\0&-7&5&\vert&-2&1&0\\0&-7&-4&\vert&-3&0&1\end{array}\right)\xrightarrow{R_3-R_2}\left(\begin{array}{ccccccc}1&3&1&\vert&1&0&0\\0&-7&5&\vert&-2&1&0\\0&0&-9&\vert&-1&-1&1\end{array}\right). Back-substituting row by row (R3/(−9)R_3/(-9), then R2−5R3R_2-5R_3 and R2/(−7)R_2/(-7), then R1−3R2−R3R_1-3R_2-R_3): A−1=163(−1352223−4−577−7).A^{-1}=\frac1{63}\begin{pmatrix}-13&5&22\\23&-4&-5\\7&7&-7\end{pmatrix}. System. X=A−1(10,21,4)T=163(−130+105+88,230−84−20,70+147−28)T=163(63,126,189)TX=A^{-1}(10,21,4)^T=\frac1{63}(-130+105+88,\;230-84-20,\;70+147-28)^T=\frac1{63}(63,126,189)^T: x=1,y=2,z=3.x=1,\quad y=2,\quad z=3 .

✓ Checked by computer We checked by computer (SymPy): AA−1=IAA^{-1}=I and the solution (1,2,3)(1,2,3).

↑ Back to the question list

Find the rank of the matrix A=[12345235812358121758121723812172330]

2013 · Paper I · Q2b(ii) · 8 marks

Solution

Subtract multiples of R1R_1 (Ri−ai1R1R_i-a_{i1}R_1): (123450−1−1020−1−1020−2−3−3−20−4−7−9−10)→R4−2R2,R5−4R2R3−R2(123450−1−1020000000−1−3−600−3−9−18).\begin{pmatrix}1&2&3&4&5\\0&-1&-1&0&2\\0&-1&-1&0&2\\0&-2&-3&-3&-2\\0&-4&-7&-9&-10\end{pmatrix}\xrightarrow[R_4-2R_2,\;R_5-4R_2]{R_3-R_2}\begin{pmatrix}1&2&3&4&5\\0&-1&-1&0&2\\0&0&0&0&0\\0&0&-1&-3&-6\\0&0&-3&-9&-18\end{pmatrix}. R5−3R4R_5-3R_4 makes the last row zero. Three non-zero independent rows remain: rank A=3A=3.

✓ Checked by computer We checked by computer (SymPy): rank 3.

↑ Back to the question list

Find the dimension and a basis for the space W of all solutions of the following homogeneous system using matrix notation : x1+2x2+3x3−2x4+4x5=02x1+4x2+8x3+x4+9x5=03x1+6x2+13x3+4x4+14x5=0

2012 · Paper I · Q2a(ii) · 12 marks

Solution

A=(123−24248193613414)→R3−3R1R2−2R1(123−2400251004102)→R3−2R2(123−240025100000).A=\begin{pmatrix}1&2&3&-2&4\\2&4&8&1&9\\3&6&13&4&14\end{pmatrix}\xrightarrow[R_3-3R_1]{R_2-2R_1}\begin{pmatrix}1&2&3&-2&4\\0&0&2&5&1\\0&0&4&10&2\end{pmatrix}\xrightarrow{R_3-2R_2}\begin{pmatrix}1&2&3&-2&4\\0&0&2&5&1\\0&0&0&0&0\end{pmatrix}. Rank 2, so dimW=5−2=3\dim W=5-2=3. The free variables are x2,x4,x5x_2,x_4,x_5, with x3=−12(5x4+x5),x1=−2x2+192x4−52x5.x_3=-\tfrac12(5x_4+x_5),\qquad x_1=-2x_2+\tfrac{19}{2}x_4-\tfrac52x_5 . Taking (x2,x4,x5)=(1,0,0),(0,2,0),(0,0,2)(x_2,x_4,x_5)=(1,0,0),(0,2,0),(0,0,2): basis of W={(−2,1,0,0,0),(19,0,−5,2,0),(−5,0,−1,0,2)}.\text{basis of }W=\{(-2,1,0,0,0),\;(19,0,-5,2,0),\;(-5,0,-1,0,2)\}.

✓ Checked by computer We checked by computer (SymPy): the null space has dimension 3, with this basis.

↑ Back to the question list

Let H=(1i2+i−i21−i2−i1+i2) be a Hermitian matrix. Find a non-singular matrix P such that D=PTHP‾ is diagonal.

2012 · Paper I · Q2c · 20 marks

Solution

Reduce HH by congruence: each row operation is followed by the conjugate column operation (so Hermitian form is kept).

  • R2→R2+iR1R_2\to R_2+iR_1, C2→C2−iC1C_2\to C_2-iC_1; R3→R3−(2−i)R1R_3\to R_3-(2-i)R_1, C3→C3−(2+i)C1C_3\to C_3-(2+i)C_1: (10001i0−i−3)\begin{pmatrix}1&0&0\\0&1&i\\0&-i&-3\end{pmatrix}
  • R3→R3+iR2R_3\to R_3+iR_2, C3→C3−iC2C_3\to C_3-iC_2: D=(10001000−4)D=\begin{pmatrix}1&0&0\\0&1&0\\0&0&-4\end{pmatrix}

Applying the same row operations to II gives E=(100i10−3+ii1),with EHE‾T=D.E=\begin{pmatrix}1&0&0\\i&1&0\\-3+i&i&1\end{pmatrix},\qquad\text{with }EH\bar E^{\,T}=D . So take P=ET=(1i−3+i01i001)(detP=1),PTHP‾=diag(1,1,−4).P=E^T=\begin{pmatrix}1&i&-3+i\\0&1&i\\0&0&1\end{pmatrix}\ (\det P=1),\qquad P^TH\bar P=\operatorname{diag}(1,\,1,\,-4).

✓ Checked by computer We checked by computer (SymPy): PTHP‾=diag(1,1,−4)P^TH\bar P=\operatorname{diag}(1,1,-4).

↑ Back to the question list

Let A be a non-singular, n×n square matrix. Show that A⋅(adjA)=|A|⋅In. Hence show that |adj(adjA)|=|A|(n−1)2.

2011 · Paper I · Q1a · 10 marks

Solution

A⋅adjA=|A|InA\cdot\operatorname{adj}A=|A|I_n. The (i,j)(i,j) entry of A⋅adjAA\cdot\operatorname{adj}A is ∑kaikCjk\sum_k a_{ik}C_{jk}, where CjkC_{jk} is the cofactor of ajka_{jk}.

  • For i=ji=j, this is the expansion of |A||A| along row ii.
  • For i≠ji\neq j, it is the expansion of a determinant with two equal rows (row jj replaced by row ii), so it is 00.

Hence A⋅adjA=|A|InA\cdot\operatorname{adj}A=|A|I_n.

|adjA||\operatorname{adj}A|. Taking determinants, |A||adjA|=|A|n|A|\,|\operatorname{adj}A|=|A|^n. Since |A|≠0|A|\neq0, |adjA|=|A|n−1|\operatorname{adj}A|=|A|^{n-1}.

adj(adjA)\operatorname{adj}(\operatorname{adj}A). Apply the identity to adjA\operatorname{adj}A, which is invertible: adjA⋅adj(adjA)=|adjA|I=|A|n−1I.\operatorname{adj}A\cdot\operatorname{adj}(\operatorname{adj}A)=|\operatorname{adj}A|\,I=|A|^{n-1}I . Multiplying on the left by AA and using AadjA=|A|IA\operatorname{adj}A=|A|I: |A|adj(adjA)=|A|n−1A|A|\,\operatorname{adj}(\operatorname{adj}A)=|A|^{n-1}A, so adj(adjA)=|A|n−2A\operatorname{adj}(\operatorname{adj}A)=|A|^{n-2}A. Therefore |adj(adjA)|=(|A|n−2)n|A|=|A|n2−2n+1=|A|(n−1)2.◼|\operatorname{adj}(\operatorname{adj}A)|=\big(|A|^{n-2}\big)^n|A|=|A|^{n^2-2n+1}=|A|^{(n-1)^2}. \qquad\blacksquare

✓ Proof checked step by step A proof, checked step by step.

↑ Back to the question list

Let A=[10−1345067],X=[xyz],B=[265]. Solve the system of equations given by AX=B Using the above, also solve the system of equations ATX=B where AT denotes the transpose of matrix A.

2011 · Paper I · Q1b · 10 marks

Solution

|A|=1(28−30)−0+(−1)(18−0)=−20≠0|A|=1(28-30)-0+(-1)(18-0)=-20\neq0, so AA is invertible. The cofactors give A−1=adjA|A|=120(26−421−78−186−4).A^{-1}=\frac{\operatorname{adj}A}{|A|}=\frac1{20}\begin{pmatrix}2&6&-4\\21&-7&8\\-18&6&-4\end{pmatrix}. AX=BAX=B: X=A−1B=120(4+36−20,42−42+40,−36+36−20)T=(1,2,−1)TX=A^{-1}B=\frac1{20}(4+36-20,\;42-42+40,\;-36+36-20)^T=(1,2,-1)^T.

ATX=BA^TX=B: (AT)−1=(A−1)T(A^T)^{-1}=(A^{-1})^T, so X=(A−1)TB=120(221−186−76−48−4)(265)=120(40020)=(201).X=(A^{-1})^TB=\frac1{20}\begin{pmatrix}2&21&-18\\6&-7&6\\-4&8&-4\end{pmatrix}\begin{pmatrix}2\\6\\5\end{pmatrix}=\frac1{20}\begin{pmatrix}40\\0\\20\end{pmatrix}=\begin{pmatrix}2\\0\\1\end{pmatrix}. Check: AT(2,0,1)T=(2+0+0,0+0+6,−2+0+7)=(2,6,5)A^T(2,0,1)^T=(2+0+0,\;0+0+6,\;-2+0+7)=(2,6,5). ✓

✓ Checked by computer We checked by computer (SymPy): AX=BAX=B gives (1,2,−1)(1,2,-1) and ATX=BA^TX=B gives (2,0,1)(2,0,1).

↑ Back to the question list

Let A and B be n×n matrices over reals. Show that I−BA is invertible if I−AB is invertible. Deduce that AB and BA have the same eigenvalues.

2010 · Paper I · Q3a · 20 marks

Solution

I−BAI-BA is invertible. Suppose I−ABI-AB is invertible and put C=(I−AB)−1C=(I-AB)^{-1}. We show I+BCAI+BCA is the inverse of I−BAI-BA: (I−BA)(I+BCA)=I−BA+BCA−BABCA=I−BA+B[(I−AB)C]A=I−BA+BA=I.(I-BA)(I+BCA)=I-BA+BCA-BABCA=I-BA+B\big[(I-AB)C\big]A=I-BA+BA=I . (Similarly (I+BCA)(I−BA)=I(I+BCA)(I-BA)=I.) So I−BAI-BA is invertible.

Same eigenvalues. Let λ≠0\lambda\neq0. Applying the above to 1λA\frac1\lambda A and BB: I−1λABI-\frac1\lambda AB invertible ⇒\Rightarrow I−1λBAI-\frac1\lambda BA invertible, and by symmetry the converse holds. Equivalently, AB−λIAB-\lambda I is singular if and only if BA−λIBA-\lambda I is singular. So the non-zero eigenvalues of ABAB and BABA coincide.

For λ=0\lambda=0: det(AB)=detAdetB=det(BA)\det(AB)=\det A\det B=\det(BA), so ABAB is singular if and only if BABA is. Hence ABAB and BABA have the same eigenvalues. ◼\blacksquare

✓ Proof checked step by step A proof, checked step by step and tested on random matrices by computer.

↑ Back to the question list

Show that the matrix A is invertible if and only if the adj(A) is invertible. Hence find |adj(A)|.

2008 · Paper I · Q1a · 12 marks

Solution

Let AA be n×nn\times n (n≥2n\ge2). We use A⋅adjA=adjA⋅A=|A|IA\cdot\operatorname{adj}A=\operatorname{adj}A\cdot A=|A|I.

If AA is invertible: adjA=|A|A−1\operatorname{adj}A=|A|A^{-1} with |A|≠0|A|\neq0, which is invertible, with inverse 1|A|A\frac{1}{|A|}A.

If adjA\operatorname{adj}A is invertible: suppose, to the contrary, |A|=0|A|=0. Then A⋅adjA=0A\cdot\operatorname{adj}A=0, and multiplying on the right by (adjA)−1(\operatorname{adj}A)^{-1} gives A=0A=0. But then every cofactor is 00, so adjA=0\operatorname{adj}A=0, which is not invertible, a contradiction. Hence |A|≠0|A|\neq0 and AA is invertible.

|adjA||\operatorname{adj}A|. Taking determinants in A⋅adjA=|A|InA\cdot\operatorname{adj}A=|A|I_n: |A||adjA|=|A|n|A|\,|\operatorname{adj}A|=|A|^n. So |adjA|=|A|n−1|\operatorname{adj}A|=|A|^{n-1} (when |A|≠0|A|\neq0; and when |A|=0|A|=0, adjA\operatorname{adj}A is singular, so both sides are 00). ◼\blacksquare

✓ Proof checked step by step A proof, checked step by step.

↑ Back to the question list

Let a be a non-singular matrix. Show that if I+A+A2+⋯+An=0, then A−1=An.

2008 · Paper I · Q3a · 20 marks

Solution

(Here aa in the question is the matrix AA.) Multiply the given relation by A−IA-I: (A−I)(I+A+A2+⋯+An)=An+1−I.(A-I)(I+A+A^2+\cdots+A^n)=A^{n+1}-I . The terms telescope, and the left side is 00 because I+A+⋯+An=0I+A+\cdots+A^n=0. So An+1=IA^{n+1}=I, i.e. A⋅An=An⋅A=IA\cdot A^n=A^n\cdot A=I. Hence A−1=An.◼A^{-1}=A^n. \qquad\blacksquare

✓ Proof checked step by step A proof, checked step by step.

↑ Back to the question list

More on Linear Algebra

Questions: UPSC Civil Services (Main) Examination, Mathematics Paper I, 2008–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted