Introduction
Section 1 introduced Poisson's equation as the master equation of potential fields. That tells us what the equation says. This section answers the harder question: why does the equation say it? What does the Laplacian really measure? Why is a charge a "source" of potential? Why does a heavy weight create a tent-shaped dip in an elastic string? And how does the same equation power electric fields, gravity, soap films, fluid pressure, and modern image-processing tricks?
One sentence to remember the whole section: at a point measures how much the potential dips below the average of its surroundings. A positive source pushes the centre up above its neighbours; a negative source pulls it down. Poisson's equation is nothing more than "the deviation from the local average is set by the source density".
The Big Idea: Sources Warp Potentials
Picture a long, taut elastic string fixed at both ends. With no weights hanging from it, the string sits perfectly straight — that's the boundary value problem with zero source, namely Laplace's equation . Now hang a small weight on it. The string sags into a single triangular dent right under the weight. Hang another weight further along, and the string's shape becomes the sum of two triangular dents. The string "remembers" every weight you place on it — and the remembrance is local, additive, and shaped exactly by the geometry of the string itself.
That story is the physical content of Poisson's equation in 1D: . In 2D the string becomes an elastic membrane (a soap film, a drumhead), and the weights become localised pressures. In 3D the membrane becomes invisible — but you can still ask "what is the gravitational potential created by this mass distribution?" or "what is the electric potential from this charge distribution?" The mathematics is identical: .
Universal pattern: in every application, the right-hand side is a source density (charges, masses, heat injectors, pressure on a membrane) and the left-hand side is a geometric defect in the potential — its failure to equal its neighbours' average.
The Laplacian as Deviation from the Average
The cleanest way to feel what actually does is to look at its discrete cousin on a regular grid. In 2D with spacing the standard 5-point stencil is
Read the right-hand side as a comparison: take the average of the four neighbours of the cell, subtract the cell's own value, scale by . That single quantity is the discrete Laplacian — it is a measurement of by how much the centre is below its neighbours' mean.
| Sign of ∇²φ at a point | Meaning | Physical example |
|---|---|---|
| Positive | Centre is below neighbours' average — a valley | Inside a positive charge cloud (potential dips toward extremum from outside) |
| Zero | Centre equals neighbours' average — harmonic | Vacuum / source-free region; mean value property |
| Negative | Centre is above neighbours' average — a peak | Local maximum of an electric potential, e.g. near a point charge |
With this lens, Poisson's equation is a sentence: the source density at a point equals how much the potential there deviates from its surroundings, in units of . The mean-value property of harmonic functions falls out as the special case where the deviation is zero everywhere.
Interactive: The Laplacian Detector
The Laplacian Detector
Click anywhere inside the heatmap to drop a probe. The probe (red square) compares the field value at its center to the average of its four neighbours (amber squares). That comparison is exactly what the discrete Laplacian computes:
Try this: switch to the "Saddle" or "Linear ramp" field and click anywhere. You will see the centre always equals the average of the four neighbours, so . These are harmonic functions — solutions of Laplace's equation. Switch to the Gaussian bump and click on its summit: now the centre is well above its neighbours, so is strongly negative. The bump "costs" a negative source to sustain its peak.
The Rubber-Membrane Analogy
Here is the most useful mental picture in the whole subject. Imagine an elastic string stretched horizontally between two pegs at and . The string lives in a vertical plane. Now hang weights on it. Each weight pulls down with a force proportional to its mass; the string's tension fights back. In equilibrium the shape satisfies
where is tension (we'll set it to 1 for clarity) and is force per unit length. This is literally Poisson's equation in 1D. The negative sign means: where the load pushes down (f > 0), the string's shape curls downward (u'' < 0, peaks). And because in 1D, the "deviation from average" story applies word-for-word: the string's height at a point is below the average of the heights right next to it whenever there is a downward load there.
Even better: the same picture works in 2D for an elastic membrane stretched over a frame. Push down on it with a pressure and the membrane's height satisfies . A concentrated pressure (a heavy bead resting on the soap film) creates a cone-shaped dip; a smooth pressure creates a smooth bowl. The membrane is a physical analog computer for Poisson's equation.
Interactive: 1D Membrane Under Loads
1D Membrane: How Sources Sag the String
Imagine an elastic string fixed at and . Hang weights on it. The shape that minimises elastic energy obeys . Each weight pulls a single tent-shaped dent of height . Move the sliders, watch how adding loads is exactly superposition of tents.
Notice every individual dashed tent has its peak at its own source. The cyan solution is the sum of those tents. This is the Green's-function representation of the 1D Poisson equation, made visible.
Two things to notice in the playground above:
- Each individual load creates a triangular tent. The peak of the tent is exactly under the load, and its height is for a load of weight at position . So a unit load right in the middle () dips the string by exactly .
- Multiple loads simply add. The cyan curve is the pointwise sum of the dashed tents. This is linearity — Poisson's equation is a linear equation, so the response to a sum of sources is the sum of the responses.
Superposition and the Green's Function
The tent shape is not random. It is the Green's function of the 1D Poisson operator with grounded ends — the response to a single point source of strength 1. Once you know how the string reacts to a single point load, you know how it reacts to any load distribution, by summing tents (in the discrete case) or integrating (in the continuum case):
That is the whole content of the Green's-function method: convert a differential equation into an integral by knowing the response to a single Dirac kick. In higher dimensions the tent gets fancier — it becomes in 3D, the Coulomb potential — but the idea is identical.
Big takeaway: a Green's function answers "how does this physical system respond to a single, sharp poke?" Once you have it, you have solved the equation for every possible right-hand side — just superpose pokes.
Electrostatic Intuition: Charges as Heaters of Potential
In electrostatics the same equation reads . A positive charge density acts like a localised heater pushing the potential up; a negative density acts like a refrigerator pulling it down. In regions of empty space the potential is harmonic — it is the average of its surroundings — which is why field lines don't suddenly start or stop in vacuum and why a conductor placed in an electric field gets a uniform potential on its surface (any peak inside would be an electrostatic impossibility, by the maximum principle).
| Quantity | Symbol | Role in Poisson |
|---|---|---|
| Potential | V(\mathbf{r}) | Unknown φ — what we are solving for |
| Electric field | \mathbf{E} = -\nabla V | Gradient of the potential |
| Charge density | \rho(\mathbf{r}) | Source f, scaled by -1/\varepsilon_0 |
| Vacuum permittivity | \varepsilon_0 | Coupling constant |
The intuition translates directly: a positive point charge sits in a "dent" of the potential pointing up — its local value is higher than the surrounding mean. The Coulomb potential is the 3D Green's function, exactly analogous to the triangular tent of the loaded string.
Gravitational Intuition: Mass Wells
Newtonian gravity satisfies with the mass density. The sign convention is flipped from electrostatics, which matches our intuition: mass is always positive, and a mass sits in a well of the gravitational potential, not a hill. Falling toward a planet is rolling down the well.
Why the same equation? Both electrostatics and Newtonian gravity are described by an inverse-square force law from a point source. Inverse-square force means inverse-distance potential, and the Laplacian of away from the origin is exactly zero (you can verify by hand). At the origin it produces a delta function of strength , which is the source. This is why Poisson's equation is the universal language of inverse-square forces.
Interactive: 2D Poisson Solver
2D Poisson Solver (Jacobi Iteration)
Paint sources onto a grounded square ( on every boundary). The animation runs the discrete Poisson update 30× per frame. Positive sources (white) build red bumps; negative sources (cyan) dig blue wells. The boundary value 0 forces the potential to flatten back to zero at the edges.
Paint a single positive source somewhere off-centre. The red bump that grows under it is the 2D analog of the triangular tent — its precise shape is the 2D Green's function (a logarithm, in fact). Paint a negative source next to it. Two blobs of opposite sign create a dipole pattern, with field lines flowing from + to − through the surrounding medium. The solver is literally computing the electrostatic potential of any charge distribution you draw, with grounded conducting walls.
Fluid Pressure in Incompressible Flow
For an incompressible fluid, the Navier–Stokes equations give a Poisson equation for the pressure:
The right-hand side is a divergence of advection — physically, regions where fluid parcels are getting pushed together or pulled apart. The pressure field adjusts itself so that the flow stays divergence-free. In computational fluid dynamics this is the celebrated pressure-Poisson equation, solved every time step inside every incompressible solver. The intuition is unchanged: pressure rises where the flow tries to compress, falls where it tries to expand, exactly as much as needed to keep the velocity field divergence-free.
Steady Heat with Sources
For steady heat conduction with internal heat generation in a material of conductivity , the temperature obeys . Same equation, again. The intuition this time: temperature at a point is the average of its surroundings — unless there is a heater there, in which case it pokes above. The maximum principle says the hottest point in a steady-state slab with no internal heat source must be on the boundary. Internal heaters break this and create temperature peaks in the interior.
Worked Example: Uniformly Loaded String
Let's do the cleanest analytical problem by hand. Solve
This is a string under uniform downward pressure. Try to predict the shape before scrolling — by symmetry it has to be a parabola peaked at .
▶ Step-by-step solution (click to expand)
Geometric reading: a uniform downward force bends the string into a parabola. The deeper the load (here unit force per length), the deeper the dip (proportional). Double the force and the dip doubles — linearity again. Move to a string twice as long and the dip grows by a factor of four (because appears in the formula ).
Building Intuition with Plain Python
Time to make the picture computational. We'll solve the same 1D problem numerically using Jacobi iteration — the simplest possible iterative scheme, perfect for building intuition because every step is just "replace each cell with the average of its neighbours plus a source term". The same deviation from average story we've been telling, now as an algorithm.
The idea: rearrange the discrete Poisson equation to solve for :
Now start with any guess (say zeros) and apply this rule everywhere, over and over. Each pass shaves a little error off. Eventually the rule is satisfied at every node and we have the solution.
Why Jacobi converges: the update rule is an averaging operation, and averaging is a smoothing operation. Errors that are short-wavelength (jagged) get smoothed out very fast; errors that are long-wavelength (smooth) take more sweeps to decay. This is exactly the observation that powers multigrid methods — solve the long-wavelength part on a coarser grid where each Jacobi sweep covers more ground.
Vectorized PyTorch Solver
The Python loops above are educational but slow — every interior cell touch costs a Python attribute lookup. Real solvers vectorise: replace the inner loop with a slice operation that hits every cell simultaneously. PyTorch is a natural choice because the same code runs unchanged on a GPU.
Moving up to 2D, the discrete Poisson equation becomes
which is "the cell equals the average of its four neighbours plus the local source" — the deviation-from-average story in two dimensions.
Performance intuition: the inner loop is now five tensor ops, each of which the GPU or CPU executes as a single vectorised kernel. On a 256 × 256 grid this is roughly 100× faster than the nested Python loop, and another 30–50× faster again on a GPU. The mathematical content is identical — only the bookkeeping changed.
Modern Applications
Once you can solve Poisson's equation efficiently, an astonishing range of problems opens up. The applications go far beyond physics.
| Application | What plays the role of φ | What plays the role of f |
|---|---|---|
| Electrostatics | Electric potential V | −ρ / ε₀ |
| Gravitation | Gravitational potential Φ | 4πG ρ_m |
| Steady-state heat | Temperature T | Heat source / k |
| Pressure-Poisson (CFD) | Pressure p | −ρ_f ∇·(u·∇u) |
| Soap film / membrane | Height u(x, y) | Local downward force |
| Poisson image blending | Pixel intensity over a region | Laplacian of the source patch |
| Poisson surface reconstruction | Indicator function of a 3D solid | Divergence of the oriented normals |
| Score-based diffusion models | Log-density of data | Divergence of the score field |
Poisson Image Editing
The seminal SIGGRAPH 2003 paper by Pérez, Gangnet, and Blake uses Poisson's equation to seamlessly paste a region of one image into another. Instead of copying pixel intensities, copy the Laplacian of the source patch and solve a Poisson equation inside the target region with the surrounding pixels as Dirichlet boundary conditions. The result is a clone whose colours match the destination's lighting and tone — because Poisson's equation literally propagates boundary information into the interior in the smoothest possible way.
Poisson Surface Reconstruction
Kazhdan, Bolitho, and Hoppe's 2006 algorithm reconstructs a watertight 3D surface from a point cloud with oriented normals. They solve a Poisson equation where the source is the divergence of the smoothed normal field. The level set of the solution is the reconstructed surface. Every LiDAR-to-mesh pipeline you see in robotics or VR likely passes through this Poisson solve.
Generative AI: Score-Based Diffusion
Modern diffusion models (Score-SDE, EDM, Stable Diffusion) learn a vector field — the gradient of the data's log-density. Recovering the density from the score is, formally, a Poisson problem on the divergence of the score field. The training objective (denoising score matching) is therefore mathematically a way of fitting sources to the Poisson equation governing the data manifold — a startling, modern appearance of the same 1820s equation we've been studying.
Summary
- The Laplacian at a point measures how much the potential deviates from the average of its surroundings. Poisson's equation is just "deviation = source".
- A loaded elastic string is a physical analog computer for the 1D Poisson equation. Each point load creates a triangular tent; multiple loads superpose. The tent is the Green's function of the operator.
- The same equation governs electric potential, gravitational potential, steady-state temperature, and fluid pressure. The signs and constants differ; the geometry is identical.
- Numerically, Poisson's equation reduces to repeated local averaging plus a source term. Jacobi iteration is the simplest such scheme and the cleanest incarnation of the "deviation from average" intuition.
- The same operator powers modern applications: Poisson image editing, surface reconstruction from point clouds, and the recovery of data density in score-based diffusion models.
Looking ahead: in the next section we will formalise the Green's function approach properly, deriving the fundamental solution in 1D, 2D and 3D, and showing how any source distribution can be expressed as a superposition of point-source responses. The tent we played with in this section will become the tip of a beautiful analytical iceberg.