Minimise with , and using the conjugate gradient method. How do you show that it reaches the exact minimiser in two steps, and why does this happen?
Linear algebra and optimisation, Iterative solvers
Level L4 Advanced. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can run the conjugate gradient recurrences by hand and explain finite termination using -conjugate directions.
Key idea
Conjugate gradient uses search directions with (), so each step fully removes the error along one direction. In dimensions it terminates in at most steps (exact arithmetic).
Steps
- Start: the residual is , the same as the negative gradient, and the first direction is .
- Step 1: , , . The step size is . Then and .
- Make the next direction conjugate: , so .
- Check conjugacy: .
- Step 2: and , so . Then .
- Check: . So and is the exact minimiser. Steepest descent with exact line search would zig-zag and not finish in two steps.
- Why: the conjugate directions form a basis, so . Each step fixes one coefficient exactly, and later steps do not undo it. For large problems we stop early, and the error falls like , where is the condition number.
Common mistakes
- Using the old residual for the wrong way round. It is (new over old).
- Using as in plain gradient descent. Conjugate gradient chooses by exact line search along .
- Thinking 'orthogonal' directions give the same finite termination. The directions must be -conjugate, not orthogonal, and the method needs symmetric positive definite.
How long your answer should be
One page; 6–8 minutes.
Last checked on 4 December 2026.
Read this
Previous in Linear algebra and optimisation: For least-squares linear regression , how does the condition number of govern the convergence speed of gradient descent, and why does standardising features speed up gradient descent even though it leaves the closed-form predictions unchanged?
Next in Linear algebra and optimisation: Let be convex and -smooth, with minimiser . How do you prove that gradient descent with step size satisfies ?