Abstract
A Janak theorem is derived for the correlated optimized effective-potential model of the Kohn-Sham exchange-correlation potential vxc. It is used to evaluate the derivative discontinuity (DD) and to show that the highest occupied Kohn-Sham eigenvalue, εHI, the negative of the ionization potential, when relaxation and correlation effects are included. This reconciles an apparent inconsistency between the ensemble theory and fractional occupation number approaches to noninteger particle number in density-functional theory. For finite systems, εH=I implies that vxc=0 independent of particle number, and that the DD vanishes asymptotically as 1/r. The difference in behavior of the DD in the bulk and asymptotic regions means that the DD affects the shape of vxc, even at fixed, integer particle number.