Docsity

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

Toggle sidebar
bg1
Math 782, HW 6, Due Monday, April 30
Problem 1. The characteristic polynomial of A∈Rm×mis defined by pA(z) =det(zI −A), z∈C. Show
that
pA(z) = zm+am−1zm−1+am−2zm−2+. . . +a1z+a0, z ∈C,
where am−1=−trAand aj∈R,j= 0, . . . , m −2. (Remark: Note that this problem shows that pA(z) is
a polynomial of degree mwith the coefficient of zmequal to 1 and the coefficient of zm−1equal to −trA.)
Problem 2. Assume that A∈Rm×m. Show the following:
(a) If λ∈Cis an eigenvalue of Aand µ∈R, then λ−µis an eigenvalue of A−µI.
(b) If Ais nonsingular and λ∈Cis an eigenvalue of A, then λ6= 0 and λ−1is an eigenvalue of A−1.
(c) If Ais diagonalizable (similar to a diagonal matrix) and all eigenvalues of Aare equal, then Ais
diagonal.
(d) Aand AThave the same eigenvalues.
(e) If λ∈Cand ~v = [v1, . . . , vm]T∈Cmis an eigenpair of A, then so is λand ~z = [v1, . . . , vm]T.
Problem 3. Use the real Schur decomposition theorem presented in class to show that if A∈Rm×mand
A=AT, then there is an orthogonal Q∈Rm×mand a diagonal D∈Rm×msuch that A=QDQT.Hint:
First show that all eigenvalues of Aare real.
Problem 4. Assume A∈Rm×m,A=AT, and that λ1, . . . , λmare eigenvalues of A. Let E∈Rm×mbe a
perturbation of A, and let λ∈Rbe an eigenvalue of A+E. Show that for at least one λj,|λ−λj| ≤ kEk2.
Hint: Use kEk2= max
~
06=~y∈RmkE~yk2/k~yk2and (A+E)~x =λ~x, where ~
06=~x ∈Rm. (Remark: Note that this
result shows that small perturbations of a real symmetric matrix lead to equally small perturbations in the
eigenvalues, that is, the problem of computing eigenvalues of a real symmetric matrix is well-conditioned
in absolute sense. The relative error in some, or all, of the eigenvalues may still be large.)
Problem 5. Use Matlab “hess” to reduce A=
513
121
243
to the orthogonally similar upper Hessenberg
matrix H. Compare the computed ˜
Hwith the exact H=
5−7/√5 1/√5
−√5 24/5 13/5
0−2/5 1/5
by computing H−˜
H.
Problem 6. Assume A∈Rm×mand A=AT. Consider step 1 in reducing Ato an orthogonally similar
tridiagonal matrix T,
1 0 ··· 0
0
.
.
.F1
0
"a11 ~xT
~x ˆ
A#
1 0 ··· 0
0
.
.
.F1
0
=
a11 ∓k~xk20··· 0
∓k~xk2
0
.
.
.B
0
,
where F1=I−γ~v1~vT
1,γ= 2/~vT
1~v1, and B=F1ˆ
AF1.
(a) Show that B=ˆ
A+~w~vT
1+~v1~wT, where ~w =~u +δ~v1,~u =−γˆ
A~v1, and δ=−(1/2)γ~vT
1~u.
(b) Using (a) explain how to perform step 1 so that the number of multiplications in this step ∼2(m−1)2.
Hint: Note that (~v1~wT)T=~w~vT
1.
(c) Use (b) to show that the number of multiplications in reducing Ato T∼(2/3)m3.
(Remark: Since the number of additions ∼(2/3)m3, this shows that the total number of flops in reducing
Ato T∼(4/3)m3.)

Partial preview of the text

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

Math 782, HW 6, Due Monday, April 30

Problem 1. The characteristic polynomial of A ∈ Rm×m^ is defined by pA(z) =det(zI − A), z ∈ C. Show that pA(z) = zm^ + am− 1 zm−^1 + am− 2 zm−^2 +... + a 1 z + a 0 , z ∈ C,

where am− 1 = −trA and aj ∈ R, j = 0,... , m − 2. (Remark: Note that this problem shows that pA(z) is a polynomial of degree m with the coefficient of zm^ equal to 1 and the coefficient of zm−^1 equal to −trA.)

Problem 2. Assume that A ∈ Rm×m. Show the following: (a) If λ ∈ C is an eigenvalue of A and μ ∈ R, then λ − μ is an eigenvalue of A − μI. (b) If A is nonsingular and λ ∈ C is an eigenvalue of A, then λ 6 = 0 and λ−^1 is an eigenvalue of A−^1. (c) If A is diagonalizable (similar to a diagonal matrix) and all eigenvalues of A are equal, then A is diagonal. (d) A and AT^ have the same eigenvalues. (e) If λ ∈ C and ~v = [v 1 ,... , vm]T^ ∈ Cm^ is an eigenpair of A, then so is λ and ~z = [v 1 ,... , vm]T^.

Problem 3. Use the real Schur decomposition theorem presented in class to show that if A ∈ Rm×m^ and A = AT^ , then there is an orthogonal Q ∈ Rm×m^ and a diagonal D ∈ Rm×m^ such that A = QDQT^. Hint: First show that all eigenvalues of A are real.

Problem 4. Assume A ∈ Rm×m, A = AT^ , and that λ 1 ,... , λm are eigenvalues of A. Let E ∈ Rm×m^ be a perturbation of A, and let λ ∈ R be an eigenvalue of A + E. Show that for at least one λj , |λ − λj | ≤ ‖E‖ 2. Hint: Use ‖E‖ 2 = max ~ 06 =~y∈Rm

‖E~y‖ 2 /‖~y‖ 2 and (A + E)~x = λ~x, where ~ 0 6 = ~x ∈ Rm. (Remark: Note that this

result shows that small perturbations of a real symmetric matrix lead to equally small perturbations in the eigenvalues, that is, the problem of computing eigenvalues of a real symmetric matrix is well-conditioned in absolute sense. The relative error in some, or all, of the eigenvalues may still be large.)

Problem 5. Use Matlab “hess” to reduce A =

 

  to the orthogonally similar upper Hessenberg

matrix H. Compare the computed H˜ with the exact H =

 

  by computing H − H˜.

Problem 6. Assume A ∈ Rm×m^ and A = AT^. Consider step 1 in reducing A to an orthogonally similar tridiagonal matrix T ,

   

. F 1

   

[ a 11 ~xT ~x Aˆ

]

   

. F 1

   

    

a 11 ∓‖~x‖ 2 0 · · · 0 ∓‖~x‖ 2 0 ..

. B 0

    

where F 1 = I − γ~v 1 ~v 1 T , γ = 2/~v 1 T ~v 1 , and B = F 1 AFˆ 1. (a) Show that B = Aˆ + wvT 1 + ~v 1 w~T^ , where w~ = ~u + δ~v 1 , ~u = −γ A~ˆv 1 , and δ = −(1/2)γ~vT 1 ~u. (b) Using (a) explain how to perform step 1 so that the number of multiplications in this step ∼ 2(m − 1)^2. Hint: Note that (~v 1 w~T^ )T^ = wvT 1. (c) Use (b) to show that the number of multiplications in reducing A to T ∼ (2/3)m^3. (Remark: Since the number of additions ∼ (2/3)m^3 , this shows that the total number of flops in reducing A to T ∼ (4/3)m^3 .)