Docsity

Quiz 3 for AMSC/CMSC 660: Linear Systems and Matrix Factorization, Quizzes of Mathematics

Toggle sidebar
bg1
AMSC/CMSC 660 Quiz 3 ,Fall 2006
Show all work. You may leave arithmetic expressions in any form that a
calculator could evaluate. By putting your name on this paper, you agree to
abide by the university’s code of academic integrity in completing the quiz.
Use no books, calculators, cellphones, other electronic devices, communica-
tion with others, scratchpaper, etc.
Name
1. (10) Suppose we have factored A=LU and now we need to solve
a linear system (A−ZVT)x=b, where Zand Vhave dimension n×k
and kis much less than n. Write Matlab code to do this accurately and
efficiently. You might want to use the Sherman-Morrison-Woodbury formula
(A−ZVT)−1=A−1+A−1Z(I−VTA−1Z)−1VTA−1.
(Don’t use matrix inverses!)
1
pf2

Partial preview of the text

Download Quiz 3 for AMSC/CMSC 660: Linear Systems and Matrix Factorization and more Quizzes Mathematics in PDF only on Docsity!

AMSC/CMSC 660 Quiz 3 , Fall 2006

Show all work. You may leave arithmetic expressions in any form that a calculator could evaluate. By putting your name on this paper, you agree to abide by the university’s code of academic integrity in completing the quiz. Use no books, calculators, cellphones, other electronic devices, communica- tion with others, scratchpaper, etc.

Name

  1. (10) Suppose we have factored A = LU and now we need to solve a linear system (A − ZVT^ )x = b, where Z and V have dimension n × k and k is much less than n. Write Matlab code to do this accurately and efficiently. You might want to use the Sherman-Morrison-Woodbury formula

(A − ZVT^ )−^1 = A−^1 + A−^1 Z(I − VT^ A−^1 Z)−^1 VT^ A−^1.

(Don’t use matrix inverses!)

  1. (10) Denote the SVD of the 2 × 2 matrix A by UΣVT^. (a) Express the solution to the linear system Ax = b as x = α 1 v 1 + α 2 v 2 where V = [v 1 , v 2 ]. (b) Consider the linear system Ax = b with

A =

[

1 + δ δ − 1 δ − 1 1 + δ

]

, b =

[

]

and δ = 0.002, and suppose we compute the solution to the nearby systems

(A + E(i))x(i)^ = b

for i = 1,... , 1000, where the elements of E(i)^ are independent and normally distributed with mean 0 and standard deviation τ = .0001. Using part (a), explain why the resulting solutions all fall near a straight line, as shown in the figure.

−0.2 −0.2 −0.15 −0.1 −0.05 0 0.05 0.1 0.

−0.

−0.

−0.

0

0.15^ Changes in x for Linear System 2

δ x 1

δ^ x^2