Assume the space charge is a clean box: fully depleted inside, neutral outside.
ρ(x)={−qNA+qND−xp<x<0(p-side)0<x<xn(n-side)
Why this step? Real carrier profiles are smooth, but treating the edges as sharp turns messy integrals into simple ones — and it's accurate because carriers vanish fast (over a Debye length).
The whole crystal is neutral, so total positive = total negative charge:
qNAxp=qNDxn⇒==NAxp=NDxn==
Why this step? No net charge was created — we only rearranged it. So the exposed positive and negative charge must balance. Consequence: the depletion region extends further into the lightly-doped side.
Integrate dE/dx=ρ/εs. On the p-side (ρ=−qNA), with E=0 at x=−xp:
E(x)=−εsqNA(x+xp),−xp<x<0
On the n-side (ρ=+qND), with E=0 at x=xn:
E(x)=−εsqND(xn−x),0<x<xn
The field is maximum at the junction (x=0), triangular in shape:
Emax=−εsqNAxp=−εsqNDxn
Why this step? The field starts at zero at the edges (neutral region), grows linearly through each charged slab, and peaks at the metallurgical junction. The two expressions match at x=0 because of Step 2's neutrality.
Substitute xp,xn (from neutrality) into Vbi=21∣Emax∣W and solve:
W=q2εsVbi(NA1+ND1)
Why this form? Higher Vbi → wider region (more charge needed to build the field). Higher doping → narrower region (fewer ions needed to expose the same charge).
Imagine a room split in half. The left half is packed with red balls (holes) and the right half with blue balls (electrons). Open the door in the middle: the balls rush to the emptier side and pair up, vanishing. But each ball that leaves uncovers a fixed magnet stuck to the floor (the dopant ion) — red balls leave behind negative magnets, blue balls leave behind positive ones. These stuck magnets create an invisible "wind" that eventually blows so hard it stops any more balls from crossing. That calm empty strip in the middle, full of stuck magnets but no free balls, is the depletion region.
Dekho, jab p-type aur n-type semiconductor ko jodte ho, toh junction ke paas electrons (n-side se) aur holes (p-side se) ek dusre ki taraf diffuse karte hain kyunki concentration gradient hota hai. Yeh mil ke recombine ho jaate hain, aur peechhe reh jaate hain fixed ionized dopant atoms — n-side pe positive donor ions, p-side pe negative acceptor ions. Yeh carriers-se-khaali strip hi hai depletion region, aur inn fixed ions ka charge hi space charge kehlata hai.
Ab yeh exposed charge ek electric field banata hai jo n se p ki taraf point karta hai. Yeh field carriers ko wapas dhakelta hai (drift). Jab drift aur diffusion barabar ho jaate hain, tab equilibrium aa jaata hai aur net current zero ho jaata hai. Field ka shape triangular hota hai — junction pe maximum, edges pe zero — kyunki charge distributed hai, isliye Poisson's equation se E linearly badhta hai.
Important baat: neutrality condition NAxp=NDxn. Iska matlab depletion region us side mein zyada ghusti hai jahan doping kam hai. Yaad rakho: "light doping = long reach". Aur width ka formula W=(2εsVbi/q)(1/NA+1/ND) — heavy doping se width chhoti, high voltage se badi. Reverse bias lagao toh Vbi+VR ho jaata hai aur region choda ho jaata hai; forward bias lagao toh Vbi−VF hoke region patli ho jaati hai aur current flow karne lagta hai. Yahi diode ka core funda hai.