---
title: Continuity and minority-carrier diffusion
heading: The equation behind every diode and bipolar transistor
eyebrow: S1 · Lesson 4 · Continuity and minority-carrier diffusion
xp: 50
---

::: hook
Inject holes into n-type silicon and they spread out by diffusion while dying off by recombination. How far they get before they're gone, the **diffusion length**, decides how a diode conducts, whether a bipolar transistor's base is thin enough to work, and how deep a solar cell can collect light. This lesson writes the bookkeeping for carriers, the continuity equation, and reduces it to the one equation that the next fifteen lessons solve in different settings: the minority-carrier diffusion equation.
:::

::: play
- Holes are injected at x = 0 into an n-type region W wide, with an ohmic contact at x = W that holds the excess at zero. The solid curve is the steady excess hole profile, as a fraction of its value at x = 0.
- With W much longer than the diffusion length L, the profile is an exponential (the dashed curve): the holes recombine before they reach the contact.
- Make W much shorter than L. The profile becomes a straight line (dotted), almost nothing recombines, and the current, set by the slope at x = 0, grows by L/W.
:::
:::

```sim plot
view: graph
x: x = 0..100 µm
y: p = 0..1.05
slider: W = 2..100 = 60 µm log
slider: L = 2..300 = 20 µm log
plot: sinh((W - x)/L)/sinh(W/L)*step(W - x) | samples: 600 | label: excess holes ÷ value at x = 0
plot: exp(-x/L) | dashed | color: ch2 | label: long region: e^(−x/L)
plot: (1 - x/W)*step(W - x) | dashed | color: ch3 | label: short region: straight line
readout: injection current ÷ long-region value = 1/tanh(W/L)
readout: fraction reaching the contact = 1/cosh(W/L)
```

::: predict
## Holes in n-type silicon have $D_p$ = 11.3 cm²/s and a lifetime of 10 µs. Roughly how far do they diffuse before recombining?

- [ ] 1 µm
- [ ] 10 µm
- [x] 100 µm
- [ ] 1 cm

::: reveal
$L_p = \sqrt{D_p\tau_p} = \sqrt{11.3 \times 10^{-5}}$ = 0.0106 cm, about 106 µm. That's long compared with a modern transistor's base (well under a micrometer), so almost every carrier crosses it, and short compared with a wafer, so a carrier injected at one face rarely reaches the other.
:::
:::

::: nameit
## Continuity

Counting electrons in a thin slice: they change by the current flowing in minus out, plus generation, minus recombination.

$$\frac{\partial n}{\partial t} = \frac{1}{q}\frac{\partial J_n}{\partial x} + G - R, \qquad \frac{\partial p}{\partial t} = -\frac{1}{q}\frac{\partial J_p}{\partial x} + G - R$$

## Quasi-neutrality

Any net charge in a doped region is neutralized by majority carriers within the **dielectric relaxation time** $\tau_d = \varepsilon/\sigma$, about a picosecond in 1 Ω·cm silicon. So outside depletion regions, injected minority carriers are matched by an equal excess of majority carriers, and the field stays small.

## The minority-carrier diffusion equation

With low-level injection, no field and uniform doping, the hole current is pure diffusion and recombination is $\Delta p/\tau_p$:

$$\frac{\partial\Delta p}{\partial t} = D_p\frac{\partial^2\Delta p}{\partial x^2} - \frac{\Delta p}{\tau_p} + G_L$$

(electrons in p-type material obey the same equation with $D_n$, $\tau_n$).

## Steady-state solutions

With no light, the steady solutions are $e^{\pm x/L_p}$ with the **diffusion length**

$$L_p = \sqrt{D_p\tau_p}$$

- A **long** region ($W \gg L_p$): $\Delta p(x) = \Delta p(0)e^{-x/L_p}$, and the injected current is $J = qD_p\frac{\Delta p(0)}{L_p}$.
- A region of width W ending in an ohmic contact: $\Delta p(x) = \Delta p(0)\frac{\sinh((W - x)/L_p)}{\sinh(W/L_p)}$.
- A **short** region ($W \ll L_p$): a straight line, with $J = qD_p\frac{\Delta p(0)}{W}$.

## Quasi-Fermi levels under injection

Excess carriers split the Fermi level in two: $n = n_ie^{(F_n - E_i)/kT}$ and $p = n_ie^{(E_i - F_p)/kT}$, so

$$F_n - F_p = kT\ln\frac{np}{n_i^2}$$

That split is the voltage a solar cell can deliver (lesson 18).

## The Haynes–Shockley experiment

A pulse of minority carriers injected into a bar with a field E drifts at $\mu E$, spreads as a Gaussian with $\sigma = \sqrt{2Dt}$, and shrinks as $e^{-t/\tau}$. Timing the pulse at a probe downstream measures μ, D and τ at once, and confirms the Einstein relation.
:::

::: example
## Holes are injected at the edge of a long n-type region ($D_p$ = 11.3 cm²/s, $\tau_p$ = 10 µs) with $\Delta p(0) = 10^{12}$ cm⁻³. Find the excess 50 µm in and the injected current density.

::: solution
1. **Diffusion length.**
   $$\begin{aligned} L_p &= \sqrt{D_p\tau_p} \\ &= 106\ \mu\text{m} \end{aligned}$$
2. **Excess 50 µm in.**
   $$\begin{aligned} \Delta p(50\ \mu\text{m}) &= 10^{12}e^{-50/106} \\ &= 6.2 \times 10^{11}\ \text{cm}^{-3} \end{aligned}$$
3. **Current at the edge.**
   $$\begin{aligned} J &= qD_p\frac{\Delta p(0)}{L_p} \\ &= \frac{1.602 \times 10^{-19} \times 11.3 \times 10^{12}}{0.0106} \\ &= 1.7 \times 10^{-4}\ \text{A/cm}^2 \end{aligned}$$
   or 170 µA/cm².
4. **Where the holes go.** Every hole injected eventually recombines in the region, so this is also the total recombination current.

**Answer:** the excess 50 µm in is $6.2 \times 10^{11}$ cm⁻³, and the injected current density is 170 µA/cm².
:::
:::

::: example
## In a Haynes–Shockley run on n-type silicon, a 20 V/cm field carries the hole pulse to a probe 0.5 cm away in 57 µs, and its time spread there has standard deviation 4.1 µs. Find $\mu_p$, $D_p$ and $D_p/\mu_p$.

::: solution
1. **Mobility.**
   $$\begin{aligned} \mu_p &= \frac{d}{Et} \\ &= \frac{0.5}{20 \times 57 \times 10^{-6}} \\ &= 439\ \text{cm}^2/(\text{V·s}) \end{aligned}$$
   so the pulse moves at 8770 cm/s.
2. **Spatial spread.**
   $$\begin{aligned} \sigma &= 8770 \times 4.1 \times 10^{-6} \\ &= 0.036\ \text{cm} \end{aligned}$$
3. **Diffusion constant.** $\sigma^2 = 2Dt$ gives
   $$\begin{aligned} D_p &= \frac{\sigma^2}{2t} \\ &= 11.3\ \text{cm}^2/\text{s} \end{aligned}$$
4. **Einstein check.** The ratio $D_p/\mu_p$ is 0.0259 V: kT/q at 300 K, as the Einstein relation says.

**Answer:** $\mu_p$ = 439 cm²/(V·s) and $D_p$ = 11.3 cm²/s, and their ratio is 0.0259 V, which is kT/q at 300 K.
:::
:::

::: example
## What is the hole diffusion length for $D_p$ = 11.3 cm²/s and $\tau_p$ = 10 µs?

::: solution
1. **Diffusion length.**
   $$\begin{aligned} L_p &= \sqrt{D_p\tau_p} \\ &= \sqrt{11.3 \times 10^{-5}}\ \text{cm} \\ &= 1.06 \times 10^{-2}\ \text{cm} \\ &= 106\ \mu\text{m} \end{aligned}$$
2. **What it means.** A region much thinner than that is "short": carriers cross it before recombining, and the excess profile is a straight line instead of an exponential.

**Answer:** 106 µm.
:::
:::

::: check
given: D = 3 | 11.3 | 32; t = 1 | 20 | 300
answer: sqrt(D*t*1e-6)*1e4
unit: µm
tolerance: 1%

## Minority carriers have D = {D} cm²/s and τ = {t} µs. What's their diffusion length?

::: right
Right. $L = \sqrt{D\tau}$ = {answer} µm.
:::

::: misses
- [D*t*1e-6*1e4] Take the square root.
- [sqrt(D*t)*1e4] Convert µs to seconds.
- [any] Not yet. $L = \sqrt{D\tau}$, in cm, then µm.
:::
:::

::: check
given: x = 20 | 75 | 150; L = 30 | 100
answer: exp(-x/L)
tolerance: 1%

## In a long region with diffusion length {L} µm, what fraction of the injected excess remains {x} µm from the edge?

::: right
Right. $e^{-x/L}$ = {answer}.
:::

::: misses
- [1 - x/L] That's the short-region straight line.
- [any] Not yet. The long-region profile is exponential.
:::
:::

::: check
given: p = 1e11 | 1e13; W = 0.5 | 2 | 10
answer: 1.602e-19*11.3*p/(W*1e-4)*1e3
unit: mA/cm^2
tolerance: 1%

## A short n-type region {W} µm wide ($D_p$ = 11.3 cm²/s) has $\Delta p$ = {p} cm⁻³ injected at one end and an ohmic contact at the other. What's the diffusion current density?

::: right
Right. $qD_p\frac{\Delta p(0)}{W}$ = {answer} mA/cm².
:::

::: misses
- [1.602e-19*11.3*p/(W*1e-4)] Convert A/cm² to mA/cm².
- [any] Not yet. The profile is a straight line from $\Delta p(0)$ to zero.
:::
:::

::: check
given: r = 0.01 | 1 | 100
answer: 11.7*8.854e-14*r*1e12
unit: ps
tolerance: 1%

## What's the dielectric relaxation time of {r} Ω·cm silicon?

::: right
Right. $\tau_d = \varepsilon\rho$ = {answer} ps.
:::

::: misses
- [8.854e-14*r*1e12] Include silicon's relative permittivity, 11.7.
- [any] Not yet. $\tau_d = \varepsilon/\sigma$ with ε in F/cm.
:::
:::

::: check
given: N = 1e15 | 1e16 | 1e17; d = 1e12 | 1e14
answer: 0.02585*ln((N + d)*d/1e20)
unit: V
tolerance: 1%

## Light keeps $\Delta n = \Delta p$ = {d} cm⁻³ in silicon with $N_d$ = {N} cm⁻³. How far apart are the quasi-Fermi levels, in volts?

::: right
Right. $kT\ln\frac{np}{n_i^2}$ = {answer} V.
:::

::: misses
- [0.02585*ln(N*d/1e10)] Divide by $n_i^2 = 10^{20}$.
- [any] Not yet. n = $N_d + \Delta n$, p ≈ Δp.
:::
:::

::: check
given: d = 0.3 | 0.8; E = 10 | 40; t = 20 | 90
answer: d/(E*t*1e-6)
unit: cm^2/(V·s)
tolerance: 1%

## A Haynes–Shockley pulse crosses {d} cm in {t} µs in a field of {E} V/cm. What's the minority-carrier mobility?

::: right
Right. $\mu = \frac{d}{Et}$ = {answer} cm²/(V·s).
:::

::: misses
- [any] Not yet. Velocity is d/t, and mobility is velocity per unit field.
:::
:::

::: check
given: D = 11.3 | 32; t = 10 | 100
answer: sqrt(2*D*t*1e-6)*1e4
unit: µm
tolerance: 1%

## A pulse of carriers with D = {D} cm²/s spreads for {t} µs. What's its standard deviation?

::: right
Right. $\sigma = \sqrt{2Dt}$ = {answer} µm.
:::

::: misses
- [sqrt(D*t*1e-6)*1e4] One-dimensional spreading gives $\sigma^2 = 2Dt$.
- [any] Not yet. Diffusion spreads a Gaussian as $\sqrt{2Dt}$.
:::
:::

::: check
given: W = 10 | 50 | 150; L = 40 | 100
answer: 1/cosh(W/L)
tolerance: 1%

## Minority carriers injected at one edge of a region {W} µm wide, with an ohmic contact at the other, have diffusion length {L} µm. What fraction of them reach the contact?

::: right
Right. $\frac{1}{\cosh(W/L)}$ = {answer}.
:::

::: misses
- [exp(-W/L)] That's the long-region estimate; with the contact, the current ratio is $1/\cosh(W/L)$.
- [any] Not yet. Compare the slopes of the sinh profile at the two ends.
:::
:::

::: check
kind: parts
given: D = 5 | 11.3 | 30; t = 0.1 | 1 | 10; x = 10 | 50

## Holes with $D_p$ = {D} cm²/s and $\tau_p$ = {t} µs are injected into a long n region.

::: part
answer: sqrt(D*t*1e-6)*1e4
unit: µm
tolerance: 0.5%

### What is their diffusion length?

::: misses
- [any] $\sqrt{D\tau}$.
:::
:::

::: part
answer: exp(-x/(sqrt(D*t*1e-6)*1e4))*100
unit: %
tolerance: 0.5%

### What share of the edge excess remains {x} µm in?

::: misses
- [any] $e^{-x/L}$.
:::
:::
:::

::: check
kind: derivation
vars: D = 1..40, t = 1e-8..1e-4, p = 1e10..1e14, x = 0..0.05

## Holes with diffusivity D and lifetime t are injected at x = 0 into a long n region with excess p there.

::: step
answer: sqrt(D*t)

### What is the diffusion length L?
:::

::: step
answer: p*exp(-x/sqrt(D*t))

### What is the excess at depth x?
:::

::: step
answer: 1.602e-19*D*p/sqrt(D*t)

### What hole current density crosses x = 0?
:::

::: right
Right. The injected current is just the charge stored per unit area, $qpL$, divided by the lifetime.
:::
:::

::: explain
## Why can injected minority carriers be treated as moving by diffusion alone, even though the majority carriers respond to fields?

::: model
When holes are injected into n-type silicon, any net charge they bring is neutralized almost instantly: electrons rush in within the dielectric relaxation time, about a picosecond. So wherever there are extra holes there are equally many extra electrons, and the region stays neutral, with only a tiny field. That small field matters for the majority electrons, because there are so many of them that a tiny field moves a large current. For the far fewer minority holes it moves almost nothing, so their motion is dominated by their steep concentration gradient: diffusion. That's why minority carriers obey a pure diffusion equation with recombination.
:::
:::

::: practice

::: check
given: D = 5 | 25; t = 4 | 60
answer: sqrt(D*t*1e-6)*1e4
unit: µm
tolerance: 1%

## Diffusion length for D = {D} cm²/s, τ = {t} µs?

::: misses
- [any] $\sqrt{D\tau}$.
:::
:::

::: check
given: x = 40 | 120; L = 50 | 200
answer: exp(-x/L)
tolerance: 1%

## Remaining fraction at {x} µm, L = {L} µm, long region?

::: misses
- [any] $e^{-x/L}$.
:::
:::

::: check
given: r = 0.01 | 0.1 | 1 | 3 | 10 | 50
answer: 11.7*8.854e-14*r*1e12
unit: ps
tolerance: 1%

## Dielectric relaxation time of {r} Ω·cm silicon?

::: misses
- [any] $\varepsilon\rho$.
:::
:::
:::
