Sunteți pe pagina 1din 2

AMERICAN JOURNAL OF SCIENTIFIC AND INDUSTRIAL RESEARCH

© 2015,Science Huβ, http://www.scihub.org/AJSIR


ISSN: 2153-649X, doi:10.5251/ajsir.2015.6.2.23.24

The Solution of a System of Linear Equations by an Improved


LU-Decomposition Method
M. Rafique
HITEC University, Taxila, Pakistan
(mrdhillon@hitecuni.edu.pk, mrdhillon@yahoo.com)
ABSTRACT

In many engineering and physical problems we come across systems of linear equations, Ax = b,
comprising n linear equations in n unknowns x 1, x2, …,xn, where A = [aij] is an nxn coefficient
T T
matrix, and x = [x1 x2 . . .xn], b = [b1 b2 . . .bn] are the column vectors. The solutions of these
equations have many facets which help us in many regards. These solutions become
tremendously difficult if a linear system has a large number of equations containing a sizeable
number of unknowns. However, the use of computers for the purpose eases the task
considerably. LU-decomposition of the coefficient matrix of a system of equations is a plausible
means to find the solution of such a system, where L = [lij] is a lower triangular matrix and U = [uij]
is an upper triangular matrix. In this paper we present an efficient method for LU-decomposition
2
of the coefficient matrix, which requires evaluation of only (n – 1) number of unknown elements
of the L and U matrices. In contrast, the other methods available in the literature require us to find
2
n unknown terms of the L and U matrices. Thus, the computational time and effort required for
the purpose are substantially reduced.

INTRODUCTION which involve LU-decomposition of an nxn matrix A is


There are numerous analytical and numerical of the form A = LU, as,
methods for the solution of a linear system, Ax = b,
including Gauss elimination method, and its
modifications namely Doolittle’s and Crout's methods,

Improved LU-Decomposition Method: We consider


It may be seen that for this kind of decomposition, for a linear system of n equations in n unknowns, Ax = b.
an nxn order coefficient matrix A, it is required to This system is transcribed in such a way that the
2
evaluate n unknown elements lij, and uij of the L and pivot equation is made to have the pivot element as
U matrices respectively. In view of this unity, i.e., a11 = 1. For this purpose, if required, we
decomposition, the linear system of equations Ax = b may interchange some equations or select a suitable
becomes LUx = b. This equation may be written as, equation and divide it throughout by the coefficient of
Ly = b, where, Ux = y. First, we solve the former x1 for the needful. The main considerations for the
equation for y by forward substitution and then solve decomposition of the coefficient matrix A, as A = LU,
the latter for x by backward substitution. Accordingly, are as under:
we obtain the solution to the given system of linear (i) The first column of the matrix L = [lij] is
equations. kept the same as that of matrix A, i.e.,
li1 = ai1, for all i.
Am. J. Sci. Ind. Res., 2015, 6(2): 23-24

(ii) The first row of the matrix U= [uij] is also Accordingly, we decompose the coefficient matrix
kept the same as that of the matrix A, i.e., A = LU as,
u1j = a1j, for all j.

(iii) The diagonal elements of the matrix L=


[lij] are kept as unity, i.e., lii = 1 for all i.

Here we see that for an nxn order coefficient matrix CONCLUSION


2
A, it is required to evaluate only (n–1) unknown
elements lij, and uij of the L and U matrices The solution of a system of linear equations by
respectively. It may be appreciated that by following means of LU-decomposition of the coefficient matrix
the above mentioned scheme of LU-decomposition, is a useful method that can be employed
the computational effort is substantially reduced. As analytically as well as numerically. It may be seen
described above, after having carried out the above that for an nxn coefficient matrix, the Doolittle's, and
2
mentioned decomposition, we solve Ly = b for y, Crout's methods require evaluation of a total of n
followed by Ux = y for x, to get the required elements of the L and U matrices. However, only (n
2
solution to the given system of equations. Here we –1) elements of these matrices are required to be
discuss an example to illustrate the above evaluated by the method discussed in this paper.
mentioned method. This has become possible because our method
permits to keep the first column of the matrix L and
Solution of a System of Five Equations in Five the first row of the matrix U, the same as the
Unknowns: We consider the following system of corresponding column/ row of the coefficient matrix
equations, A. This difference becomes significant for systems
2x1 + 3x2 + 4x3 + 5x4 + 2x5 = 4 of large number of linear equations. As such, a
3x1 – x2 + x3 – 2x4 + x5 = 9 considerable amount of computational time and
4x1 + x2 + 2x3 + x4 – x5 = 5 (5.1) efforts can be saved by employing the method
5x1 – 2x2 + x3 + 2x4 + x5 = 8 presented in this paper.
2x1 + x2 – x3 + x4 + x5 = –1
REFERENCES
Decomposing the coefficient matrix we obtain
2
(n–1) =16 unknown elements of the U and L [1] B. Faires, Numerical Analysis, PWS Pub., Boston,
matrices as: u22 = –5.5, u23 = –5, u24 = –9.5, u25 =–2, 1993.
u33 = –1.45, u34 = –0.36, u35 = –3.18, u44 = 6, [2] G.Dahlquist and A. Bjorck: Numerical Methods,
u45 = 0.25, u55 = 6.68, l32 = 0.91, l42 = 1.73, Prentice-Hall, Englewood Cliffs, N.J, 1974.
l43 = 0.25, l52 = 0.36, l53 = 2.19, l54 = 0.042. Next, [3] G.H.Golub and C.F.Van Loan, Matrix Computations,
solving Ly = b, we obtain, John Hopkins, Baltimore, 1989.
T
[4] R.S. Varga, Matrix Iterative Analysis, Prentice Hall,
y = [2, 3, –5.73, –5.75, 6.68] , Englewood Cliffs N.J., 1962.
[5] S.C.Chapra and R.P.Canale, Numerical Methods for
and then solving Ux = y, we get the solution to
Engineers, Mc-Graw-Hill, New York,1990.
above system of linear equations as,
T
x = [1, –1, 2. –1, 1]
Following the same modus operandi as
discussed above we can solve a linear system
comprising any number of equations.

S-ar putea să vă placă și