Docsity

6 Problems on Numerical Analysis II - Assignment 5 | MATH 782, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Math 782, HW 5, Due Monday, April 16
For problems involving MATLAB, turn in printouts of your m-files and obtained numerical results. Use
format long e of MATLAB to display your results.
Problem 1. Show that if a nonsingular A∈Rm×mhas a LU factorization, that is, A=LU, where
Lis unit lower triangular and Uis upper triangular, then such factorization is unique. Hint: Consider
L1U1=L2U2which implies U1U−1
2=L−1
1L2.
Problem 2. Let A(k)= (a(k)
ij )m
i,j=1,k= 1, . . . , m, be matrices resulting, in the exact arithmetic, from
GEPP applied to A∈Rm×m(A(1) =A). Show that if Ais nonsingular, then for each k= 1, . . . , m, at
least one of the coefficients
a(k)
ik , i =k, . . . , m,
is different from zero. Hint: Try to prove it by contradiction. (Remark: Note that the problem implies
that GEPP does not fail on a nonsingular matrix in the exact arithmetic. More precisely, the problem
shows that for a nonsingular Athere is always a matrix P, which is a product of permutation matrices,
such that P A has a LU factorization.)
Problem 3. A matrix B∈Rn×nis said to be strictly column diagonally dominant (scdd) if
|bjj |>
n
X
i=1,i6=j
|bij|, j = 1, . . . , n.
(a) Show that, in the exact arithmetic, GE without pivoting preserves scdd property, that is, show that
if GE without pivoting is applied to a scdd A∈Rm×m, then for each k= 1, . . . , m, the subblock of
A(k)obtained by deleting from A(k)the first k−1 rows and the first k−1 columns is also scdd. Hint:
Use induction on kand consider step kfor obtaining A(k+1) from A(k). Also you may want to use the
inequalities |α±β| ≤ |α|+|β|,|α|−|β| ≤ |α−β|that hold for any α, β ∈R.
(b) Show that, in the exact arithmetic, GE without pivoting will never fail when apllied to a scdd A∈Rm×m
and that |lik|<1 for all k= 1, . . . , m −1 and all i=k+ 1, . . . , m.
Problem 4. Use Matlab “pascal” to generate A= the 12 ×12 Pascal matrix. For ~x = [1,...,1]T
compute ~
bin the system A~x =~
b. Argue that Aand ~
bare a floating point matrix and a floating point
vector, respectively. Solve A~x =~
busing Matlab “[L,U,P]=lu(A)” and your functions for forward and back
substitutions. Compute the relative error k˜x−~xk2/k~xk2, where ˜xis the computed solution. Using Matlab
“eps” and “cond” compare this error with the theoretical bound uκ2(A) derived in class.
Problem 5. Consider
A~x =~
bwith A=A1A2,(1)
where A1, A2∈Rm×mare given nonsingular floating point matrices and ~
b∈Rmis a given floating point
vector. Suppose that solution of (1) is obtained by solving
A1~y =~
band A2~x =~y. (2)
Assume that the systems in (2) are solved using a backward stable method, that is, the computed ˜yand
computed ˜xsatisfy
(A1+δA1)˜y=~
b, (A2+δA2)˜x= ˜y,
where kδAik ≤ c(m)ukAik,i= 1,2, c(m) depends mildly on m(e.g., c(m) = m), uis the unit roundoff,
and k·k is some induced matrix norm. Determine condition on kA1kkA2kunder which the described
method of solving (1) can be viewed as being backward stable.
Problem 6. Assume that A∈Rm×mis symmetric and positive definite.
(a) Show that if X∈Rm×mis nonsingular, then XTAX is symmetric and positive definite.
(b) Show that any principal submatrix of Ais symmetric and positive definite. (A principal submatrix of
Ais the matrix A(j:k, j :k), where 1 ≤j≤k≤m.)

Partial preview of the text

Download 6 Problems on Numerical Analysis II - Assignment 5 | MATH 782 and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Math 782, HW 5, Due Monday, April 16

For problems involving MATLAB, turn in printouts of your m-files and obtained numerical results. Use format long e of MATLAB to display your results.

Problem 1. Show that if a nonsingular A ∈ Rm×m^ has a LU factorization, that is, A = LU , where L is unit lower triangular and U is upper triangular, then such factorization is unique. Hint: Consider L 1 U 1 = L 2 U 2 which implies U 1 U 2 − 1 = L− 1 1 L 2.

Problem 2. Let A(k)^ = (a( ijk ))mi,j=1, k = 1,... , m, be matrices resulting, in the exact arithmetic, from

GEPP applied to A ∈ Rm×m^ (A(1)^ = A). Show that if A is nonsingular, then for each k = 1,... , m, at least one of the coefficients a( ikk) , i = k,... , m,

is different from zero. Hint: Try to prove it by contradiction. (Remark: Note that the problem implies that GEPP does not fail on a nonsingular matrix in the exact arithmetic. More precisely, the problem shows that for a nonsingular A there is always a matrix P , which is a product of permutation matrices, such that P A has a LU factorization.)

Problem 3. A matrix B ∈ Rn×n^ is said to be strictly column diagonally dominant (scdd) if

|bjj | >

∑^ n

i=1,i 6 =j

|bij |, j = 1,... , n.

(a) Show that, in the exact arithmetic, GE without pivoting preserves scdd property, that is, show that if GE without pivoting is applied to a scdd A ∈ Rm×m, then for each k = 1,... , m, the subblock of A(k)^ obtained by deleting from A(k)^ the first k − 1 rows and the first k − 1 columns is also scdd. Hint: Use induction on k and consider step k for obtaining A(k+1)^ from A(k). Also you may want to use the inequalities |α ± β| ≤ |α| + |β|, |α| − |β| ≤ |α − β| that hold for any α, β ∈ R. (b) Show that, in the exact arithmetic, GE without pivoting will never fail when apllied to a scdd A ∈ Rm×m and that |lik| < 1 for all k = 1,... , m − 1 and all i = k + 1,... , m.

Problem 4. Use Matlab “pascal” to generate A = the 12 × 12 Pascal matrix. For ~x = [1,... , 1]T compute ~b in the system A~x = ~b. Argue that A and ~b are a floating point matrix and a floating point vector, respectively. Solve A~x = ~b using Matlab “[L,U,P]=lu(A)” and your functions for forward and back substitutions. Compute the relative error ‖x˜ − ~x‖ 2 /‖~x‖ 2 , where ˜x is the computed solution. Using Matlab “eps” and “cond” compare this error with the theoretical bound uκ 2 (A) derived in class.

Problem 5. Consider A~x = ~b with A = A 1 A 2 , (1)

where A 1 , A 2 ∈ Rm×m^ are given nonsingular floating point matrices and ~b ∈ Rm^ is a given floating point vector. Suppose that solution of (1) is obtained by solving

A 1 ~y = ~b and A 2 ~x = ~y. (2)

Assume that the systems in (2) are solved using a backward stable method, that is, the computed ˜y and computed ˜x satisfy (A 1 + δA 1 )˜y = ~b, (A 2 + δA 2 )˜x = ˜y,

where ‖δAi‖ ≤ c(m)u‖Ai‖, i = 1, 2, c(m) depends mildly on m (e.g., c(m) = m), u is the unit roundoff, and ‖ · ‖ is some induced matrix norm. Determine condition on ‖A 1 ‖‖A 2 ‖ under which the described method of solving (1) can be viewed as being backward stable.

Problem 6. Assume that A ∈ Rm×m^ is symmetric and positive definite. (a) Show that if X ∈ Rm×m^ is nonsingular, then XT^ AX is symmetric and positive definite. (b) Show that any principal submatrix of A is symmetric and positive definite. (A principal submatrix of A is the matrix A(j : k, j : k), where 1 ≤ j ≤ k ≤ m.)