CSC212 ยท 2081 ยท 5 marks
Solve the following system of linear equations using Gauss-Jordan elimination method:
Solve the following system of linear equations using Gauss-Jordan elimination method:
$$ \begin{aligned} x + 2y - 3z &= 4 \ 2x + 4y - 6z &= 8 \ x - 2y + 5z &= 4 \end{aligned} $$
[5]
Gauss-Jordan Elimination Method
Given Data
System of equations: $$x + 2y - 3z = 4 \quad \cdots (1)$$ $$2x + 4y - 6z = 8 \quad \cdots (2)$$ $$x - 2y + 5z = 4 \quad \cdots (3)$$
Step 1: Augmented Matrix
$$[A|b] = \begin{bmatrix} 1 & 2 & -3 & | & 4 \ 2 & 4 & -6 & | & 8 \ 1 & -2 & 5 & | & 4 \end{bmatrix}$$
Step 2: Eliminate column 1 below pivot
$R_2 \to R_2 - 2R_1$: $[0,\ 0,\ 0,\ |\ 0]$
$R_3 \to R_3 - R_1$: $[0,\ -4,\ 8,\ |\ 0]$
$$\begin{bmatrix} 1 & 2 & -3 & | & 4 \ 0 & 0 & 0 & | & 0 \ 0 & -4 & 8 & | & 0 \end{bmatrix}$$
Step 3: Swap $R_2 \leftrightarrow R_3$
$$\begin{bmatrix} 1 & 2 & -3 & | & 4 \ 0 & -4 & 8 & | & 0 \ 0 & 0 & 0 & | & 0 \end{bmatrix}$$
Step 4: Normalize Row 2 ($R_2 \to R_2 / (-4)$)
$$\begin{bmatrix} 1 & 2 & -3 & | & 4 \ 0 & 1 & -2 & | & 0 \ 0 & 0 & 0 & | & 0 \end{bmatrix}$$
Step 5: Eliminate column 2 above pivot ($R_1 \to R_1 - 2R_2$)
$R_1: [1,\ 0,\ 1,\ |\ 4]$
$$\begin{bmatrix} 1 & 0 & 1 & | & 4 \ 0 & 1 & -2 & | & 0 \ 0 & 0 & 0 & | & 0 \end{bmatrix}$$
Step 6: Interpretation
Row 3 gives $0 = 0$, which is consistent. Rank of coefficient matrix $= 2 <$ number of unknowns $= 3$, so there are infinitely many solutions.
Let $z = t$ (free parameter, $t \in \mathbb{R}$).
From Row 2: $y - 2t = 0 \implies y = 2t$
From Row 1: $x + t = 4 \implies x = 4 - t$
Verification with equation (3): $x - 2y + 5z = (4-t) - 2(2t) + 5t = 4 - t - 4t + 5t = 4$ โ
Final Answer
$$x = 4 - t, \quad y = 2t, \quad z = t, \quad t \in \mathbb{R}$$
The system has infinitely many solutions since equation (2) $= 2 \times$ equation (1), reducing to two independent equations in three unknowns.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.