0% found this document useful (0 votes)
33 views10 pages

LU Fetorization (L7)

Uploaded by

shahzad akram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views10 pages

LU Fetorization (L7)

Uploaded by

shahzad akram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

LU DECOMPOSITION

In linear algebra, LU Decomposition, i.e., lower

upper (LU) decomposition or factorization of a matrix, can be defined as the product

of a lower and an upper triangular matrices. This product sometimes comprises a

permutation matrix as well. We can relate the LU decomposition method with the matrix

form of the Gaussian elimination method of solving a system of linear equations. In this

article, you will learn the LU Decomposition method and the solved example in detailed

steps.

LU Decomposition Method or Factorisation


Consider the system of equations in three variables:

a11x1 + a12x2 + a13x3 = b1

a21x1 + a22x2 + a23x3 = b2

a31x1 + a32x2 + a33x3 = b3

These can be written in the form of AX = B as:

Now follow the steps given below to solve the above system of linear
equations by LU Decomposition method.

Step 1: Generate a matrix A = LU such that L is the lower triangular


matrix with principal diagonal elements being equal to 1 and U is the
upper triangular matrix.
That means,

Step 2: Now, we can write AX = B as:

LUX = B….(1)

Step 3: Let us assume UX = Y….(2)

Step 4: From equations (1) and (2), we have;

LY = B

On solving this equation, we get y1, y2, y3.

Step 5: Substituting Y in equation (2), we get UX = Y

By solving equation, we get X, x1, x2, x3.

The above process is also called the Method of Triangularisation.

LU Decomposition Example

Let’s understand how to solve the system of linear equations in three variables by LU
Decomposition method with the help of an solved example given below.

Example:

Solve the system of equations x1 + x2 + x3 = 1, 3x1 + x2 – 3x3 = 5 and x1 – 2x2 – 5x3 = 10


by LU decomposition method.

Solution:
Given system of equations are:

x1 + x2 + x3 = 1

3x1 + x2 – 3x3 = 5

x1 – 2x2 – 5x3 = 10

These equations are written in the form of AX = B as:

u11 = 1, u12 = 1, u13 = 1

l21u11 = 3,

l21u12 + u22 = 1,

u21u13 + u23 = -3

l31u11 = 1,

l31u12 + l32u22 = -2,

l31u13 + l32u23 + u33 = -5

Solving these equations, we get;

u22 = -2, u23 = -6, u33 = 3

l21 = 3, l31 = 1, l32 = 3/2

Step 2: LUX = B
Step 3: Let UX = Y

Step 4: From the previous two steps, we have LY = B

Thus,

So,

y1 = 1

3y1 + y2 = 5

y1 + (3/2)y2 + y3 = 10

Solving these equations, we get;

y1 = 1, y2 = 2, y3 = 6

Step 5: Now, consider UX = Y. So,

By expanding this equation, we get;

x1 + x 2 + x 3 = 1

-2x2 – 6x3 = 2

3x3 = 6

Solving these equations, we can get;

x3 = 2, x2 = -7 and x1 = 6

Therefore, the solution of the given system of equations is (6, -7, 2).

DOOLITTLE METHOD;
LU Decomposition Method Practice Problems
1. Solve the following equations by LU decomposition method.
6x1 + 18x2 + 3x3 = 3, 2x1 + 12x2 + x3 = 19, 4x1 + 15x2 + 3x3 = 0

2. Solve the below given system of equations by LU decomposition.


x + y + z = 1, 4x + 3y – z = 6, 3x + 5y + 3z = 4
3. Find the solution of the system of equations by LU decomposition.
x + 2y + 3z = 9, 4x + 5y + 6z = 24, 3x + y – 2z = 4

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy