developed the first part of the HF when describing density matrix