Density functional theory of nonuniform polyatomic systems. I. General formulation | Synapse