Docsity

Numerical Analysis - Problem Set 1 | CAAM 453, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
CAAM 453 ·NUMERICAL ANALYSIS I
Problem Set 1
Posted Wednesday 29 August 2007. Due Friday 7 September 2007.
1. [15 points]
Recall that λis an eigenvalue of Aif there exists some vector v6=0such that Av =λv.
Let ρ(A) denote the spectral radius of A, i.e.,
ρ(A) = max{|λ|:λis an eigenvalue of A}.
Show that for any induced matrix norm, kAk ≥ ρ(A) for all A∈
C
n×n.
[Trefethen & Bau, exercise 3.2]
2. [10 points]
Suppose D∈
C
n×nis zero everywhere except for the main diagonal, D= diag(d1, . . . , dn). Show that
kDkp= maxj|dj|for all p≥1, where kDkprefers to the matrix norm induced by the vector p-norm
kxkp=n
X
j=1 |xj|p1/p.
3. [20 points] Let x∈
C
nand A∈
C
m×n. Prove the following relationships between the 1- and 2-vector
norms, and the matrix norms they induce. In each case, demonstrate a vector or matrix for which
equality is satisfied.
(a) kxk2≤ kxk1.
(b) kxk1≤√nkxk2.
(c) kAk1≤√mkAk2.
(d) kAk2≤√nkAk1.
4. [15 points]
Consider the vector x= (2,3/2)T.
(a) Compute a vector vsuch that the Householder reflector H(v) yields
H(v)x=kxk2
0.
(b) Compute H(v)∗H(v) for this particular vto verify that H(v) is unitary.
(c) Construct the orthogonal projector Ponto span{v}.
(d) Produce a precise drawing (or plot) showing span{v}, span{v}⊥,x,Px, (I−P)x, and H(v)x.
Be sure to label your illustration clearly.
continued. . .
pf3
pf4

Partial preview of the text

Download Numerical Analysis - Problem Set 1 | CAAM 453 and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

CAAM 453 · NUMERICAL ANALYSIS I

Problem Set 1

Posted Wednesday 29 August 2007. Due Friday 7 September 2007.

  1. [15 points]

Recall that λ is an eigenvalue of A if there exists some vector v 6 = 0 such that Av = λv.

Let ρ(A) denote the spectral radius of A, i.e.,

ρ(A) = max{|λ| : λ is an eigenvalue of A}.

Show that for any induced matrix norm, ‖A‖ ≥ ρ(A) for all A ∈ C n×n .

[Trefethen & Bau, exercise 3.2]

  1. [10 points]

Suppose D ∈ C

n×n is zero everywhere except for the main diagonal, D = diag(d 1 ,... , dn). Show that

‖D‖p = maxj |dj | for all p ≥ 1, where ‖D‖p refers to the matrix norm induced by the vector p-norm

‖x‖p =

( (^) ∑n

j=

|xj |

p

) 1 /p

.

  1. [20 points] Let x ∈ C

n and A ∈ C

m×n

. Prove the following relationships between the 1- and 2-vector

norms, and the matrix norms they induce. In each case, demonstrate a vector or matrix for which

equality is satisfied.

(a) ‖x‖ 2 ≤ ‖x‖ 1.

(b) ‖x‖ 1 ≤

n ‖x‖ 2.

(c) ‖A‖ 1 ≤

m ‖A‖ 2.

(d) ‖A‖ 2 ≤

n ‖A‖ 1.

  1. [15 points]

Consider the vector x = (2, 3 /2) T .

(a) Compute a vector v such that the Householder reflector H(v) yields

H(v)x =

[

‖x‖ 2

0

]

(b) Compute H(v)

∗ H(v) for this particular v to verify that H(v) is unitary.

(c) Construct the orthogonal projector P onto span{v}.

(d) Produce a precise drawing (or plot) showing span{v}, span{v}

⊥ , x, Px, (I − P)x, and H(v)x.

Be sure to label your illustration clearly.

continued...

  1. [40 points]

For a dense matrix A ∈ R

m×n , the standard technique for computing the QR decomposition uses

Householder reflectors. An alternative approach reduces A to upper-triangular form using Givens

rotations. A Givens rotation is a unitary matrix whose entries are zero except as specified:

G(j, k, θ) =

cos θ sin θ

1 . . .

− sin θ cos θ

1 . . .

column k

column j

← row k

← row j

(a) Prove that the 2 × 2 Givens rotation

G(1, 2 , θ) =

[

cos θ sin θ

− sin θ cos θ

]

is a unitary matrix for any θ.

(b) Show how to pick θ such that

[

cos θ sin θ

− sin θ cos θ

] [

α

β

]

[ √

α 2

  • β 2

]

(c) Design an algorithm for computing the QR factorization A = QR using Givens rotations, rather

than Householder transformations. In particular, describe the order in which the lower triangular

entries of A (that is, the entries in positions (j, k) for j > k) should be eliminated, and those

Givens rotations that should be used to achieve this elimination. How many total rotations are

necessary? What is the matrix Q?

(d) Write a MATLAB function

function [Q,R] = givens_qr(A)

that constructs the matrices Q and R for A ∈ C

m×n using the algorithm you describe in part (c).

Demonstrate that your routine works by reporting norm(Q*R-A)/norm(A) for A = randn(10,5).

continued...

algorithm by comparing norm(eye(n)-Q’*Q) for the standard classical Gram–Schmidt method and

your new algorithm. A good family of test matrices, proposed by Pete Stewart, can be constructed

via: [U,X] = qr(randn(m,n),0); [V,X] = qr(randn(n)); S = diag(10.^[1:n]); A = USV.

[For further details, see W. Hoffmann, “Iterative Algorithms for Gram–Schmidt Orthogonalization,”

Computing 41 (1989) 335–348.]

S3. Projectors play an essential role in spectral theory, that is, the study of eigenvalues, eigenvectors,

and related objects. Suppose A ∈ C

n×n has distinct eigenvalues λ 1 ,... , λn with associated right

eigenvectors x 1 ,... , xn and left eigenvectors y 1 ,... , yn (i.e., Axj = λj xj and y ∗ j A = λ j y ∗ j ). Then the

spectral projector associated with λj is defined as

Pj =

x j y

∗ j

y

∗ j xj

(a) Compute the spectral projectors for the matrix

A =

− 1 0 α

0 0 0

0 0 1

for arbitrary constant α. Under what circumstances are these projectors orthogonal?

(b) Verify that P 1 + P 2 + P 3 = I and Pj Pk = 0 when j 6 = k. (These properties hold in general for

spectral projectors.)

(c) How do the norms of the spectral projectors associated with the eigenvalues λ = −1 and λ = 1

relate to the angle between the right eigenvectors associated with these eigenvalues as α → ∞?

(d) Confirm this alternative definition of the spectral projector:

Pj =

2 πi

Γj

(zI − A)

− 1 dz,

where Γj is a Jordan curve containing λj in its interior and all other eigenvalues in its exterior.

S3. Let P ∈ C

n×n be any (not necessarily orthogonal) projector with 1 ≤ rank P < n.

Prove that ‖P‖ 2 = ‖I − P‖ 2.

Hint. This handy theorem has been repeatedly discovered over the years, as described in a very

interesting recent survey by Daniel Szyld. Here is an outline of the simplest proof that Szyld provides.

  • Explain why one can reduce the problem to proving that ‖Pz‖ 2 ≤ ‖I − P‖ 2 for all ‖z‖ 2 = 1.

To prove this fact, take any z ∈ C n with ‖z‖ 2 = 1, and define x = Pz and y = (I − P)z.

  • Explain why ‖Pz‖ 2 ≤ ‖I − P‖ 2 if x = 0 or y = 0. (Show that ‖I − P‖ 2 ≥ 1.)

If x and y are both nonzero, then define

̂ x =

‖y‖ 2

‖x‖ 2

x, ̂y =

‖x‖ 2

‖y‖ 2

y, w = ̂x + ̂y.

  • Show ‖w‖ 2 = ‖z‖ 2.
  • Explain why ‖Pz‖ 2 = ‖(I − P)w‖ 2 ≤ ‖I − P‖ 2.