Docsity

Numerical Analysis Homework 8 for Math 433 - Spring 2008, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Math 433 - Numerical Analysis - Spring 2008
Homework 8
Assigned: Friday, March 7, 2008.
Due: Friday, March 28, 2008.
1. (Matrix Norms)
(a) Prove that if ||A|| <1, then
||(I−A)−1|| ≥ 1
1 + ||A|| .
(b) Suppose that A∈Rn×nis invertible, B is an estimate of A−1, and AB =
I+E. Show that the relative error in Bis bounded by kEk(using an
arbitrary matrix norm).
2. (Iterative Methods: Analysis).
Recall that an n×nmatrix Ais said to be strictly diagonally dominant if
n
X
j=1, j6=i
|aij|<|aii |for i= 1,...,n.
Note that the strict inequality implies that each diagonal entry aii is non-zero.
Suppose that Ais strictly diagonally dominant.
(a) Show that the Jacobi iteration matrix satisfies ||BJ||∞<1 and, therefore,
Jacobi iteration converges in this case.
(b) For a 2 ×2 matrix A, show that the Gauss-Seidel iteration matrix also
satisfies ||BGS||∞<1 and, hence, Gauss-Seidel iteration converges as well.
3. Consider a linear system with matrix
A=2 1
1 4 .
(a) Write down the iteration matrices BJand BGS for Jacobi’s Method and
Gauss–Seidel.
(b) Find the l∞norm and spectral radius of the iteration matrix for Jacobi and
Gauss-Seidel. (Recall that the spectral radius of a matrix can be calculated
by finding the roots of its characteristic polynomial.)
(c) Which of the two iterative methods will converge for an arbitrary starting
point x(0)? Why?
1
pf2

Partial preview of the text

Download Numerical Analysis Homework 8 for Math 433 - Spring 2008 and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Math 433 - Numerical Analysis - Spring 2008

Homework 8 Assigned: Friday, March 7, 2008. Due: Friday, March 28, 2008.

  1. (Matrix Norms)

(a) Prove that if ||A|| < 1, then

||(I − A)−^1 || ≥

1 + ||A||

(b) Suppose that A ∈ Rn×n^ is invertible, B is an estimate of A−^1 , and AB = I + E. Show that the relative error in B is bounded by ‖E‖ (using an arbitrary matrix norm).

  1. (Iterative Methods: Analysis).

Recall that an n × n matrix A is said to be strictly diagonally dominant if

∑^ n

j=1, j 6 =i

|aij | < |aii| for i = 1,... , n.

Note that the strict inequality implies that each diagonal entry aii is non-zero. Suppose that A is strictly diagonally dominant.

(a) Show that the Jacobi iteration matrix satisfies ||BJ ||∞ < 1 and, therefore, Jacobi iteration converges in this case. (b) For a 2 × 2 matrix A, show that the Gauss-Seidel iteration matrix also satisfies ||BGS ||∞ < 1 and, hence, Gauss-Seidel iteration converges as well.

  1. Consider a linear system with matrix

A =

( 2 1 1 4

) .

(a) Write down the iteration matrices BJ and BGS for Jacobi’s Method and Gauss–Seidel. (b) Find the l∞ norm and spectral radius of the iteration matrix for Jacobi and Gauss-Seidel. (Recall that the spectral radius of a matrix can be calculated by finding the roots of its characteristic polynomial.) (c) Which of the two iterative methods will converge for an arbitrary starting point x(0)? Why?

(d) Write a program to calculate and plot the spectral radius of Bsor(ω) for parameter ω in the range (0, 2) in increments of 0.01. Provide the code and the plot. Based on inspection of the graph, what value of ω will lead to the fastest convergence? (e) Use the theorem on page 234 of Bradie to calculate analytically the optimal relaxation parameter ω for SOR. Does it match the value predicted in Part (d)?

  1. (Iterative Methods: Practice). This problem extends #8 and #11 on page 235 of Bradie. Consider the linear system   

  

  

x 1 x 2 x 3

   =

  

  .

The optimal solution is x = [1 2 3]T^.

(a) Solve the system numerically using Jacobi’s Method, Gauss–Seidel, and SOR with (optimal) parameter ω = 2/(1+

√ 7 /8). In each case, let x(0)^ = 0. Terminate iteration after step k if ||x(k)^ − x(k−1)||∞ < 10 −^7. Provide your code. (b) Make a semilogy plot that compares the evolution of the error ||x − x(k)||∞ for all three methods. (c) Use the formula

C ≈

||x(k)^ − x(k−1)||∞ ||x(k−1)^ − x(k−2)||∞ to estimate the asymptotic error constant for each method. Tabulate these estimates along with the number of iterations required for each method to converge.

Discuss your results.