← 2022 Paper 2

UPSC 2022 Maths Optional Paper 2 Q5b — Step-by-Step Solution

10 marks · Section B

Gaussian Elimination · Numerical Analysis · Read the full method →

Question

Solve by Gauss elimination: 2x+2y+4z=182x+2y+4z=18, x+3y+2z=13x+3y+2z=13, 3x+y+3z=143x+y+3z=14.

Technique

Standard Gauss elimination with normalization (divide by leading coefficient) at each step.

Solution

Step 1 — Augmented matrix

(224181321331314).\left(\begin{array}{ccc|c}2 & 2 & 4 & 18\\ 1 & 3 & 2 & 13\\ 3 & 1 & 3 & 14\end{array}\right).

Step 2 — Forward elimination

R1R1/2R_1\to R_1/2:

(11291321331314).\left(\begin{array}{ccc|c}1 & 1 & 2 & 9\\ 1 & 3 & 2 & 13\\ 3 & 1 & 3 & 14\end{array}\right).

R2R2R1R_2\to R_2-R_1, R3R33R1R_3\to R_3-3R_1:

(1129020402313).\left(\begin{array}{ccc|c}1 & 1 & 2 & 9\\ 0 & 2 & 0 & 4\\ 0 & -2 & -3 & -13\end{array}\right).

R2R2/2R_2\to R_2/2:

(1129010202313).\left(\begin{array}{ccc|c}1 & 1 & 2 & 9\\ 0 & 1 & 0 & 2\\ 0 & -2 & -3 & -13\end{array}\right).

R3R3+2R2R_3\to R_3+2R_2:

(112901020039).\left(\begin{array}{ccc|c}1 & 1 & 2 & 9\\ 0 & 1 & 0 & 2\\ 0 & 0 & -3 & -9\end{array}\right).

R3R3/(3)R_3\to R_3/(-3):

(112901020013).\left(\begin{array}{ccc|c}1 & 1 & 2 & 9\\ 0 & 1 & 0 & 2\\ 0 & 0 & 1 & 3\end{array}\right).

Step 3 — Back substitution

z=3z=3. From row 2: y=2y=2. From row 1: x+y+2z=9x=926=1x+y+2z=9\Rightarrow x=9-2-6=1.

Answer

  x=1,  y=2,  z=3.  \boxed{\;x=1,\;y=2,\;z=3.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.