Inverse Density as an Inverse Problem: The Fredholm Equation Approach