Docsity

5 Solved Problems on Numerical Linear Algebra - Assignment 5 | MATH 434, Study notes of Linear Algebra

Toggle sidebar
bg1
MATH 434/534
Theoretical Assignment 5 Solution
Chapter 5
5.1
(a) Show that an elementary lower triangular matrix of type kdefined by (5.1) has the form
Mk=I+meT
k
where m= (0,0,...,0, mk+1,k, . . . , mn,k )T.
(b) Show that the inverse of Mkin (a) is given by
M−1
k=I−meT
k.
(c) Show that the elementary matrix Mdefined by (5.2) is such that Ma, where a=
(a11, a21, . . . , an1)T, is a multiple of e1.
-Solution-
(a)
First consider meT
k. Since it is an outer product, meT
kis an n×nmatrix. Then we have
meT
k=
0
.
.
.
mk+1,k
.
.
.
mn,k
(0,...,1,0,...,0)
=
0 0 · · · · · · 0· · · 0
0 0 · · · · · · 0· · · 0
.
.
..
.
..
.
..
.
..
.
.· · · .
.
.
0 0 · · · mk+1,k 0· · · 0
.
.
..
.
..
.
..
.
..
.
.· · · .
.
.
0 0 · · · mn,k 0· · · 0
Therefore, Mk=I+meT
kis an elementary lower triangular matrix of type kdefined as (5.1).
(b)
Consider
MkM−1
k= (I+meT
k)(I−meT
k)
=I−meT
k+meT
k−(meT
k)2=I−(meT
k)2· · · (∗).
Now look at (meT
k)2.
(meT
k)2=
0 0 · · · · · · 0· · · 0
0 0 · · · · · · 0· · · 0
.
.
..
.
..
.
..
.
..
.
.· · · .
.
.
0 0 · · · mk+1,k 0· · · 0
.
.
..
.
..
.
..
.
..
.
.· · · .
.
.
0 0 · · · mn,k 0· · · 0
0 0 · · · · · · 0· · · 0
0 0 · · · · · · 0· · · 0
.
.
..
.
..
.
..
.
..
.
.· · · .
.
.
0 0 · · · mk+1,k 0· · · 0
.
.
..
.
..
.
..
.
..
.
.· · · .
.
.
0 0 · · · mn,k 0· · · 0
pf3
pf4
pf5

Partial preview of the text

Download 5 Solved Problems on Numerical Linear Algebra - Assignment 5 | MATH 434 and more Study notes Linear Algebra in PDF only on Docsity!

MATH 434/

Theoretical Assignment 5 Solution

Chapter 5

(a) Show that an elementary lower triangular matrix of type k defined by (5.1) has the form

M

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

M

− 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

M

k

M

− 1

k

= (I + me

T

k

)(I − me

T

k

= I − me

T

k

  • me

T

k

− (me

T

k

2 = I − (me

T

k

2 · · · (∗).

Now look at (me

T

k

2 .

(me

T

k

2

      

   

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

M

− 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,

M =

            

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

A =

(

)

(c)

Let

̂ L and

̂ U be the computed L and U in part (b).

Find

(i)

∥ ∥ ∥A −

̂ L

̂ U

∥ ∥ ∥

F

‖A‖

F

(ii)

∥ ∥ ∥̂L

∥ ∥ ∥

F

∥ ∥ ∥̂U

∥ ∥ ∥

F

‖A‖

F

-Solution-

(a)

Using Lemma 5.2 in five digit arithmetic, we can have the elementray matrix;

(

)

where (M n− 1

M

n− 2

· · · M

2

M

1

− 1 is a unit lower triangular matrix and A

(n−1) is an upper

triangular matrix. Then we can rewrite (∗) as

A =

            

−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

[

A

k

A

12

A

21

A

22

]

[

L

k

L

21

L

22

] [

U

k

U

12

0 U

22

]

[

L

k

U

k

L

k

U

12

L

21

U

k

L

21

U

12

+ L

22

U

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

U

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

A = LDU

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

A = LDL

T .

(c) Using (b), prove that if A is symmetric and positve definite, then

A = HH

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

A = LU = LDD

− 1 U.

Now look at the structure of a matrix D

− 1 U. Keep in mind that the diagonal entries of L

are ones.

A = LDD

− 1 U

= L

     

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

A = LDD

− 1 U

= L

     

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

     

= L

     

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

. A

T = (LDU 1

T = U

T

1

DL

T

. However,

a matrix A is symmetri, that is, A

T = A. Therefore, LDU 1

= U

T

1

DL

T

. It implies that

L = U

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

A = LDL

T = LD

1

2 D

1

2 L

T

= LD

1 2

(

LD

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)