Professional Documents
Culture Documents
3 Homework Solutions 18.335 - Fall 2004: Trefethen 10.1
3 Homework Solutions 18.335 - Fall 2004: Trefethen 10.1
where kvk = 1: If v
u = 0 ( u is perpendicular to v ),
then Hu = u 2vv
v = v 2v = v; so 1 is an eigenvalue of H: The
geometric interpretation is given by the fact that reection of v is v, and
reection of any vector perpendicular to v is v itself.
(b) det H =
n
i=1
i
= (1) 1
n1
= 1:
(c) H
H = (I 2vv
(I 2vv
) = I 4vv
+ 4vv
vv
= I: So the singular
values are all 1s.
3.2 Let B be an nn upper bidiagonal matrix. Describe an algorithm
for computing the condition number of B measured in the innity
norm in O(n) time.
The condition number of B in the innity norm is dened as:
1
(B) =
_
_
B
1
_
_
1
kBk
1
We have to compute these two matrix norms separately. For kBk
1
; the op-
eration count is O(n) since only n 1 operations (corresponding to row sums
for the rst n 1 rows) are required. In order to calculate
_
_
B
1
_
_
1
we need to
compute B
1
rst. To do so, let C = B
1
: Performing the matrix multiplica-
tion BC = I, one can see that the inverse is an upper triangular matrix whose
entries are given by:
c
i;j
=
_
_
0 ; i > j
1
b
i;i
; i = j
1
b
i;i
j1
k=i
_
b
k;k+1
b
k+1;k+1
_
; i < j
This enables us to compute the innity norm of B
1
:
_
_
B
1
_
_
1
= max
1in
n
j=1
jc
i;j
j = max
i
1
jb
i;i
j
_
_
1 +
n
j=i+1
j1
k=i
_
b
k;k+1
b
k+1;k+1
_
_
_
. .
Pi
5
Normally, doing this directly would require O
_
n
2
_
ops. We can avoid this
many ops by making some simplications. Let:
d
k
=
b
k;k+1
b
k+1;k+1
j=i+1
j1
k=i
d
k
_
_
=
1
jb
i;i
j
_
_
1 +d
i
+
n
j=i+2
j1
k=i
d
k
_
_
=
1
jb
i;i
j
_
_
1 +d
i
_
_
1 +
n
j=i+2
j1
k=i+1
d
k
_
_
_
_
=
1
jb
i;i
j
(1 +d
i
jb
i+1;i+1
j P
i+1
)
=
1
jb
i;i
j
(1 +jb
i;i+1
j P
i+1
)
Thus knowing P
i+1
we can calculate P
i
in 5 operations. Hence we have to
start from the n-th row and proceed backwards. So our algorithm to compute
_
_
B
1
_
_
1
is:
P
n
=
1
jb
n;n
j
=
_
_
B
1
_
_
1
_
2 ops
for i=n-1 to 1
P
i
=
1 +jb
i;i+1
j P
i+1
jb
i;i
j
_
_
B
1
_
_
1
= max (P
i
; P
i+1
)
end
_
_
O(n) ops
Since both
_
_
B
1
_
_
1
and kBk
1
require O(n) ops; so does
1
(B) :
6