Math 6800 Problem Set 4: Conditioning and Stability Analysis - Prof. Donald W. Schwendeman, Assignments of Linear Algebra

Problem set 4 for math 6800, with exercises on function conditioning, stability, and accuracy. Students are required to find the infinitesimal perturbation constant for given functions, determine ill-conditioned values, and generate and solve a linear system using various methods. The document also includes instructions for using matlab.

Typology: Assignments

2011/2012

Uploaded on 02/17/2012

koofers-user-4uz
koofers-user-4uz 🇺🇸

10 documents

1 / 9

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Math 6800
D. Schwendeman Problem Set 4
Due:
Tuesday, 10/12/10
1. Text exercise 10.4, p.76.
2. Let f(x)=1/(1 x2). Find κ(f) for an infinitesimal perturbation about x. For
what values of xis fill-conditioned? Explain your result briefly. Repeat for the function
g(x) = sin x/(1 x2).
3. Text exercise 15.1, parts (a) through (e), p.112.
4. Text exercise 16.1, p.119. (Hint: My approach to this problem was to first consider the
stability of Qa =b, where Qis unitary and aand bare vectors.)
5. This question concerns conditioning, stability, and accuracy, and is to be done using
matlab (unless stated otherwise). To begin let’s generate a 10 ×10 matrix A. Use the
following steps in matlab
A=diag(10.(0:-1:-9));
[Q0,R0]=qr(rand(10));
A=Q0*A*Q0’;
(a) Note that Ais symmetric and positive definite. What are the singular values of A?
What is κ(A) in the 2-norm? (You should be able to answer this without using matlab.)
(b) Now let’s generate a linear system Ax =bwhose solution xwe know. Use the commands
x=ones(10,1);
b=A*x;
Let us consider various ways to solve this system. First, use matlab’s R=chol(A) to compute
the upper triangular matrix Rin the Cholesky factorization A=RR. Solve for a computed
xcusing the commands
y=R’\b;
xc=R\y;
Compute kxcxkand kRRAkin the 2-norm using matlab and explain your results
in terms of conditioning and backward stability. Do you expect the computed Rto be
accurate, i.e. its relative error to be O(mach)? Explain.
(c) Solve the linear system constructed in part (b) but now using a QR-factorization and
matlab’s qr(A) command. Compute kxcxkand kQR Akand explain your results.
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Math 6800 Problem Set 4: Conditioning and Stability Analysis - Prof. Donald W. Schwendeman and more Assignments Linear Algebra in PDF only on Docsity!

Math 6800

D. Schwendeman Problem Set 4

Due: Tuesday, 10/12/

  1. Text exercise 10.4, p.76.
  2. Let f (x) = 1/(1 − x^2 ). Find κ(f ) for an infinitesimal perturbation about x. For what values of x is f ill-conditioned? Explain your result briefly. Repeat for the function g(x) = sin x/(1 − x^2 ).
  3. Text exercise 15.1, parts (a) through (e), p.112.
  4. Text exercise 16.1, p.119. (Hint: My approach to this problem was to first consider the stability of Qa = b, where Q is unitary and a and b are vectors.)
  5. This question concerns conditioning, stability, and accuracy, and is to be done using matlab (unless stated otherwise). To begin let’s generate a 10 × 10 matrix A. Use the following steps in matlab

A=diag(10.∧(0:-1:-9)); [Q0,R0]=qr(rand(10)); A=Q0AQ0’;

(a) Note that A is symmetric and positive definite. What are the singular values of A? What is κ(A) in the 2-norm? (You should be able to answer this without using matlab.)

(b) Now let’s generate a linear system Ax = b whose solution x we know. Use the commands

x=ones(10,1); b=A*x;

Let us consider various ways to solve this system. First, use matlab’s R=chol(A) to compute the upper triangular matrix R in the Cholesky factorization A = R∗R. Solve for a computed xc using the commands

y=R’\b; xc=R\y;

Compute ‖xc − x‖ and ‖R∗R − A‖ in the 2-norm using matlab and explain your results in terms of conditioning and backward stability. Do you expect the computed R to be accurate, i.e. its relative error to be O(mach)? Explain.

(c) Solve the linear system constructed in part (b) but now using a QR-factorization and matlab’s qr(A) command. Compute ‖xc − x‖ and ‖QR − A‖ and explain your results.