Gauss Jordan Method
Gauss Jordan Method
2 x1 3 x2 5
or inconsistent: 4 x1 6 x2 10
2 x1 3 x2 5
4 x1 6 x2 11
Gauss-Jordan Elimination
Fundamental operations:
1. Replace one equation with linear combination
of other equations
2. Interchange two equations
3. Re-label two variables
Combine to reduce to trivial system
Simplest variant only uses #1 operations,
but get better stability by adding
#2 (partial pivoting) or #2 and #3 (full pivoting)
Gauss-Jordan Elimination
Solve:
2 x1 3 x2 7
4 x1 5 x2 13
Only care about numbers – form “tableau” or
“augmented matrix”:
2 3 7
4 5 13
Gauss-Jordan Elimination
Given:
2 3 7
4 5 13
Goal: reduce this to trivial system
1 0 ?
0 1 ?
1 3
2
7 2
4 5 13
Gauss-Jordan Elimination
1 3
2
7 2
4 5 13
Replace row2 with row2 – 4 * row1
1 3
2
7
2
Negate row2 0 1 1
1 3
2
7 2
0 1 1
Gauss-Jordan Elimination
1 3
2
7 2
0 1 1
Replace row1 with row1 – 3/2 * row2
1 0 2
0 1 1
1 0 0 1
0 1 0 3
0 0 1 5
This matrix (on the right) has a solution but
is not as clear what the solution is. What we 1 2 3 7
can conclude about the solution, (x, y, z), is
that the components x, y, and z must obey 0 0 0 0
the equation x + 2y + 3z = 7. 0 0 0 0
0.001 1 2
2 3 8
Partial Pivoting
0 1 2
2 3 8
Swap rows 1 and 2:
2 3 8
Now continue: 0 1 2
1 3
2 4 1 0 1
0 1 2 0 1 2
Full Pivoting
0 1 2
2 3 8
1 2
3
8
3
0 23 3
2
1 0 2
0 1 1