

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Math 433 - Numerical Analysis - Spring 2008
Homework 8 Assigned: Friday, March 7, 2008. Due: Friday, March 28, 2008.
(a) Prove that if ||A|| < 1, then
(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).
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.
( 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)?
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.