Professional Documents
Culture Documents
MA 214 Lecture 6
MA 214 Lecture 6
Methods)
Now eliminate the x1 variable from the second and third equations of
the system
(1) (1) (1) (1)
a11 x1 + a12 x2 + a13 x3 = b1
(1) (1) (1) (1)
a21 x1 + a22 x2 + a23 x3 = b2
(1) (1) (1) (1)
a31 x1 + a32 x2 + a33 x3 = b3 .
Now eliminate the x1 variable from the second and third equations of
the system
(1) (1) (1) (1)
a11 x1 + a12 x2 + a13 x3 = b1
(1) (1) (1) (1)
a21 x1 + a22 x2 + a23 x3 = b2
(1) (1) (1) (1)
a31 x1 + a32 x2 + a33 x3 = b3 .
( )
Ax = b ⇒ L Ux = b.
( )
Ax = b ⇒ L Ux = b.
Use forward substitution for
Lz = b.
( )
Ax = b ⇒ L Ux = b.
Use forward substitution for
Lz = b.
Ux = z.
and
and
1 0 0
L = m21 1 0 .
m31 m32 1
and
1 0 0
L = m21 1 0 .
m31 m32 1
Check! A = LU.
MA 214 - NA Spring 2023-24 19 / 39
LU Factorization (contd.)
Is LU factorization UNIQUE?
Is LU factorization UNIQUE?
Is LU factorization UNIQUE?
A = LU
Is LU factorization UNIQUE?
A = LU = (LD)(D−1 U) = L̃Ũ.
1 Doolittle’s factorization
1 Doolittle’s factorization
2 Crout’s factorization
1 Doolittle’s factorization
2 Crout’s factorization
3 Cholesky’s factorization
A = LU.
A = LU.
Theorem
Let A be an invertible n × n matrix such that all of its n − 1 leading
principal minors are non-zero. Then A has an LU-decomposition where L
is a unit lower triangular matrix and U is an upper triangular matrix.
That is, A has a Doolittle’s factorization.
MA 214 - NA Spring 2023-24 22 / 39
LU Factorization: Doolittle’s factorization
Write A = LU as
a11 a12 a13 1 0 0 u11 u12 u13
a21 a22 a23 = l21 1 0 0 u22 u23
a31 a32 a33 l31 l32 1 0 0 u33
Write A = LU as
a11 a12 a13 1 0 0 u11 u12 u13
a21 a22 a23 = l21 1 0 0 u22 u23
a31 a32 a33 l31 l32 1 0 0 u33
The right hand matrix multiplication yields
a11 = u11 , a12 = u12 , a13 = u13 ,
a21 = l21 u11 , a31 = l31 u11 .
Write A = LU as
a11 a12 a13 1 0 0 u11 u12 u13
a21 a22 a23 = l21 1 0 0 u22 u23
a31 a32 a33 l31 l32 1 0 0 u33
The right hand matrix multiplication yields
a11 = u11 , a12 = u12 , a13 = u13 ,
a21 = l21 u11 , a31 = l31 u11 .
These gives first column of L and the first row of U.
MA 214 - NA Spring 2023-24 25 / 39
LU Factorization: Doolittle’s factorization (contd.)
a11 a12 a13 1 0 0 u11 u12 u13
a21 a22 a23 = l21 1 0 0 u22 u23
a31 a32 a33 l31 l32 1 0 0 u33
a11 a12 a13 1 0 0 u11 u12 u13
a21 a22 a23 = l21 1 0 0 u22 u23
a31 a32 a33 l31 l32 1 0 0 u33
a11 a12 a13 1 0 0 u11 u12 u13
a21 a22 a23 = l21 1 0 0 u22 u23
a31 a32 a33 l31 l32 1 0 0 u33
a11 a12 a13 1 0 0 u11 u12 u13
a21 a22 a23 = l21 1 0 0 u22 u23
a31 a32 a33 l31 l32 1 0 0 u33
These equations yield values for l32 and u33 , completing the construction
of L and U.
a11 a12 a13 1 0 0 u11 u12 u13
a21 a22 a23 = l21 1 0 0 u22 u23
a31 a32 a33 l31 l32 1 0 0 u33
These equations yield values for l32 and u33 , completing the construction
of L and U.
In this process, we must have u11 ̸= 0, u22 ̸= 0 in order to solve for L.
MA 214 - NA Spring 2023-24 27 / 39
LU Factorization: Doolittle’s factorization (contd.)
Example:
Consider the matrix A given by
1 1 −1
1 2 −2 .
−2 1 1
Further, taking b = (1, 1, 1)T . Keeping the vector z = (1, 0, 3)T as the
right hand side, we now solve the upper triangular system
1 1 −1 x1 1
0 1 −1 x2 = 0
0 0 2 x3 3
Further, taking b = (1, 1, 1)T . Keeping the vector z = (1, 0, 3)T as the
right hand side, we now solve the upper triangular system
1 1 −1 x1 1
0 1 −1 x2 = 0
0 0 2 x3 3
Backward substitution yields x1 = 1, x2 = 3/2, x3 = 3/2.
MA 214 - NA Spring 2023-24 31 / 39
LU Factorization: Crout’s factorization
A = LU.
A = LU.
For invertible matrices, one can easily obtain Doolittle’s factorization
from Crout’s factorization and vice versa.
MA 214 - NA Spring 2023-24 32 / 39
—————————————————————————–
A = LLT .
A = LLT .
Before we prove theorem on Cholesky’s factorization, we recall the
concept of a positive definite matrix.
A = LLT .
Before we prove theorem on Cholesky’s factorization, we recall the
concept of a positive definite matrix.
Definition (Positive Definite Matrix)
A symmetric matrix A is said to be positive definite if
⇒ Lk l = a
⇒ Lk l = a
A forward substitution yields the vector l. (Lk is invertible !?)
MA 214 - NA Spring 2023-24 37 / 39
LU Factorization: Cholesky’s factorization (contd.)
Finally, we have
lT l + l(k+1)(k+1)
2
= a(k+1)(k+1)
and this gives
2
l(k+1)(k+1) = a(k+1)(k+1) − lT l,
Noting that l2(k+1)(k+1) is positive and taking square root, we are done.