A procedure is presented for the possible systematic development of ex
change-correlation functionals using ab initio electron densities and
accurate total energies. For a training set of first row open-and clos
ed-shell systems, densities are computed and are used to determine asy
mptotically vanishing exchange-correlation potentials. The new functio
nal is then written as an expansion in products of the density and its
gradient, and optimum expansion parameters are determined through a l
east squares fit involving both these potentials and accurate exchange
-correlation energies. Unlike conventional functionals, the potential
of the fitted functional approaches a non-zero value asymptotically, a
nd this is achieved by introducing a self-consistently computed system
-dependent shift into the fitting procedure. This shift represents the
influence of the integer derivative discontinuity in the exact energy
. The method has been used to determine a 21 term spin-polarized excha
nge-correlation functional using Brueckner Doubles or MP2 densities of
20 small systems. For those with open-shells the computed shifts are
close to the hardness of the system, while for closed-shells they are
considerably smaller than the hardness. These observations are consist
ent with theoretical requirements. A comparison of the new potential w
ith conventional potentials highlights important differences in the in
ter-shell and asymptotic regions, while the values of the shifts and h
ighest occupied self-consistent eigenvalues suggest improved asymptoti
c densities. The mean absolute errors in self-consistent total energie
s and optimized bond-lengths of systems in the training set are 0.003E
(h) and 0.01 Angstrom, respectively. Comparable values are obtained fo
r 12 first-row closed-shell systems outside the training set. Compared
to conventional functionals, the new functional predicts a significan
tly improved classical barrier height for the hydrogen abstraction rea
ction H+H-2-->H-2+H. (C) 1998 American Institute of Physics.