---
title: Drift, diffusion and the Einstein relation
heading: The two ways carriers move, and the band diagram that shows both
eyebrow: S1 · Lesson 2 · Drift, diffusion and the Einstein relation
xp: 50
---

::: hook
Carriers move for two reasons. A field pushes them (drift), and a crowd spreads out (diffusion). Every device current in this course is some balance of the two. A pn junction in equilibrium is a place where huge drift and diffusion currents cancel exactly; a forward-biased diode tips that balance; a bipolar transistor's base speeds its electrons along with a field built into the doping itself. This lesson sets up the two currents, the Einstein relation that ties them together, and the band diagram, the picture device engineers use to see both at once.
:::

::: play
- A p-type base whose acceptor density falls exponentially from $N_0$ at x = 0 with decay length L. The curves are the band edges, with the Fermi level at zero.
- In equilibrium the Fermi level is flat, so where the doping drops, the bands have to bend: the valence band moves away from $E_F$ as the holes thin out.
- The tilted conduction band is a slope that minority electrons roll down. Shorten L and watch the slope, the built-in field, steepen.
:::
:::

```sim plot
view: graph
x: x = 0..0.5 µm
y: E = -0.6..1.2 eV
slider: N0 = 1e16..1e19 = 1e18 log
slider: L = 0.02..1 = 0.1 µm log
plot: -0.02585*ln(1.8e19/N0) - 0.02585*x/L + 1.12 | label: conduction band Ec
plot: -0.02585*ln(1.8e19/N0) - 0.02585*x/L | color: ch2 | label: valence band Ev
plot: 0 | dashed | color: ch3 | label: Fermi level EF
readout: built-in field, kV/cm = 0.2585/L
readout: acceptors at 0.5 µm = N0*exp(-0.5/L) cm⁻³ | format: sci
```

::: predict
## An n-type bar has more donors at one end than the other. It sits on the bench with nothing connected. What current flows?

- [ ] Electrons diffuse toward the lightly doped end, a steady current
- [ ] A field drives electrons toward the heavily doped end
- [x] None: a built-in field's drift cancels diffusion exactly
- [ ] It depends on the temperature

::: reveal
None. Electrons start diffusing toward the light end, leaving positive donor ions behind; the separated charge sets up a field that pulls them back. Within a few dielectric relaxation times the two currents cancel at every point, the Fermi level is flat, and a built-in field remains wherever the doping changes. You can't extract energy from it: a voltmeter's contacts form their own junctions that cancel it.
:::
:::

::: nameit
## Drift

A field E gives each carrier a drift velocity μE, so the drift current density is

$$J_\text{drift} = q(n\mu_n + p\mu_p)E = \sigma E$$

with silicon's mobilities at 300 K fitted by $\mu_n = 92 + \frac{1268}{1 + (N/1.3 \times 10^{17})^{0.91}}$ and $\mu_p = 54.3 + \frac{406.9}{1 + (N/2.35 \times 10^{17})^{0.88}}$ cm²/(V·s), N being the total ionized impurity density.

## Diffusion

Carriers random-walking down a concentration gradient give

$$J_n = qD_n\frac{dn}{dx}, \qquad J_p = -qD_p\frac{dp}{dx}$$

The signs differ because holes carry positive charge: both kinds flow from high to low concentration, but electrons flowing to the right are a current to the left.

## The Einstein relation

Both come from the same random collisions, so they're linked:

$$\frac{D}{\mu} = \frac{kT}{q}$$

25.85 mV at 300 K. Electrons in lightly doped silicon have μ ≈ 1250 and D ≈ 32 cm²/s.

## Total current and quasi-Fermi levels

$$J_n = qn\mu_nE + qD_n\frac{dn}{dx} = n\mu_n\frac{dF_n}{dx}$$

where $F_n$ is the electron **quasi-Fermi level**, defined by $n = n_ie^{(F_n - E_i)/kT}$ even out of equilibrium. Current flows only where a quasi-Fermi level slopes. In equilibrium $F_n = F_p = E_F$, flat everywhere.

## Band diagrams

Electron energy is $-q$ times the electrostatic potential, so the band edges trace the potential upside down, and their slope is the field: $E = \frac{1}{q}\frac{dE_c}{dx}$. Electrons roll down the conduction band; holes float up the valence band.

## The built-in field of graded doping

With the Fermi level flat, $E_c - E_F = kT\ln\frac{N_c}{n}$ changes where the doping does. For a doping that falls exponentially with length L, the field is uniform:

$$E = \frac{kT}{qL}$$

A charge imbalance can only follow doping changes slower than the **Debye length** $L_D = \sqrt{\frac{\varepsilon kT}{q^2N}}$, 41 nm at $10^{16}$ cm⁻³; sharper steps leave space charge behind, which is where the junction of lesson 7 begins.
:::

::: example
## Find the resistivity of n-type silicon with $10^{16}$ donors per cm³, and the voltage across a 1 mm long bar 100 µm × 100 µm carrying 1 mA.

::: solution
1. **Electron mobility.**
   $$\begin{aligned} \mu_n &= 92 + \frac{1268}{1 + (0.0769)^{0.91}} \\ &= 1248\ \text{cm}^2/(\text{V·s}) \end{aligned}$$
2. **Resistivity.**
   $$\begin{aligned} \rho &= \frac{1}{qn\mu_n} \\ &= \frac{1}{1.602 \times 10^{-19} \times 10^{16} \times 1248} \\ &= 0.50\ \Omega\cdot\text{cm} \end{aligned}$$
3. **The bar's resistance.**
   $$\begin{aligned} R &= \rho\frac{L}{A} \\ &= 0.50 \times \frac{0.1}{10^{-4}} \\ &= 500\ \Omega \end{aligned}$$
   so 1 mA drops 0.50 V.
4. **Holes.** Holes, at $10^4$ cm⁻³, contribute nothing measurable.

**Answer:** the resistivity is 0.50 Ω·cm, and the bar drops 0.50 V at 1 mA.
:::
:::

::: example
## A transistor's 0.1 µm base is graded so its acceptor density falls 100-fold from emitter to collector. How strong is the built-in field, and how long would an electron with μ = 300 cm²/(V·s) take to drift across?

::: solution
1. **Built-in field.** A 100-fold drop over W means $L = W/\ln100$, so
   $$\begin{aligned} E &= \frac{kT}{q}\cdot\frac{\ln100}{W} \\ &= \frac{0.02585 \times 4.605}{10^{-5}}\ \text{V/cm} \\ &= 11.9\ \text{kV/cm} \end{aligned}$$
2. **Drift velocity.**
   $$\begin{aligned} v &= \mu E \\ &= 3.6 \times 10^6\ \text{cm/s} \end{aligned}$$
3. **Drift time.** Crossing 0.1 µm takes
   $$\begin{aligned} t &= \frac{W}{v} \\ &= 2.8\ \text{ps} \end{aligned}$$
4. **Diffusion constant.**
   $$\begin{aligned} D &= 0.02585 \times 300 \\ &= 7.8\ \text{cm}^2/\text{s} \end{aligned}$$
5. **Diffusion time.** By diffusion alone, the transit time would be
   $$\begin{aligned} t &= \frac{W^2}{2D} \\ &= 6.4\ \text{ps} \end{aligned}$$
6. **Compare.** The graded base more than doubles the speed, which is why fast bipolar transistors are built this way.

**Answer:** the built-in field is 11.9 kV/cm, and an electron drifts across in 2.8 ps, against 6.4 ps by diffusion alone.
:::
:::

::: example
## Electron density falls by $10^{16}$ cm⁻³ over 1 µm in silicon doped $10^{16}$. What diffusion current density flows?

::: solution
1. **Diffusion constant.**
   $$\begin{aligned} D_n &= \frac{kT}{q}\mu_n \\ &= 0.02585 \times 1248 \\ &= 32.3\ \text{cm}^2/\text{s} \end{aligned}$$
2. **Gradient.**
   $$\begin{aligned} \frac{dn}{dx} &= \frac{10^{16}}{10^{-4}} \\ &= 10^{20}\ \text{cm}^{-4} \end{aligned}$$
3. **Current density.**
   $$\begin{aligned} J &= qD_n\frac{dn}{dx} \\ &= 1.602 \times 10^{-19} \times 32.3 \times 10^{20} \\ &= 517\ \text{A/cm}^2 \end{aligned}$$
4. **Where this happens.** Gradients that steep exist only near junctions, where a built-in field pushes back with an equal drift current.

**Answer:** 517 A/cm².
:::
:::

::: check
given: N = 3e15 | 2e16 | 8e16
answer: 1/(1.602e-19*N*(92 + 1268/(1 + (N/1.3e17)^0.91)))
unit: Ω·cm
tolerance: 1%

## What's the resistivity of n-type silicon with {N} donors per cm³?

::: right
Right. $\rho = \frac{1}{qN\mu_n}$ = {answer} Ω·cm.
:::

::: misses
- [1/(1.602e-19*N*1360)] Mobility falls with doping: use the fit, not the 1360 of pure silicon.
- [any] Not yet. Find $\mu_n$ from the fit, then $\rho = 1/qn\mu_n$.
:::
:::

::: check
given: u = 450 | 1250 | 8500
answer: 0.02585*u
unit: cm^2/s
tolerance: 1%

## A carrier has mobility {u} cm²/(V·s). What's its diffusion coefficient at 300 K?

::: right
Right. $D = \frac{kT}{q}\mu$ = {answer} cm²/s.
:::

::: misses
- [u/0.02585] Multiply by kT/q.
- [any] Not yet. Use the Einstein relation.
:::
:::

::: check
given: n = 1e15 | 1e16; d = 1 | 5 | 20
answer: 1.602e-19*32.3*n/(d*1e-4)
unit: A/cm^2
tolerance: 1%

## Electron density falls linearly from {n} cm⁻³ to zero over {d} µm. With $D_n$ = 32.3 cm²/s, what's the diffusion current density?

::: right
Right. $J = qD_n\frac{dn}{dx}$ = {answer} A/cm².
:::

::: misses
- [1.602e-19*32.3*n/d] Convert µm to cm.
- [any] Not yet. The gradient is n/d.
:::
:::

::: check
given: L = 0.05 | 0.2 | 0.5
answer: 0.02585/(L*1e-4)/1000
unit: kV/cm
tolerance: 1%

## Doping falls exponentially with decay length {L} µm. What built-in field does that create at 300 K?

::: right
Right. $E = \frac{kT}{qL}$ = {answer} kV/cm.
:::

::: misses
- [0.02585/L] Convert µm to cm, and V/cm to kV/cm.
- [any] Not yet. With $E_F$ flat, the band edges tilt by kT per L.
:::
:::

::: check
given: N = 1e14 | 1e16 | 1e18
answer: sqrt(11.7*8.854e-14*0.02585/(1.602e-19*N))*1e7
unit: nm
tolerance: 1%

## What's the Debye length in silicon doped to {N} cm⁻³?

::: right
Right. $L_D = \sqrt{\frac{\varepsilon kT}{q^2N}}$ = {answer} nm.
:::

::: misses
- [any] Not yet. With ε in F/cm, N in cm⁻³ and kT/q in volts, the result is in cm.
:::
:::

::: check
given: W = 0.05 | 0.1 | 0.3; r = 10 | 1000
answer: 0.02585*ln(r)/(W*1e-4)/1000
unit: kV/cm
tolerance: 1%

## A base {W} µm wide has its doping fall {r}-fold from emitter to collector. What's the built-in field?

::: right
Right. $\frac{kT}{q}\cdot\frac{\ln r}{W}$ = {answer} kV/cm.
:::

::: misses
- [0.02585*log(r)/(W*1e-4)/1000] That used log₁₀.
- [any] Not yet. The decay length is $W/\ln r$.
:::
:::

::: check
given: s = 50 | 200 | 1000
answer: 1/(1.602e-19*1e16*1248)/(s*1e-4)
unit: Ω
tolerance: 1%

## A layer of $10^{16}$ cm⁻³ n-type silicon (ρ = 0.50 Ω·cm) is {s} µm thick. What's its sheet resistance, in ohms per square?

::: right
Right. $R_s = \rho/t$ = {answer} Ω per square.
:::

::: misses
- [1/(1.602e-19*1e16*1248)/s] Convert the thickness to cm.
- [any] Not yet. Divide resistivity by thickness.
:::
:::

::: check
kind: parts
given: N = 1e15 | 1e16 | 1e17 | 1e18

## Silicon is doped with {N} donors per cm³; $\mu_n = 92 + 1268/(1 + (N/1.3 \times 10^{17})^{0.91})$.

::: part
answer: 92 + 1268/(1 + (N/1.3e17)^0.91)
unit: cm²/V·s
tolerance: 0.5%

### What is its electron mobility?

::: misses
- [any] Put N into the fit.
:::
:::

::: part
answer: 1/(1.602e-19*N*(92 + 1268/(1 + (N/1.3e17)^0.91)))
unit: Ω·cm
tolerance: 0.5%

### What is its resistivity?

::: misses
- [any] $1/(qN\mu_n)$.
:::
:::

::: part
answer: 0.02585*(92 + 1268/(1 + (N/1.3e17)^0.91))
unit: cm²/s
tolerance: 0.5%

### What is $D_n$?

::: misses
- [any] Einstein: $(kT/q)\mu$.
:::
:::
:::

::: check
kind: derivation
vars: W = 1e-6..1e-4, r = 2..1000, u = 100..1500

## A base of width W (cm) has its doping fall by a factor r from one side to the other, exponentially, and electrons there have mobility u.

::: step
answer: 0.02585*ln(r)/W

### What built-in field does the grading make, in V/cm?
:::

::: step
answer: u*0.02585*ln(r)/W

### What drift velocity does it give electrons?
:::

::: step
answer: W^2/(u*0.02585*ln(r))

### How long does an electron take to cross W by drift alone?
:::

::: right
Right. Grading the base turns slow diffusion into fast drift, which is how bipolar transistors were made faster before heterojunctions.
:::
:::

::: explain
## Why are the diffusion coefficient and the mobility of a carrier proportional to each other?

::: model
Both measure how freely a carrier moves between collisions. Mobility says how fast a steady push (a field) moves it on average; diffusion says how fast random thermal motion spreads a crowd of them. A carrier that scatters rarely does both well. The constant linking them follows from equilibrium: in a crystal with a built-in field, drift and diffusion must cancel exactly, and the carriers must also follow the Boltzmann distribution in the potential. Those two requirements are consistent only if D/μ equals kT/q. Higher temperature means more vigorous random motion for the same response to a push, so the ratio grows with T.
:::
:::

::: practice

::: check
given: N = 1e15 | 5e15 | 1e16 | 4e16 | 2e17 | 1e18
answer: 1/(1.602e-19*N*(92 + 1268/(1 + (N/1.3e17)^0.91)))
unit: Ω·cm
tolerance: 1%

## Resistivity of n-type silicon at {N} cm⁻³?

::: misses
- [any] $1/qN\mu_n$ with the fit.
:::
:::

::: check
given: u = 300 | 480 | 800 | 1350 | 2000 | 3900 | 8500
answer: 0.02585*u
unit: cm^2/s
tolerance: 1%

## D for μ = {u} cm²/(V·s) at 300 K?

::: misses
- [any] $D = \mu kT/q$.
:::
:::

::: check
given: L = 0.05 | 0.08 | 0.1 | 0.2 | 0.3 | 0.5
answer: 0.02585/(L*1e-4)/1000
unit: kV/cm
tolerance: 1%

## Built-in field for an exponential decay length of {L} µm?

::: misses
- [any] $kT/qL$.
:::
:::
:::
