In a study of the ferromagnetic phase of a multilayer digital ferromagnetic semiconductor in the mean-field and effective-mass approximations, we find the exchange interaction to have the dominant energy scale of the problem, effectively controlling the spatial distribution of the carrier spins in the digital ferromagnetic heterostructures. In the ferromagnetic phase, the majority-spin and minority-spin carriers tend to be in different regions of the space ͑spin separation͒. Hence, the charge distribution of carriers also changes noticeably from the ferromagnetic to the paramagnetic phase. An example of a design to exploit these phenomena is given here. DOI: 10.1103/PhysRevB.66.073312 PACS number͑s͒: 75.70.Cn, 75.50.Pp, 75.10.Ϫb The research in proactive use of the spins of the carriers to add a new dimension to electronics starts a new area known as spintronics.1 The recent discoveries 2,3 of ferromagnetism with high Curie temperatures in a number of conventional semiconductors doped with magnetic impurities hold promise for the implementation of spintronics in semiconductors.Inhomogeneously doped semiconductors, such as the p-n junction, play a crucial role in conventional electronic devices. Their properties depend on the distribution of the itinerant carriers, which is governed by the Coulomb interaction of the carriers with the impurities and with other carriers. In this paper we study the charge and spin distributions of the itinerant carriers in semiconductors ␦ doped with magnetic impurities, such as GaMnAs.4,5 Our theory is within the mean-field, effective-mass, and virtual-crystal approximations. In addition to the electrostatic forces, the itinerant carriers have an exchange interaction with the magnetic impurities. Our calculation shows that the magnetization of the high Mn concentration in the ␦ layers in the ferromagnetic phase gives rise to a spin-dependent potential experienced by the carriers comparable in order of magnitude to the charge potential of the ␦ layer. The effect of the spin-dependent potential on the inhomogeneous spin distribution of the carriers was noted by Loureiro da Silva et al. 6 in multilayered GaMnAs with 5% magnetic impurities. By contrast, the ␦ doping with a nominal concentration per atomic plane of 25-50% Mn atoms gives rise to a qualitatively different phenomenon of spin separation. This creates the possibility of the magnetic control of the itinerant carriers by manipulating the magnetization of the Mn ions. In particular, the spindependent potential may be used to influence the spin dependence of the distribution of itinerant carriers. The majority carriers 7 accumulate in the region of the Mn layers whereas minority carriers are repelled from the Mn region. In the paramagnetic phase, the spin potential averages to zero and the magnetic influence disappears. To show the potential of the spin separation for device applications, we give an example of how heterostructures may be designed to engender spin separation. This paper is organized as follows. A brief review...