Let be conjugate directions for a symmetric positive-definite matrix . Starting from any , minimize successively along those full lines, stopping early if the linear-system residual vanishes. The quadratic minimization along a line uses and gives .
This makes . For , conjugacy preserves . By mathematical induction, is orthogonal to all preceding search vectors. The conjugate directions are linearly independent and hence form a basis, so . Thus the method reaches the unique solution of the linear system in at most steps in exact arithmetic. The conjugate gradient method generates such directions without storing a complete prescribed basis in advance.
For the quadratic function, write and restrict to the full line . Symmetry of gives
The coefficient is positive by positive definiteness and . The unique minimizer is therefore
Quadratic minimization along a line also gives the exact change
Thus strict decrease holds exactly when . The search is over the whole line, so can be negative; a positive step size would require the additional descent direction condition .