



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Theoretical Assignment 5 Solution
Chapter 5
(a) Show that an elementary lower triangular matrix of type k defined by (5.1) has the form
k = I + me
T
k
where m = (0, 0 ,... , 0 , m k+1,k ,... , m n,k
T .
(b) Show that the inverse of M k in (a) is given by
− 1
k
= I − me
T
k
(c) Show that the elementary matrix M defined by (5.2) is such that M a, where a =
(a 11 , a 21 ,... , a n 1
T , is a multiple of e 1
-Solution-
(a)
First consider me
T
k
. Since it is an outer product, me
T
k
is an n × n matrix. Then we have
me
T
k
0
m k+1,k
mn,k
0 0 · · · m k+1,k
0 0 · · · m n,k
Therefore, M k = I + me
T
k
is an elementary lower triangular matrix of type k defined as (5.1).
(b)
Consider
k
− 1
k
= (I + me
T
k
)(I − me
T
k
= I − me
T
k
T
k
− (me
T
k
2 = I − (me
T
k
2 · · · (∗).
Now look at (me
T
k
2 .
(me
T
k
0 0 · · · mk+1,k 0 · · · 0
0 0 · · · mn,k 0 · · · 0
0 0 · · · mk+1,k 0 · · · 0
0 0 · · · mn,k 0 · · · 0
For k + 1 ≤ i ≤ n, the inner product of the ith row of (me
T
k
) and the kth column of (me
T
k
is zero, that is, me
T
k
(i, :)me
T
k
(:, k) = 0. Therefore, (me
T
k
2 is a zero matrix.
From (∗), we have M k
− 1
k
= I − (me
T
k
2 = I. Therefore, M
− 1
k
is the inverse of M k
(c)
The elementary matrix M defined by (5.2), that is,
1 0 · · · · · · · · · 0
−a 21
a 11
−a 21
a 11
Now consider M a.
M a =
1 0 · · · · · · · · · 0
−a 21
a 11
−a 21
a 11
−an 1
a 11
a 11
a 21
a 31
a n 1
a 11
= a 11 e 1
Therefore, M a is a multiple of e 1
(a)
Given
(
)
Using three-digit arithmetic, find an elementray matrix M such that M a is a multiple of e 1
(b)
Using your computation in (a), find the LU factorization of
(
)
(c)
Let
̂ L and
̂ U be the computed L and U in part (b).
Find
(i)
∥ ∥ ∥A −
̂ L
̂ U
∥ ∥ ∥
F
F
(ii)
∥ ∥ ∥̂L
∥ ∥ ∥
F
∥ ∥ ∥̂U
∥ ∥ ∥
F
F
-Solution-
(a)
Using Lemma 5.2 in five digit arithmetic, we can have the elementray matrix;
(
)
where (M n− 1
n− 2
2
1
− 1 is a unit lower triangular matrix and A
(n−1) is an upper
triangular matrix. Then we can rewrite (∗) as
−m 21
−m 31 −m 32
−mn 1 −mn 2 · · · −mn,n− 1 1
a 11 a 12 · · · · · · · · · a 1 n
0 a
(1)
22
· · · · · · · · · a
(1)
2 n
0 0 a
(2)
33 · · · · · · a
(2)
3 n
0 0 0 · · · 0 a
(n−1)
nn
So, we have
[
k
12
21
22
]
[
k
21
22
] [
k
12
22
]
[
k
k
k
12
21
k
21
12
22
22
]
where Ak Lk, and Uk are k × k leading principal submartix of matrices, A L, and U , re-
spectively. Then we have det(A) = det(L k
k ) = det(L k )det(U ( k)). Since L k is a unit lower
triangular matrix, det(L k ) = 1, we have
det(A k ) = det(L k )det(U k
= det
a 11 a 12 · · · · · · a 1 k
0 a
(1)
22 · · · · · · a
(1)
2 k
0 0 a
(2)
33
· · · a
(2)
3 k
0 0 0 · · · a
(k−1)
kk
= a 11 a
(1)
22 a
(2)
33 · · · a
(k−1)
kk
for k = 1, 2 ,... , n − 1.
Asuuming that LU factorization of A exists, prove that
(a) (LDU factorization) A can be written in the form
1
where D is diagonal and L and U 1 are unit lower and upper triangular matrices, respectively.
(b) (LDL
T factorization) If A is symmetric, the
T .
(c) Using (b), prove that if A is symmetric and positve definite, then
T
where H is a lower triangular matrix with positive diagonal entries. This is known as the
Cholesky decompositon.
-Solution-
(a)
Since A can be written as A = LU , we can write
− 1 U.
Now look at the structure of a matrix D
− 1 U. Keep in mind that the diagonal entries of L
are ones.
− 1 U
d 11
0 d 22
0 · · · · · · d nn
1
d 11
1
d 22
1
dnn
u 11 u 12 · · · u 1 n
0 u 22 ∗ u 2 n
0 · · · · · · u nn
Choosing u ii = d ii for i = 1, 2 ,... , n, we have
− 1 U
u 11
0 u 22
0 · · · · · · u nn
1
u 11
1
u 22
1
unn
u 11 u 12 · · · u 1 n
0 u 22 ∗ u 2 n
0 · · · · · · u nn
u 11
0 u 22 0
0 · · · · · · u nn
1 u 12 · · · u 1 n
0 1 ∗ u 2 n
Therefore, D
− 1 U is a unit upper triangular matrix.
This show that A can be written in the form A = LDU 1.
(b)
From (a), a matrix A can be written as A = LDU 1
T = (LDU 1
T = U
T
1
T
. However,
a matrix A is symmetri, that is, A
T = A. Therefore, LDU 1
T
1
T
. It implies that
T
1
. By replacing U 1 by L
T , we have A = LDL
T .
(c)
Let d ii be the diagonal entries of a diagonal matrix D. Since A is a symmetric positive
definite, dii > 0 for i = 1, 2 ,... , n. Then D can be expressed as D = D
1 2 D
1 2
. From (b), we
have
T = LD
1
2 D
1
2 L
T
1 2
(
1 2
) T
Letting H = LD
1 (^2) , we have A = HH
T .
Prove that the matrix L in the factorization P A = LU , obtained by using Gaussian elimi-
nation with partial and complete pivoting, respectfively, is unit lower triangular.
-Solution-
Repeating the same procedure until the matrix A is rediced tp am upper triangular
matrix U , that is, (m − 1) steps, and letting u ij is an entry of U , we will have
|uij | ≤ 2 max
i,j
∣ ∣ ∣a
(m−2)
ij
∣ ∣ ∣ ≤ 2 max
i,j
∣ ∣ ∣a
m− 1
ij
∣ ∣ ∣ ≤ · · · ≤ 2 max
i,j
|aij |.
Therefore, we have |uij | ≤ 2
m− 1 maxi,j |aij |. This implies
ρ =
max i,j |u i,j
maxi,j |ai,j |
m− 1 max i,j |a i,j
maxi,j |ai,j |
m− 1 .
(b)