The exchange term is given by

The electron gas parameter, , the spin polarization, , and the ferromagnetic and paramagnetic exchange energies, are defined as

and is given by

where *n* is the electron number density (implicitly a function
of the spatial coordinates), and and
its corresponding spin-up and spin-down components
().