Geometry of density matrices. IV. The relationship between density matrices and densities