On this page
Most students learn the Laplacian, ∇²f = f_xx + f_yy + f_zz, as differentiate twice and add. That hides the idea. The Laplacian asks one plain question: is this point higher or lower than the average of the points around it? See that, and heat, waves, electrostatics and edge detection all read the same way.
What does the Laplacian actually measure?
The Laplacian is the divergence of the gradient, and in Cartesian coordinates it is the sum of the unmixed second partial derivatives, as the Laplace operator article sets out. It adds up the curvature of f along every axis. If gradients are shaky, start with what the gradient of a function tells you.
The same article makes the averaging picture exact: in two dimensions, the average of f over a small circle of radius h equals f at the centre plus (h²/4)∇²f, plus smaller terms. The Laplacian is the gap between the neighbourhood average and the centre, scaled.
∇²f > 0: the neighbours are higher on average; the point sits in a dip.
∇²f < 0: the neighbours are lower; the point is a bump.
∇²f = 0: the point equals the average of its surroundings. Functions like this are called harmonic.
How do you compute the Laplacian on a grid?
On a square grid with spacing h, the five-point stencil approximates the 2D Laplacian as [f(x−h,y) + f(x+h,y) + f(x,y−h) + f(x,y+h) − 4f(x,y)] / h², as given in the discrete Laplace operator article. The top is 4 × (average of the four neighbours − centre): the averaging idea, in the formula.
Worked example 1. Take f = x² + y² with h = 1, at the point (1, 1). The centre is f(1,1) = 2. The neighbours are f(0,1) = 1, f(2,1) = 5, f(1,0) = 1 and f(1,2) = 5, which sum to 12. The stencil gives 12 − 4 × 2 = 4, exactly the true value 2 + 2, because the stencil is exact for quadratics.
Worked example 2. A greyscale image has three columns of brightness 10, then three of brightness 50. Run the stencil along an inner row:
A dark pixel deep in the dark region: 10 + 10 + 10 + 10 − 40 = 0.
The last dark pixel before the edge: 10 + 50 + 10 + 10 − 40 = +40.
The first bright pixel after the edge: 10 + 50 + 50 + 50 − 200 = −40.
A bright pixel deep in the bright region: 0.
The Laplacian is zero in flat regions and swings from +40 to −40 across the edge, crossing zero exactly at it.
What is the Laplacian in polar coordinates?
In polar coordinates the 2D Laplacian is ∇²f = f_rr + (1/r) f_r + (1/r²) f_θθ, as listed in the Laplace operator article. The common mistake is writing f_rr + f_θθ: the (1/r) f_r term is there because circles grow with r.
Check it on f = r², which is x² + y² again: f_rr = 2, (1/r) f_r = 2 and f_θθ = 0, so ∇²f = 4, matching worked example 1.
Now f = ln r: f_r = 1/r and f_rr = −1/r², so ∇²f = 0 everywhere except the origin. The log of distance is harmonic in the plane, which is why it appears as the potential of a long line of charge. In three dimensions, separating r from the angles leads to spherical harmonics.
Where does the Laplacian appear in physics and images?
The Laplace operator article lists the diffusion, wave, Poisson and Schrödinger equations among its homes. Read each with the averaging picture:
Heat. Temperature changes at a rate proportional to its Laplacian, so a cold spot warms and a hot spot cools. Watch it number by number in the finite difference method for the heat equation.
Waves. A membrane's acceleration is proportional to its Laplacian: a point below its neighbours is pulled back up.
Electrostatics. Charge density is q = −ε₀∇²φ, from Gauss's law. In empty space ∇²φ = 0, so each point's potential equals the average around it.
Image edges. Marr and Hildreth (1980) proposed finding intensity changes from the zero values of ∇²G * I, the Laplacian of a Gaussian-smoothed image. The width of the Gaussian sets the scale of the changes it finds; zero crossings mark edges, as in worked example 2.
How should you practise the Laplacian?
Find ∇² of x² + y², x² − y² and xy, predicting the sign from the shape first.
Apply the five-point stencil to the inner points of a 5 × 5 grid of numbers.
Redo f = r² and f = ln r in polar form until the (1/r) f_r term is automatic.
For each equation above, say what a positive Laplacian makes happen.
If a building block such as divergence or the gradient is the real gap, the Fermi Concept Library has a lesson for every concept in mathematics and physics, with its place in the map, so you can step back and return.



