---
title: Poisson's equation
heading: The potential of a charge distribution
eyebrow: A9 · Lesson 47 · Poisson's equation
xp: 40
---

::: hook
Laplace's equation, $\nabla^2V = 0$, describes potential where there's no charge. Where there is charge, Gauss's law $\nabla\cdot\mathbf E = \rho/\varepsilon$ with $\mathbf E = -\nabla V$ gives **Poisson's equation**, $\nabla^2V = -\rho/\varepsilon$: the charge density sets the potential's curvature. It's the equation behind every semiconductor junction, where fixed charges of opposite sign on either side of the junction bend the bands and create the built-in voltage. And its solution for a point charge, $\frac{q}{4\pi\varepsilon r}$, builds the solution for any charge by superposition.
:::

::: play
- A one-dimensional junction: negative charge (density 1) fills $-1 < x < 0$ and positive charge of density $r$ fills $0 < x < 1/r$, so the totals balance.
- The curve is the potential, found by integrating Poisson's equation twice. Where the charge is negative, it curves up; where positive, it curves down.
- Make the positive side denser. Its layer gets thinner, and nearly all the voltage drop moves to the lightly charged side.
:::

```sim plot
view: graph
x: x = -1.5..3
y: V = 0..1.6
slider: r = 0.5..5 step 0.1 = 2
plot: (x + 1)^2/2*step(x + 1)*step(-x) + (0.5 + x - r*x^2/2)*step(x)*step(1/r - x) + (0.5 + 0.5/r)*step(x - 1/r) | label: V(x) | samples: 800
readout: total voltage across the layers = (1 + 1/r)/2 | digits: 4
readout: share on the negative side = 1/(1 + 1/r) | digits: 4
```

::: predict
## In a junction, one side's charge density is ten times the other's. Where does most of the voltage drop?

- [ ] Equally on the two sides
- [ ] On the heavily charged side
- [x] On the lightly charged side
- [ ] Outside the charged layers

::: reveal
On the lightly charged side. The totals must balance, so the lightly charged layer is ten times thicker. The field rises linearly across each layer to the same peak at the junction, so each side's drop is half the peak field times its thickness: the thick layer gets ten times the voltage. That's why a $p^+n$ diode's depletion region lies almost entirely in the $n$ side.
:::
:::

::: nameit
## Poisson's equation

With $\mathbf E = -\nabla V$ and $\nabla\cdot(\varepsilon\mathbf E) = \rho$, a uniform material gives

$$\nabla^2V = -\frac\rho\varepsilon$$

In one dimension, $V'' = -\rho/\varepsilon$: integrate once for the field (with $E = -V'$), and again for the potential. Uniform charge gives a linear field and a parabolic potential.

## The depletion region

In a $pn$ junction, acceptors on the $p$ side ($-qN_A$) and donors on the $n$ side ($+qN_D$) are uncovered over widths $x_p$ and $x_n$ with $N_Ax_p = N_Dx_n$. Solving Poisson's equation across them gives a peak field $E_\text{max} = \frac{qN_Ax_p}{\varepsilon}$ at the junction and a total width

$$W = x_p + x_n = \sqrt{\frac{2\varepsilon V_\text{bi}}{q}\left(\frac{1}{N_A} + \frac{1}{N_D}\right)}$$

## Point charges and superposition

For a point charge $q$, $V = \frac{q}{4\pi\varepsilon r}$, which satisfies $\nabla^2V = 0$ everywhere except at the charge. Because Poisson's equation is linear, the potential of any distribution is the sum over its pieces:

$$V(\mathbf r) = \frac{1}{4\pi\varepsilon}\int\frac{\rho(\mathbf r')}{|\mathbf r - \mathbf r'|}\,dV'$$

## On a grid

The finite-difference version of $\nabla^2V = -\rho/\varepsilon$ in two dimensions sets each point to the average of its four neighbors plus a source term: $V_{ij} = \frac14\left(V_{i+1,j} + V_{i-1,j} + V_{i,j+1} + V_{i,j-1}\right) + \frac{h^2\rho_{ij}}{4\varepsilon}$.
:::

::: example
## A ball of radius $R$ holds charge $Q$ uniformly. What is the potential at its center?

::: solution
1. **The two regions.** Outside, $V = \frac{kQ}{r}$. Inside, $E = \frac{kQr}{R^3}$.
2. **Integrate $-E$ inward from the surface.**
   $$\begin{aligned} V(0) &= \frac{kQ}{R} + \int_0^R\frac{kQr}{R^3}\,dr \\ &= \frac{kQ}{R} + \frac{kQ}{2R} \\ &= \frac{3kQ}{2R} \end{aligned}$$
3. **Put in numbers.** For 1 nC in a 10 cm ball:
   $$\begin{aligned} V(0) &= 1.5 \times \frac{8.988 \times 10^9 \times 10^{-9}}{0.1} \\ &= 135\ \text{V} \end{aligned}$$
   half again the surface potential of 89.9 V.
4. **Shape inside.** Inside, $V$ is a downward parabola, as $\nabla^2V = -\rho/\varepsilon_0$ requires.

**Answer:** $V(0) = \frac{3kQ}{2R}$, which is 135 V for 1 nC in a 10 cm ball.
:::
:::

::: example
## A silicon junction has $N_A = 10^{16}$ cm⁻³, $N_D = 10^{17}$ cm⁻³ and $V_\text{bi}$ = 0.8 V ($\varepsilon_r$ = 11.7). Find the depletion widths and the peak field.

::: solution
1. **Convert to SI units.** $N_A = 10^{22}$ and $N_D = 10^{23}$ m⁻³, and $\varepsilon = 1.036 \times 10^{-10}$ F/m.
2. **Total width.**
   $$\begin{aligned} W^2 &= \frac{2(1.036 \times 10^{-10})(0.8)}{1.602 \times 10^{-19}} \\ &\quad \times \left(10^{-22} + 10^{-23}\right) \\ W &= 0.337\ \text{µm} \end{aligned}$$
3. **Split between the sides.** The split follows $N_Ax_p = N_Dx_n$:
   $$\begin{aligned} x_p &= 0.307\ \text{µm} \\ x_n &= 0.031\ \text{µm} \end{aligned}$$
   with the wider part on the lightly doped $p$ side.
4. **Peak field.**
   $$\begin{aligned} E_\text{max} &= \frac{qN_Ax_p}{\varepsilon} \\ &= 4.7 \times 10^6\ \text{V/m} \end{aligned}$$
   or 47 kV/cm.

**Answer:** the depletion region is 0.337 µm wide, with $x_p = 0.307$ µm and $x_n = 0.031$ µm, and the peak field is $4.7 \times 10^6$ V/m (47 kV/cm).
:::
:::

::: example
## A grid point in a 2D Poisson problem has neighbors at 1, 2, 3 and 2 V, with $h$ = 1 mm and $\rho/\varepsilon = 4000$ V/m². What value does relaxation give it?

::: solution
1. **Grid equation with a source.**
   $$\begin{aligned} V &= \frac14(1 + 2 + 3 + 2) + \frac{h^2}{4}\frac\rho\varepsilon \\ &= 2 + \frac{10^{-6}}{4} \times 4000 \\ &= 2 + 0.001 \\ &= 2.001\ \text{V} \end{aligned}$$
2. **Interpret.** Positive charge raises the point slightly above its neighbors' average: the potential curves down around it, as Poisson's equation says.

**Answer:** relaxation gives it 2.001 V.
:::
:::

::: check
given: Q = 1 | 5; R = 5 | 10
answer: 1.5*8.988e9*Q*1e-9/(R/100)
unit: V
tolerance: 0.5%

## A ball of radius {R} cm holds {Q} nC uniformly. What is the potential at its center?

::: right
Right. $\frac{3kQ}{2R}$ = {answer}.
:::

::: misses
- [8.988e9*Q*1e-9/(R/100)] That's the surface; the center is higher by half again.
- [any] Not yet. Add $\int_0^R\frac{kQr}{R^3}dr = \frac{kQ}{2R}$ to the surface potential.
:::
:::

::: check
given: NA = 1 | 5; ND = 10 | 50
answer: ND/(NA + ND)
tolerance: 0.5%

## A junction has $N_A$ = {NA}e16 cm⁻³ and $N_D$ = {ND}e16 cm⁻³. What fraction of the depletion width lies on the $p$ side?

::: right
Right. $N_Ax_p = N_Dx_n$ gives $\frac{x_p}{W} = \frac{N_D}{N_A + N_D}$ = {answer}.
:::

::: misses
- [NA/(NA + ND)] That's the $n$ side's share: the lightly doped side gets the wider layer.
- [any] Not yet. The uncovered charges must balance.
:::
:::

::: check
given: a = 1 | 2 | 3; b = 2 | 4
answer: (a + b + 2)/4 + 0.25
unit: V
tolerance: 0.5%

## A grid point's neighbors are at {a}, {b}, 1 and 1 V, and its source term $\frac{h^2\rho}{4\varepsilon}$ is 0.25 V. What value does relaxation give it?

::: right
Right. The average, $\frac{a + b + 2}{4}$, plus 0.25: {answer}.
:::

::: misses
- [(a + b + 2)/4] Add the source term.
- [any] Not yet. Average the neighbors and add $\frac{h^2\rho}{4\varepsilon}$.
:::
:::

::: check
given: rho = 1 | 3; d = 1 | 2
answer: rho*d^2/2
unit: V
tolerance: 0.5%

## In one dimension, $V'' = -\given{rho}$ (in V/m², with $\rho/\varepsilon$ written as one number) on $0 < x < \given{d}$ m, with $V(0) = 0$ and $V'(0) = \given{rho}\cdot\given{d}$. What is $V(\given{d})$?

::: right
Right. $V = \rho dx - \frac{\rho x^2}{2}$, so $V(d) = \frac{\rho d^2}{2}$ = {answer}: the drop across a uniformly charged layer whose field falls to zero at its far edge.
:::

::: misses
- [rho*d^2] Integrate twice: there's a factor $\frac12$.
- [any] Not yet. Integrate $V'' = -\rho$ twice with the given starting values.
:::
:::

::: check
kind: parts
given: NA = 1 | 2; ND = 10 | 20; V = 0.7 | 0.9

## A silicon junction ($\varepsilon$ = 1.036e-10 F/m) has $N_A$ = {NA}e22 m⁻³, $N_D$ = {ND}e22 m⁻³ and $V_\text{bi}$ = {V} V.

::: part
answer: sqrt(2*1.036e-10*V/1.602e-19*(1/(NA*1e22) + 1/(ND*1e22)))*1e6
unit: µm
tolerance: 0.5%

### What is the depletion width?

::: misses
- [any] $W = \sqrt{\frac{2\varepsilon V_\text{bi}}{q}\left(\frac{1}{N_A} + \frac{1}{N_D}\right)}$.
:::
:::

::: part
answer: 1.602e-19*NA*1e22*sqrt(2*1.036e-10*V/1.602e-19*(1/(NA*1e22) + 1/(ND*1e22)))*ND/(NA + ND)/1.036e-10/1e5
unit: kV/cm
tolerance: 0.5%

### What is the peak field?

::: misses
- [any] $E_\text{max} = \frac{qN_Ax_p}{\varepsilon}$ with $x_p = W\frac{N_D}{N_A + N_D}$.
:::
:::
:::

::: check
kind: derivation
vars: Q = 0.5..5, R = 0.5..3, r = 0.1..0.45

## A ball of radius $R$ holds charge $Q$ uniformly. Take $k = 1$. Find the potential inside.

::: step
answer: Q/R + Q*(R^2 - r^2)/(2*R^3)

### Integrating $E = \frac{Qr}{R^3}$ inward from the surface, what is $V(r)$?
:::

::: step
answer: 3*Q/(2*R)

### What is $V(0)$?
:::

::: right
Right. A downward parabola inside, joining $\frac QR$ smoothly at the surface.
:::
:::

::: check
kind: python

## Write `depletion(NA, ND, Vbi, er=11.7)` (densities in m⁻³) returning `(W, xp, xn, Emax)` in meters and V/m. Set `res = depletion(1e22, 1e23, 0.8)`.

```python starter
import math

def depletion(NA, ND, Vbi, er=11.7):
    return 0, 0, 0, 0

res = depletion(1e22, 1e23, 0.8)
print(res)
```

```python solution
import math

def depletion(NA, ND, Vbi, er=11.7):
    q, eps = 1.602e-19, er * 8.854e-12
    W = math.sqrt(2 * eps * Vbi / q * (1 / NA + 1 / ND))
    xp = W * ND / (NA + ND)
    xn = W * NA / (NA + ND)
    Emax = q * NA * xp / eps
    return W, xp, xn, Emax

res = depletion(1e22, 1e23, 0.8)
print(res)
```

```python tests
W, xp, xn, Emax = res
assert abs(W - 3.3736e-7) < 1e-10, f"W should be 0.337 um; got {W}."
assert abs(xp + xn - W) < 1e-15 and abs(1e22 * xp - 1e23 * xn) < 1e3, "The widths must add to W and balance the charge."
assert abs(Emax - 4.743e6) < 2e3, f"The peak field is about 47.4 kV/cm; got {Emax}."
```

::: right
Right. One function gives every number a junction designer needs from three inputs.
:::
:::

::: explain
## Why does the lightly doped side of a $pn$ junction get almost all of the depletion region and the voltage?

::: model
The uncovered charges on the two sides must balance, $N_Ax_p = N_Dx_n$, so the side with fewer dopant atoms per volume needs a thicker layer to hold the same total charge. Poisson's equation then makes the field rise linearly across each layer to the same peak at the junction, so the field is spread over a longer distance on the light side. The voltage across each side is half the peak field times that side's thickness, so the thick, lightly doped layer carries most of it, in proportion to its thickness. A $p^+n$ diode is therefore designed around its $n$ side: its doping sets the breakdown voltage and the capacitance.
:::
:::

::: practice

::: check
given: NA = 0.1..100; ND = 0.1..100
answer: ND/(NA + ND)
tolerance: 0.5%

## $p$-side share of the depletion width for $N_A$ = {NA}, $N_D$ = {ND} (same units)?

::: misses
- [any] $\frac{N_D}{N_A + N_D}$.
:::
:::

::: check
given: Q = 0.1..10; R = 1..20
answer: 1.5*8.988e9*Q*1e-9/(R/100)
unit: V
tolerance: 0.5%

## Center potential in volts of a uniform ball, {Q} nC in {R} cm?

::: misses
- [any] $\frac{3kQ}{2R}$.
:::
:::
:::
