Equillibrium. Gives a differential relation for the density and the electric field. Integrate. Obtain the logarithm of density and potential difference. Result: potential difference. This is the potential difference over the p-n junction.

Click on picture for original, larger version.