Gauss Elimination
Gauss Elimination
Gauss-Elimination Method
1.1 Algorithm
𝑥+𝑦+𝑧 =9
2𝑥 − 3𝑦 + 4𝑧 = 13
3𝑥 + 4𝑦 + 5𝑧 = 40
Solun. We have
𝑥+𝑦+𝑧 =9 … (i)
2𝑥 − 3𝑦 + 4𝑧 = 13 …. (ii)
3𝑥 + 4𝑦 + 5𝑧 = 40 … (iii)
() ()
Step 1. To Eliminate x from (ii) and (iii) operating (ii) – and (iii) – we get
𝑥+𝑦+𝑧 =9 … (iv)
−5𝑦 + 2𝑧 = −5 … (v)
𝑦 + 2𝑧 = 13 … (vi)
( )
Step 2. To Eliminate y from (vi) operating (vi) + we get
𝑥+𝑦+𝑧 =9 … (vii)
−5𝑦 + 2𝑧 = −5 … (viii)
2 + 𝑧 = 13 − 1 … (ix)
𝑥+𝑦+𝑧 =6
𝑧=2
−𝑦 + 𝑧 = 1
Here the pivot in the second equation is zero and so we cannot proceed as usual. We interchange
2nd and 3rd equations before the 2nd step
Step 2.
𝑥+𝑦+𝑧 =6
−𝑦 + 𝑧 = 1
𝑧=2
On back substitution, we get the solution 𝑧 = 2, 𝑦 = 1 𝑎𝑛𝑑 𝑥 = 3