Practice Assignment #4 - Numerical Linear Algebra | MATH 477, Assignments of Linear Algebra

Material Type: Assignment; Class: Numerical Linear Algebra; Subject: Mathematics; University: Illinois Institute of Technology; Term: Fall 2006;

Typology: Assignments

Pre 2010

Uploaded on 08/19/2009

koofers-user-ios-1
koofers-user-ios-1 🇺🇸

9 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Math 477 Homework Assignment 4, due Oct.26, 2006
1. Given ACm×nof rank nand bCm, consider the block 2 ×2 system of equations
I A
AO r
x=b
0,
where Iis the m×midentity matrix. Show that this system has a unique solution [r,x]T, and
that the vectors rand xare the residual and the solution of the least squares problem:
Given ACm×nof full rank, mn,bCm, find xCnsuch that kbAxkis
minimized.
2. Here is a stripped-down version of one of MATLAB’s built-in m-files.
[U,S,V] = svd(A);
S = diag(S);
tol = max(size(A))*S(1)*eps;
r = sum(S > tol);
S = diag(ones(r,1)./S(1:r));
X = V(:,1:r)*S*U(:,1:r)’;
Explain line-by-line what this code does. What is X?
3. Suppose an m×mmatrix Ais written in the block form A=A11 A12
A21 A22 , where A11 is n×n
and A22 is (mn)×(mn). Assume that Ais such that its LU factorization exists. Verify
the formula I O
A21A1
11 I A11 A12
A21 A22 =A11 A12
O A22 A21A1
11 A12
for “elimination” of the block A21. The matrix A22 A21A1
11 A12 is known as the Schur comple-
ment of A11 in A.
4. Let Abe the 4 ×4 matrix
A=
1 1 0 3
1 0 3 1
0 1 11
3 0 1 2
.
(a) Compute the LU factorization of Awith and without partial pivoting.
(b) Determine det(A) from the 2 LU factorizations of Aobtained in (a).
(c) Describe how Gaussian elimination with partial pivoting can be used to find the determinant
of a general square matrix.
5. Given a nonsingular matrix A. Describe how to find the inverse of Afrom its LU factorization
A=LU without explicitly computing inverse matrices.
6. Let Abe a nonsingular square matrix and let A=QR and AA=UUbe QR and Cholesky
factorizations, respectively, with the usual normalizations rjj, uj j >0. Is it true or false that
R=U? Explain.
7. Give an example of a symmetric positive matrix that is not positive definite, i.e., construct a
(2 ×2) matrix Awith all positive entries such that xTAxis sometimes negative.

Partial preview of the text

Download Practice Assignment #4 - Numerical Linear Algebra | MATH 477 and more Assignments Linear Algebra in PDF only on Docsity!

Math 477 — Homework Assignment 4, due Oct.26, 2006

  1. Given A ∈ Cm×n^ of rank n and b ∈ Cm, consider the block 2 × 2 system of equations [ I A A∗^ O

] [

r x

]

[

b 0

]

where I is the m × m identity matrix. Show that this system has a unique solution [r, x]T^ , and that the vectors r and x are the residual and the solution of the least squares problem: Given A ∈ Cm×n^ of full rank, m ≥ n, b ∈ Cm, find x ∈ Cn^ such that ‖b − Ax‖ is minimized.

  1. Here is a stripped-down version of one of MATLAB’s built-in m-files.

[U,S,V] = svd(A); S = diag(S); tol = max(size(A))S(1)eps; r = sum(S > tol); S = diag(ones(r,1)./S(1:r)); X = V(:,1:r)SU(:,1:r)’;

Explain line-by-line what this code does. What is X?

  1. Suppose an m × m matrix A is written in the block form A =

[

A 11 A 12

A 21 A 22

]

, where A 11 is n × n and A 22 is (m − n) × (m − n). Assume that A is such that its LU factorization exists. Verify the formula (^) [ I O −A 21 A− 111 I

] [

A 11 A 12

A 21 A 22

]

[

A 11 A 12

O A 22 − A 21 A− 111 A 12

]

for “elimination” of the block A 21. The matrix A 22 − A 21 A− 111 A 12 is known as the Schur comple- ment of A 11 in A.

  1. Let A be the 4 × 4 matrix

A =

(a) Compute the LU factorization of A with and without partial pivoting. (b) Determine det(A) from the 2 LU factorizations of A obtained in (a). (c) Describe how Gaussian elimination with partial pivoting can be used to find the determinant of a general square matrix.

  1. Given a nonsingular matrix A. Describe how to find the inverse of A from its LU factorization A = LU without explicitly computing inverse matrices.
  2. Let A be a nonsingular square matrix and let A = QR and A∗A = U ∗U be QR and Cholesky factorizations, respectively, with the usual normalizations rjj , ujj > 0. Is it true or false that R = U? Explain.
  3. Give an example of a symmetric positive matrix that is not positive definite, i.e., construct a (2 × 2) matrix A with all positive entries such that xT^ Ax is sometimes negative.