Learning Objectives
By the end of this section, you will be able to:
- Recognize Laplace's equation as the law of perfect balance — every interior value is the local average of its neighbours.
- Rewrite the equation in polar coordinates and explain why the geometry of a disk demands it.
- Derive the separated solutions and and explain why the companion solutions must be discarded inside the disk.
- Match any boundary function to a Fourier series and assemble the unique harmonic extension.
- Apply the Poisson integral formula and the mean-value theorem to read off interior values without solving any equation.
- Verify the theory numerically — first with plain Python, then with a vectorized PyTorch solver that handles the whole disk in one matrix multiply.
The Big Picture
"Laplace's equation is the mathematics of a system that has run out of reasons to change."
Imagine a thin circular metal plate. You clamp a soldering iron and a block of ice around its rim in an intricate pattern of hot and cold spots — the boundary temperature . You wait. Heat flows around the disk, settling. After enough time, the interior temperature stops changing entirely. What pattern does it settle into?
The answer obeys a single, supremely elegant equation:
This is Laplace's equation. Its solutions are called harmonic functions. In any region of the plane where it holds, the function has a stunning property:
The mean-value property — the soul of harmonic functions
The value of at any point equals the average of on any circle drawn around that point (so long as the disk inside is also inside the domain). No peaks, no valleys, no surprises — every interior value is dictated by the boundary alone.
For a circular domain, this property is not just an abstract theorem — it is the recipe. In this section we will turn it into an explicit formula:
Every symbol in this Poisson integral formula will be derived geometrically, interpreted intuitively, and verified by hand. By the end of the section it should feel inevitable.
Why Polar Coordinates Are the Right Language
Cartesian coordinates are flat and unbiased — they treat every direction equally. That is exactly the wrong feature here. The domain is a disk, and a disk has a centre and a boundary; it cares deeply about radius and angle. So we rewrite as where
The boundary becomes the simple set (taking the disk radius to be 1 without loss of generality). The boundary data becomes a function of one variable, . And — crucially — the differential operator takes a form whose pieces separate cleanly into radial and angular halves.
A small but powerful change of language
The same equation that looks like a coupled second-order PDE in almost falls apart into two independent ODEs in . The geometry of the disk is doing the work.
Laplace's Equation in Polar Form
A short calculation with the chain rule (you can do it in two pages, or look it up) converts into:
Three terms, each with a clean interpretation:
- — pure curvature in the radial direction. Tells you how the temperature bows as you walk straight out from the centre.
- — a geometric correction: as you move out, you sweep through more circumference, so a uniform radial flux must be balanced by a slope. The factor encodes the cylindrical area element.
- — angular curvature. The factor is there because arc length along a circle of radius is , so a second derivative with respect to must be rescaled by to be a true second derivative along the surface.
Multiply through by to clear the fractions:
This form is the launching pad for separation of variables — the two halves now have matching degrees in .
Separation of Variables on the Disk
We try a solution that factors into a radial piece and an angular piece:
Substitute into the polar Laplace equation and divide by :
The left side depends only on ; the right side depends only on . The only way two such functions can be equal is if both are constant. Call the constant . Then we get two ordinary differential equations:
Angular equation
has the familiar oscillatory solutions and . The domain wraps around — and are the same physical point — so periodicity forces to be a non-negative integer.
Why integer n?
If were anything else (say ), would not return to its original value as went around the circle. The function would be multi-valued — physically nonsense for a temperature on a disk.
Radial equation — Cauchy–Euler form
is a Cauchy–Euler equation. The natural ansatz is . Substituting:
So the general radial solution for is
The special case gives a double root; its solutions are
Boundedness at the Origin Removes Half the Solutions
The disk contains the point . The functions for and for blow up there. Real physical temperature does not blow up — there is no point source at the centre.
So we set every . The surviving radial functions are for .
In an annulus, the story changes
If the domain were a ring instead of a disk, the origin would not be inside, and the and terms would survive. The general solution would then be a sum of both sets of modes — and you would need two boundary conditions to fix the coefficients.
Combining the radial and angular pieces, the bounded separated solutions on the disk are:
Each of these is a perfectly good harmonic function on the disk. The general solution is their superposition:
Two ideas in one formula
The angular part is a Fourier series — the same tool you used for vibrating strings and heat flow on a rod. The radial part attaches a damping factor in front of every mode. Higher modes decay faster as you move inward, so the centre of the disk sees only the gentlest features of the boundary.
Coupling to the Boundary via Fourier Series
At the formula must match the prescribed boundary data :
This is just the Fourier series of . The coefficients are computed by the usual projection integrals:
Notice that is the average of on the boundary — exactly the boundary mean.
Once those numbers are computed, the interior solution is fixed:
| Mode n | Angular shape | Damping factor | Reaches the centre? |
|---|---|---|---|
| 0 | constant | r⁰ = 1 | Yes — survives at r = 0 |
| 1 | cos θ, sin θ | r | Falls off linearly |
| 2 | cos 2θ, sin 2θ | r² | Falls off quadratically |
| n | cos nθ, sin nθ | rⁿ | Decays like rⁿ |
The intuition baked into the damping
A sharp feature on the boundary (a hot spike) has lots of high-frequency content — large components. Those modes are crushed by as you move inward. By the time you reach the centre only the boundary average survives. Diffusion in space, baked into a single algebraic factor.
Interactive: Basis Modes of the Disk
Here is the basis you just derived. Pick a mode and the cosine / sine mix; watch the radial damping in action.
Two things to notice:
- The pattern always vanishes at the centre except for .
- There are exactly nodal radii — rays where the mode is zero. Between any two consecutive rays the sign flips. This is the same combinatorics as the zeros of on the unit circle.
The Poisson Integral Formula
The Fourier-series solution is exact, but it asks us to compute infinitely many coefficients. Poisson's trick is to sum the series in closed form, swapping the infinite sum for a single integral against a magical kernel.
Substitute the projection formulas for into the series and swap the sum with the integral:
The bracket is a geometric series in disguise. Using and summing the resulting geometric series gives
Putting it back into the integral with produces the Poisson integral formula:
The quantity in the integrand is the Poisson kernel:
Geometric reading: the denominator is, by the law of cosines, the squared distance from the interior point at radius to the boundary point at angular offset . So
Boundary points near the interior probe (small distance) get a large weight; boundary points on the opposite side (large distance) get a small weight. The Poisson kernel is an inverse-square influence function — exactly what physical intuition (think electrostatics, think gravity) would suggest.
A different way to read the formula
is a weighted average of the boundary data. The weights are positive, sum to 1 over the circle, and concentrate near the boundary point closest to the probe. The interior temperature is just "what you see when you smear the boundary by these weights."
Interactive: The Poisson Kernel
Slide from 0 toward 1 and watch the kernel transform.
Three limits worth noting:
- At , the kernel is the constant . The integral becomes a plain average of over the circle — this is the mean-value theorem.
- At , the kernel becomes a spike at . The integral becomes itself — the interior solution recovers the boundary as you approach it.
- The peak height is . The kernel remains positive for every and — this positivity is the deep reason harmonic functions obey a maximum principle (no interior peaks).
The Mean-Value Theorem
Set in either the Fourier sum or the Poisson integral. Every with evaluates to zero, and the Poisson kernel collapses to . Both formulas say the same thing:
The value of a harmonic function at the centre of a disk equals its average on the boundary. And by translation invariance: the value at any point equals its average on any circle around that point, as long as the surrounding disk lies inside the domain.
A startling consequence: no interior extrema
If had a local maximum at some interior point, the value at that point would be strictly greater than the average on a small surrounding circle — contradicting the mean-value property. The same argument rules out interior minima. So every local extremum of a harmonic function lies on the boundary. This is the maximum principle, and it is one of the cornerstones of elliptic PDE theory.
Interactive: The Full Disk Explorer
Time to play. Pick a boundary preset; the entire interior heatmap is the unique harmonic extension. Drag the probe to read off ; turn on the Poisson kernel halo to see how a single boundary point influences each interior pixel. Confirm the mean-value theorem by checking that the centre value always equals the boundary average.
Two experiments worth trying:
- Pick cos(φ) as the boundary. The interior solution is exactly — a perfectly linear function in . The mean is zero, so the centre is zero. Verify both.
- Pick cos(5φ) and watch the colour fade to a near-uniform grey by . The damping factor at is just — high-frequency boundary features are essentially invisible in the middle.
Worked Example (Collapsible, By Hand)
Let us solve one problem completely by hand. Boundary: . Find on the unit disk and evaluate at three interior points.
Show full hand-worked solution
Step 1. Read off the Fourier coefficients
The boundary already is its own Fourier series — no integrals needed. By inspection,
- All other .
Step 2. Attach the radial damping
The mode-1 term gets a factor of . So
In Cartesian coordinates this is just — a linear function, which is automatically harmonic. Notice how the polar machinery reproduces the obvious Cartesian answer.
Step 3. Evaluate at three interior points
| Point | (r, θ) | x = r cos θ | u = 50 + 50 r cos θ |
|---|---|---|---|
| Centre | (0, 0) | 0 | 50.00 |
| Right midpoint | (0.5, 0) | +0.50 | 75.00 |
| Left midpoint | (0.5, π) | −0.50 | 25.00 |
| Top midpoint | (0.5, π/2) | 0 | 50.00 |
| NE diagonal | (0.7, π/4) | ≈ +0.495 | ≈ 74.75 |
Step 4. Verify the mean-value theorem
The boundary average is
And indeed . Done.
Step 5. Sanity-check against the Poisson integral
Take any interior point, say . The Poisson integral becomes
Direct numerical evaluation (or a contour integral if you are feeling ambitious) gives exactly — matching the much simpler Fourier-series answer. The two formulas must agree; they are two different windows onto the same harmonic extension.
Step 6. Try a second case to keep your hand in
Repeat with . The answer is . Three sets of two nodal radii each, vanishing at the centre, inheriting a single Fourier mode from the boundary.
Python: Fourier Coefficients and the Truncated Series
Plain Python first — no fancy libraries, no shortcuts. We will compute the Fourier coefficients of a square-wave boundary, attach the radial damping to each mode, and read off the interior value at a probe point. Every line is annotated.
Run it. The boundary mean is , the centre value is , and the probe value at is about . Two numbers worth burning into memory — they will come back from a completely different formula in the next subsection.
Python: The Poisson Integral Directly
Now the rival method: skip the Fourier series and evaluate the Poisson integral by Riemann sums. One function, four lines of active computation.
The output matches the Fourier solver to four decimal places at every probe point — and uses exactly zero Fourier coefficients to do it. Two windows, one harmonic function.
PyTorch: A Vectorized Disk Solver
The Poisson integral evaluated at a single point is a one-dimensional integral. Evaluated on a grid of interior points, it becomes a single matrix–vector product:
With a matrix and a length- vector, this is one PyTorch operation. The same code runs on a GPU without a single tweak.
The centre lands at , the top probe at about , the bottom probe at about — the same answers as both Python methods. The mean-value theorem keeps re-emerging because it is a property of the function, not of the method.
Common Pitfalls
- Forgetting boundedness. Including or terms in a disk solution leads to a function that blows up at the origin — physically wrong. These terms only belong on an annulus.
- Confusing with . On a disk of radius the radial factor must be , not . Setting hides the rescaling — always check the dimensions.
- Mistaking truncation error for a real feature. A truncated Fourier sum exhibits Gibbs overshoot near boundary discontinuities. That ~9% overshoot persists no matter how many terms you keep — but vanishes if you use the Poisson integral instead. Discontinuous boundaries are best handled with the integral form.
- Numerical instability near . The Poisson kernel denominator can come within ULPs of zero when . Increase or stay slightly away from the boundary; a
clamp(min=0)is a cheap safety net. - Forgetting periodicity. must equal . If your boundary data is given as a function on with , the resulting Fourier series secretly fits the periodic extension — which has a jump you may not have intended.
Summary
On a disk, Laplace's equation has an exceptionally clean solution structure that we can summarise in one box:
The complete recipe
- Rewrite in polar form: .
- Separate variables. The bounded basis solutions are .
- Expand the boundary data in a Fourier series with coefficients .
- Multiply each mode by to damp it inward; sum:
- Equivalently, integrate against the Poisson kernel:
- Read off the mean-value theorem and the maximum principle for free.
The disk is a special domain, but the lessons are general. On every two-dimensional region, harmonic functions are boundary-determined averages: every interior value is the weighted balance of its boundary, the high frequencies are suppressed as you move inward, and no interior point can be hotter than the hottest part of the rim. The disk gave us the cleanest version of this story — and a single matrix multiply that delivers the entire steady-state temperature field in one shot.