B1142 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

B11 · Lesson 42 · Random walks

Why diffusion goes as the square root of time, from pollen grains to electrons crossing a transistor's base

In 1827 Robert Brown watched particles from pollen grains jitter endlessly in water. In 1905 Einstein explained the jitter as the particles being knocked about by molecules, and predicted how far they should wander; Jean Perrin's measurements of it fixed Avogadro's number and settled that atoms are real. The same mathematics, a random walk, describes an electron crossing a transistor's base, a dopant spreading in a furnace and heat soaking into a chip. Its central fact is that the distance covered grows as the square root of the time.

  • Each sample is one walker's position after N steps, each step a random length between −1 and +1. The histogram collects 5000 walkers.
  • The curve is the Gaussian the central limit theorem predicts, with spread N/3.
  • Multiply N by 4 and the spread only doubles. That square-root growth is the signature of diffusion.

Predict

A drop of dye spreads 1 mm in water in about 10 minutes. About how long does it take to spread 1 cm?

Name it

The random walk

A walker takes N independent steps, each with mean zero and mean square ℓ2. The mean square displacements add, so

⟨x2⟩=Nℓ2,xrms=ℓN,

and by the central limit theorem the final position is Gaussian, as lesson 1's spin excess was. If a step happens every τ, then N=t/τ and ⟨x2⟩=2Dt in each direction, with diffusion constant D=ℓ22τ. In three dimensions ⟨r2⟩=6Dt.

The diffusion equation

Many walkers released at one point spread into a Gaussian of width 2Dt, which is the solution of ∂n∂t=D∂2n∂x2. Lesson 43 uses it for dopants and minority carriers, and heat flow obeys the same equation with thermal diffusivity in place of D.

Brownian motion

A sphere of radius a moving through a liquid of viscosity η feels drag 6πηav. Einstein showed that the same molecules that cause the drag cause the random kicks, and that

D=kT6πηa.

More generally D=μmkT, where μm is the velocity per unit force. For a charged carrier, with mobility μ as velocity per unit field, this is the Einstein relation D=μkTq. Lesson 46 shows it's one case of the fluctuation–dissipation theorem.

Carriers as walkers

An electron in silicon moves at its thermal speed and scatters every τm=μm*q, a fraction of a picosecond, so its path is a random walk of tens of nanometers per step. Crossing a region of width W takes about W22D, which sets a bipolar transistor's base transit time and with it the transistor's speed.

Worked example

A bead 1 µm across sits in water at 20 °C (η = 1.0 mPa·s). What's its diffusion constant, and how far does it wander along one axis in 1 s and in 1 minute?

Show the solution
  1. Diffusion constant. D=kT6πηa=4.05×10−216π×10−3×0.5×10−6=4.29×10−13m2/s
  2. Wander along one axis. xrms=2Dt gives 0.93 µm in 1 s and 7.2 µm in 60 s: sixty times the time, under eight times the distance.
  3. Perrin's measurement. Perrin measured displacements like these under a microscope, and since D contains Boltzmann's constant, k=R/NA gave him Avogadro's number.

Answer D = 4.29 × 10⁻¹³ m²/s, and the bead wanders 0.93 µm in 1 s and 7.2 µm in a minute.

Worked example

Electrons in silicon have μ = 1350 cm²/(V·s) and conductivity mass 0.26me. What's their mean free time, and how long do they take to diffuse across a 1 µm transistor base at 300 K?

Show the solution
  1. Mean free time. τm=μm*q=0.135×0.26×9.11×10−311.602×10−19=0.20ps
  2. Step length. At a thermal speed 3kT/m*=2.3×105 m/s that's a step of about 46 nm.
  3. Diffusion constant. D=μkTq=34.9cm2/s
  4. Time to cross the base. t=W22D=10−8cm269.8cm2/s=143ps
  5. Thinner bases. Halving the base width cuts this fourfold, one reason fast bipolar transistors have bases only tens of nanometers thick.

Answer the mean free time is 0.20 ps, and crossing the 1 µm base takes 143 ps.

Worked example

A photon made in the Sun's core scatters off charged particles over and over. If its mean free path were 1 mm everywhere, how long would it take to random-walk out through the Sun's radius of 6.96×108 m?

Show the solution
  1. Number of steps. To get a distance R in three dimensions takes about N=(R/ℓ)2=(6.96×1011)2=4.8×1023 steps.
  2. Time. Each step takes ℓ/c, so t=Nℓc=4.8×1023×10−33×108=1.6×1012s≈51000years
  3. Compare with a straight flight. A straight flight would take 2.3 s.
  4. The real Sun. The true mean free path varies enormously with depth, and careful estimates range over tens of thousands to a couple of hundred thousand years, but the square-root law is why the answer is in millennia at all.

Answer about 1.6×1012 s, or 51 000 years.

Check

A sphere of radius 0.5 µm sits in a liquid of viscosity 1 mPa·s at 293 K.

(a)

What's its diffusion constant?

(b)

How long until its three-dimensional RMS displacement reaches 10 µm?

Write units the way you normally would: 1.5 s and 1500 ms are the same answer.

Check

A walker takes 10000 random steps of 0.5 nm each, in random directions. What's its RMS distance from the start?

Write units the way you normally would: 1.5 nm, 1500 pm and 0.0015 µm are the same answer.

Check

Minority carriers with D = 10 cm²/s diffuse across a 1 µm base. About how long does it take?

Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.

Check

A carrier has mobility 1350 cm²/(V·s) and effective mass 0.067me. What's its mean free time?

Write units the way you normally would: 1.5 ps and 0.0015 ns are the same answer.

Check

Why does a random walker's distance from the start grow as t rather than as t?

Check

A particle diffuses with D = 1 cm²/s. What's its three-dimensional RMS displacement after 1 ns?

Write units the way you normally would: 1.5 µm, 1500 nm and 0.0015 mm are the same answer.

Check

A walker takes a 10 nm step along one axis every 0.1 ps, in either direction. What's its diffusion constant?

Check

A walker takes N independent steps along a line, each of mean zero and RMS size l.

Step 1

What's its mean square displacement?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

Write walk(N, M, seed) returning a NumPy array of the final positions of M walkers that each take N steps of ±1, and fraction_beyond(x, limit) returning the fraction of positions with |x|> limit. Use np.random.default_rng(seed).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why do the same molecular collisions that slow a Brownian particle also make it wander?

Practice

Keep practicing

8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.