However, Pople et al. [151] pointed out that the calculus of variations procedure involves integration by parts in the
contribution. Thus the numerical integration of equation (2.101) will have an increased error. A more consistent approach is to obtain the exchange-correlation part of the Kohn-Sham matrix from the direct minimization of the energy with respect to orbital variations, that is
Another advantage of this formulation is that the second-derivative of the density is no longer required, a major computational saving.