Concerning analytical derivatives of kinetic and potential energies in the Hartree–Fock theory