



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Numerical Analysis; Subject: Mathematics; University: University of California - Berkeley; Term: Spring 2005;
Typology: Assignments
1 / 6
This page cannot be seen from the preview
Don't miss anything!




Feb. 1, 2005 Jonathan Dorfman Homework 2 Solutions
First, a quick review of some facts about complex numbers:
|z| def =
x^2 + y^2 = r
|z| = ‖(x, y)‖ 2 = Euclidean length of (x, y) ∈ R^2
‖(x, y) + (X, Y )‖ 2 ≤ ‖(x, y)‖ 2 + ‖(X, Y )‖ 2
we also know |z + w| ≤ |z| + |w|
|αz| = |reiθ^ · ReiΘ| = |rRei(θ+Θ)| = Rr = |α| · |z|
Now for v = (z 1 , z 2 ,... , zn) = (x 1 + iy 1 , x 2 + iy 2 ,... , xn + iyn) ∈ Cn^ we define
‖v‖ 1 def = |z 1 | + |z 2 | + · · · + |zn| = ‖(x 1 , y 1 )‖ 2 + ‖(x 2 , y 2 )‖ 2 + · · · + ‖(xn, yn)‖ 2
We must verify that the defining properties of a norm are satisfied.
(2) ⇐⇒ xk = yk = 0
‖α·v‖ 1 def = ‖(αz 1 ,... , αzn)‖ 1 def = |αz 1 |+|αz 2 |+· · ·+|αzn|
(4) = |α||z 1 |+· · ·+|α||zn| = |α|
|z 1 |+· · ·+|zn|
) (^) def = |α|‖v‖ 1
‖v + w‖ 1 = ‖(z 1 ,... , zn) + (w 1 ,... , wn)‖ 1 = ‖(z 1 + w 1 ,... , zn + wn)‖ 1
= |z 1 + w 1 | + · · · + |zn + wn|
(3) ≤ |z 1 | + |w 1 | + · · · + |zn| + |wn| = ‖v‖ 1 + ‖w‖ 1
Finally, ‖v‖ 1 ≥ ‖v‖ 2 follows easily from the inequality
‖v‖^21 =
∑^ n
k=
|zk|^2 + 2
∑^ n
i=
∑^ n
j>i
|zi||zj | ≥
∑^ n
k=
|zk|^2 = ‖v‖^22
file function Hmwk2Main.m receives matrix A as input, calls EigenInfo, DisplayEigenInfo, FormatPoly EigenInfo.m calls Matlab functions to compute eigenvalues, eigenvectors, norms DisplayEigenInfo.m displays eigenvalues and eigenvectors in formatted text output FormatPoly.m displays polynomial in formatted output
The main functionality is contained in the EigenInfo function:
%EigenInfo.m %Math 128B Spring 2005 %Hmwk2 - Solutions (Feb. 1, 2005)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [V, eigValues, radius, charPoly] = EigenInfo(A)
%use Matlab’s poly to return characteristic polynomial charPoly = poly(A);
%use Matlab’s eig to return matrix of eigenvalues and matrix of eigenvectors %V(:,i)=i’th eigenvector corresponding to eigenvalue D(i,i) [V, D] = eig(A);
%eigenvalues are diag(D) eigValues = diag(D);
%spectral radius is max of absolute values (= complex norm) of eigenvalues radius = norm(eigValues, inf);
return
A diary of the output follows:
Hmwk2Main(A) spectral radius = 4
Characteristic Polynomial = 1x^2 - 3x - 4 eigenvalues: -1, 4
eigenvector corresponding to eigVal=-1: [-0.70711 0.70711] eigenvector corresponding to eigVal=4: [-0.5547 -0.83205]
We wish to establish (for A real): A = At^ =⇒ ‖A‖ 2 = ρ(A)
First, we know that for any matrix A ρ(A) ≤ ‖A‖ 2 , so we need only show that when A is sym- metric the reverse inequality holds. Since A is symmetric we know by the ”Principal Axis Theorem” that there exists an orthonormal basis of eigenvectors fk for which
A(fk) = λkfk (1)
where the {λk} are the (real) eigenvalues of A. Also, since the {fk} are orthonormal we know that every x can be rewritten in terms of the {fk}:
x =
∑^ n
k=
〈x, fk〉fk =
∑^ n
k=
xkfk (2)
and by the above formula for A
Ax (2) = A
( ∑n
k=
xkfk
∑^ n
k=
A(xkfk) =
∑^ n
k=
xkAfk (1) =
∑^ n
k=
xkλkfk (3)
Next, letting M = max{λ^2 k} = ρ(A)^2 , we compute Ax:
‖Ax‖^22 def =
Ax, Ax
(by (3) above) =
〈 ∑n
j=
xj λj fj,
∑^ n
k=
xkλkfk
∑^ n
j=
∑^ n
k=
xj · xk · λj · λk ·
fj, fk
(since fj are orthonormal) =
∑^ n
j=
∑^ n
k=
xj · xk · λj · λk · δj,k
(only j = k terms survive) =
∑^ n
k=
x^2 k · λ^2 k
≤ max{λ^2 k}
∑^ n
k=
x^2 k
(definition of M ) = M · ‖x‖^22
Dividing both sides by ‖x‖^22 we get: ‖Ax‖^22 ‖x‖^22
and taking the sup over x 6 = 0 of the LHS we get ‖A‖^22 ≤ M , which implies ‖A‖ 2 ≤
M = ρ(A)
Remark: If you’re not used to this type of abstract argument, a much more concrete presentation is given on the following pages. Also, if you use the formula ‖A‖ 2 =
ρ(A∗A) (Theorem 7.15, part (i)) then the result is quite immediate since ‖A‖^22 = ρ(A∗A) = ρ(A^2 ) = ρ(A)^2 - but this is not really valid (in spite of the author’s comment on page 434) since its proof could (the one I know in fact does) logically depend on the result you’re asked to prove in this homework assignment.
We wish to establish (for A real): A = At^ =⇒ ‖A‖ 2 = ρ(A)
We break the proof up into several steps:
λ 1 0... 0 0 λ 2... 0 .. .
0 0... λn
‖U AU −^1 ‖ 2 = ‖A‖ 2
ρ(U AU −^1 ) = ρ(A)
Proof of (1): If A = D and M = max{|λk|} and ‖x‖ 2 = 1 then
‖Ax‖^22 =
Ax, Ax
(λ 1 x 1 ,... , λnxn), (λ 1 x 1 ,... , λnxn)
= (λ 1 x 1 )^2 + · · · + (λnxn)^2 = λ^21 x^21 + · · · + λ^2 nx^2 n ≤ (M 2 )(x^21 + · · · + x^2 n) = M 2 ‖x‖^22 = M 2
Since the above inequality holds for each x with ‖x‖ 2 = 1, it will remain true after taking the sup of
the
over all such x. But sup ‖x‖ 2 =
) (^) def = ‖A‖^22 , so we’ve proved ‖A‖ 2 ≤ max{|λk|}
Also note that if k is the index for which M = |λk| then letting x = ek gives Ax = λkek = λkx which gives ‖Ax‖ 2 = |λk|‖x‖ 2 = M , proving the LHS attains the value M.
Remark: The matrix D takes the unit sphere (in the 2-norm) into an ellipsoid whose major axis (and all other principal axes) are along the coordinate axes. The norm of D and the spectral radius of D agree because they’re both equal to the length of this major axis.
Proof of (2): We will prove a more general result, namely that ‖U AV ‖ 2 = ‖A‖ 2 for any isometries U, V. Recall U is defined to be an isometry if it preserves lengths:
‖U x‖ = ‖x‖ ∀x