Exercises — Diffusion current and concentration gradient
Throughout, these are our constants (memorise them — you will reuse them every problem):
Level 1 — Recognition
L1.1 — Which quantity drives diffusion?
A silicon bar has a uniform electron density everywhere, with no applied field. What is the diffusion current density ?
Recall Solution
What we ask: does a lot of carriers automatically mean current? Why the formula settles it: depends on the slope, not the count. Uniform density ⇒ the graph of vs is a flat horizontal line ⇒ slope . Dense but flat = no diffusion. The carriers wander, but equal numbers cross each way.
L1.2 — Read a linear profile
Electrons drop linearly from at to at . Find the gradient .
Recall Solution
What we do: a straight line has constant slope . Why: "linear" is exactly the promise that is the same everywhere. Convert (because ). Negative slope: density falls as grows — matching the downhill yellow line in the figure below.
The figure below plots this exact profile: the yellow line runs from the dot at down to the dot at . The dashed white triangle marks the "rise " over "run " — that ratio is the slope labelled in yellow. Notice the line never curves: linear means one constant slope everywhere.

Level 2 — Application
L2.1 — Electron diffusion current, plug and chug
Using the profile of L1.2 (so ) with , find .
Recall Solution
What we do: apply directly. Why the sign: for electrons the formula already carries ; the physical direction is decided by the sign of the slope. Reading the sign: electrons diffuse toward larger (high→low). Electrons are negative, so conventional current points toward → the answer is negative. Magnitude .
L2.2 — Hole diffusion current
Holes fall linearly from at to at , with . Find .
Recall Solution
Step 1 — gradient. . Step 2 — apply the hole formula (note the leading minus, because holes are positive). Reading the sign: holes diffuse toward , holes are positive, so conventional current is → positive. ✓
L2.3 — Einstein relation both ways
At 300 K an electron has . (a) Find . (b) If a hole has , find .
Recall Solution
Why Einstein: the same random collisions set both drift () and diffusion (), so they must be locked together by . See Einstein relation. (a) . (b) .
Level 3 — Analysis
L3.1 — Exponential decay (the diode profile)
Excess holes injected into an n-region decay as with , diffusion length , and . Find at and at .
Recall Solution
Step 1 — differentiate. Why an exponential's derivative is itself (scaled): . Step 2 — at (), with : Step 3 — at the factor is , so everything scales by : Interpretation: the current dies off with the same exponential shape as the carriers.
The figure below overlays two curves on the same board. The blue solid curve is the hole density ; the pink dashed curve is , drawn with the same shape (rescaled to share the axis). The yellow dotted vertical line marks : read off that at exactly one diffusion length both curves have dropped to a factor of their start. The white arrow flags the steep left edge — where the slope is biggest, so the diffusion current is biggest.

L3.2 — Total current when a field is also present
At a point, electrons have , , , , and a field points in . Find the total electron current density.
Recall Solution
Why add two terms: total electron current = drift + diffusion (from Drift current and mobility plus our formula). They are independent physical mechanisms that superpose. Both push conventional current toward here, so they add. (Had the slope been negative they could partly cancel.)
Level 4 — Synthesis
L4.1 — Derive the Einstein relation from equilibrium
Inside an unbiased region, the total electron current is zero in equilibrium. Using (Boltzmann) and , show that .
Recall Solution
Reminder of the symbols: is the Boltzmann constant (energy-per-kelvin, defined in the Working-constants box), the temperature in kelvin, and the electric potential. So is thermal energy and . What we set up: equilibrium means drift + diffusion cancel: Why Boltzmann: in thermal equilibrium the carrier density follows the potential energy exactly as . Differentiate it: Substitute, and replace : State the assumption before dividing: in a doped region the electron density is nonzero (), and at any point where a gradient (hence a built-in field) exists we have ; the elementary charge is . Therefore the common factor is nonzero and we may legally divide the whole equation by it: The two mechanisms lock together because they spring from the same thermal statistics.
L4.2 — Steady-state carrier profile from the continuity equation
In an n-region with no field, excess holes obey the steady-state diffusion equation (a form of the Continuity equation): where is the hole lifetime. Show that solves it, and find in terms of .
Recall Solution
Why guess an exponential: this is a linear, constant-coefficient differential equation — the coefficients and do not depend on . For such equations the derivative of a function must return the same function (only rescaled) so that both sides can match term-for-term; the exponential is the unique function whose derivative is a constant times itself. That is why the exponential ansatz is the natural — indeed the only — elementary trial form here. What we do: plug the trial exponential in and demand both sides match. First derivative — the chain rule pulls down one factor of : Second derivative — differentiate again; the chain rule pulls down another , and the two minus signs multiply to a plus, leaving : Why this matters: each derivative of a decaying exponential just multiplies by , so an even number of derivatives always comes back positive — that is what lets the exponential balance a positive right-hand side. Substitute into the PDE: Numeric check: if and , then is literally the average distance a hole diffuses before it recombines — the natural length scale of the whole problem.
Level 5 — Mastery
L5.1 — Full diode saturation-current-style build
An abrupt one-sided junction injects holes into a long n-region. Given , , , find (a) , (b) the hole diffusion current density at the injection edge , and (c) explain in one line what physical current this feeds in a PN junction diode.
Recall Solution
(a) Diffusion length (from L4.2): . (b) Gradient of at (): Apply the hole formula: (c) This diffusion current at the junction edge is exactly the hole part of the diode's forward/saturation current — the diode's whole – law is diffusion current in disguise. The steeper the injected profile (small ), the bigger the current.
L5.2 — Reverse-engineer a profile from a measured current
You measure a constant electron diffusion current across a slab with . What must the profile look like, and what is across the slab?
Recall Solution
Why constant forces a straight line: is constant only if is constant ⇒ is linear. Solve for the slope: Positive slope ⇒ density rises with (electrons diffuse toward , giving conventional current ✓). Change across : A linear ramp of about over the slab produces exactly the measured 50 A/cm².
Active recall
Recall One-line answers
Uniform dense region, no field — diffusion current? ::: Zero — slope . Why convert µm to cm first? ::: So comes out in A/cm² (units must match and ). Diffusion length in terms of ? ::: . Which way is conventional current for diffusing electrons down ? ::: Toward (opposite to electron motion).