Docsity

Numerical Analysis I: Matrix Sensitivity and Condition Number, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
CAAM 453 ·NUMERICAL ANALYSIS I
Problem Set 2
Posted Wednesday 12 September 2007 [S2, S3 added 14 September]. Due Monday, 24 September 2007.
The problems in this set address ways of measuring the sensitivity of a linear system Ax =bto changes in
the matrix A, and a few vagaries of floating point arithmetic. The first two problems consider the distance
of a matrix from the set of singular matrices, very important quantity.
1. [20 points] Recall the Taylor’s series
1
1−x= 1 + x+x2+· ··,
which converges provided |x|<1 for x∈
C
.
For this problem, assume k·kis any matrix norm that is submultiplicative, kXYk ≤ kXkkYk.
(a) Prove the matrix analogue of this formula, which is known as the Neumann series:
If kXk<1, then
(I−X)−1=I+X+X2+·· ·.
(There are two things to show here: first, that the quantity on the right is a finite matrix, i.e.,
kI+X+X2+·· ·k <∞;
second, that (I−X)(I+X+X2+·· ·) = I.)
(b) Suppose that Ais invertible. Show that if kA
−1Ek<1, then A+Eis invertible.
(To do this, you can prove that
(A+E)−1= (I+A
−1E)−1A
−1,
and then explain why the matrix on the right is finite.)
(c) Explain why part (b) implies the following lower bound on the distance of Afrom singularity:
min
A+Esingular kEk ≥ 1
kA
−1k.
2. [20 points]
(a) Let B=xy∗. Prove that kBk2=kxk2kyk2.
For the following parts of this question, let xbe a vector such that kA
−1xk2=kA
−1k2with
kxk2= 1, define yto be the vector
y=A
−1x
kA
−1k2
,
and let
b
E=−xy∗
kA
−1k2
.
(b) What is kb
Ek2?
(c) Show that A+b
Eis singular, i.e., there exists some vector w6=0such that (A+b
E)w=0.
(d) Parts (b) and (c) suggest an upper bound on the 2-norm distance of Afrom singularity, i.e.,
min
A+Esingular kEk2≤ kb
Ek2.
What does this mean when taken together with the result of question 1(c)?
[Stewart and Sun]
pf3
pf4

Partial preview of the text

Download Numerical Analysis I: Matrix Sensitivity and Condition Number and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

CAAM 453 · NUMERICAL ANALYSIS I

Problem Set 2

Posted Wednesday 12 September 2007 [S2, S3 added 14 September]. Due Monday, 24 September 2007.

The problems in this set address ways of measuring the sensitivity of a linear system Ax = b to changes in the matrix A, and a few vagaries of floating point arithmetic. The first two problems consider the distance of a matrix from the set of singular matrices, very important quantity.

  1. [20 points] Recall the Taylor’s series 1 1 − x

= 1 + x + x^2 + · · · ,

which converges provided |x| < 1 for x ∈ C. For this problem, assume ‖ · ‖ is any matrix norm that is submultiplicative, ‖XY‖ ≤ ‖X‖‖Y‖.

(a) Prove the matrix analogue of this formula, which is known as the Neumann series: If ‖X‖ < 1, then (I − X)−^1 = I + X + X^2 + · · ·. (There are two things to show here: first, that the quantity on the right is a finite matrix, i.e., ‖I + X + X^2 + · · · ‖ < ∞; second, that (I − X)(I + X + X^2 + · · ·) = I.) (b) Suppose that A is invertible. Show that if ‖A−^1 E‖ < 1, then A + E is invertible. (To do this, you can prove that (A + E)−^1 = (I + A−^1 E)−^1 A−^1 , and then explain why the matrix on the right is finite.) (c) Explain why part (b) implies the following lower bound on the distance of A from singularity:

min A + E singular

‖E‖ ≥

‖A−^1 ‖

  1. [20 points] (a) Let B = xy∗. Prove that ‖B‖ 2 = ‖x‖ 2 ‖y‖ 2.

For the following parts of this question, let x be a vector such that ‖A−^1 x‖ 2 = ‖A−^1 ‖ 2 with ‖x‖ 2 = 1, define y to be the vector y =

A−^1 x ‖A−^1 ‖ 2

and let Ê = − xy

∗ ‖A−^1 ‖ 2

(b) What is ‖ Ê ‖ 2? (c) Show that A + Ê is singular, i.e., there exists some vector w 6 = 0 such that (A + Ê )w = 0. (d) Parts (b) and (c) suggest an upper bound on the 2-norm distance of A from singularity, i.e., min A + E singular

‖E‖ 2 ≤ ‖Ê ‖ 2.

What does this mean when taken together with the result of question 1(c)? [Stewart and Sun]

  1. [20 points]

This question explores the relationship between the determinant and condition number. For A ∈ Cn×n, det(A) is the product of the eigenvalues of A (just one among several equivalent definitions) while the condition number is κ(A) = ‖A‖‖A−^1 ‖. For this problem you may use any induced norm you like (e.g., 1-norm, 2-norm, ∞-norm).

(a) Construct a family of matrices {An}∞ n=1, An ∈ Cn×n, such that det(An) → 0 as n → ∞, while κ(An) = 1 for all n. (b) Construct a family of matrices {An}∞ n=1, An ∈ Cn×n, such that κ(An) → ∞ as n → ∞, while det(An) = 1 for all n. (The best examples will exhibit exponential growth of the condition number, i.e., κ(An) ∼ γn^ for some γ > 1, but this is not necessary for full credit.) (c) Is det(A) a satisfactory measure of the distance to singularity?

  1. [20 points] For points x 0 ,... , xn ∈ R, the associated Vandermonde matrix takes the form

A =

1 x 0 x^20 · · · xn 0 1 x 1 x^21 · · · xn 1 1 x 2 x^22 · · · xn 2 .. .

1 xn x^2 n · · · xnn

∈ R(n+1)×(n+1).

(a) Write MATLAB code to generate the Vandermonde matrix for data points x 0 ,... , xn uniformly distributed over the interval [− 1 , 1]. (See linspace.) Please do not use MATLAB’s vander command. (b) To test the numerical properties of the Vandermonde matrix, take y = (1, 1 ,... , 1)T^ and define b = Ay. (The jth entry in b is simply the sum of the jth row of A.) Create a carefully designed plot in MATLAB (use semilogy) that compares the following quantities for n = 5, 6 ,... 70.

  • κ(A) = ‖A‖ 2 ‖A−^1 ‖ 2.
  • ‖y − ̂y‖ 2 , where ̂y is the solution to the system Ay = b that you compute using the QR factorization (c = Q∗b, R ŷ = c). (In exact arithmetic, we should have ̂y = y.) You may use MATLAB’s built-in QR factorization, or your Givens QR from Homework 1.
  • ‖ŷ − y‖ 2 /κ(A). Explain your results in light of conditioning and floating point arithmetic.
  1. [20 points]

Consider the integral

Ir =

0

x^2 r^ exp(−x^2 ) dx.

In the special case r = 0, this integral can be calculated using the error function:

I 0 = (^12)

π erf(1).

(a) Verify analytically that for integers r ≥ 1,

Ir =

2 r − 1 2 Ir− 1 −

2e

S2. Note that Problem 1 holds for all submultiplicative matrix norms (and hence for all induced norms), while Problem 2 was specific to the matrix 2-norm. Show that the conclusion from Problem 2(d) can be generalized to any induced matrix norm. Hint. Let ‖·‖ be any vector norm on Cn. Then for any z ∈ Cn^ with ‖z‖ = 1, there exists some w ∈ Cn such that w∗z = 1, where the star denotes the conjugate-transpose, as usual. (This is a consequence of the Hahn–Banach Theorem.)

S3. In the study of the continuous time dynamical system x′(t) = Ax(t), the matrix A is called stable if all its eigenvalues fall in the open left half of the complex plane. For stable A, the distance to instability is of significant interest: What is the smallest-norm perturbation E for which A + E has at least one eigenvalue somewhere in the closed right half of the complex plane? Find a formula for this smallest ‖E‖, measured in the 2-norm (or any induced matrix norm). Hint. Use the distance to singularity, along with the fact that the eigenvalues of a matrix are a contin- uous function of the matrix entries. The simplest answer will be stated in terms of the minimization of some quantity over a one-dimensional subspace of C.