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.
Nonzero vectors are conjugate directions with respect to when for . They are linearly independent: if , multiplication by gives , hence by positive definiteness. There are consequently at most such directions.
The finite termination of conjugate directions follows from the residual orthogonality maintained by the exact line minimizations. At step ,
For , conjugacy gives . By mathematical induction, is orthogonal to every . After nonzero conjugate directions they form a basis of , forcing . Thus the method reaches in at most steps, and positive definiteness makes that solution unique. The claim is in exact arithmetic; rounding errors need not preserve exact conjugacy.