The math optional, made finite. Daily Practice

← 2013 Paper 1

UPSC Maths 2013 Paper 1 Q1a — Solution

10 marks · Section A

Question

Find the inverse of the matrix

A=[131217321]A=\begin{bmatrix}1 & 3 & 1\\ 2 & -1 & 7\\ 3 & 2 & -1\end{bmatrix}

by using elementary row operations. Hence solve the system of linear equations

x+3y+z=10,2xy+7z=21,3x+2yz=4.x+3y+z=10,\quad 2x-y+7z=21,\quad 3x+2y-z=4.

Technique

Gauss-Jordan on [AI][A|I] to obtain A1A^{-1}; matrix-vector product to solve the system.

Solution

Strategy. Augment AA with I3I_3, reduce to RREF using elementary row operations; the right block becomes A1A^{-1}. Then x=A1b\mathbf{x}=A^{-1}\mathbf{b}.

Step 1 — Row-reduce [AI][A|I]

[AI]=[131100217010321001][A|I]=\left[\begin{array}{ccc|ccc}1&3&1&1&0&0\\2&-1&7&0&1&0\\3&2&-1&0&0&1\end{array}\right]

R2R22R1R_2\to R_2-2R_1, R3R33R1R_3\to R_3-3R_1:

[131100075210074301]\left[\begin{array}{ccc|ccc}1&3&1&1&0&0\\0&-7&5&-2&1&0\\0&-7&-4&-3&0&1\end{array}\right]

R3R3R2R_3\to R_3-R_2:

[131100075210009111]\left[\begin{array}{ccc|ccc}1&3&1&1&0&0\\0&-7&5&-2&1&0\\0&0&-9&-1&-1&1\end{array}\right]

R217R2R_2\to -\tfrac{1}{7}R_2, R319R3R_3\to -\tfrac{1}{9}R_3:

[131100015/72/71/700011/91/91/9]\left[\begin{array}{ccc|ccc}1&3&1&1&0&0\\0&1&-5/7&2/7&-1/7&0\\0&0&1&1/9&1/9&-1/9\end{array}\right]

R2R2+57R3R_2\to R_2+\tfrac{5}{7}R_3: new R2=(0,1,02/7+5/63,1/7+5/63,5/63)=(0,1,023/63,4/63,5/63)R_2 = (0,1,0\,|\,2/7+5/63,\,-1/7+5/63,\,-5/63) = (0,1,0\,|\,23/63,\,-4/63,\,-5/63).

R1R1R3R_1\to R_1-R_3 then R1R13R2R_1\to R_1-3R_2:

So

  A1=163[135222345777].  \boxed{\;A^{-1}=\frac{1}{63}\begin{bmatrix}-13 & 5 & 22\\ 23 & -4 & -5\\ 7 & 7 & -7\end{bmatrix}.\;}

(Sanity: detA=63\det A=63 by cofactor expansion along row 1 — 1(114)3(221)+1(4+3)=13+69+7=631(1-14)-3(-2-21)+1(4+3)=-13+69+7=63 ✓.)

Step 2 — Solve Ax=(10,21,4)TA\mathbf{x}=(10,21,4)^{T}

x=A1 ⁣(10214)=163 ⁣(130+105+88230842070+14728)=163 ⁣(63126189)=(123).\mathbf{x}=A^{-1}\!\begin{pmatrix}10\\21\\4\end{pmatrix}=\frac{1}{63}\!\begin{pmatrix}-130+105+88\\230-84-20\\70+147-28\end{pmatrix}=\frac{1}{63}\!\begin{pmatrix}63\\126\\189\end{pmatrix}=\begin{pmatrix}1\\2\\3\end{pmatrix}.

Answer

  x=1,  y=2,  z=3.  \boxed{\;x=1,\;y=2,\;z=3.\;}

We've mapped all 13 years of this exam. Get new solutions, tools, and guides as we release them — free.