Unit 12, lesson 73

Laplace and Poisson Equations

How Laplace's and Poisson's equations describe steady states, how separation solves them in a rectangle and a disk, why the maximum principle makes Dirichlet solutions unique, and why pure Neumann data need compatibility.

  • Video 73
  • Heat, Wave and Laplace Equations

A thin plate whose edges are held at fixed temperatures eventually stops changing. In the heat equation ut=κ(uxx+uyy)u_t = \kappa(u_{xx} + u_{yy}) the time derivative is then zero, so the final temperature satisfies an equation in xx and yy alone, with no initial condition left to fix it. Which profile does the plate settle into, and could two different profiles fit the same edges? This lesson solves that steady equation by separation of variables on a rectangle and on a disk, shows that prescribed boundary values allow only one solution, and explains why prescribed boundary slopes need a balance condition and leave a constant undetermined.

Key terms

Laplace’s equation and harmonic functions

Definition Let Ω⊆R2\Omega \subseteq \mathbb{R}^2 be an open set and let u(x,y)u(x, y) have continuous second partial derivatives in Ω\Omega, with uxx=∂2u/∂x2u_{xx} = \partial^2 u/\partial x^2 and uyy=∂2u/∂y2u_{yy} = \partial^2 u/\partial y^2. The Laplacian of uu is

Δu=uxx+uyy,\Delta u = u_{xx} + u_{yy},

and Laplace’s equation is Δu=0\Delta u = 0 in Ω\Omega. A function with continuous second partial derivatives that satisfies Laplace’s equation in Ω\Omega is called harmonic in Ω\Omega. In three variables the Laplacian is uxx+uyy+uzzu_{xx} + u_{yy} + u_{zz}, and the maximum principle, uniqueness and compatibility results below carry over, with volume and surface integrals in place of area and boundary integrals. The equation is linear and homogeneous, so sums and constant multiples of harmonic functions are harmonic. Its principal part uxx+uyyu_{xx} + u_{yy} makes it elliptic, and since it contains no time variable it comes with boundary conditions only, never with initial conditions.

In plain words At every point the second derivative of a harmonic function in the xx direction cancels its second derivative in the yy direction. The graph of a harmonic function can be shaped like a saddle, but it never has a peak that rises above all nearby points or a pit that sinks below them. This is the shape of a steady temperature in a region where no heat is produced or removed.

Example The function u=x2−y2u = x^2 - y^2 has uxx=2u_{xx} = 2 and uyy=−2u_{yy} = -2, so it is harmonic in the whole plane, and so are exsin⁡ye^x \sin y and every linear function ax+by+cax + by + c. The function x2+y2x^2 + y^2 is not harmonic, because its Laplacian is 44. The domain is part of the statement. The function u=ln⁡(x2+y2)u = \ln(x^2 + y^2) has

uxx=2y2−2x2(x2+y2)2=−uyy,u_{xx} = \frac{2y^2 - 2x^2}{(x^2 + y^2)^2} = -u_{yy},

so it is harmonic in the punctured plane R2∖{(0,0)}\mathbb{R}^2 \setminus \{(0, 0)\}, but not in any open set that contains the origin, where it is not even defined.

Poisson’s equation

Definition Let Ω⊆R2\Omega \subseteq \mathbb{R}^2 be open and let ff be a given function on Ω\Omega, called the source term. Poisson’s equation is

Δu=fin Ω,\Delta u = f \quad \text{in } \Omega,

and Laplace’s equation is the case f=0f = 0. This page uses the plus sign convention written here. Many texts write −Δu=f-\Delta u = f instead, and then the sign of every source is reversed. A boundary-value problem adds conditions on the boundary ∂Ω\partial\Omega. The Dirichlet problem prescribes the values u=gu = g on ∂Ω\partial\Omega. The Neumann problem prescribes the outward normal derivative

∂u∂ν=∇u⋅ν=hon ∂Ω,\frac{\partial u}{\partial \nu} = \nabla u \cdot \nu = h \quad \text{on } \partial\Omega,

where ν\nu is the outward unit normal. In a heat model, ∂u/∂ν\partial u/\partial \nu is proportional to the rate at which heat flows in across the boundary, and the steady state of ut=κΔu+qu_t = \kappa\Delta u + q with an internal heating rate qq satisfies Δu=−q/κ\Delta u = -q/\kappa. So in this convention a positive heat supply gives a negative ff.

In plain words The source term prescribes how much the solution must bend at each point. With the plus sign convention a positive ff makes the solution bend upward on average, like a bowl, which in a heat model means that heat is being drawn out there.

Example On the unit disk x2+y2<1x^2 + y^2 < 1, the function u=x2+y2−1u = x^2 + y^2 - 1 has Δu=2+2=4\Delta u = 2 + 2 = 4 and vanishes on the circle x2+y2=1x^2 + y^2 = 1. It solves the Dirichlet problem Δu=4\Delta u = 4 in the disk with u=0u = 0 on the boundary, and its lowest value is −1-1, at the center. In heat terms the edge of the plate is held at temperature 00 while heat is drawn out uniformly inside, so the middle is the coldest point. In the convention −Δu=f-\Delta u = f the same problem would be written with f=−4f = -4.

Separation in a rectangle

Definition On the rectangle 0<x<π0 < x < \pi, 0<y<10 < y < 1, consider the Dirichlet problem

Δu=0,u(0,y)=u(π,y)=0,u(x,0)=0,u(x,1)=g(x).\begin{gathered} \Delta u = 0, \\[0.4em] u(0, y) = u(\pi, y) = 0, \\[0.4em] u(x, 0) = 0, \\[0.4em] u(x, 1) = g(x). \end{gathered}

Substituting u=X(x)Y(y)u = X(x)Y(y), with X′=dX/dxX' = dX/dx and Y′=dY/dyY' = dY/dy, and dividing by XYXY gives X′′/X=−Y′′/YX''/X = -Y''/Y. The left side depends only on xx and the right side only on yy, so both equal a constant −λ-\lambda. The zero side conditions give the Dirichlet eigenvalue problem X′′+λX=0X'' + \lambda X = 0 with X(0)=X(π)=0X(0) = X(\pi) = 0, so λ=n2\lambda = n^2 and X=sin⁡nxX = \sin nx for n=1,2,3,…n = 1, 2, 3, \ldots The vertical factor then solves Y′′−n2Y=0Y'' - n^2 Y = 0 with Y(0)=0Y(0) = 0, so it is a multiple of sinh⁡ny\sinh ny. Superposition gives

u(x,y)=∑n=1∞bn un(x,y),un(x,y)=sin⁡nx sinh⁡nysinh⁡n,\begin{aligned} u(x, y) &= \sum_{n=1}^{\infty} b_n\,u_n(x, y), \\[0.4em] u_n(x, y) &= \sin nx\,\frac{\sinh ny}{\sinh n}, \end{aligned}

where the coefficients are the Fourier sine coefficients of the top data,

bn=2π∫0πg(x)sin⁡nx dx,b_n = \frac{2}{\pi}\int_0^\pi g(x)\sin nx\,dx,

chosen so that the series equals gg at y=1y = 1. If gg is continuous and piecewise smooth with g(0)=g(π)=0g(0) = g(\pi) = 0, so that the top data meet the zero sides continuously at the corners, the series converges uniformly on the closed rectangle, it can be differentiated term by term inside, and its sum is the solution. When several sides carry nonzero data, solve one such problem for each side and add the results.

In plain words Sines fit the two zero sides, and each sine mode grows in the vertical direction like a hyperbolic sine, from zero at the bottom to its full size at the top. The top data are split into sine modes, and each mode is carried into the rectangle on its own. A mode with large nn dies off quickly below the top edge, since its factor sinh⁡ny/sinh⁡n\sinh ny/\sinh n is less than 2e−n(1−y)2e^{-n(1 - y)}, so fine wiggles in the data are felt only near that edge.

Example For g(x)=sin⁡xg(x) = \sin x only the mode n=1n = 1 is present, and

u(x,y)=sin⁡x sinh⁡ysinh⁡1.u(x, y) = \frac{\sin x\,\sinh y}{\sinh 1}.

To check it, note that uxx=−uu_{xx} = -u and uyy=uu_{yy} = u, so Δu=0\Delta u = 0. The factor sin⁡x\sin x vanishes on the sides x=0x = 0 and x=πx = \pi, the factor sinh⁡y\sinh y vanishes on the bottom, and at y=1y = 1 the fraction reduces to sin⁡x\sin x. At the center the value is sinh⁡(1/2)/sinh⁡1≈0.4434\sinh(1/2)/\sinh 1 \approx 0.4434, less than half of the top value 11 directly above it. For the data g(x)=x(π−x)g(x) = x(\pi - x), which also vanish at both corners, the coefficients are bn=8/(πn3)b_n = 8/(\pi n^3) for odd nn and bn=0b_n = 0 for even nn.

Separation in a disk

Definition In polar coordinates x=rcos⁡θx = r\cos\theta, y=rsin⁡θy = r\sin\theta, the Laplacian at points with r>0r > 0 is

Δu=urr+1rur+1r2uθθ.\Delta u = u_{rr} + \frac{1}{r}u_r + \frac{1}{r^2}u_{\theta\theta}.

Consider the Dirichlet problem on the unit disk, Δu=0\Delta u = 0 for r<1r < 1 with u(1,θ)=g(θ)u(1, \theta) = g(\theta). Substituting a separated solution u=R(r)Θ(θ)u = R(r)\Theta(\theta), with R′=dR/drR' = dR/dr and Θ′=dΘ/dθ\Theta' = d\Theta/d\theta, and multiplying by r2/(RΘ)r^2/(R\Theta) splits the equation as (r2R′′+rR′)/R=−Θ′′/Θ=λ(r^2R'' + rR')/R = -\Theta''/\Theta = \lambda for a constant λ\lambda. The angular factor satisfies Θ′′+λΘ=0\Theta'' + \lambda\Theta = 0 and must be 2π2\pi-periodic, which gives the periodic eigenvalues λ=n2\lambda = n^2, with Θ=1\Theta = 1 for n=0n = 0 and Θ=cos⁡nθ\Theta = \cos n\theta or sin⁡nθ\sin n\theta for n=1,2,3,…n = 1, 2, 3, \ldots The radial factor then solves the Cauchy-Euler equation

r2R′′+rR′−n2R=0.r^2R'' + rR' - n^2R = 0.

The trial R=rmR = r^m gives m2=n2m^2 = n^2. For n≥1n \ge 1 the roots m=±nm = \pm n give the solutions rnr^n and r−nr^{-n} on r>0r > 0. For n=0n = 0 the root m=0m = 0 is repeated, and the solutions are 11 and ln⁡r\ln r. The center is not part of the boundary, but a solution must be smooth there, and this rules out r−nr^{-n} and ln⁡r\ln r, which are unbounded near r=0r = 0. What remains is

u(r,θ)=a02+∑n=1∞anrncos⁡nθ+∑n=1∞bnrnsin⁡nθ,\begin{aligned} u(r, \theta) &= \frac{a_0}{2} \\[0.4em] &\quad + \sum_{n=1}^{\infty} a_n r^n\cos n\theta \\[0.4em] &\quad + \sum_{n=1}^{\infty} b_n r^n\sin n\theta, \end{aligned}

where ana_n and bnb_n are the Fourier coefficients of gg on [−π,π][-\pi, \pi],

an=1π∫−ππg(θ)cos⁡nθ dθ,bn=1π∫−ππg(θ)sin⁡nθ dθ.\begin{gathered} a_n = \frac{1}{\pi}\int_{-\pi}^{\pi} g(\theta)\cos n\theta\,d\theta, \\[0.4em] b_n = \frac{1}{\pi}\int_{-\pi}^{\pi} g(\theta)\sin n\theta\,d\theta. \end{gathered}

Each term rncos⁡nθr^n\cos n\theta or rnsin⁡nθr^n\sin n\theta is a polynomial in xx and yy, so nothing goes wrong at the center. If gg is continuous, piecewise smooth and 2π2\pi-periodic, the series converges uniformly on the closed disk and its sum is the solution.

In plain words On a disk the angle is the coordinate along the boundary, and periodicity in the angle replaces the side conditions of the rectangle. The center is not an edge, but the solution has to behave there, so of the two radial solutions for each mode only the bounded one survives. Each angular mode of the data is damped by the factor rnr^n on the way to the center, and the value at the center is the mean of the boundary data, a0/2a_0/2.

Example For g(θ)=cos⁡2θg(\theta) = \cos 2\theta only a2=1a_2 = 1 is nonzero, so

u=r2cos⁡2θ=x2−y2,u = r^2\cos 2\theta = x^2 - y^2,

because r2cos⁡2θ=r2cos⁡2θ−r2sin⁡2θr^2\cos 2\theta = r^2\cos^2\theta - r^2\sin^2\theta. This is the harmonic polynomial met above, and it is smooth at the center. The other separated solution r−2cos⁡2θr^{-2}\cos 2\theta is harmonic for r>0r > 0 and also equals cos⁡2θ\cos 2\theta on the circle, but it is unbounded near the center, so it does not solve the problem in the disk. It is a bounded solution with the same data in the region outside the circle instead.

Maximum principle and Dirichlet uniqueness

Definition Let Ω⊆R2\Omega \subseteq \mathbb{R}^2 be a bounded open set with boundary ∂Ω\partial\Omega and closure Ω‾=Ω∪∂Ω\overline{\Omega} = \Omega \cup \partial\Omega, and let uu be continuous on Ω‾\overline{\Omega} and harmonic in Ω\Omega. The maximum principle states that

max⁡Ω‾u=max⁡∂Ωu,min⁡Ω‾u=min⁡∂Ωu.\begin{gathered} \max_{\overline{\Omega}} u = \max_{\partial\Omega} u, \\[0.4em] \min_{\overline{\Omega}} u = \min_{\partial\Omega} u. \end{gathered}

In its strong form, if Ω\Omega is also connected and uu takes its maximum or its minimum at a point of Ω\Omega, then uu is constant. Behind it is the mean value property. If the closed disk of radius ρ\rho about a point lies in Ω\Omega, the value of uu at that point is the average of uu over the circle of radius ρ\rho around it. Uniqueness for the Dirichlet problem follows. For given ff and gg, the problem Δu=f\Delta u = f in Ω\Omega with u=gu = g on ∂Ω\partial\Omega has at most one solution that is twice continuously differentiable in Ω\Omega and continuous on Ω‾\overline{\Omega}. If u1u_1 and u2u_2 are two such solutions, then w=u1−u2w = u_1 - u_2 is harmonic with w=0w = 0 on ∂Ω\partial\Omega, so the principle gives 0≤w≤00 \le w \le 0. The same argument gives continuous dependence on the data. Two solutions with the same ff and boundary values g1g_1 and g2g_2 satisfy

∣u1−u2∣≤max⁡∂Ω∣g1−g2∣\lvert u_1 - u_2 \rvert \le \max_{\partial\Omega} \lvert g_1 - g_2 \rvert

throughout Ω\Omega. Uniqueness says nothing about existence, which needs further conditions on Ω\Omega and on the data.

In plain words A harmonic function equals its average on every small circle around a point, so it cannot rise above all of its neighbors anywhere inside, and its extreme values are pushed out to the boundary. Two solutions with the same boundary values differ by a harmonic function that is zero on the whole boundary, and such a function is trapped between 00 and 00.

Example On the closed unit disk the function x2−y2x^2 - y^2 takes values from −1-1 to 11. Both extremes occur on the circle, the maximum at (±1,0)(\pm 1, 0) and the minimum at (0,±1)(0, \pm 1), and the center value 00 lies in between. The bowl x2+y2−1x^2 + y^2 - 1 has its minimum −1-1 at the interior center, which does not contradict the principle, since Δu=4\Delta u = 4 and the bowl is not harmonic. A function with Δu≥0\Delta u \ge 0 still takes its maximum on the boundary, but its minimum may lie inside. Uniqueness applies to the Poisson problem as well, so the bowl is the only solution of Δu=4\Delta u = 4 in the disk with zero boundary values.

Neumann compatibility condition

Definition Let Ω⊆R2\Omega \subseteq \mathbb{R}^2 be a bounded, connected open set with a smooth boundary and outward unit normal ν\nu. The pure Neumann problem prescribes the normal derivative on all of ∂Ω\partial\Omega,

Δu=fin Ω,∂u∂ν=hon ∂Ω.\begin{gathered} \Delta u = f \quad \text{in } \Omega, \\[0.4em] \frac{\partial u}{\partial \nu} = h \quad \text{on } \partial\Omega. \end{gathered}

If uu is a solution with continuous second derivatives up to the boundary, the divergence theorem applied to ∇u\nabla u gives the Neumann compatibility condition

∫Ωf dA=∮∂Ωh ds.\int_\Omega f\,dA = \oint_{\partial\Omega} h\,ds.

Without it there is no solution. For smooth data that satisfy it there is a solution, and it is unique up to a constant. Every constant CC has ΔC=0\Delta C = 0 and ∂C/∂ν=0\partial C/\partial \nu = 0, so u+Cu + C solves the same problem. Conversely, the difference ww of two solutions has Δw=0\Delta w = 0 and ∂w/∂ν=0\partial w/\partial \nu = 0, and Green’s identity gives

∫Ω∣∇w∣2 dA=0,\int_\Omega \lvert \nabla w \rvert^2\,dA = 0,

so ww is constant on the connected set Ω\Omega. On a set made of several separate pieces, a different constant could be added on each piece. An extra normalization, such as zero mean ∫Ωu dA=0\int_\Omega u\,dA = 0 or a prescribed value at one point, selects a single solution. Dirichlet data leave no such freedom, because they fix the values on the boundary.

In plain words In a steady state the total source inside must balance the total flow across the boundary. If heat is produced inside a plate whose edge is insulated, the temperature keeps rising and never settles, so that problem has no steady solution. Neumann data describe only slopes, and slopes do not change when the whole solution is raised or lowered, so they can never decide the overall level.

Example On the unit disk take u=x2+y2u = x^2 + y^2, so f=4f = 4. On the circle the outward normal is ν=(x,y)\nu = (x, y), and

∂u∂ν=(2x,2y)⋅(x,y)=2.\frac{\partial u}{\partial \nu} = (2x, 2y)\cdot(x, y) = 2.

The compatibility condition holds, since ∫Ω4 dA=4π\int_\Omega 4\,dA = 4\pi and ∮2 ds=2⋅2π=4π\oint 2\,ds = 2 \cdot 2\pi = 4\pi. Every function x2+y2+Cx^2 + y^2 + C has the same source and the same Neumann data. The mean of x2+y2x^2 + y^2 over the disk is

1π∫02π∫01r2 r dr dθ=12,\frac{1}{\pi}\int_0^{2\pi}\int_0^1 r^2\,r\,dr\,d\theta = \frac{1}{2},

so x2+y2−12x^2 + y^2 - \tfrac{1}{2} is the solution with zero mean. With the same source but zero normal derivative on the circle, the two sides of the condition would be 4π4\pi and 00, and that pure Neumann problem has no solution at all.

Check yourself

  1. Solve Laplace’s equation in the rectangle 0<x<π0 < x < \pi, 0<y<10 < y < 1 with u=0u = 0 on the bottom and on both vertical sides and u(x,1)=2sin⁡3xu(x, 1) = 2\sin 3x on the top. Find the value at the center (π/2,1/2)(\pi/2, 1/2).
Show the answer

The data are a single sine mode with n=3n = 3 and b3=2b_3 = 2, so

u(x,y)=2sin⁡3x sinh⁡3ysinh⁡3.u(x, y) = \frac{2\sin 3x\,\sinh 3y}{\sinh 3}.

It is harmonic, since uxx=−9uu_{xx} = -9u and uyy=9uu_{yy} = 9u. It vanishes at x=0x = 0, at x=πx = \pi and at y=0y = 0, and it equals 2sin⁡3x2\sin 3x at y=1y = 1. The data vanish at both top corners, and by uniqueness for the Dirichlet problem this is the only solution. At the center sin⁡(3π/2)=−1\sin(3\pi/2) = -1, and since sinh⁡3=2sinh⁡(3/2)cosh⁡(3/2)\sinh 3 = 2\sinh(3/2)\cosh(3/2),

u(π2,12)=−2sinh⁡(3/2)sinh⁡3=−1cosh⁡(3/2)≈−0.4251.\begin{aligned} u\left(\tfrac{\pi}{2}, \tfrac{1}{2}\right) &= -\frac{2\sinh(3/2)}{\sinh 3} \\[0.4em] &= -\frac{1}{\cosh(3/2)} \approx -0.4251. \end{aligned}
  1. For which constant cc does the Neumann problem Δu=c\Delta u = c in the unit disk with ∂u/∂ν=1\partial u/\partial \nu = 1 on the circle have a solution? Find all solutions and the one with zero mean.
Show the answer

The compatibility condition requires ∫Ωc dA=cπ\int_\Omega c\,dA = c\pi to equal ∮1 ds=2π\oint 1\,ds = 2\pi, so c=2c = 2, and for every other cc there is no solution. For c=2c = 2 the function u=(x2+y2)/2u = (x^2 + y^2)/2 works. Its Laplacian is 1+1=21 + 1 = 2, and its gradient (x,y)(x, y) dotted with ν=(x,y)\nu = (x, y) gives x2+y2=1x^2 + y^2 = 1 on the circle. The disk is connected, so the solutions are exactly

u=x2+y22+Cu = \frac{x^2 + y^2}{2} + C

for constants CC. Since x2+y2x^2 + y^2 has mean 12\tfrac{1}{2} over the disk, the function (x2+y2)/2(x^2 + y^2)/2 has mean 14\tfrac{1}{4}, and the solution with zero mean is (x2+y2)/2−14(x^2 + y^2)/2 - \tfrac{1}{4}.

  1. The function u=yu = y is harmonic in the upper half-plane y>0y > 0, continuous up to the line y=0y = 0, and zero on that line, yet it is not the zero function. Why does this not contradict uniqueness for the Dirichlet problem, and what extra condition restores uniqueness there?
Show the answer

The maximum principle and the uniqueness theorem built on it require a bounded domain, and the half-plane is unbounded. There the function u=yu = y has boundary maximum 00 but takes every positive value inside, so the maximum principle fails, and the problem Δu=0\Delta u = 0 with u=0u = 0 on y=0y = 0 has the solutions u=cyu = cy for every constant cc. On an unbounded domain the problem needs a condition at infinity as well. Requiring uu to be bounded is enough for the half-plane, and then u=0u = 0 is the only bounded solution with zero boundary values.

How this lesson connects