---
title: "Transport: diffusion, conduction and the Einstein relation"
heading: How carriers, heat and dopants spread
eyebrow: "B11 · Lesson 43 · Transport: diffusion, conduction and the Einstein relation"
xp: 50
---

::: hook
Particles that move at random, bumping into things, spread out: dopant atoms diffusing into a hot wafer to form a junction, minority carriers spreading from where light created them in a solar cell, heat leaking through a chip. All of these follow the same law, a flux proportional to the gradient, with a coefficient set by how fast the particles move and how far they go between collisions. Push the particles with a field and they drift, and the **Einstein relation** ties the two responses together: a carrier's diffusion constant and its mobility are linked by kT/q, because both come from the same random collisions.
:::

::: play
- Boron diffuses into silicon from a surface held at $10^{20}$ cm⁻³. The curve is the concentration against depth, $C_s\,\text{erfc}\frac{x}{2\sqrt{Dt}}$, on a log scale; the dashed line is an n-type background of $10^{15}$ cm⁻³.
- The junction forms where the boron falls to the background (marker). Lengthen the time and it moves deeper as $\sqrt t$.
- Raise the temperature: D follows an Arrhenius law with activation energy 3.46 eV, so going from 1100 to 1200 °C multiplies D by 7.3 and the junction depth by 2.7 in the same time. That's why diffusion furnaces are controlled to a fraction of a degree.
:::
:::

```sim plot
view: graph
x: x = 0..4 µm
y: C = 1e14..1e21 log
slider: T = 900..1200 step 5 = 1100 °C
slider: h = 0.1..10 = 1 h log
plot: 1e20*erfc(x*1e-4/(2*sqrt(0.76*exp(-3.46/(0.000086173*(T + 273.15)))*h*3600))) | samples: 800 | label: boron, cm⁻³
plot: 1e15 | dashed | label: background
marker: x = 2*3.12341*sqrt(0.76*exp(-3.46/(0.000086173*(T + 273.15)))*h*3600)*1e4 | label: junction
readout: D, cm²/s = 0.76*exp(-3.46/(0.000086173*(T + 273.15)))
readout: diffusion length √(Dt), µm = sqrt(0.76*exp(-3.46/(0.000086173*(T + 273.15)))*h*3600)*1e4
```

::: predict
## Electrons in silicon have mobility 1400 cm²/(V·s). What's their diffusion constant at 300 K?

- [ ] 1400 cm²/s
- [x] 36 cm²/s
- [ ] 0.026 cm²/s
- [ ] It's unrelated to the mobility

::: reveal
The Einstein relation gives $D = \mu\frac{kT}{q} = 1400 \times 0.02585$ = 36 cm²/s. With a minority-carrier lifetime of 1 µs, electrons injected into p-type silicon spread over a diffusion length $\sqrt{D\tau}$ = 60 µm before recombining, which is why solar-cell bases can be hundreds of micrometers thick and still collect carriers.
:::
:::

::: nameit
## Diffusion

Random walkers with mean speed $\bar v$ and mean free path λ obey **Fick's law**, $J = -D\frac{dn}{dx}$, with

$$D = \frac13\bar v\lambda$$

and the **diffusion equation** $\frac{\partial n}{\partial t} = D\frac{\partial^2n}{\partial x^2}$. In time t they spread a distance of order $\sqrt{Dt}$. From a surface held at concentration $C_s$, the profile is $C_s\,\text{erfc}\frac{x}{2\sqrt{Dt}}$. Dopant diffusion constants in silicon follow $D = D_0e^{-E_a/kT}$; boron has $D_0$ = 0.76 cm²/s, $E_a$ = 3.46 eV.

## Drift and mobility

A field E gives carriers a drift velocity $v_d = \mu E$, with mobility $\mu = \frac{q\tau}{m^*}$ (τ the mean time between collisions). Conductivity is $\sigma = nq\mu = \frac{nq^2\tau}{m^*}$.

## The Einstein relation

In equilibrium, drift in the built-in field must cancel diffusion down the concentration gradient, and the Boltzmann distribution $n \propto e^{q\varphi/kT}$ then requires

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

for every nondegenerate carrier. It's the first fluctuation–dissipation relation (lesson 46): the random motion that causes diffusion is the same that causes resistance.

## Heat

Heat carried by random motion has conductivity $\kappa = \frac13Cv\lambda$, with C the heat capacity per volume. In metals, electrons carry both charge and heat, and the **Wiedemann–Franz law** ties them: $\frac{\kappa}{\sigma T} = L = \frac{\pi^2}{3}\left(\frac kq\right)^2$ = 2.44 × 10⁻⁸ W·Ω/K². In semiconductors and insulators, phonons carry heat.
:::

::: example
## How deep is a boron junction after one hour at 1100 °C into a 10¹⁵ cm⁻³ background, from a 10²⁰ cm⁻³ surface?

::: solution
1. **Diffusion constant.**
   $$\begin{aligned} D &= 0.76\,e^{-3.46/0.1183} \\ &= 1.52 \times 10^{-13}\ \text{cm}^2/\text{s} \end{aligned}$$
2. **Diffusion length.** After one hour,
   $$\sqrt{Dt} = 0.234\ \mu\text{m}$$
3. **Where the junction is.** The boron falls to the background, $10^{-5}$ of the surface value, where
   $$\text{erfc}\frac{x}{2\sqrt{Dt}} = 10^{-5}$$
   at $\frac{x}{2\sqrt{Dt}}$ = 3.12.
4. **Junction depth.**
   $$\begin{aligned} x_j &= 2 \times 3.12 \times 0.234\ \mu\text{m} \\ &= 1.46\ \mu\text{m} \end{aligned}$$

**Answer:** the junction is 1.46 µm deep.
:::
:::

::: example
## Estimate copper's thermal conductivity from its electrical conductivity, 5.96 × 10⁷ S/m, at 300 K.

::: solution
1. **Wiedemann–Franz law.**
   $$\begin{aligned} \kappa &= L\sigma T \\ &= 2.44 \times 10^{-8} \times 5.96 \times 10^7 \\ &\quad \times 300 \\ &= 436\ \text{W/(m·K)} \end{aligned}$$
2. **Compare.** The measured value is 401. Good electrical conductors are good heat conductors because the same electrons carry both, which is why copper and aluminum make both wires and heat sinks.

**Answer:** about 436 W/(m·K), against a measured 401 W/(m·K).
:::
:::

::: example
## The electron density in a piece of silicon falls as $n = n_0e^{-x/\lambda}$, with $n_0 = 10^{16}$ cm⁻³ and λ = 0.1 µm, at 300 K and in equilibrium. What field holds it there? Take μ = 1350 cm²/(V·s).

::: solution
1. **Diffusion constant.**
   $$\begin{aligned} D &= \mu\frac{kT}{q} \\ &= 34.9\ \text{cm}^2/\text{s} \end{aligned}$$
2. **Diffusion current at x = 0.**
   $$\begin{aligned} J &= qD\frac{n_0}{\lambda} \\ &= 1.602 \times 10^{-19} \times 34.9 \times \frac{10^{16}}{10^{-5}} \\ &= 5590\ \text{A/cm}^2 \end{aligned}$$
3. **The field that balances it.** In equilibrium no current flows, so a field must push back with the same drift current $qn\mu E$. That needs
   $$\begin{aligned} E &= \frac{kT/q}{\lambda} \\ &= 2585\ \text{V/cm} \end{aligned}$$
   the same at every x, since both currents scale with n.
4. **Where this field appears.** This is the built-in field of a p–n junction or a graded base: thermal voltage divided by the length over which the density changes by a factor of e.

**Answer:** a field of 2585 V/cm holds the electrons there.
:::
:::

::: check
given: u = 450 | 1400 | 8500; T = 77 | 300 | 400
answer: u*0.000086173*T
unit: cm^2/s
tolerance: 0.5%

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

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

::: misses
- [u/(0.000086173*T)] It's μ times kT/q, not divided.
- [any] Not yet. kT/q = 86.17 µV/K × T.
:::
:::

::: check
given: D = 12 | 36 | 200; t = 0.1 | 1 | 10
answer: sqrt(D*t*1e-6)*1e4
unit: µm
tolerance: 0.5%

## Minority carriers with D = {D} cm²/s live {t} µs on average. What's their diffusion length?

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

::: misses
- [D*t*1e-6*1e4] Diffusion spreads as the square root of time.
- [any] Not yet. Convert cm to µm.
:::
:::

::: check
given: d = 0.76 | 0.32; E = 3.46 | 3.5; T = 950 | 1050 | 1150
answer: d*exp(-E/(0.000086173*(T + 273.15)))
unit: cm^2/s
tolerance: 1%

## A dopant has $D_0$ = {d} cm²/s and activation energy {E} eV. What's its diffusion constant at {T} °C?

::: right
Right. $D_0e^{-E_a/kT}$ = {answer} cm²/s.
:::

::: misses
- [d*exp(-E/(0.000086173*T))] Use kelvin.
- [any] Not yet. Arrhenius.
:::
:::

::: check
given: r = 1.7 | 2.7 | 10; T = 300 | 400
answer: 2.44e-8/(r*1e-8)*T
unit: W/(m·K)
tolerance: 0.5%

## A metal has resistivity {r} µΩ·cm at {T} K. Estimate its electronic thermal conductivity.

::: right
Right. $\kappa = LT/\rho$ = {answer} W/(m·K).
:::

::: misses
- [2.44e-8/(r*1e-6)*T] 1 µΩ·cm = 10⁻⁸ Ω·m.
- [any] Not yet. Wiedemann–Franz with L = 2.44 × 10⁻⁸ W·Ω/K².
:::
:::

::: check
given: t = 0.05 | 0.1 | 0.3; m = 0.067 | 0.26 | 0.5
answer: 1.602176634e-19*t*1e-12/(m*9.1093837015e-31)*1e4
unit: cm^2/(V·s)
tolerance: 0.5%

## A carrier with effective mass {m}$m_e$ scatters every {t} ps on average. What's its mobility?

::: right
Right. $\mu = q\tau/m^*$ = {answer} cm²/(V·s).
:::

::: misses
- [1.602176634e-19*t*1e-12/(m*9.1093837015e-31)] Convert m²/(V·s) to cm²/(V·s).
- [any] Not yet. μ = qτ/m*.
:::
:::

::: check
given: k = 150 | 2000 | 1.4; C = 1.66 | 1.8 | 1.6; v = 6000 | 12000 | 4000
answer: 3*k/(C*1e6*v)*1e9
unit: nm
tolerance: 0.5%

## A crystal has thermal conductivity {k} W/(m·K), heat capacity {C} × 10⁶ J/(m³·K) and sound speed {v} m/s. What's the phonon mean free path?

::: right
Right. $\lambda = \frac{3\kappa}{Cv}$ = {answer} nm.
:::

::: misses
- [k/(C*1e6*v)*1e9] Include the 3 from $\kappa = \frac13Cv\lambda$.
- [any] Not yet. Kinetic theory of heat conduction.
:::
:::

::: check
kind: parts
given: u = 450 | 1350; d = 0.05 | 0.2; T = 350 | 400

## Carriers with mobility {u} cm²/(V·s) at {T} K.

::: part
answer: u*0.00008617333*T
unit: cm²/s
tolerance: 0.5%

### What's their diffusion constant?

::: misses
- [u*0.025852] Use kT/q at {T} K.
- [any] Einstein: $D = \mu\frac{kT}{q}$.
:::
:::

::: part
answer: 0.00008617333*T/(d*1e-4)
unit: V/cm
tolerance: 0.5%

### What field holds them in an equilibrium profile that falls by e every {d} µm?

::: misses
- [any] $E = \frac{kT/q}{\lambda}$.
:::
:::
:::

::: check
kind: derivation
vars: D = 0.00000000000001..0.000000000001, t = 60..36000

## A dopant diffuses from a fixed surface concentration with D (cm²/s) for t seconds.

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

### What's the diffusion length $2\sqrt{Dt}$, in µm?
:::

::: step
answer: 2*3.1234*sqrt(D*t)*10000

### The profile is $C_s\,\text{erfc}\frac{x}{2\sqrt{Dt}}$. Where does it fall to $10^{-5}C_s$ (erfc 3.1234 = $10^{-5}$), in µm?
:::

::: right
Right. The depth grows as the square root of time: four times as long goes twice as deep.
:::
:::

::: explain
## Why are a carrier's diffusion constant and its mobility proportional, with kT/q as the ratio?

::: model
Both describe the same random motion. Mobility says how fast a carrier drifts under a force, which is limited by how often its collisions randomize its velocity; diffusion says how fast a crowd of carriers spreads, which depends on how far they travel between those same collisions. In equilibrium, a sample with a concentration gradient builds up an electric field, and the drift current it drives must exactly cancel the diffusion current, while the carriers themselves follow the Boltzmann distribution in the potential. Those two requirements are consistent only if D equals μ times kT/q. More collisions mean less of both; higher temperature means more thermal kicks, and so more diffusion for the same mobility.
:::
:::

::: practice

::: check
given: u = 200 | 3000; T = 250 | 450
answer: u*0.000086173*T
unit: cm^2/s
tolerance: 0.5%

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

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

::: check
given: D = 5 | 100; t = 0.01 | 30
answer: sqrt(D*t*1e-6)*1e4
unit: µm
tolerance: 0.5%

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

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

::: check
given: r = 1.6 | 50; T = 250 | 500
answer: 2.44e-8/(r*1e-8)*T
unit: W/(m·K)
tolerance: 0.5%

## Wiedemann–Franz κ for {r} µΩ·cm at {T} K?

::: misses
- [any] $LT/\rho$.
:::
:::
:::
