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

A9 · Lesson 46 · Laplace's equation

Every point is the average of its neighbors

In the empty space between conductors, the voltage obeys one equation, ∇2V=0, and that equation has a remarkable consequence: the voltage at every point is exactly the average of the voltages around it. So there are no peaks or dips in empty space, the field is decided entirely by the voltages on the conductors, and a computer can find it by repeatedly replacing each grid point with the average of its neighbors. Field solvers for capacitors, connectors and circuit-board traces all start from this.

  • A rectangular slot has its floor and sides at 0 V and its lid held at a voltage that varies as sin⁡(nπx) across the top. The shading is the potential inside; the lines are equipotentials.
  • Raise n. The pattern on the lid dies away faster as you go down into the slot. Why do finer patterns fade more quickly?

Predict

A square box has its top held at 1 V and its other three sides at 0 V. What is the voltage at the center?

Name it

The Laplacian

∇2V=∇⋅∇V=∂2V∂x2+∂2V∂y2+∂2V∂z2

It measures how much V at a point differs from the average around it: on a grid with spacing h,

∇2V≈VE+VW+VN+VS−4Vh2

Poisson's and Laplace's equations

Combining 𝐄=−∇V with Gauss's law ∇⋅𝐄=ρ/ε0:

∇2V=−ρε0(Poisson)∇2V=0 where ρ=0(Laplace)

Solutions of Laplace's equation are called harmonic.

The averaging property

A harmonic function's value at any point equals its average over any circle (or sphere) around it. Consequences:

  • No interior maxima or minima: the extremes are on the boundary, the conductors.
  • Uniqueness: the voltages on the boundary fix the solution everywhere inside.
  • Earnshaw's theorem: no arrangement of static charges can hold another charge in stable equilibrium, since its potential energy can't have a minimum in empty space.

Relaxation

Set the boundary values, guess the inside, then repeatedly replace each interior point with the average of its four neighbors. The grid settles to the discrete solution of Laplace's equation. Each sweep is cheap, but convergence takes roughly N2 sweeps for an N×N grid; faster methods (multigrid, A13) speed this up enormously.

Worked example

Check that V=x2−y2 is harmonic, and find ∇2(3x2+y2).

Show the solution
  1. Second partials of x2−y2. ∂2V∂x2=2∂2V∂y2=−2 They cancel, so it's harmonic.
  2. Laplacian of 3x2+y2. ∇2(3x2+y2)=6+2=8 not harmonic.
  3. What it would need. By Poisson's equation it would need a charge density ρ=−8ε0 to exist.

Answer x2−y2 is harmonic, and ∇2(3x2+y2)=8.

Worked example

Grid neighbors of a point are at 2, 4, 3 and 7 V, in a charge-free region. What is the point's voltage after relaxation?

Show the solution
  1. Average the neighbors. 2+4+3+74=4V
  2. Why the average. In a converged solution every interior point satisfies this.

Answer the point settles at 4 V.

Worked example

Check whether V=ln⁡r and V=r2 are harmonic in the plane (r=x2+y2).

Show the solution
  1. Write ln⁡r in x and y. ln⁡r=12ln⁡(x2+y2)
  2. Its second partials. Vxx=y2−x2r4Vyy=x2−y2r4 They add to zero away from the origin. It's the potential of a line charge.
  3. Now r2=x2+y2. ∇2V=2+2=4 not zero.
  4. Interpret. A charge-free region can't have this potential; it describes a uniform charge density, by Poisson's equation.

Answer ln⁡r is harmonic away from the origin; r2 isn't, since its Laplacian is 4.

Check

What is ∇2(1x2+2y2)?

Check

A region holds charge density 8 nC/m³. What is ∇2V there?

Write units the way you normally would: 1.5 V/m², 1500 mV/m² and 0.0015 kV/m² are the same answer.

Check

After relaxation, a charge-free grid point has neighbors at 1, 3, 2 and 0 V. What is its voltage?

Check

A square box has its top at 10 V, its bottom at 2 V and both sides at 0 V. What is the voltage at the center?

Check

Two large parallel plates are at 0 V and 5 V. What is the voltage 0.25 of the way from the 0 V plate?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

Can a set of fixed charges hold another charge in stable equilibrium in empty space?

Check

Write solve_box(N, iters): an N×N grid with row 0 held at 1 V and the other edges at 0 V, relaxed by iters sweeps that replace every interior point with the average of its four neighbors (use NumPy slices). Return the grid.

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

Check

Take V=2x2+1y2+cz2.

(a)

What is ∇2 of the first two terms, 2x2+1y2?

(b)

What must c be for V to be harmonic?

Check

A grid point's four neighbors are at a, b, c and d volts, in a charge-free region.

Step 1

What should the point's voltage be?

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°.

Explain why

Why can't the voltage in a charge-free region have a peak in the middle?

Practice

Keep practicing

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