Density Matrices and Density Functionals