

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 640 – Numerical Analysis Section 7.5: Conjugate Gradient Method
Rather than solving Ax = b in an iterative manner, the conjugate gradient method is an iterative method used to solve the equivalent optimization problem
min x
g(x) =< x, Ax > − 2 < x, b >
We also have to keep in mind that this requires that A be a symmetric positive definite matrix !!!
Definition 1 (Inner Product) If x and y are vectors, then we define the inner product of x and y, denoted as < x, y >, to be
< x, y >= xT^ y
Theorem 1 (Inner Product Properties) For any vectors x, y and z and any real number α, we have
Theorem 2 The vector x∗ is the solution to the symmetric positive definite linear system Ax = b if and only if it minimizes the function
Another Big Idea: If you’re at an approximation (point) x(k)^ which is not optimal, and you want to move to an improved x(k+1), you’re going to make a move to a that looks like:
x(k+1)^ = x(k)^ + tv
where t is a scalar and v is a vector that tells you which direction to move, hence it’s called a search direction.
Recall, iterative techniques have the form:
x(k)^ = T x(k−1)^ + c
given an initial guess x 0. The conjugate gradient method will also have that form
x(k)^ = (^) ︸︷︷︸ T =I
x(k−1)^ + tkv(k) ︸ ︷︷ ︸ c=tk v(k)
So the conjugate gradient method does meet the iterative method format. But how do we determine t and v?
We’ve established solving Ax = b is equivalent to minimizing g(x) =< x, Ax > − 2 < x, b >. For x ∈ R^2 , this is a paraboloid.
If you’re at a point x(k−1) which is not a minimum, which direction should you travel to get to the minimum? The direction of steepest de- cent, which is the direction of the −∇g(x).
So choose
v(k+1)^ = new direction = − 12 ∇g(x(k)) = r(k)^ = b − Ax(k).
Choosing v(k+1)^ as such is called the method of steepest decent. If the residual is nonzero, then there exists a tk such that g(x ︸ (k−1)^ ︷︷+ tkv(k︸) x(k)
) < g(x(k−1))
This method isn’t necessarily used for linear systems due to slow convergence.
An alternate approach: Choose direction vectors {v(1), v(2), · · · , v(n)} such that
< v(i), Av(j)^ >= 0 if i 6 = j
such a set of vectors are called A-orthogonal vectors. Interpretation: new search directions are “A-conjugate” to previous searches.
Theorem 3 Let {v(1), v(2), · · · , v(n)} be an A-orthogonal set of non-zero vectors associated with the symmetric pos- itive definite matrix A (n × n) and let x(0)^ be arbitrary, then define
tk =
< v(k), b − Ax(k−1)^ > < v(k), Av(k)^ >
< v(k), r(k−1)^ > < v(k), Av(k)^ > and x(k)^ = x(k−1)^ + tkv(k)