Differential Equations › Section I · Partial differential equations › Topic I.7

Laplace's equation

Hold the edges of a metal plate at fixed temperatures and wait: the temperature inside settles into a steady pattern. That pattern obeys Laplace's equation, which also governs electric potential and smooth fluid flow, and separation of variables solves it on rectangles and disks.

Steady states in two dimensions

Without sources, heat in a plate obeys \(u_t = k\,\nabla^2 u\), where \(\nabla^2 u = u_{xx} + u_{yy}\). Once the temperature stops changing, \(u_t = 0\), leaving Laplace's equation:

\nabla^2 u = u_{xx} + u_{yy} = 0

Its solutions are called harmonic functions. It is the plate's version of \(u_E'' = 0\), the straight-line equilibrium of a bar. The same equation describes electrostatic potential in a charge-free region and the velocity potential of smooth, ideal fluid flow. As an elliptic equation it has no initial condition: it needs a condition on the whole boundary.

A rectangle, one side at a time

Take a rectangular plate \(0 \le x \le L\), \(0 \le y \le H\), with each edge held at its own temperature. With four nonhomogeneous edges, separation of variables cannot start. But Laplace's equation is linear and homogeneous, so superposition offers a way round: split the problem into four, each with one edge at its given temperature and the other three at zero. Each smaller problem has two homogeneous conditions in one direction, as the method needs, and the sum of the four solutions is harmonic and matches all four edges.

Solving with a hot top edge

Let \(u = 0\) on the left, right and bottom edges and \(u(x, H) = f(x)\) on the top. Separation of variables, as set up earlier, gives \(X'' + \lambda X = 0\) with \(X(0) = X(L) = 0\), so \(\lambda_n = (n\pi/L)^2\) and \(X_n = \sin(n\pi x/L)\). The \(y\)-equation is \(Y'' - (n\pi/L)^2 Y = 0\), with \(Y(0) = 0\). Its solutions are combinations of \(\cosh(n\pi y/L)\) and \(\sinh(n\pi y/L)\), and \(Y(0) = 0\) removes the cosh, because \(\cosh 0 = 1\) while \(\sinh 0 = 0\). So each product is \(\sin(n\pi x/L)\sinh(n\pi y/L)\).

Matching the top edge

By superposition,

u(x, y) = \sum_{n=1}^{\infty} B_n\sin\frac{n\pi x}{L}\sinh\frac{n\pi y}{L}

On the top edge, \(y = H\), this must equal \(f(x)\). Each \(\sinh(n\pi H/L)\) is just a number, so the condition says that \(B_n\sinh(n\pi H/L)\) are the Fourier sine coefficients of \(f\):

B_n = \frac{2}{L\,\sinh(n\pi H/L)}\int_0^L f(x)\sin\frac{n\pi x}{L}\,dx

For large \(n\), the factor \(\sinh(n\pi y/L)\) drops off steeply as \(y\) moves away from \(H\), so fine detail in \(f\) fades quickly into the interior.

Worked example: a single sine on the top edge

A plate with \(L = 2\) and \(H = 1\) has three edges at 0 °C and its top edge at \(f(x) = 80\sin(\pi x/2)\) °C. Find \(u\) and the temperature at the centre. 1. \(f\) is already the \(n = 1\) sine with \(L = 2\), so only \(B_1\) is nonzero: \(B_1\sinh(\pi/2) = 80\). 2. Solution:

u = 80\sin\frac{\pi x}{2}\,\frac{\sinh(\pi y/2)}{\sinh(\pi/2)}

3. Centre, \((1, 0.5)\): \(\sin(\pi/2) = 1\), so \(u = 80 \times 0.8687/2.3013\), about 30.2 °C. 4. Check: at \(y = 1\) the fraction is 1 and \(u = f\); at \(x = 0\), \(x = 2\) and \(y = 0\), \(u = 0\).

Worked example: a square with one hot side

A square plate of side 1 has its top edge at 100 °C and the other three at 0 °C. Find the centre temperature. 1. Coefficients: the sine coefficient of 100 is \(\frac{200(1 - (-1)^n)}{n\pi}\), so only odd \(n\) survive, and

B_n = \frac{400}{n\pi\sinh(n\pi)}, \quad n \text{ odd}

2. At the centre, \(\sin(n\pi/2)\) alternates between 1 and −1 for odd \(n\). 3. The \(n = 1\) term is \(B_1\sinh(\pi/2)\), about 25.37; adding further terms settles the sum at 25.00 °C. 4. Check by symmetry: the four rotated versions, each with a different hot edge, add up to the plate with every edge at 100 °C, which is 100 °C throughout. Their equal centre values must each be 25 °C.

Laplace's equation on a disk

For a circular plate of radius \(a\), polar coordinates fit the boundary. In them Laplace's equation reads

u_{rr} + \frac{1}{r}u_r + \frac{1}{r^2}u_{\theta\theta} = 0

with the boundary condition \(u(a, \theta) = f(\theta)\). Two more conditions come from geometry. The angles \(\theta = -\pi\) and \(\theta = \pi\) are the same ray, so \(u\) and \(u_\theta\) must be periodic in \(\theta\). And the temperature at the centre must be finite, so \(u\) stays bounded as \(r \to 0\). Separating \(u = R(r)\Theta(\theta)\) gives \(\Theta'' + \lambda\Theta = 0\) with periodic conditions, and an equation for \(R\).

Solving on the disk

Periodicity gives \(\lambda = n^2\) with \(\Theta = \cos n\theta\) and \(\sin n\theta\), for \(n = 0, 1, 2, \ldots\) The radial equation is then \(r^2R'' + rR' - n^2R = 0\), an Euler equation of the kind met in Euler (Cauchy-Euler) equations. For \(n \ge 1\) its solutions are \(r^n\) and \(r^{-n}\); for \(n = 0\), \(1\) and \(\ln r\). Boundedness at the centre rules out \(r^{-n}\) and \(\ln r\). Writing each \(r^n\) as \((r/a)^n\) times a constant,

u = \frac{a_0}{2} + \sum_{n=1}^{\infty} \left(\frac{r}{a}\right)^n\big(a_n\cos n\theta + b_n\sin n\theta\big)

At \(r = a\) every factor \((r/a)^n\) is 1, so \(a_n\) and \(b_n\) are exactly the full Fourier coefficients of \(f\) on \(-\pi \le \theta \le \pi\), and the constant \(\frac{a_0}{2}\) is the average of \(f\).

Worked example: a disk with a varying rim

A disk of radius 2 has rim temperature

f(\theta) = 10 + 6\cos\theta - 4\sin 2\theta

Find \(u\). 1. \(f\) is already a Fourier series: \(\frac{a_0}{2} = 10\), \(a_1 = 6\) and \(b_2 = -4\). 2. Attach the radial factors with \(a = 2\): \(6 \cdot \frac{r}{2} = 3r\) and \(-4\left(\frac{r}{2}\right)^2 = -r^2\). 3. So

u = 10 + 3r\cos\theta - r^2\sin 2\theta

4. Check the rim: at \(r = 2\), \(3r = 6\) and \(r^2 = 4\), giving \(f\). 5. At the centre, \(u = 10\), exactly the average rim temperature; at \(r = 1\), \(\theta = \pi/4\), \(u = 10 + 3\cos(\pi/4) - 1\), about 11.1.

Two properties of harmonic functions

The last example illustrates the mean value property: the value of a harmonic function at the centre of any disk inside its region equals the average of its values around the circle. A consequence is the maximum principle: a harmonic function that is not constant has no maximum or minimum inside its region; its extreme values lie on the boundary. Physically, an interior hot spot would lose heat to every side, so it could not be steady. This gives a quick check: an interior value outside the range of the boundary values signals an error.

Common mistakes to avoid

First, using \(\cosh\) for the direction whose edge is held at zero; \(\sinh\) vanishes at 0, \(\cosh\) does not. Second, forgetting to divide by \(\sinh(n\pi H/L)\) when matching the hot edge. Third, putting the eigenvalue problem in the direction that has a nonzero edge. Fourth, keeping \(r^{-n}\) or \(\ln r\) on a disk, which makes the centre temperature infinite. Fifth, attaching \(r^n\) instead of \((r/a)^n\) to the rim's Fourier coefficients, which only works when \(a = 1\). Sixth, expecting an interior hot spot in a steady state, which the maximum principle rules out.

Key takeaways

Laplace's equation \(u_{xx} + u_{yy} = 0\) describes steady states; its solutions are harmonic. On a rectangle, split the problem into one nonzero edge at a time and add. With the top edge at \(f(x)\), the products are \(\sin(n\pi x/L)\sinh(n\pi y/L)\), and \(B_n\sinh(n\pi H/L)\) is the \(n\)th sine coefficient of \(f\). On a disk, periodicity and boundedness leave only \(r^n\cos n\theta\), \(r^n\sin n\theta\) and a constant, matched to the rim by a full Fourier series. The centre value is the rim average, and extremes occur only on the boundary.

Flashcards

Flashcard

uₓₓ + uᵧᵧ = 0

Laplace's equation, ∇²u = 0

The steady state of the 2-D heat equation.

Test your understanding

Question 1 of 5

A rectangle 0 ≤ x ≤ L, 0 ≤ y ≤ H has u = 0 on the left, right and bottom edges and u = f(x) on the top. Which functions of y appear in the product solutions?

Question 2 of 5

A square plate of side L = H has its top edge at 12 sin(3πx/L) and the other edges at 0. What is u(x, y)?

Question 3 of 5

A disk of radius 3 has rim temperature f(θ) = 6 + 9 cos θ. What is the steady temperature u(r, θ)?

Question 4 of 5

Why are r⁻ⁿ and ln r left out of the solution of Laplace's equation on a full disk?

Question 5 of 5

A steady temperature on a disk has rim values between 20 °C and 60 °C, averaging 35 °C. Which statement must be true?

← Previous topicNext topic →