DFT simplifies the many-body problem of interacting electrons by using electron density rather than wavefunctions. The fundamental theorem of DFT, formulated by Hohenberg and Kohn, states that the ground-state properties of a system are uniquely determined by its electron density. The Kohn-Sham equations, derived from this theorem, are solved iteratively to obtain the electron density and the total energy of the system.