Professional Documents
Culture Documents
Definition. A Matrix Is Upper-Triangular If - 0 0 0 - 0 0 - . - . 0 - . - .
Definition. A Matrix Is Upper-Triangular If - 0 0 0 - 0 0 - . - . 0 - . - .
Definition. A Matrix Is Upper-Triangular If - 0 0 0 - 0 0 - . - . 0 - . - .
a11
0
0
Algorithm.
a 22
0
0
a n 1,n
a nn
a1n
a2n
.
.
.
0 0 a n 1,n 1
0 0
0
Backward Substitution.
bk
Note: The k-loop body performs x k =
j = k +1
a kk
kj
xj
.
Algorithm.
Notes:
1) Step k eliminates column k below the main diagonal, working on rows
i = k+1, k+2, , n.
a
2) The i-loop performs ROW # i = ROW # i ik ROW # k , modifying columns
a kk
j = k+1, k+2, , n and then the right hand side.
3) smallest i?? This just says to select the very first non-zero column k entry you come
upon, first looking at row k, then row k+1 if necessary, then row k+2, etc.
Summary: To solve Ax = b ,
1) Apply the Gaussian Elimination algorithm to convert to an upper-triangular system.
2) Do the backward substitution algorithm on the upper-triangular part of A .