Docsity

Gauss-Seidel Method for Linear Systems: Analysis and Convergence, Assignments of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Department of Mathematics Fall 2007
MATH 6370, Section 10583 MW 5:30-7:00PM
A. Caboussat
Answers Homework Chapter 8
HOMEWORK FROM THE TEXT
Problem 10 (Chapter 8 - Problem 10) 8 10
(a) Finest partitioning
(1) Jacobi
B=
4 0 0 0 0 0 0 0 0
0 4 0 0 0 0 0 0 0
0 0 6 0 0 0 0 0 0
0 0 0 4 0 0 0 0 0
0 0 0 0 4 0 0 0 0
0 0 0 0 0 6 0 0 0
0 0 0 0 0 0 4 0 0
0 0 0 0 0 0 0 4 0
0 0 0 0 0 0 0 0 6
, C =
0 2 0 1 0 0 0 0 0
1 0 1 0 1 0 0 0 0
0 1 0 0 0 1 0 0 0
1 0 0 0 2 0 1 0 0
0 1 0 1 0 1 0 1 0
0 0 1 0 1 0 0 0 1
0 0 0 1 0 0 0 2 0
0 0 0 0 1 0 1 0 2
0 0 0 0 0 1 0 1 0
.
(2) Gauss-Seidel
B=
400000000
−140000000
0−1 6 0 0 0 0 0 0
−100400000
0−1 0 1−4 0 0 0 0
0 0 −1 0 −1 6 0 0 0
0000−1 0 4 0 0
00000−1−140
000000−1−1 6
, C =
0 2 0 1 0 0 0 0 0
0 0 1 0 1 0 0 0 0
0 0 0 0 0 1 0 0 0
0 0 0 0 2 0 1 0 0
0 0 0 0 0 1 0 1 0
0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 2 0
0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0
.
(b) Coarser partitioning
(1) Jacobi
B=
4−20000000
−1 4 −1000000
0−16000000
0004−2 0 0 0 0
000−1 4 −1 0 0 0
0000−1 6 0 0 0
0000004−2 0
000000−1 4 −1
0000000−1 6
, C =
000100000
000010000
000001000
100000100
010000010
001000001
000100000
000010000
000001000
.
pf3
pf4
pf5

Partial preview of the text

Download Gauss-Seidel Method for Linear Systems: Analysis and Convergence and more Assignments Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Department of Mathematics Fall 2007

MATH 6370, Section 10583 MW 5:30-7:00PM

A. Caboussat

Answers Homework Chapter 8

HOMEWORK FROM THE TEXT

Problem 10 (Chapter 8 - Problem 10) 8 10

(a) Finest partitioning

(1) Jacobi

B =

, C =

(2) Gauss-Seidel

B =

, C =

(b) Coarser partitioning

(1) Jacobi

B =

, C =

(2) Gauss-Seidel

B =

, C =

ADDITIONAL HOMEWORK

Problem 2 41

2.a) We see that, det(Aη ) = (1 −

1 −η 2

1+η 2 , and Aη is nonsingular iff η 6 = −1. Let P be the lower triangular

part of Aη (with diagonal). The Gauss-Seidel iteration matrix is

BGS (η) = P

− 1 (P − Aη ) =

0 η − 1 0

0 0 0

0 0 0

0 η − 1 0

0 0 0

0 0 0

0 η − 1 0

η− 1 2

Its eigenvalues are the roots of the characteristic polynomial

pB GS (η) (λ) = det(λI − Aη ) = det

λ −η + 1 0

0 λ +

η− 1 2

0 0 λ

 (^) = λ^2

λ +

η − 1

Therefore we have

λ 1 (BGS (η)) = λ 2 (BGS (η)) = 0, λ 3 (BGS (η)) =

1 − η

and ρ(BGS (η)) = maxi |λi(BGS (η))| =

| 1 −η| 2

. The Gauss-Seidel method converges therefore iff η ∈ (− 1 , 3).

2.b) We apply the conjugate gradient method if Aη is symmetric positive definite. The symmetry is guaranteed

only for η = 1/2. We remark that, in this case, we have:

pA 1 / 2 (λ) = det(λI − A 1 / 2 ) = det

λ − 1 − 1 / 2 0

− 1 / 2 λ − 1 0

0 0 λ − 1

 (^) = (λ − 1)

(λ − 1)

2 −

then

λ 1 (A 1 / 2 ) = 1, λ 2 (A 1 / 2 ) =

, λ 3 (A 1 / 2 ) =

meaning that A 1 / 2 is positive definite for η = 1/2.

We know that the factor of reduction of the error is given by

C =

cond(A 1 / 2 ) − 1 √ cond(A 1 / 2 ) + 1

Therefore the condition number cond(A 1 / 2 ) =

λmax (A 1 / 2 )

λmin(A 1 / 2 )

3 / 2 1 / 2

= 3. Therefore

C =

Convergence of SSOR method. First we have to transform the SSOR method into its general form

M x n+ = N x n

  • b:

y

n

ω

D − E

− 1

1 − ω

ω

D + F

T

x

n

ω

D − E

− 1

b

After substitution,

ω

D − F

x

n+

1 − ω

ω

D + E

ω

D − E

1 − ω

ω

D + F

x

n

[

1 − ω

ω

D + E

ω

D − E

+ I

]

b

The last line can be simplified into:

1 − ω

ω

D + E

ω

D − E

+ I =

2 − ω

ω

D

ω

D − E

and the method becomes:

ω

2 − ω

ω

D − E

D

− 1

ω

D − F

x

n+

ω

2 − ω

ω

D − E

D

− 1

1 − ω

ω

D + E

ω

D − E

1 − ω

ω

D + F

x

n

  • b

We therefore obtained the required form with

M =

ω

2 − ω

ω

D − E

D

− 1

ω

D − E

T

We still have to check that the matrix M + N T is symmetric positive definite. We can write:

M + N

T = M + M

T − A

2 ω

2 − ω

ω

D − E

D

− 1

ω

D − E

T

− D + E + E

T

2 ω

2 − ω

[

ω 2

D −

ω

E −

ω

E

T

  • ED

− 1 E

T

2 − ω

2 ω

(−D + E + E

T )

]

2 ω

2 − ω

[(

(ω − 2) 2

4 ω 2

D −

E −

E

T

  • ED

− 1 E

T

]

2 − ω

ω

D +

2 ω

2 − ω

D − E

D

− 1

D − E

T

The matrix M + N

T is therefore symmetric positive definite, since, ∀x ∈ R

n , x 6 = 0, we have

x

T (M + N

T )x = x

T 2 −^ ω

ω

Dx +

2 ω

2 − ω

D − E

T

x

)T

D

− 1

D − E

T

x > 0.

5.c) For the SOR method, we define the matrices M and N as before, and we determine the eigenvalues and

eigenvectors of the matrix:

G = M

− 1 N =

ω

D − E

1 − ω

ω

D + F

Thus:

Gx = λx ⇔

1 − ω

ω

D + F

x = λ

ω

D − E

x ⇔ Hx = 0,

where

H =

1 − ω − λ

ω

D + λE + F.

We set Sμ = diag(μ, μ

2 ,... , μ

n ) with μ 6 = 0. The matrix S is invertible. Since A is triadiagonal, we have

S

− 1 μ DSμ = D, S

− 1 μ ESμ =

μ

E, S

− 1 μ F Sμ = μF.

Hence

S

− 1 μ HSμ^ =^

1 − ω − λ

ω

D +

λ

μ

E + μF.

In particular,

S

− 1 √ λ

HS

√ λ

1 − ω − λ

ω

D +

λE +

λF

1 − ω − λ

ω

D +

λ(D − A)

1 − ω − λ

ω

λ

λA.

since D = 2I, if A is the tridiagonal matrix of the example. If we set ξ = S

− 1 √ λ

η, then

Hη = 0 ⇔ S

− 1 √ λ

HS

√ λ ξ = 0.

i.e.

Aξ =

λ

1 − ω − λ

ω

λ

ξ.

This implies that ξ is one of the eigenvectors of A, i.e. ξk = (sin(kπ/m + 1),... , sin(mkπ/m + 1))

T , with

eigenvalues μk = 2 − 2 cos(kπ/m + 1); λk is the eigenvalue of G associated to ηk = S √ λk ξk^ if:

λk

1 − ω − λk

ω

λk

= μk.

This equation gives:

λ

± k

ω

2 (μk − 2)

2

  • 1 − ω ±

ω(μk − 2)

ω 2 (μk − 2) 2

  • 1 − ω.

We can check that the maximum is reached for |λ

m|^ with^ μm^ = 2 + cos(π/m^ + 1). Thus

ρ(G) =

ω 2 cos 2 (π/m+1) 2

  • 1 − ω ± ω cos

π m+

ω^2 cos^2 (π/m+1) 4

  • 1 − ω, if

ω 2 cos 2 (π/m+1) 4

  • 1 − ω > 0 ,

ω − 1 , otherwise.

We can show that ρ(G) is minimal when

ω

2 cos

2 (π/m + 1)

  • 1 − ω = 0, ⇒ ωopt =

1 + sin(

π m+

The optimal value of the convergence speed is given by:

ρ(G) = ωopt − 1 = 1 −

2 π

m + 1

  • O(m

− 2 ).