UTeM BMFR Google Search Engine
Part2 - How do I decompose a non-singular matrix [A], that is, how do I find A=LU?
Posted by BMFRGuru at 7:50 PMExample 2
Use LU decomposition method to solve the following simultaneous linear equations.
Recall that
and if
then first solving
and then
gives the solution vector .
Now in the previous example
First solve
to give
z1 = 106.8
2.56z1 +z2 = 177.2
5.76 z1 + 3.5 z2 + z3 = 279.2
Forward substitution starting from the first equation gives
z1 =106.8
z2 = 177.2 – 2.56 z1
= 177.2 – 2.56 (106.8)
= -96.21
z3 = 279.2 – 5.76 z1 – 3.5z2
= 279.2 – 5.76(106.8) – 3.5(-96.21)
= 0.735
Hence
This matrix is same as the right hand side obtained at the end of the forward elimination steps of Naïve Gauss elimination method. Is this a coincidence?
Now solve
From the third equation
Substituting the value of a3 in the second equation
Substituting the value ofin the first equation
The solution vector is