Do variational formulations for inhomogeneous density functions lead to unique solutions