LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE) PDF Download

Introduction

LU decomposition, named after the mathematicians Tadeusz Banachiewicz and Andrzej Walther, is a matrix decomposition method used in numerical analysis and linear algebra. It decomposes a matrix into the product of a lower triangular matrix (L) and an upper triangular matrix (U). This decomposition is particularly useful for solving systems of linear equations, matrix inversion, and determining matrix determinants efficiently.

LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)

What is LU Decomposition?

LU Decomposition expresses a given square matrix A as the product of two matrices:

  • L: A lower triangular matrix with ones on the diagonal.
  • U: An upper triangular matrix.

Mathematically, A can be written asA = LU

LU Decomposition Method

To factor any square matrix into two triangular matrices i.e., one is a lower triangular matrix and the other is an upper triangular matrix, we can use the following steps.

Given a set of linear equations, first convert them into matrix form A X = C where A is the coefficient matrix, X is the variable matrix and C is the matrix of numbers on the right-hand side of the equations.

Now, reduce the coefficient matrix A, i.e., the matrix obtained from the coefficients of variables in all the given equations such that for ‘n’ variables we have an nXn matrix, to row echelon form using Gauss Elimination Method. The matrix so obtained is U.

To find L, we have two methods. The first one is to assume the remaining elements as some artificial variables, make equations using A = L U, and solve them to find those artificial variables. The other method is that the remaining elements are the multiplier coefficients because of which the respective positions became zero in the U matrix. (This method is a little tricky to understand by words but would get clear in the example below)

Now, we have A (the nXn coefficient matrix), L (the nXn lower triangular matrix), U (the nXn upper triangular matrix), X (the nX1 matrix of variables), and C (the nX1 matrix of numbers on the right-hand side of the equations).

The given system of equations is A X = C. We substitute A = L U. Thus, we have L U X = C. We put Z = U X, where Z is a matrix or artificial variables and solve for L Z = C first and then solve for U X = Z to find X or the values of the variables, which was required.

Example of LU Decomposition

Solve the following system of equations using the LU Decomposition method

LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)

Sol: Here, we have A =
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
and
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
such that AX = C. Now, we first consider
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
and convert it to row echelon form using Gauss Elimination Method. So, by doing
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
we get
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
Now, by doing
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
We get
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
(Remember to always keep ' - ' sign in between, replace ' + 'sign by two ' - ' signs) Hence, we get L=
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
(notice that in L matrix,
l2= 4
is from (1),
l31 = 3
is from (2) and
l32 = -2
is from (3)) Now, we assume Z
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
and solve LZ=C.
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
So, we have
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
Solving, we get

z1 = 1
z2 = 2
and
z3 = 5
Now, we solve ∪X = Z
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
Therefore, we get
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
Thus, the solution to the given system of linear equations is
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)
and hence the matrix X =
LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)

Properties

  • Matrix LLL has ones on its diagonal and represents the row operations used to transform AAA into UUU.
  • Matrix UUU is upper triangular and is derived from AAA after the row operations.

Applications

  • Solving linear equations: Once decomposed, solving becomes easier using forward and backward substitution with L and U.
  • Matrix inversion: A−1 = U−1L−1 where U−1 and L−1 are the inverses of U and L, respectively.
  • Determinants: det(A) = det(L)⋅det(U).

The document LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Engineering Mathematics for Computer Science Engineering.
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
34 videos|115 docs|72 tests

Top Courses for Computer Science Engineering (CSE)

FAQs on LU Decomposition - Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)

1. What is LU Decomposition in computer science engineering?
Ans. LU Decomposition is a method used in computer science engineering to factorize a matrix into a product of a lower triangular matrix (L) and an upper triangular matrix (U).
2. What is the main purpose of using LU Decomposition in numerical analysis?
Ans. The main purpose of using LU Decomposition in numerical analysis is to simplify the process of solving systems of linear equations and to make it more computationally efficient.
3. How is LU Decomposition different from other matrix factorization methods?
Ans. LU Decomposition differs from other matrix factorization methods like Cholesky Decomposition in that it decomposes a matrix into two separate triangular matrices, which can be useful for solving systems of equations.
4. Can LU Decomposition be used for solving large systems of linear equations efficiently?
Ans. Yes, LU Decomposition can be used for solving large systems of linear equations efficiently because it allows for the reuse of the LU factorization for multiple right-hand sides.
5. What are some common applications of LU Decomposition in computer science engineering?
Ans. Some common applications of LU Decomposition in computer science engineering include solving linear systems of equations, calculating determinants, and inverting matrices.
34 videos|115 docs|72 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Summary

,

Free

,

ppt

,

study material

,

shortcuts and tricks

,

practice quizzes

,

past year papers

,

Viva Questions

,

video lectures

,

Objective type Questions

,

Extra Questions

,

pdf

,

Sample Paper

,

LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)

,

MCQs

,

Important questions

,

LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)

,

Previous Year Questions with Solutions

,

mock tests for examination

,

Semester Notes

,

LU Decomposition | Engineering Mathematics for Computer Science Engineering - Computer Science Engineering (CSE)

,

Exam

;