The excited state as the superposition of singly excited configurations in the density matrix formalism