If either
or
is so small that it is negligible, the integral
will be negligible. If the two shells of a shell-pair are very far apart (relative to their diffuseness) then their overlap will produce a negligible shell-pair. The number of non-negligible shell-pairs grows only linearly with the size of the system. So, forming only the significant shell-pairs will generate a number of integrals which grows only quadratically with molecular size. Hence the cost of HF theory is O(N2).
There is a separate O(N3) cost involved in diagonalising the Fock matrix, yet this scaling does not become noticeable until the system is extremely large, and is not expected to be a problem in the medium term [29]. Recent techniques have made HF theory scale only linearly with molecular size for certain types of systems; these are dealt with in later chapters.