Академический Документы
Профессиональный Документы
Культура Документы
CSCI-UA.0421-001
New York University, Spring 2020
Instructor: Margaret Wright
Homework Assignment 3
Assigned February 28, 2020; due midnight, Tuesday, March 10, 2020
This property provides a lower bound on the condition number of an upper-triangular matrix: mea-
sured in the infinity norm,
maxi |uii |
cond(U ) ≥ . (3.2)
∞ mini |uii |
In practice, this easily computable lower bound is frequently used as an estimate of the condition of an
upper-triangular matrix. It also shows that U must be ill-conditioned if its diagonals vary greatly in
magnitude.
Exercise 3.2.
(a) Assuming that the square matrices B and C are nonsingular, show that
where α = 1, 2, and ∞, i.e., the condition number is measured in the “standard” matrix norms (one,
two, and infinity).
(b) Show that cond2 (AT ) = cond2 (A).
(c) Is cond1 (AT ) always equal to cond1 (A)? If your answer is “yes”, explain why. If your answer is “no”,
find a specific matrix A such that cond1 (AT ) 6= cond1 (A), and give A, A−1 , kAk1 and kAT k1 .
Exercise 3.3. Let ! !
0.671 −0.273 0.398
A= and b = .
−0.335 0.136 −0.199
(a) Show using exact arithmetic (e.g., try hand calculation!) that the exact solution xstar (denoted
by x∗ ) to Ax = b is x∗ = (1, 1)T .
(b) Let xtil (denoted by x
e) be the solution computed by Matlab with the command xtil = A\b.
Compute and print the following vectors and their two-norms:
e − x∗ ;
(i) d = x
(ii) r∗ = b − Ax∗ ; and
2
(iii) re = b − Ae
x.
Comment on the relative sizes of these three norms. Are these results what you expected? Explain.
(c) Given any nonzero vector x
b and its associated exact residual rb = b − Ab
x, define E as the rank-one
matrix
1
E = T rbx bT . (3.3)
x
b x b
Show mathematically that the exact matrix E satisfies (A + E)b x = b.
(d) Consider the specific vector xhat (denoted by x
b)
!
−45
x
b= .
22
b is close to x∗ ? Or to x
Would you say that x e? Explain, including your interpretation of the meaning
of “close to”.
(e) Using the vector x
b from (d), compute and print
• rb = b − Ab
x,
• the matrix E from (3.3),
• kEk2 ,
• b − (A + E)x̂ and
• kb − (A + E)x̂k2 .
Comment on the sizes of the quantities listed in (e). How would you describe the “size” of kEk2 ?
(f) Use Matlab to compute xbar (denoted by x̄) with the command xbar = (A+E)\b. With exact
arithmetic, what equation would x̄ satisfy? Compute and print
• xbar,
• (A+E)*xbar,
• b-(A+E)*xbar, and
• kx̄ − x
bk2 .
Based on kx̄ − x
bk2 , do you feel that x̄ is “close to” x
b? Explain why or why not.
(g) Consider the statement: x
b is close to the exact solution of a system that is close to the original
system. Do you agree? Explain the significance of such a statement in terms of backward error
analysis.
(h) Please explain the results of this problem, using the SVD of A to analyze the relationships.
Exercise 3.4. Let P be an n × n permutation matrix that interchanges only two rows (or two columns)
of a nonsingular matrix.
(1) Show that P must be symmetric.
(2) Is the product of two such permutations necessarily symmetric? If your answer is “yes”, give a
short proof. If your answer is “no”, give a counterexample.
Exercise 3.5.
(a) Without using determinants, prove that a square upper-triangular matrix R is singular if and only
if at least one diagonal element is zero. (The same result is true for a lower-triangular matrix.)
(b) Assume that (i) R is an n × n triangular matrix, (ii) k (k < n) of its diagonal elements are zero, and
(iii) the remaining diagonal elements are nonzero. Must the rank of R be exactly n − k? Explain
your answer. If your answer is “yes”, give a proof. If your answer is “no”, give a counterexample.
3