Solution

ID: past-exam-of-the-quantum-condensed-matter-course-of-the-university-of-cambridge/2021/section-b/6/d/solution

Let the neutral edges be and and take the exterior electric field to vanish. Integrating between the edges gives , so . This is also the condition of equal and opposite integrated depletion charges.
A second integration with yields
It is negative inside the layer, pointing from n to p, and zero at both edges. Its largest magnitude occurs at the metallurgical junction:
For reference, choosing gives the cubic electric potential

New to topics? Read the docs here!