M Equations in N Unknowns: 1.2 Gaussian Elimination P. Danziger
M Equations in N Unknowns: 1.2 Gaussian Elimination P. Danziger
Danziger
m Equations in n Unknowns
a 1 x1 + a 2 x2 + . . . + a n xn = b
represents an n − 1 dimensional object in n-space,
called a hyperplane.
1
1.2 Gaussian Elimination P. Danziger
2
1.2 Gaussian Elimination P. Danziger
The system is
x + 2y = −3
y = 1
x + y = 0
5
1.2 Gaussian Elimination P. Danziger
Example 2
x + 2y = −3 1 2 −3
y = 1 0 1 1
x + y = 0 1 1 0
6
1.2 Gaussian Elimination P. Danziger
1.
1 1 3 3 1 1 3 3
R2 → R2 − 2R1
2 2 3 3 −→ 0 0 −3 −3
R3 → R3 − R1
1 1 1 1 0 0 −2 −2
2.
1 1 3 3 2 2 3 3
2 2 3 3 R1 ↔ R2 −→ 1 1 3 3
1 1 1 1 1 1 1 1
3.
1 1 3 3 2 2 3 3
2 2 3 3 R2 → 2R2 −→ 4 4 6 6
1 1 1 1 1 1 1 1
9
1.2 Gaussian Elimination P. Danziger
Example 5
1 1 3 0 1 3 3
0 1 1 0 0 0 1
0 0 1 0 0 0 0
! 1 2
1 1 0
0 1
0 0 1
0 0
1 indicates a pivot.
1 1 0 1 1 3 3
0 1 1 0 0 0 0
0 1 1 0 0 1 1
! 1 2
1 1 3
0 0
3 0 1
0 1
10
1.2 Gaussian Elimination P. Danziger
1 0 0 0 1 3 0
0 1 0 0 0 0 1
0 0 1 0 0 0 0
! 1 0
1 2 0
0 1
0 0 1
0 0
1 indicates a pivot. All of the 0’s in these
examples are forced.
1 0 2 0 1 3 0
0 1 0 0 0 0 1
0 0 1 0 0 0 1
! 1 2
1 2 3
0 1
0 0 1
0 0
11
1.2 Gaussian Elimination P. Danziger
The Gaussian-Jordan
Algorithm
13
1.2 Gaussian Elimination P. Danziger
Gaussian Elimination
To Solve a system of equations we preform the
following steps:
0 2 1 6
1 2 1 3
0 1 1 2 R3 → R3 − 2R2
0 2 1 6
1 2 1 3
0 1 1 2
0 0 1 −2
x1 + 2x2 + x3 = 3 (1)
x 2 + x3 = 2 (2)
x3 = −2 (3)
From (3) x3 = −2,
From (2) x2 = 2 − x3 = 2 − (−2) = 4 and
From (1) x1 = 3−2x2 −x3 = 3−2(4)−(−2) = −3.
15
1.2 Gaussian Elimination P. Danziger
Gaussian-Jordan
16
1.2 Gaussian Elimination P. Danziger
1 1 3 3
R2 → R2 − 2R1
2 2 3 3
R3 → R3 − R1
1 1 1 1
1 1 3 3
0 0 −3 −3 R2 → − 1
3 R2
0 0 −2 −2
1 1 3 3
0 0 1 1 R3 → R3 + 2R2
0 0 −2 −2
1 1 3 3
0 0 1 1 R1 → R1 − 3R2
0 0 0 0
1 1 0 0
0 0 1 1
0 0 0 0
19
1.2 Gaussian Elimination P. Danziger
Gauss Elimination
20
1.2 Gaussian Elimination P. Danziger
Gauss-Jordan
Let s, t, r ∈ R.
Let x2 = s, x4 = t, x5 = r.
Then the matrix implies: x6 = 3 1
x3 = −2t
x1 = −3x2 − 4x4 − 2x5 = −3s − 4t − 2r.
Thus the final solution is
1 ).
(x1, x2, x3, x4, x5, x6) = (−3s − 4t − 2r, s, −2t, t, r, 3
22