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, , 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 across the top. The shading is the potential inside; the lines are equipotentials.
- Raise . 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?
0.25 V, exactly. Rotate the box to put the 1 V side on each of the four sides in turn and add the four solutions: the sum has 1 V on every side, so it's 1 V everywhere, including the center. By symmetry each of the four contributes the same at the center, so each gives . That's superposition, which works because Laplace's equation is linear.
Name it
The Laplacian
It measures how much at a point differs from the average around it: on a grid with spacing ,
Poisson's and Laplace's equations
Combining with Gauss's law :
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 sweeps for an grid; faster methods (multigrid, A13) speed this up enormously.
Worked example
Check that is harmonic, and find .
Show the solution
- Second partials of . They cancel, so it's harmonic.
- Laplacian of . not harmonic.
- What it would need. By Poisson's equation it would need a charge density to exist.
Answer is harmonic, and .
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
- Average the neighbors.
- Why the average. In a converged solution every interior point satisfies this.
Answer the point settles at 4 V.
Worked example
Check whether and are harmonic in the plane ().
Show the solution
- Write in and .
- Its second partials. They add to zero away from the origin. It's the potential of a line charge.
- Now . not zero.
- Interpret. A charge-free region can't have this potential; it describes a uniform charge density, by Poisson's equation.
Answer is harmonic away from the origin; isn't, since its Laplacian is 4.
Check
What is ?
Check
A region holds charge density 8 nC/m³. What is 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 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 .
(a)
What is of the first two terms, ?
(b)
What must be for to be harmonic?
Check
A grid point's four neighbors are at , , and 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?
In a charge-free region the voltage satisfies Laplace's equation, which means its value at every point equals the average of its values on any small circle around it. A peak would have to be higher than everything around it, so it couldn't equal their average. The same goes for a dip. So the highest and lowest voltages always lie on the boundary, on the conductors or charges, never out in empty space.
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.