The exchange-correlation functional is known almost exactly for the uniform electron gas, and so one possible way to obtain an approximation, presumably good in systems in which the electron density does not vary too strongly, is to use the local density approximation (LDA). Here one considers contributions to
from each element of volume
, given by the exchange-correlation energy per particle of the uniform electron gas with density
,
. The total XC energy is then: