Question #46676

Solve the system equations
4 5x − 2y + z =
6 7x + y − 5z =
10 3x + 7y + 4z =
using LU decomposition method.

Expert's answer

Answer on Question #46676 – Math – Algorithms | Quantitative Methods

Solve the system of equations using LU decomposition method.


5x2y+z=47x+y5z=63x+7y+4z=10\begin{array}{l} 5x - 2y + z = 4 \\ 7x + y - 5z = 6 \\ 3x + 7y + 4z = 10 \\ \end{array}


**Solution:**

Suppose we have the system of equations


AX=BAX = B


The motivation for an LU decomposition is based on the observation that systems of equations involving triangular coefficient matrices are easier to deal with. Indeed, the whole point of Gaussian Elimination is to replace the coefficient matrix with one that is triangular. The LU decomposition is another approach designed to exploit triangular systems.

We suppose that we can write


A=LUA = LU


Where LL is a lower triangular matrix and UU is an upper triangular matrix. Our aim is to find LL and UU and once we have done so we have found an LU decomposition of AA. So we can note the rule for this method of solution the system of equations.

An LU decomposition of a matrix AA is the product of a lower triangular matrix and an upper triangular matrix that is equal to AA.

Based on the above information we solve system of equations by using the decomposition method.

Convert the equations into AX=BAX = B matrix form.


[521715374][xyz]=[4610]\left[ \begin{array}{ccc} 5 & -2 & 1 \\ 7 & 1 & -5 \\ 3 & 7 & 4 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{c} 4 \\ 6 \\ 10 \end{array} \right]


Then we find the determinant of a matrix AA.


detA=521715374=20+30+49(175)(56)3=327\det A = \begin{vmatrix} 5 & -2 & 1 \\ 7 & 1 & -5 \\ 3 & 7 & 4 \end{vmatrix} = 20 + 30 + 49 - (-175) - (-56) - 3 = 327


We keep transforming AA until lower-zero-leading form is derived.


[521715374]=>[521(7(7))(1(145))(5(75))(3(3))(7(65))(435)]=>[52101953250415175]\left[ \begin{array}{ccc} 5 & -2 & 1 \\ 7 & 1 & -5 \\ 3 & 7 & 4 \end{array} \right] => \left[ \begin{array}{ccc} 5 & -2 & 1 \\ (7 - (7)) & (1 - \left(- \frac{14}{5}\right)) & (-5 - \left(\frac{7}{5}\right)) \\ (3 - (3)) & (7 - \left(- \frac{6}{5}\right)) & (4 - \frac{3}{5}) \end{array} \right] => \left[ \begin{array}{ccc} 5 & -2 & 1 \\ 0 & \frac{19}{5} & -\frac{32}{5} \\ 0 & \frac{41}{5} & \frac{17}{5} \end{array} \right]


Now we consider the following matrix.


[52101953250415175]=>[52101953250(415415)(175(131295)]=>[52101953250032719]\left[ \begin{array}{ccc} 5 & -2 & 1 \\ 0 & \frac{19}{5} & -\frac{32}{5} \\ 0 & \frac{41}{5} & \frac{17}{5} \end{array} \right] => \left[ \begin{array}{ccc} 5 & -2 & 1 \\ 0 & \frac{19}{5} & -\frac{32}{5} \\ 0 & (\frac{41}{5} - \frac{41}{5}) & (\frac{17}{5} - (-\frac{1312}{95}) \end{array} \right] => \left[ \begin{array}{ccc} 5 & -2 & 1 \\ 0 & \frac{19}{5} & -\frac{32}{5} \\ 0 & 0 & \frac{327}{19} \end{array} \right]


The resulting matrix is the upper triangular matrix UU. Lower triangular matrix LL will built from an identity matrix complemented with multipliers.


A=LU=[521715374]=[10075103541191][52101953250032719]A = L U = \left[ \begin{array}{ccc} 5 & -2 & 1 \\ 7 & 1 & -5 \\ 3 & 7 & 4 \end{array} \right] = \left[ \begin{array}{ccc} 1 & 0 & 0 \\ \frac{7}{5} & 1 & 0 \\ \frac{3}{5} & \frac{41}{19} & 1 \end{array} \right] \left[ \begin{array}{ccc} 5 & -2 & 1 \\ 0 & \frac{19}{5} & -\frac{32}{5} \\ 0 & 0 & \frac{327}{19} \end{array} \right]


Now we solve LY=BLY = B for YY.


[10075103541191][y0y1y2]=[4610]\left[ \begin{array}{ccc} 1 & 0 & 0 \\ \frac{7}{5} & 1 & 0 \\ \frac{3}{5} & \frac{41}{19} & 1 \end{array} \right] \left[ \begin{array}{c} y_0 \\ y_1 \\ y_2 \end{array} \right] = \left[ \begin{array}{c} 4 \\ 6 \\ 10 \end{array} \right][1000103541191][y0y1y2]=>[42510]\left[ \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ \frac{3}{5} & \frac{41}{19} & 1 \end{array} \right] \left[ \begin{array}{c} y_0 \\ y_1 \\ y_2 \end{array} \right] => \left[ \begin{array}{c} 4 \\ \frac{2}{5} \\ 10 \end{array} \right][100010041191][y0y1y2]=>[425385]\left[ \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & \frac{41}{19} & 1 \end{array} \right] \left[ \begin{array}{c} y_0 \\ y_1 \\ y_2 \end{array} \right] => \left[ \begin{array}{c} 4 \\ \frac{2}{5} \\ \frac{38}{5} \end{array} \right][100010001][y0y1y2]=>[42512819]\left[ \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right] \left[ \begin{array}{c} y_0 \\ y_1 \\ y_2 \end{array} \right] => \left[ \begin{array}{c} 4 \\ \frac{2}{5} \\ \frac{128}{19} \end{array} \right]


Then we solve UX=YUX = Y for XX.


[52101953250032719][xyz]=[42512819]\left[ \begin{array}{ccc} 5 & -2 & 1 \\ 0 & \frac{19}{5} & -\frac{32}{5} \\ 0 & 0 & \frac{327}{19} \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{c} 4 \\ \frac{2}{5} \\ \frac{128}{19} \end{array} \right][5210195325001][xyz]=[425128327]\left[ \begin{array}{ccc} 5 & -2 & 1 \\ 0 & \frac{19}{5} & -\frac{32}{5} \\ 0 & 0 & 1 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{c} 4 \\ \frac{2}{5} \\ \frac{128}{327} \end{array} \right][521010001][xyz]=[4250327128327]\left[ \begin{array}{ccc} 5 & -2 & 1 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{c} 4 \\ \frac{250}{327} \\ \frac{128}{327} \end{array} \right][100010001][xyz]=[112109250327128327]\left[ \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{c} \frac{112}{109} \\ \frac{250}{327} \\ \frac{128}{327} \end{array} \right]


Finally we represent the solution set


x=1121091.027523x = \frac{112}{109} \approx 1.027523y=2503270.764526y = \frac{250}{327} \approx 0.764526z=1283270.391437z = \frac{128}{327} \approx 0.391437


www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS