The theory of the inhomogeneous electron liquid is recast into the form of a differential equation for the ground-state electron density in the case of the relativistic treatment of heavy atoms. The way density gradients enter this self-consistent theory is the focal point.