Worked examples — Diffusion current and concentration gradient
This page is the drill hall for Diffusion current and concentration gradient. The parent note taught you the ideas. Here we hit every case the topic can throw at you — every sign, every degenerate input, every limiting shape — so that no exam scenario is new.
Before we start, one reminder of the two boxed results we lean on constantly (built in the parent):
The scenario matrix
Every diffusion problem you can be handed is built from a small set of independent choices. Enumerate them and we can guarantee coverage:
| Cell | Carrier | Profile shape | Sign of slope | What it tests |
|---|---|---|---|---|
| A | electrons | linear (falling) | negative | basic , sign of conventional current |
| B | holes | linear (falling) | negative | why sign differs from |
| C | either | uniform () | zero | the degenerate case — no current |
| D | electrons | linear rising | positive | flip the slope sign, check current flips |
| E | holes | exponential decay | negative | real-diode profile, differentiate |
| F | holes & electrons | Einstein | zero | convert mobility to (no gradient at all) |
| G | both together | opposing gradients | mixed | electron/hole currents add |
| G2 | both together | same-sign gradients | matched | electron/hole currents partially cancel |
| H | electrons | limiting shape | what happens as the region gets thin |
The examples below hit each cell one by one. Each cell is labelled in its example title. Figure s03 (shown at the very end) is a strip of five thumbnail sketches — one carrier profile plus its current arrow for each of cells A, C, D, G and G2 — so you can see every case at a glance.
Example A — falling electrons, linear
Forecast: guess first — is the conventional current in or ? (Electrons crowd on the left and diffuse rightward…)
- Convert to cm. Why this step? Every is quoted in , so lengths must be cm or the units clash. .
- Slope. Why this step? Linear profile ⇒ one constant slope covers the whole region.
- Apply . Why this step? This is the boxed electron law.
Verify: Units: ✓. Sign check against our convention: means current in — and indeed electrons pile up on the left, diffuse in , and being negative that is conventional current in . Matches. Forecast answer: .
Figure s01 below draws exactly this: the blue density curve dropping left-to-right, the green arrow showing electrons physically diffusing in , and the red arrow showing the resulting conventional current pointing in . Look at how the red and green arrows point opposite ways — that opposition is the whole reason carries a leading yet comes out negative here.

Example B — falling holes, linear
Forecast: the slope is identical to Cell A (negative). Will come out positive or negative? Guess before reading.
- Slope (same as A). . Why this step? Identical geometry — reuse it.
- Apply . Why this step? Holes use the minus law because their charge is .
Verify: Two minus signs multiplied → plus, so by our convention current flows in . Physically: holes crowd on the left, diffuse in ; holes are positive, so conventional current is also → positive. ✓ This is the whole point of the sign difference: same physical drift as Cell A, opposite current sign.
Example C — uniform density (the degenerate case)
Forecast: there are enormously many electrons. Big current? Guess.
- Slope. Why this step? Diffusion cares about the change, not the amount. Uniform ⇒ .
- Apply. .
Verify: ✓. This is the trap warned about in the parent's [!mistake]: density does not drive diffusion — its slope does. Dense but flat = no diffusion current. In the s03 strip this is the flat middle panel with no current arrow at all.
Example D — rising electrons (slope flips sign)
Forecast: In Cell A the answer was . Same numbers, mirror-image profile. Predict the sign now.
- Slope. Why this step? Now the higher value is on the right, so the slope is positive.
- Apply. .
Verify: Exactly (Cell A) → : current now flows in . Physically electrons crowd on the right and diffuse in ; negative charge moving = conventional current in → positive. ✓ Every sign is self-consistent. In the s03 strip this is the rising-blue panel whose red current arrow points right, mirror-image of Cell A.
Example E — exponential decay (the real-diode profile)
Forecast: as we move deeper ( grows), does the current get bigger or smaller? Guess.
- Differentiate the exponential. Why this step? The slope of a curve is its derivative; .
- Evaluate at (). Why this step? We want the current entering the region.
- Evaluate at (). Why this step? To see the decay.
Verify: Units as before → A/cm² ✓; both positive, so current runs in everywhere. Current shrinks by the factor over one diffusion length — exactly the decay rate of the profile itself, since both and its slope scale as . Forecast answer: smaller deeper in. ✓ (See Fick's laws of diffusion for why the profile itself is exponential.)
Figure s02 plots this decay. The dashed gray line is the slope (steepest) at ; the two marked dots at and carry the current values we just computed. Notice the curve and its tangent both flatten as grows — that flattening is the current shrinking.

Example F — Einstein relation (no gradient at all)
Forecast: which one — or — comes out larger? Guess from the mobilities.
- Thermal voltage. Why this step? The Einstein relation needs Thermal voltage $V_T$. At 300 K, .
- Multiply. Why this step? .
Verify: Units: ✓. Both and come from the same collisions (Drift current and mobility), so higher mobility ⇒ higher . Forecast answer: larger. ✓
Example G — both carriers, opposing gradients (currents ADD)
Forecast: electrons and holes have opposite slopes here — will their currents add or fight? Guess.
- Electron piece. Why this step? Use the law.
- Hole piece. Why this step? Use the law.
- Sum. Why this step? Total current is the sum of all carrier contributions.
Verify: Both pieces came out negative even though the slopes had opposite signs — the sign flip in 's formula makes them add. So the total current here is (in ), larger in magnitude than either alone. ✓ Forecast answer: they add. In the s03 strip this is the panel with two same-direction (red) current arrows stacked.
Example G2 — both carriers, same-sign gradients (currents PARTIALLY CANCEL)
Forecast: this time both slopes point the same way. Does that mean the currents help each other — or oppose? Guess (the surprise is the point).
- Electron piece. Why this step? law.
- Hole piece. Why this step? law, and now is negative.
- Sum. Why this step? Add the contributions.
Verify: Now the two pieces have opposite signs and partially cancel: . ✓ The lesson is the mirror image of Cell G — same-sign gradients make the currents oppose, because the charge-sign flip in turns matched slopes into opposed currents. Electrons and holes both diffuse the same physical way (), but their opposite charge sends their conventional currents opposite ways, so they subtract. In the s03 strip this is the final panel: two red arrows pointing against each other, the net one shorter.
Example H — the thin-region limit
Forecast: if we squeeze the same concentration drop into a thinner slab, does the current grow, shrink, or stay put?
- General expression. Why this step? Slope , so .
- cm. Why this step? Plug in the first width to get a concrete number to compare against. .
- cm. Why this step? Shrink the width by a factor of 10 and see how the current responds. .
- Limit . Why this step? Push the shrinking to its extreme; : an infinitely steep gradient gives unbounded current.
Verify: Shrinking the width multiplied the current magnitude ✓ (). Physically the slope is what matters: pack the same drop into a thinner slab and the slope — hence the current — blows up. Forecast answer: grows without bound. (In reality other physics like Continuity equation recombination and finite carrier supply cap it, but the diffusion formula itself is unbounded.)
The whole matrix at a glance
The strip below sketches five key cells side by side — profile (blue) on top, resulting conventional-current arrow (red) below. Reading it left to right is the fastest way to internalise how the current arrow tracks the slope and the carrier's charge sign.

Recall
Recall Which cell breaks each intuition? (hide and answer)
Uniform dense bar gives what current? ::: Zero — slope is zero (Cell C). Same falling profile: why do and differ in sign? ::: The charge flips the current sign (Cells A vs B). Opposite carrier slopes — do the currents add or cancel? ::: They add (Cell G). Same-sign carrier slopes — do the currents add or cancel? ::: They partially cancel (Cell G2). A positive means current flows which way? ::: In (to the right), by our convention. Squeeze the same into half the width — current does what? ::: Doubles; (Cell H).