Docsity

Iterative Subspace Projection Methods: A Framework for Solving Linear Systems - Prof. Zhao, Study notes of Computer Science

Toggle sidebar
bg1
ECS231 Handout 6 April 21, 2009
1. The landscape of solvers for the linear system of equations
Ax =b
where Ais an n×nmatrix, bis an n-vector.
Direct Iterative
(A=LU) (u=Av)
Nonsymmetric ALU GMRES,...
Symmetric positive definite ACholesky CG
2. A general framework for iterative projection methods
The basic idea of projection techniques is to extract an approximate solution from subspaces
of Rn. Let Wand Vbe two m-dimensional subspaces of Rn, and x0is a “good” initial guess
of the solution, then the projection technique is to
Find e
x∈x0+Wsuch that b−Ae
x⊥V. (1)
Write e
x=x0+z,z∈ W and define initial residual r0=b−Ax0. Notice that b−Ae
x=
b−A(x0+z) = r0−Az. Then the formulation (1) is equivalent to
Find z∈ W such that r0−Az⊥V . (1a)
This is a basic projection step in its most general form. Most standard techniques use a
succession of such projections. Typically, a new projection step uses a new pair of subspaces
Wand V(updated from the previous step) and an initial guess x0equal to the most recent
approximation. This simple framework is common to many numerical computing.
If W=V, then it is called orthogonal projection method. Otherwise, it is called oblique
projection method. The orthogonality constraints in (1a) is known as the Petrov-Galerkin
condition.
3. Matrix Representation of iterative subspace projection methods
Let V= [v1, v2,...,vm] be an n×mmatrix whose columns form a basis of V, and simi-
larly W= [w1, w2,...,wm] an n×mmatrix whose columns form a basis of W. Then any
approximation solutions in x0+Wcan be written as
e
x=x0+z=x0+W y, i.e., z=W y,
and orthogonality implies VT(r0−Az) = 0; thus
VTAW y =VTr0⇒y= (VTAW )−1VTr0,
provided VTAW is invertible. Putting it all together, we have
e
x=x0+W(VTAW )−1VTr0.
Now, we have a prototype subspace projection method:
1
pf3
pf4

Partial preview of the text

Download Iterative Subspace Projection Methods: A Framework for Solving Linear Systems - Prof. Zhao and more Study notes Computer Science in PDF only on Docsity!

ECS231 Handout 6 April 21, 2009

  1. The landscape of solvers for the linear system of equations

Ax = b

where A is an n × n matrix, b is an n-vector.

Direct Iterative (A = LU ) (u = Av)

Nonsymmetric A LU GMRES,...

Symmetric positive definite A Cholesky CG

  1. A general framework for iterative projection methods The basic idea of projection techniques is to extract an approximate solution from subspaces of Rn. Let W and V be two m-dimensional subspaces of Rn, and x 0 is a “good” initial guess of the solution, then the projection technique is to

Find x˜ ∈ x 0 + W such that b − A˜x⊥V. (1)

Write x˜ = x 0 + z, z ∈ W and define initial residual r 0 = b − Ax 0. Notice that b − Ax˜ = b − A(x 0 + z) = r 0 − Az. Then the formulation (1) is equivalent to

Find z ∈ W such that r 0 − Az⊥V. (1a)

This is a basic projection step in its most general form. Most standard techniques use a succession of such projections. Typically, a new projection step uses a new pair of subspaces W and V (updated from the previous step) and an initial guess x 0 equal to the most recent approximation. This simple framework is common to many numerical computing. If W = V, then it is called orthogonal projection method. Otherwise, it is called oblique projection method. The orthogonality constraints in (1a) is known as the Petrov-Galerkin condition.

  1. Matrix Representation of iterative subspace projection methods Let V = [v 1 , v 2 ,... , vm] be an n × m matrix whose columns form a basis of V, and simi- larly W = [w 1 , w 2 ,... , wm] an n × m matrix whose columns form a basis of W. Then any approximation solutions in x 0 + W can be written as

x^ ˜ = x 0 + z = x 0 + W y, i.e., z = W y,

and orthogonality implies V T^ (r 0 − Az) = 0; thus V T^ AW y = V T^ r 0 ⇒ y = (V T^ AW )−^1 V T^ r 0 ,

provided V T^ AW is invertible. Putting it all together, we have

˜x = x 0 + W (V T^ AW )−^1 V T^ r 0.

Now, we have a prototype subspace projection method:

  1. Let x 0 be an initial approximation
  2. Iterate until convergence:
  3. Select a pair of subspaces V and W
  4. Generate basis matrices V and W for V and W
  5. r 0 ← b − Ax 0
  6. y ← (V T^ AW )−^1 V T^ r 0
  7. x 0 ← x 0 + W y

There are two important remarks:

  1. In many practical algorithms to be discussed below, the matrix V T^ AW does not have to be formed explicitly. It is available as a by-product of Steps 2 and 3, e.g., the Arnoldi process.
  2. The method is defined only when V T^ AW is nonsingular, which is not guaranteed to be true even when A is nonsingular.
  3. There are two important special cases where the nonsingularity of V T^ AW is guaranteed: (a) If A is symmetric positive definite (SPD) and W = V, then V T^ AW = W T^ AW is nonsingular. (b) If A is nonsingular, and V = AW, then then V T^ AW = W T^ AT^ AW is nonsingular.
  4. Optimality for orthogonal projection.

Theorem 1 Assume that A is SPD and that V = W. Then a vector x˜ is the result of (1) if and only if ‖x∗ − x˜‖A = min x∈x 0 +W

‖x∗ − x‖A,

where ‖x∗ − x‖A =

√ (x∗ − x)T^ A(x∗ − x), and x∗ is the exact solution to Ax = b.

´

´

´´

´´

´

´´

´´^3

6

x 0 x˜

x∗

x 0 + W

Proof: Notice that (A(·), ·) is an inner product on Rn. Thus ‖x∗ − x‖A over all possible x ∈ x 0 + W is minimized at x˜ if and only if x∗ − ˜x ⊥A W, i.e.,

(A(x∗ − ˜x), w) = (b − Ax, w˜ ) = 0 for any w ∈ W = V.

This is (1). Remark: The corresponding methods are steepest descent method and conjugate gradient (CG) method.

  1. Optimality for oblique projection.
  1. Convergence theorem of SD algorithm. We can show that the convergence of the steepest descent is guaranteed when A is SPD.

Theorem 3 Let A be SPD, and let λmin and λmax be its smallest and largest eigenvalues respectively. Then for the SD Algorithm

‖x∗ − xk+1‖A ≤

( λmax − λmin λmax + λmin

) ‖x∗ − xk‖A =

( κ(A) − 1 κ(A) + 1

) ‖x∗ − xk‖A,

where x∗ is the exact solution to Ax = b. κ(A) = λmax/λmin is the condition number of A. Thus the SD Algorithm converges for any initial guess.

  1. Minimal Residual (MR) Iteration. This is for matrix A not necessary symmetric but A + AT^ is SPD^1. At each step take w = r and v = Ar.

Minimal Residual (MR) Iteration:

  1. Pick an initial guess x 0
  2. Until convergence for k = 0, 1 , 2 ,... do
  3. rk = b − Axk
  4. αk = r

Tk Ark rTk AT^ Ark

  1. xk = xk + αkrk
  2. EndDo

We can view that each step of the MR iteration minimizes

f (x) def = ‖r‖^22 = ‖b − Ax‖^22

over all vectors of the form x − αr.

  1. Convergence theorem of MR algorithm.

Theorem 4 Assume that A + AT^ is SPD, and let μ = λmin

( A+AT 2

) , and σ = ‖A‖ 2. Then for the MR iteration ‖rk+1‖ 2 ≤ (1 − μ^2 /σ^2 )^1 /^2 ‖rk‖ 2.

Thus the MR iteration converges for any initial guess.

(^1) This is equivalent to say that A is positive definite. A real matrix A said to be positive definite if uT (^) Au > 0

for any 0 6 = u ∈ R. It can be shown that if A is real positive definite, then A is nonsingular, in addition, uT^ Au ≥ λmin

( (^1) 2 (A^ +^ A

T (^) ))^ uT (^) u.