The Big Idea: One Point at a Time
Suppose someone hands you a complicated charge distribution — a smudge of charge that varies smoothly in space, like fog. You want the electric potential it produces. The equation you must solve is Poisson's,
and the source term is whatever your physics dictates (charge density, mass density, heat sources, etc.). Solving this from scratch for every new source shape sounds painful. Here is the escape hatch.
The Green's function trick. Solve the problem once for the simplest possible source — a single mathematical "pinprick" at one point. Call that solution . Then any other source is just a weighted sum of pinpricks, so its potential is the corresponding weighted sum of 's. We never have to solve the PDE again.
Think of it like the impulse response of a loudspeaker. Tap the cone once with a hammer and record the sound: that's the impulse response. Any music played through that speaker is a sum of tiny hammer-taps, so the speaker's output is the music convolved with the impulse response. The Green's function is the impulse response of the Laplacian operator. Once you know it, every Poisson problem is solved by a single integral.
The Dirac Delta: A Pinprick of Mass
What does "a point source" mean mathematically? A point source has zero size but finite total "stuff" (charge, mass, heat). No ordinary function can do this, so we use a generalized function called the Dirac delta:
The delta is zero everywhere except at one point, and infinite there in exactly the right way that its total integral is 1. You shouldn't imagine it as a function so much as an instruction: "sample the integrand at the point ." That's its key property, the sifting property:
Picture a smooth source as a continuous sum (an integral) of tiny point-mass deltas:
That equation reads: at every location in space, place a point source whose strength is . The whole source field is the integral of all those point sources. This rewriting is the key that unlocks the Green's function machinery.
Defining Green's Function
The Green's function for the Laplacian is defined as the potential of a single unit point source located at :
Read out loud: "The Laplacian of G, taken with respect to , equals a delta function spike at ." The first argument is the observation point ("where am I measuring?"). The second argument is the source point ("where is the pinprick?").
Free-Space Green's Function in 3D
For an infinite empty 3D space with no boundaries ("free space"), the Green's function only depends on the distance from the source. That gives us a beautiful closed form:
This is the most important formula in the chapter. It says: the potential of a unit point source at , observed at , is inversely proportional to the distance between them, with a coefficient of .
Deriving the 3D Result Step by Step
The reasoning is short and worth seeing once. By translation symmetry of empty space, place the source at the origin: . By rotational symmetry, depends only on . So . The Laplacian in spherical coordinates of a function of alone is
(The right-hand side is zero away from the origin.) Multiply through by and integrate once:
Integrate again:
We set so that at infinity (a natural boundary condition for free space). Only is left, and we fix it by enforcing the delta. Integrate over a small ball of radius centered at the source and apply the divergence theorem:
The flux integral on the right is the surface area of the sphere () times the radial derivative on the sphere (), so
Plugging back: . Restoring a general source location:
- The 4π comes from the surface area of a 3D unit sphere — it's a geometric fact, not a quirk.
- The 1/r shape comes from solving Laplace's equation away from the source — anything radial that satisfies off the source must look like this.
- The sign and the magnitude are entirely fixed by demanding that the integral of the singularity equals one. That is the only place the "delta" enters.
Green's Function in 2D
In two dimensions the geometry is different — a 2D "sphere" is a circle, whose circumference is instead of . Repeat the same derivation with the 2D Laplacian :
Notice that in 2D the Green's function grows logarithmically at infinity rather than decaying to zero. That is why physicists call the 2D Poisson problem "a different beast": there is no natural "potential at infinity" to anchor against. We'll see this in the playground below — switching the toggle from 3D to 2D changes the shape of the field dramatically.
| Dimension | Green's Function G(r) | Behavior near source | Behavior at infinity |
|---|---|---|---|
| 1D | (1/2)|x − x'| | Continuous, kink | Grows linearly |
| 2D | (1/2π) ln|r − r'| | Logarithmic singularity | Grows logarithmically |
| 3D | −1 / (4π|r − r'|) | 1/r singularity | Decays to 0 |
| nD (n ≥ 3) | −Γ(n/2) / [(n−2) · 2π^(n/2) · r^(n−2)] | 1/r^(n−2) | Decays to 0 |
Superposition: Solving Poisson for Any Source
Here is the payoff. Given the Green's function, the solution to for any source is the integral
Let's verify this is correct. Apply the Laplacian (with respect to ) to both sides. The Laplacian passes inside the integral because the integration is over a different variable :
The last step used the sifting property of the delta. So indeed solves Poisson's equation. We have converted a partial differential equation into a single integral that we can evaluate (analytically or numerically) for any source .
Analogy time. If you want to know the smell of a soup, you don't solve a diffusion PDE for every ingredient. You smell each ingredient alone (Green's function), then mentally combine — "a pinch of garlic + a dash of basil + a lot of tomato." The integral above is the recipe for "smell of the soup" from "smell of each ingredient."
Interactive: The Green's Function Playground
Click anywhere on the canvas to drop a new source. Drag the "charge" slider to set whether the next click places a + or − source and how strong. Toggle 2D vs 3D to feel the difference between and Green's functions. Enable field arrows to see — the direction a test charge would actually move.
Try this in order:
- Clear and place one positive source. The whole space becomes a smooth red hill — that is one Green's function.
- Add a negative source far away. The potential is now the sum of a red hill and a blue valley — superposition is working before your eyes.
- Switch from 3D to 2D. The colors look different because doesn't decay — it keeps growing outward. The 2D world is "noisier" at infinity.
- Drop four positives in a square, then a negative in the middle. The resulting bowl-shaped potential is the kind of thing you'd compute analytically only with great pain — and it's here in one click.
Worked Example: Two Point Charges
Let's do one full computation by hand so the integral above stops being abstract. Place a unit positive source at and a unit negative at , with . What is at a point on the y-axis?
Click to walk through the calculation by hand
Step 1. Write the source as a sum of deltas:
Step 2. Apply the superposition integral . By the sifting property each delta picks out the integrand at one location:
Step 3. Plug in :
Step 4. Compute the two distances. With ,,:
Step 5. Symmetric distances. So . The potential is exactly zero on the entire perpendicular bisecting plane . Open the playground above, place a +1 and a −1 at symmetric locations, and look at the white strip running between them — that's the zero set you just computed.
Step 6. Try an asymmetric point: .
Positive. Makes sense — we're closer to the +1 source than to the −1 source, so the net potential leans positive. Every Poisson problem with point sources reduces to arithmetic of distances and a 1/(4π) bookkeeping factor.
Python Implementation
Time to move from pencil to silicon. Below is a complete, runnable Python program that builds a 2D slice of 3D space, places a dipole, and renders the potential as a heatmap. The explanation walks through every line — every function call, every numpy shape, every loop iteration — so you understand exactly what is happening.
Bounded Domains: The Method of Images
Free-space Green's functions handle infinite empty space. What if you need the potential above a grounded metal plane, where the boundary condition is on the plane? The free-space Green's function does not satisfy that condition by itself.
The trick — invented by Lord Kelvin in 1848 — is breathtakingly clever. Place an imaginary mirror charge below the plane, equal and opposite to the real charge above. By symmetry, the potential of the pair vanishes on the plane. Because the image charge sits outside the physical region of interest, the differential equation in the physical region (the half-space above the plane) is unchanged. We have constructed a Green's function that automatically satisfies the boundary condition:
where is the reflection of across the plane. Two free-space Green's functions, one of them outside the domain, conspire to enforce the boundary condition.
Interactive: Charge Above a Plane
Slide the height. Toggle the image charge off and on. With the image off you see the asymmetric field of a single real charge — it doesn't respect the boundary. With it on, the field arrows become perpendicular to the conductor everywhere on it, which is precisely what on a surface enforces (the tangential component of must vanish on an equipotential).
Properties of Green's Functions
Five facts you should internalize. They are all consequences of the definition and the linearity of the Laplacian.
| Property | Statement | Why it matters |
|---|---|---|
| Symmetry (reciprocity) | G(r, r') = G(r', r) | Source and observation point are interchangeable — a deep statement about time-reversibility. |
| Singularity at the source | G ~ -1/(4π|r - r'|) as r → r' in 3D | Encodes the delta function — the entire 'point-source' content of G lives in this singularity. |
| Harmonicity off the source | ∇²G = 0 for r ≠ r' | Away from the source, G is a perfectly smooth harmonic function. |
| Boundary behavior | Decays to 0 at infinity (3D); grows like ln(r) at infinity (2D) | Determines what 'free-space' even means in each dimension. |
| Linearity / superposition | G of a sum of sources = sum of G's | The single reason Green's functions are useful at all. |
Symmetry in particular is worth pausing on. It says: the potential at due to a unit source at equals the potential at due to a unit source at . Swap the roles of source and detector, and the answer is the same. This is called reciprocity, and it shows up everywhere: in acoustics (a microphone here hears a speaker there the same as if their roles were swapped), in seismology, in antenna theory.
Where This Shows Up
| Field | What G represents | What the integral computes |
|---|---|---|
| Electrostatics | Potential of a unit point charge: V = q/(4πε₀ r) | Total potential of a charge distribution |
| Newtonian gravity | Gravitational potential of a unit point mass: Φ = -Gm/r | Potential of a mass distribution (planet, galaxy) |
| Heat conduction (steady) | Steady temperature from a unit point heat source | Temperature field of a distributed source |
| Image processing | Inpainting kernel — how one missing pixel propagates | Reconstructed image given Laplacian constraints |
| Machine learning | Kernel of a Gaussian process / RBF basis function | Smoothed regression on scattered data |
| Computer graphics | Surface reconstruction from oriented points (Poisson reconstruction) | Implicit surface representation |
One equation, many disguises. Whenever you hear "potential of a point source," "impulse response," "fundamental solution," or "propagator," you're hearing "Green's function" in another language. The math is identical; only the physical interpretation changes.
Summary
- A Green's function is the potential of a single point source — the impulse response of the Laplacian. Defined by .
- In free 3D space, — a 1/r decay with a 4π geometric factor.
- In free 2D space, — a logarithmic growth, not a decay.
- Superposition: solves for any source .
- Method of images adapts free-space G's to bounded domains by reflecting source points across symmetric boundaries.
- Green's functions satisfy reciprocity — a statement of fundamental physical symmetry.
- They unify electrostatics, gravitation, steady heat flow, image inpainting, and Gaussian process regression — all are Poisson problems wearing different costumes.
Looking ahead. The next section applies all of this to electrostatics proper — capacitors, conductors, dielectric boundaries. You'll see how a Green's function written down in this section becomes Coulomb's law in disguise, and how the method of images solves real engineering problems like ground planes in printed circuit boards.