We have derived all the important relations in CG. We need one more step to make computing the search directions a little bit computationally more efficient.

Recall the basic three-term recurrence for the search directions:

Let’s substitute . From our previous derivations:

Substitute in :

Recall that

Use the equation for :

So:

Substitute back in :

We have proved that:

Theorem. The optimal search directions in CG are given by: