Density functional theory and slowly varying fluctuations at finite