Linear Systems Linear Systems
Gaussian Elimination
CSE 541 Roger Crawfis
Solving Linear Systems g y
Transform Ax = b into an equivalent but Transform Ax
b into an equivalent but simpler system.
Multiply on the left by a nonsingular Multiply on the left by a nonsingular
matrix: MAx = Mb:
1 1 1 1
( ) MA Mb A M Mb A b
− − − −
Mathematically equivalent but may
1 1 1 1
( ) x MA Mb A M Mb A b = = =
Mathematically equivalent, but may
change rounding errors
Gaussian Elimination
Finding inverses of matrices is expensive Finding inverses of matrices is expensive Inverses are not necessary to solve a
linear system linear system.
Some system are much easier to solve:
Diagonal matrices Triangular matrices
Gaussian Elimination transforms the
problem into a triangular system p g y
Gaussian Elimination
- Consists of 2 steps
- Consists of 2 steps
1.
Forward Elimination of Unknowns.
1 5 25 ⎤ ⎡ ⎤ ⎡ 1 5 25 56 . 1 8 . 4 1 5 25 ⎥ ⎥ ⎤ ⎢ ⎢ ⎡ − − → ⎥ ⎥ ⎥ ⎤ ⎢ ⎢ ⎢ ⎡ 1 8 64 1 5 25
B k S b tit ti
7 . ⎥ ⎥ ⎦ ⎢ ⎢ ⎣ ⎥ ⎦ ⎢ ⎣ 1 12 144
2.