Visual walkthrough — Diffusion current and concentration gradient
Nothing is assumed. If you have never seen a slope, a derivative, or the letter used for "how crowded", start at line one — we define each thing the moment it appears.
Step 1 — Picture "concentration" as crowdedness
WHAT. We are counting particles. Call the number of carriers packed into each tiny box of space the concentration, written . The little means "at position along a line", and is just a headcount per unit volume (units: particles per ).
WHY. Before anything can flow, we must have a way to say "here it is crowded, there it is empty." is exactly that: a number that changes as you walk along .
PICTURE. On the left the dots are packed tight (large ); on the right they thin out (small ). The height of the purple curve above each point is the crowdedness there.
Step 2 — Turn "crowdedness changing" into a slope
WHAT. We measure how fast the crowd thins out as we move right. That rate of change is the gradient, written .
WHY. Notice: if is the same everywhere (flat curve), nothing special happens — no reason for a net flow. What drives flow is the change in across space. So the important quantity is not itself but its steepness.
Read the symbol literally:
- = a tiny change in the headcount,
- = a tiny step you take to the right,
- = (change in crowd) ÷ (step size) = the slope of the purple curve.
Why a derivative and not just subtraction? Because we want the slope at a single point, not averaged over a big region. A derivative is the tool that asks "how steep is the curve right here, in the limit of an infinitesimally small step?" — exactly the local steepness a particle at that spot actually feels.
PICTURE. The orange tangent line touches the curve; its tilt is . Going downhill (crowd shrinking as grows) means the slope is negative.
Step 3 — The hopping model: how a single carrier actually moves
WHAT. Zoom into one particle. It doesn't glide — it hops. Every collision time it jumps left or right by one mean free path , with a 50/50 coin flip on direction.
WHY. This is the honest microscopic truth: at room temperature carriers rattle around from thermal energy. We introduce two named quantities:
- (mean free path) = the typical distance travelled before bumping into something,
- (collision time) = the typical time between bumps.
From these we define a speed: Read it as "distance over time" — that is what speed always means. is the thermal speed, the pace of the random jiggle.
PICTURE. One carrier's zig-zag path: equal-length steps , direction decided by a coin at each dot.
Step 4 — Count who crosses a dividing plane
WHAT. Plant an imaginary vertical plane at position . Ask: in one collision time, how many carriers cross it going right, and how many going left?
WHY. A "current" is a net crossing rate at some plane. So we must literally tally crossings. Only carriers within one hop of the plane can reach it in time ; by the coin-flip symmetry, exactly half of those aim at the plane.
Split space into two slabs hugging the plane:
- Left slab, centred at : sends carriers rightward.
- Right slab, centred at : sends carriers leftward.
Rightward crossers (per unit area, per unit time):
Leftward crossers:
PICTURE. Two shaded slabs on either side of the plane; magenta arrows for rightward crossers (thick, because the left is crowded) and thinner violet arrows for leftward crossers.
Step 5 — Subtract: the net flux appears
WHAT. Net rightward flux = (rightward crossers) − (leftward crossers).
WHY. "Net" always means the winner minus the loser. Whatever is left over after cancellation is the real, observable flow.
Look at the bracket: it is (more crowded slab) − (less crowded slab). If the left is denser, the bracket is positive → net flow rightward. If both slabs are equally crowded, the bracket is zero → no net flow, even though carriers are hopping like crazy. That is the whole secret in one line.
PICTURE. The two arrow-bundles from Step 4 placed head-to-head; the leftover magenta arrows (rightward) are the net flux .
Step 6 — Taylor expand: convert the count-difference into a slope
WHAT. We rewrite in terms of the value at and the slope there.
WHY. The bracket in Step 5 is a difference of two nearby crowd values. A difference of nearby values is what a slope measures. The Taylor expansion is the tool that says exactly this: for a small step , The picture: start at the curve's height , then walk half a hop and rise/fall by (how far you walked) × (how steep it is). We use Taylor because it turns "the function a tiny bit away" into "the function here plus slope times distance" — precisely the ingredients we have.
Subtract the two: The terms cancel — proof that the absolute crowd level does not matter, only the slope survives.
PICTURE. The tangent line from Step 2 with the two slab-points marked at ; the vertical gap between them is .
Step 7 — Fick's first law falls out
WHAT. Plug the subtracted result back into Step 5.
WHY. The clump of constants appears in front of the slope every time; we give it one name, the diffusion coefficient , so we never write it out again.
Term by term:
- = net particle flux (carriers per area per second),
- = flow goes downhill, from crowded to sparse,
- = how vigorously they diffuse (bigger or → bigger ), units ,
- = the steepness that drives it.
PICTURE. The finished law: a downhill purple curve, an orange gradient arrow, and a magenta flux arrow pointing the opposite way (downhill).
Step 8 — From particle flux to electric current (both carrier signs)
WHAT. Particles carry charge, so a particle flux is a current. Multiply by the charge each carrier carries. Let C be the size of the elementary charge (a positive number).
WHY. Current density = (charge per carrier) × (particle flux). This is definitional. The subtlety is the sign of the charge, and it differs for the two carrier types.
Electrons carry :
Holes carry :
The physical motion is identical (both slide downhill), but an electron drifting right is conventional current flowing left — that flips 's sign, giving the leftover . Holes keep the .
PICTURE. Same downhill profile, drawn twice: electrons (magenta) move right but their current arrow points left; holes (orange) move right and their current arrow also points right.
Step 9 — Edge and degenerate cases (never get surprised)
WHAT / WHY / PICTURE, four scenarios the formula must survive:
- Flat profile, . Crowd is uniform. Carriers still hop furiously, but equal numbers cross each way → , . Dense does not mean current.
- Uphill profile, (crowd grows to the right). The minus sign sends leftward — flow still runs downhill, now toward . The formula handles it automatically.
- Steeper slope, same average . Double the steepness → double . The height of the curve is irrelevant; only its tilt scales the flow.
- Exponential decay (the real diode case). Its slope is — steepest at , so the diffusion current is largest right at the junction edge and fades with .
The one-picture summary
Everything on one canvas: crowd curve (violet), its slope (orange tangent), the microscopic hops, the net flux (magenta), and the two current boxes , .
Recall Feynman retelling of the whole walkthrough
Picture a hallway crammed with kids on the left and nearly empty on the right. Nobody is told to move; every kid just steps randomly left or right, like flipping a coin. But because the left is packed, more kids happen to spill rightward across the middle than come back — so the crowd slowly evens out. That leftover rightward spill is the flux . It only exists when the crowding changes across the hall: if kids were spread evenly everywhere, equal numbers would cross each way and nothing would flow — even in a jam-packed but uniform hall. The steeper the crowding difference (the slope ), the stronger the spill, and just measures how energetically the kids jiggle. Finally, pin a charged badge on each kid: the spill becomes an electric current. Electrons wear negative badges, so their rightward spill counts as current pointing left (the in after the double flip); holes wear positive badges and keep their sign (the in ). That's the entire story: random hops + a crowding slope = a clean directed current.
Recall Quick checks
What must be nonzero for diffusion current? ::: The gradient — the slope, not the value of . Where did the minus sign in Fick's law come from? ::: Subtracting the two slab counts gives ; flow runs downhill. Why does the term vanish in Step 6? ::: It cancels in the subtraction, proving only the slope survives. Why is positive but negative for the same downhill flow? ::: Electron charge flips the sign; hole charge keeps it.
See also: Drift current and mobility · Einstein relation · Continuity equation · PN junction diode · Thermal voltage $V_T$