Math 782 Homework 2: Singular Value Decomposition and QR Factorization, Slides of Voice

Homework problems related to singular value decomposition (svd) and qr factorization in linear algebra. The problems involve finding svds by hand, showing properties of orthogonally similar matrices, and computing reduced svds and qr factorizations using matlab. Students are required to turn in printouts of their m-files and numerical results for problems involving matlab.

Typology: Slides

2019/2020

Uploaded on 06/17/2020

eklavya
eklavya 🇺🇸

4.5

(23)

266 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Math 782, HW 2, Due Wednesday, Feb. 21
For problems involving MATLAB, turn in printouts of your m-files and obtained numerical
results.
Problem 1. Find, by hand, a SVD of A="1 1
1 1 #.
Problem 2. Two matrices A, B Rm×mare said to be orthogonally similar if A=QBQT
for some orthogonal QRm×m.
(a) Show that if A, B Rm×mare orthogonally similar, then they have the same singular
values.
(b) Show by an example that the converse of (a) is not true. Hint: Use A, B R1×1.
Problem 3. Assume that ARm×mis nonsingular. Show that all singular values σjof A
are positive and that kA1k2= 1m.
Problem 4. Use an appropriate built-in function of MATLAB to compute a reduced (econ-
omy size) SVD of
A=
1 2 3 4
5 6 7 8
9 10 11 12
1 1 1 1
3 2 1 0
.
Using this SVD determine: Rank of A,kAk2, orthonormal bases for Range of Aand Null of
A.
Problem 5. Assume ARm×n,mn, and let A=ˆ
Qˆ
Rbe a reduced QR factorization of
A. Show that Rank of A=nif and only if all the diagonal entries of ˆ
Rare nonzero.
Problem 6. Assume ARm×n,mn, Rank of A=n, and let A=ˆ
Qˆ
Rbe a reduced QR
factorization of A. Show that the columns of ˆ
Qform an orthonormal basis for the Range of
A.
Problem 7. Write two MATLAB functions [Q, R] =clgs(A) and [Q, R] =mgs(A) that, for a
given ARm×nwith mnand Rank A=n, compute reduced QR factorizations A=ˆ
Qˆ
R
using classical and modified Gram-Schmidt processes, respectively (cf. Algorithms 7.1 and
8.1 in the text). Test your functions on the matrix
A=
111
0 0
00
0 0
, = 104,106,108,
by comparing ˆ
Qˆ
Rto A. Assess “orthonormality” of the columns of ˆ
Qby computing ˆ
QTˆ
Q.
Draw conclusions about which of the two Gram-Schmidt processes is numerically better.
(Use the long format of MATLAB to display your results.)

Partial preview of the text

Download Math 782 Homework 2: Singular Value Decomposition and QR Factorization and more Slides Voice in PDF only on Docsity!

Math 782, HW 2, Due Wednesday, Feb. 21

For problems involving MATLAB, turn in printouts of your m-files and obtained numerical

results.

Problem 1. Find, by hand, a SVD of A =

[

]

Problem 2. Two matrices A, B ∈ R

m×m

are said to be orthogonally similar if A = QBQ

T

for some orthogonal Q ∈ R

m×m .

(a) Show that if A, B ∈ R

m×m

are orthogonally similar, then they have the same singular

values.

(b) Show by an example that the converse of (a) is not true. Hint: Use A, B ∈ R

1 × 1 .

Problem 3. Assume that A ∈ R

m×m is nonsingular. Show that all singular values σ j

of A

are positive and that ‖A

− 1 ‖ 2

= 1/σ m

Problem 4. Use an appropriate built-in function of MATLAB to compute a reduced (econ-

omy size) SVD of

A =

       

       

Using this SVD determine: Rank of A, ‖A‖ 2

, orthonormal bases for Range of A and Null of

A.

Problem 5. Assume A ∈ R

m×n

, m ≥ n, and let A =

Q

R be a reduced QR factorization of

A. Show that Rank of A = n if and only if all the diagonal entries of

R are nonzero.

Problem 6. Assume A ∈ R

m×n

, m ≥ n, Rank of A = n, and let A =

Q

R be a reduced QR

factorization of A. Show that the columns of

Q form an orthonormal basis for the Range of

A.

Problem 7. Write two MATLAB functions [Q, R] =clgs(A) and [Q, R] =mgs(A) that, for a

given A ∈ R

m×n with m ≥ n and Rank A = n, compute reduced QR factorizations A =

Q

R

using classical and modified Gram-Schmidt processes, respectively (cf. Algorithms 7.1 and

8.1 in the text). Test your functions on the matrix

A =

− 4

, 10

− 6

, 10

− 8

,

by comparing

Q

R to A. Assess “orthonormality” of the columns of

Q by computing

Q

T ˆ

Q.

Draw conclusions about which of the two Gram-Schmidt processes is numerically better.

(Use the long format of MATLAB to display your results.)