WHY we start here: a potential is a difference between two places. So the very first thing to draw is the imbalance that will drive everything — a big pile of electrons on one side, almost none on the other.
PICTURE:
Look at the density of cyan dots: dense on the left, sparse on the right. That lopsidedness has a name.
WHY this tool: we need to describe flow caused purely by crowding, with no pushing force. Diffusion is exactly that — the flow a concentration gradient creates all by itself. The measured law is: flow ∝ steepness of the crowd.
WHY this matters: those bare ions are charge that cannot move. Positive charge on the left, negative on the right — that is exactly what makes an electric field.
PICTURE:
The field's job: it pushes electrons back toward the n-side — opposing the diffusion of Step 2. Flow caused by a field has its own name: drift.
WHY this is the key move: "no battery ⇒ no net current" is the single physical fact that pins down Vbi. It converts a hard dynamics problem into one algebra equation.
PICTURE:
Solve for the field by moving one term across and dividing by qμnn:
E=−μnDnn1dxdn
Notice the ratio μnDn appeared on its own. That ratio is not free — it is fixed by physics, which is the next step.
WHY this tool and not another: we have an unknown ratio Dn/μn stuck in our equation. Einstein's relation is the one law that evaluates exactly that ratio — it is the perfect key for this lock.
PICTURE:
Substitute into Step 4's field:
E=−qkTn1dxdn
The messy microscopic coefficients are gone; only the thermal voltage remains.
WHY: a field lives at every point and is hard to add up directly across the messy junction. A voltage difference only cares about the two endpoints. So we trade the field for the thing we can integrate cleanly.
PICTURE:
Set the two expressions for E equal:
−dxdV=−qkTn1dxdn
The dx cancels on both sides (multiply through by dx), leaving a much friendlier relation between dV and dn:
dV=qkTndn
WHY: the sum of all the little dV steps across the whole depletion region is the built-in potential, by definition.
PICTURE:
The integral ∫ndn is exactly the one whose answer is a logarithm (the ln is defined as the area under 1/n):
Vbi=Vn−Vp=qkT∫npnnndn=qkTln(npnn)
WHY this deserves its own step: the boxed formula is only as trustworthy as its assumptions. A reader must know the fence around it, not just the field inside.
PICTURE:
Recall The ordinary (non-degenerate) edge cases — all safe
These stay inside the valid regime and are handled correctly by the boxed formula:
Raise doping 10×: ratio grows 10×, but ln turns that into +VTln10≈+60 mV. Weak control (Step 7's promise).
Raise temperature:ni∝T3/2e−Eg/2kT grows fast, so the ratio shrinks and Vbifalls (~−2 mV/°C for Si) — the rising VT prefactor cannot win.
Undoped limitNA,ND→ni: ratio →1, ln1=0, so Vbi→0. Correct — no junction, no built-in potential.
Add a battery: equilibrium breaks, Jn=0, and the whole Jn=0 derivation stops — that regime is PN junction under bias leading to the Diode I-V equation.
The link to bands: qVbi is exactly how far the Energy band diagrams bend across the junction — the potential hill of height Vbi in volts becomes an energy step of height qVbi in joules (or electron-volts), which is precisely the offset between the n-side and p-side band edges at equilibrium. That is the same Vbi we just derived, now read off a band diagram instead of a potential plot.
Two crowded rooms share a door — n on the left, p on the right (that's our x-axis, pointing right). Room N is packed with cyan balls; room P is nearly empty of them. Open the door — balls spill toward the empty side just because there's more room there (that's diffusion, Step 2). But each ball that leaves abandons a sticky charged spot in the wall (an ion, Step 3), and those spots build up an invisible wall of pull — an electric field that yanks balls back (drift). Balls keep crossing until the pull-back exactly matches the spill-out: a standstill with no net flow, Jn=0 (Step 4). Because both the spilling and the pulling come from the same warmth of the room, their ratio is fixed — that's Einstein's rule, and it hands us a clean "thermal voltage" (Step 5). We measure the wall not as a force but as a height — a voltage — and add up the tiny climbs across the door (Steps 6–7). The adding-up of a 1/n field is always a logarithm — that's why cranking the crowd harder barely raises the wall. Finally we swap "how many balls" for "how hard we doped" (Step 8), and out pops Vbi=VTln(NAND/ni2) — trustworthy as long as we didn't dope so hard the room became degenerate (Step 9). Nobody plugged in a battery; the balls built the wall themselves, just by wanting to spread out.
Recall Quick self-test
Where does the logarithm come from, physically? ::: The field goes as 1/n, and integrating 1/n across the junction gives ln.
Why is Vbi zero for undoped silicon? ::: Then NA,ND→ni, the ratio →1, and ln1=0 — no imbalance, no potential.
Which single assumption lets us set Jn=0? ::: No external battery, so no net current can persist at equilibrium.
What does Einstein's relation eliminate from the field equation? ::: The unknown ratio Dn/μn, replacing it with kT/q.
Which two steps break for a degenerate (very heavily doped) semiconductor? ::: The mass-action law (Step 8) and the simple Einstein relation (Step 5) — both assumed Boltzmann statistics.