Professional Documents
Culture Documents
Gauss-Jordan Elimination
mustafaaggul@hacettepe.edu.tr
Example
Consider the following linear system:
x1 + 2x2 − 3x3 − x4 = 0,
−3x2 + 2x3 + 6x4 = −8,
−3x1 − x2 + 3x3 + x4 = 0,
2x1 + 3x2 + 2x3 − x4 = −8.
Example
We first write the system of linear equations as an augmented matrix
1 2 −3 −1 0
h i 0 −3 2 6 −8
b = .
A
−3 −1 3 1 0
2 3 2 −1 −8
Example
We first write the system of linear equations as an augmented matrix
1 2 −3 −1 0 1 2 −3 −1 0
0 −3 −8
2 6 R3 +3R1 0 −3 2 6 −8
−R
4
−−−−−→ −−−→
−3 −1 3 1 0 R4 −2R1 0
5 −6 −2 0 R2 ↔R4
−−−−−→ −−−−−→
2 3 2 −1 −8 0 −1 8 1 −8
Example
We first write the system of linear equations as an augmented matrix
1 2 −3 −1 0 −2R2 1 0 13 1 −16
−R−1−−−→
0 1 −8 −1 8 R3 −5R2
0 1 −8 −1 8 1 R3
−−−−−→ −34
−−→
0 5 −6 −2 0 R4 +3R2
0 0 34 3 −40 1 R
− 22 4
−−−−−→ −−−−−→
0 −3 2 6 −8 0 0 −22 3 16
Example
We first write the system of linear equations as an augmented matrix
5
1 0 13 1 −16 1 0 0 − 34 − 12
−R−1−−13R
−−−→ 3
17
5
0 1 −8 −1 8 R2 +8R3
0 1 0 − 17 − 24
17
−−−−−→
3 20 3
0 0 1 34
− 17 R4 −R3 0 0 1 34
− 20
17
−187
R4
−−−−−→ −−42
−−−→
3 8 42 84
0 0 1 − 22 − 11 0 0 0 − 187 187
Example
We first write the system of linear equations as an augmented matrix
5
1 0 0 − 34 − 12
17 R1 + 5 R4 1 0 0 0 −1
−−−−34−−→
5
0 1 0
− 17 − 24
17
5 R
R2 + 17 4
0 1 0 0 −2
3
−−−−−−→
0 0 1
34
− 20
17
3 R
R3 − 34
0 0 1 0 −1
4
−−−−−−→
0 0 0 1 −2 0 0 0 1 −2
Example
Using back substitution, the solution to the system can be found:
x4 = −2,
x3 = −1,
x2 = −2,
x1 = −1.