Classical iterative algorithms
For this topic, many excellent textbooks are available. Most of the modern numerical PDE solvers rely on one or another iterative algorithm taking care of the linear system given by discretization ( I know very little of direct methods). In this scenario, one has linear system
and tries to come up with some iterative scheme
with
meaning the convergence to the “real” solution, or, to be exact, the solution by direct solver if we disregard the round-off error. By this setup, one can see the solution is the fixed point of operator . So the convergence of the algorithm is equivalent to two proposals: the spectral radius
, and there exists operator norm induced by some norm of the linear space to which
belongs that this norm of
is less than
. The convergence speed is measured by average rate of convergence of
(for
iterations) defined by
which comes from the fact that . In order to put the original problem into this fixed point setup,
is splitted:
If is splitted according to entries’ positions as
, one has the classical algorithms:
Jacobi:
Gauss-Seidel:
SOR:
The last one is in the component wise form in which is the Gauss-Seidel result, and the relaxation parameter is between zero and two (even though the name “overrelaxation” comes when it is greater than one). Each of those algorithms has direct(but different in implementation) analogical block version. All these methods are stationary, i.e. in each iteration
is unchanged. If this is not the case, we have unstationary methods, in which after each iteration information is re-gathered in order to determine a new
for next iteration. When
is a SPD matrix, a large family of unstationary methods can be formed by the solving a minimization problem(minimal residual method (MINRES)). Classical CG method I wrote about before belongs to this family. A modern member of this family is GMRES by Saad and Schultz in 1986.
review of CG method:IV
I have shown that in method of conjuate direction, the searching directions are in some sense orthogonal to each other:
Which makes more sense when the whole thing is considered under a new coordinate system, a system obtained by impose tranform of , in which
is the upper-triangle matrix from
‘s Cholesky decomposition.
Similar conclusion includes that is
-orthogonal to
, resulting in that
is orthogonal to
the residual:
This condition actually implies that one can use the residual processed by Gram-Schimdt conjugation to obtain the direction
, and this is the conjugate gradient (CG) method. The advantage of CG is that, instead of finding a set of directions
at the beginning,
is obtained along with the iteration, because the process of Gram-Schimdt conjugation is “triagonal”, i.e., one variable is determined by its predecessors. In particular, starting from
(the first step is the same as steepest descent method), the following searching directions
is determined by
Coefficient is obtained by conjugate condition:
Then we have
In order to simplify this expression, remember that during this process of generating from
, for any
,
so
The Gram-Schimdt process also indicates that (prove it). The above two identities can be used to simplify
, and prove that
and eventually
Finally, a complete iteration, when is known, consists of
review of CG method:III
This Mathematica script generates the following picture indicating a typical behavior of steepest descent method: the zigzag in two perpendicular directions. In fact, in 2D this is the only case because one has only two choices, determined by starting direction, as I showed at the beginning. It is natural to ask whether one can use only two step with single change of direction to reach the minimization point. This introduces conjugate direction method.
Assume and the iteration starts with direction
. The method of conjugate direction tries to reach a point along
with condition that in the rest of iteration descent along
direction would never happen again, so does for any other following steps. To make sure this happen, we can require that the iterations after
always are performed on the subspace perpendicular to
. Remembering that exact solution
should always be in the subspace in which the coming iterations are to be performed, we come up this scheme:
If we view the above as two equations with three unknowns (), we know that it’s not going to work. However, since
is SPD matrix, by Cholesky decomposition we have
in which
is an upper-triagonal matrix. Then if we consider the orthogonality between
and
, instead of
and
, we have
Finally we have
Of course this can be obtained by using the requirement as well, but derivation I used here gives better geometric explanation. In order to utilize the fact that we do not know
but we know
, we impose the orthogonality requirement
in the space transformed by
. By now one can see that to consider
as the effect of
applied on
can often serve the similar purpose of
the error itself, that’s why sometimes we call
a similar name: residual.
The orthogonalilty condition is also called
-orthogonality. And by
is
-orthogonal to the following
one can easily see that
is
-orthogonal to the following
. Since now we have the formular for
, with a set of
-orthogonal
we will be done, and this set can be found by Gram-Schimdt conjugation, a
-orthogonal version of Gram-Schimdt orthogonazation process. With those tools in hand, it is not hard to show that this conjugate direction method, whose name comes from that the directions
are
-orthogonal, or,
-conjugate to each other, can indeed reach
within
steps. In fact, the goal in each interation in conjugate direction method achieved is to eliminate one dimension of the space in which the solution lies and confine the rest of search to a lower dimension hyperplane.
review of CG method:II
Now let’s examine the convergence property of steepest descent method. For this purpose, define the error against exact solution at each iteration step
By iteration scheme there is
Since at every step matrix would be multiplied, and the iterative property of a matrix is largely determined by its eigenvalues, one’s first reaction should be look at the decomposition of the vector space under discussion into its standard forms by
where is the orthonormal basis of eigenvector space of
. By this defitino, there are
In which is eigenvalue corresponding to
. One can see if the normal/spectral condition number
, i.e. all the eigenvalues of
are same, the error at next step immediately drops to zero. Geometricly this simply means contours are spheres and the steepest descent direction is toward the centre. Generally, there is
where the norm is energy norm induced by
and (subscript emphasizes the dependence on each step) is determined by spectral condition number
and slope
:
Picture below shows the dependence of to two variables. One can see that the slowest convergence happens when both condition number and slope are large.
is referred to as ill-conditioned when
is large.

review of CG method:I
Most popular method in solving linear system, conjugate gradient is simply a few connected elegant ideas whose geometric meanning is almost intuitive. In solving system
where is SPD matrix, it is obvious that the solution
of the equation is equal to the minimizer of quadratic form
If the positive definite condition is removed, then solution of is simply one stationary point of
.
Pictures below show 3D plot of a quadratic form and its contour with minus gradient . In order to solve the linear system, one need find the minimizer, and in turn steepest descent method is the way to follow the direction of arrow in the picture and move toward the goal, in another word, like a ball sliding on the 3D paraboloid toward the lowest point. For iteration algorithm, we obtain point
in the domian by
, where
is the descent direction at point
and is the distance to move toward that direction, which is determined by maximizing the “profit” in present step, i.e. to move to the lowest value of
in direction of
. This can be achieved, intuitively, move to the “most inner” contour in that direction. Now one can see by “most inner” I mean when the contour is tangential to vector line of
. One corollary of this method is that in next step we are going to move perpendicular to the direction of last move:
Another view to see this is that by “maximizing profit” we mean to minimize the value of at present step, so we are looking for step size
satisfying
By this we can obtain , and algorithm of steepest descent:



leave a comment