Docsity

Homework 7 on Numerical Methods in Science Computing I | MATH 571, Assignments of Mathematics

Toggle sidebar
bg1
Math 571 (Winter 2009): Homework 7
Due Date: See web page
[i] In the class, we discussed how to find the best rank-1 approximation to an m×nmatrix
using the SVD. Describe how to find the best rank-2 approximation. Explain your answer.
[ii] Let Abe a square matrix. Then its exponential is defined as
exp(A) = I+A+A2/2! + A3/3! + · · ·
If A=QT Q∗is the Schur factorization of A, show that exp(A) = Qexp(T)Q∗.
If A=V DV −1is the eigendecomposition of A(with Dbeing diagonal), show that
exp(A) = Vexp(D)V−1.
[iii] Let xbe an m-dimensional vector and let Abe an m×mmatrix. In the class, we learnt
how to solve the linear system dx/dt =Ax using the the eigenvalues and eigenvectors of A.
Show how to solve the linear system
dx
dt =Ax +f(t),
where f(t) is an m-dimensional vector that is a function of t.
Express the solution to that linear system compactly using the matrix exponential.
[iv] Consider the eigenvalue problem
d2u
dx2=λu,
with 0 ≤x≤πand u(0) = u(π) = 0.
Solve the eigenvalue problem analytically to find infinitely many eigenvalues λ.
If the interval 0 ≤x≤πis divided into a grid with spacing h=π/m, then there are
grid points at u(ih) for i= 0,1, . . . , m. The second derivative at ih can be approximated as
u((i+ 1)h)−2∗u(ih) + u((i−1)h)
h2,
for i= 1,2, . . . , m −1. In addition, we know that u(ih) = 0 for i= 0 and i=m.
Use the grid approximation to turn the continuous eigenvalue problem into a discrete
eigenvalue problem of the form Au =λu, where Ais an (m−1) ×(m−1) matrix.
For m= 200 or m= 2000 or m= 10000, compute the eigenvalues of Ausing Matlab or
C or C++. How many of those eigenvalues are roughly correct? Plot a few eigenvectors for
correct and incorrect eigenvalues, and compare with the analytical result.

Partial preview of the text

Download Homework 7 on Numerical Methods in Science Computing I | MATH 571 and more Assignments Mathematics in PDF only on Docsity!

Math 571 (Winter 2009): Homework 7

Due Date: See web page

[i] In the class, we discussed how to find the best rank-1 approximation to an m × n matrix using the SVD. Describe how to find the best rank-2 approximation. Explain your answer.

[ii] Let A be a square matrix. Then its exponential is defined as

exp(A) = I + A + A^2 /2! + A^3 /3! + · · ·

If A = QT Q∗^ is the Schur factorization of A, show that exp(A) = Q exp(T )Q∗. If A = V DV −^1 is the eigendecomposition of A (with D being diagonal), show that exp(A) = V exp(D)V −^1.

[iii] Let x be an m-dimensional vector and let A be an m × m matrix. In the class, we learnt how to solve the linear system dx/dt = Ax using the the eigenvalues and eigenvectors of A. Show how to solve the linear system

dx dt

= Ax + f (t),

where f (t) is an m-dimensional vector that is a function of t. Express the solution to that linear system compactly using the matrix exponential.

[iv] Consider the eigenvalue problem

d^2 u dx^2

= λu,

with 0 ≤ x ≤ π and u(0) = u(π) = 0. Solve the eigenvalue problem analytically to find infinitely many eigenvalues λ. If the interval 0 ≤ x ≤ π is divided into a grid with spacing h = π/m, then there are grid points at u(ih) for i = 0, 1 ,... , m. The second derivative at ih can be approximated as

u((i + 1)h) − 2 ∗ u(ih) + u((i − 1)h) h^2

for i = 1, 2 ,... , m − 1. In addition, we know that u(ih) = 0 for i = 0 and i = m. Use the grid approximation to turn the continuous eigenvalue problem into a discrete eigenvalue problem of the form Au = λu, where A is an (m − 1) × (m − 1) matrix. For m = 200 or m = 2000 or m = 10000, compute the eigenvalues of A using Matlab or C or C++. How many of those eigenvalues are roughly correct? Plot a few eigenvectors for correct and incorrect eigenvalues, and compare with the analytical result.