wave function must be a unique solution of Hamiltonian for given external potential.
from above density function also must be a unique function of wave function.
external potential is the characteristic of material and that must reveals in the wave function and density function.