Differential EquationsPartial Differential Equations6 of 6
Partial Differential Equations · 6

Laplace's Equation and Steady States

When we heat a metal plate and hold its edges at fixed temperatures, we want to find the steady-state temperature u(x,y)\temp{u(x, y)} across the plate once the temperature at every point has stopped changing over time (∂u∂t=0\rate{\frac{\partial u}{\partial t}} = 0).

1

Steady States and Neighbor Averages

Before finding the steady-state temperature on a two-dimensional plate, let's see why a one-dimensional rod settles into a straight line by looking at what the second derivative uxx\curvx{u_{xx}} measures between a point and its neighbors.

Steady States in 1D and Neighbor Averages
u\htmlClass{lc-blue}{u}
0∘\htmlClass{lc-blue}{0^\circ}
100∘\htmlClass{lc-blue}{100^\circ}
tt

In one dimension, measuring how the slope changes between a point and its left and right neighbors shows that the second derivative compares the center point to the average around it:

u(right)+u(left)2−u(center)=[u(right)−u(center)]−[u(center)−u(left)]2⟹uxx∝Average of neighbors−u(center)\displaystyle \begin{aligned} &\frac{\temp{u(\text{right})} + \temp{u(\text{left})}}{2} - \temp{u(\text{center})} \\ &\quad = \frac{\begin{gathered}\rise{\bigl[u(\text{right}) - u(\text{center})\bigr]} \\ - \rise{\bigl[u(\text{center}) - u(\text{left})\bigr]}\end{gathered}}{2} \\ &\Longrightarrow \quad \curvx{u_{xx}} \\ &\quad \propto \text{Average of neighbors} - \temp{u(\text{center})} \end{aligned}

At steady state on a 1D rod, no point can stay hotter or colder than the average of its two neighbors, so uxx=0\curvx{u_{xx}} = 0 and the temperature graph must be a straight line.

2

Laplace's Equation and Saddle Surfaces

Now we want to find the rule that a steady-state temperature surface u(x,y)\temp{u(x, y)} must obey on a flat two-dimensional plate, where each interior point (x,y)(x, y) trades heat with four neighbors: left and right along xx, and up and down along yy.

Laplace's Equation and Saddle Surfaces
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
(x,y)(x, y)
left\text{left}
right\text{right}
up\text{up}
down\text{down}

Once the two-dimensional heat equation ut=k(uxx+uyy)\rate{u_t} = k(\curvx{u_{xx}} + \curvy{u_{yy}}) settles into a steady state (ut=0\rate{u_t} = 0), the differences between a point and its four neighbors must cancel out to zero:

uxx+uyy=0⏟Laplace’s equation (∇2u=0)⟺uxx\displaystyle \underbrace{\curvx{u_{xx}} + \curvy{u_{yy}} = 0}_{\text{Laplace's equation } (\nabla^2 \temp{u} = 0)} \quad \Longleftrightarrow \quad \curvx{u_{xx}} =−uyy\displaystyle = -\curvy{u_{yy}}

Here ∇2u\nabla^2 \temp{u} (read "nabla squared u\temp{u}") is just shorthand for adding the second derivatives in the xx and yy directions, not squaring a number. Moving uyy\curvy{u_{yy}} to the other side shows that the surface doesn't have to be flat like a 1D rod: it can bend up or down along xx as long as it bends by the exact opposite amount along yy, forming a saddle.

Wherever the steady-state surface arches upward along the xx-slice (uxx<0\curvx{u_{xx}} < 0), it dips downward by an equal amount along the yy-slice (uyy>0\curvy{u_{yy}} > 0), and the other way around. This keeps each interior point at the average of its four neighbors, so the highest and lowest temperatures can only happen on the outer boundary walls.

Once the temperatures in a plate settle, any downward bend one way is balanced by an equal upward bend the other way, keeping every inside point at the average of its four neighbors and pushing the hottest and coldest spots to the edges.
3

Waves in One Direction, Exponentials in the Other

Knowing that uxx=−uyy\curvx{u_{xx}} = -\curvy{u_{yy}} tells us the shape of the surface. Now let's find a formula for the steady-state temperature u(x,y)\temp{u(x, y)} on a square plate of width π\pi and height π\pi when the left, right, and bottom walls are held at 0∘0^\circ and the top wall is heated to u(x,π)=f(x)\temp{u(x, \pi)} = \temp{f(x)}.

y=π: u(x,π)=f(x)y = \pi:\ \htmlClass{lc-blue}{u(x, \pi)} = \htmlClass{lc-blue}{f(x)}
x=0x = 0
u=0\htmlClass{lc-blue}{u} = 0
x=πx = \pi
u=0\htmlClass{lc-blue}{u} = 0
y=0: u=0y = 0:\ \htmlClass{lc-blue}{u} = 0
0\htmlClass{lc-mute}{0}
π\htmlClass{lc-mute}{\pi}
π\htmlClass{lc-mute}{\pi}

Remember from the heat equation that separating variables as u(x,y)=X(x)Y(y)\temp{u(x, y)} = \wave{X(x)}\decay{Y(y)} between two zero walls at x=0x = 0 and x=πx = \pi gives the sine waves X(x)=sin⁡(nx)\wave{X(x)} = \wave{\sin(nx)}, where taking two derivatives pulls out −n2\curvx{-n^2}:

X′′(x)\displaystyle \curvx{X''(x)} =−n2sin⁡(nx)\displaystyle = \curvx{-n^2} \wave{\sin(nx)} =−n2X(x)\displaystyle = \curvx{-n^2} \wave{X(x)}

Because Laplace's equation uxx+uyy=0\curvx{u_{xx}} + \curvy{u_{yy}} = 0 requires the yy-curvature to cancel the xx-curvature, a sine wave in xx forces Y′′(y)=+n2Y(y)\curvy{Y''(y)} = \curvy{+n^2} \decay{Y(y)} in yy.

Waves in One Direction, Exponentials in the Other
u(x,π)=f(x)\htmlClass{lc-blue}{u(x, \pi)} = \htmlClass{lc-blue}{f(x)}
u=0\htmlClass{lc-blue}{u} = 0
u=0\htmlClass{lc-blue}{u} = 0
u=0\htmlClass{lc-blue}{u} = 0
0\htmlClass{lc-mute}{0}
π\htmlClass{lc-mute}{\pi}
π\htmlClass{lc-mute}{\pi}
X(x)= ?\htmlClass{lc-blue}{X(x)} = \,?
Y(y)= ?\htmlClass{lc-violet}{Y(y)} = \,?

That gives eny\decay{e^{ny}} and e−ny\decay{e^{-ny}} in yy. To make their combination equal zero on the bottom wall y=0y = 0, we subtract e−ny\decay{e^{-ny}} from eny\decay{e^{ny}}, which is written using hyperbolic sine:

sinh⁡(ny)=eny−e−ny2⏟equals 0 at y=0,cosh⁡(ny)=eny+e−ny2⏟equals 1 at y=0\displaystyle \begin{aligned} \decay{\sinh(ny)} &= \underbrace{\frac{\decay{e^{ny}} - \decay{e^{-ny}}}{2}}_{\text{equals } 0 \text{ at } y = 0}, \\ \decay{\cosh(ny)} &= \underbrace{\frac{\decay{e^{ny}} + \decay{e^{-ny}}}{2}}_{\text{equals } 1 \text{ at } y = 0} \end{aligned}

Multiplying the xx-wave by the yy-exponential gives a building block that satisfies Laplace's equation everywhere inside the plate and automatically equals 00 on the left, right, and bottom walls:

un(x,y)=sin⁡(nx)sinh⁡(ny)(on a π×π plate),un(x,y)=sin⁡ ⁣(nπxL)⏟zero at x=0,  Lsinh⁡ ⁣(nπyL)⏟zero at y=0(on a plate of width L)\displaystyle \begin{aligned} \temp{u_n(x, y)} &= \wave{\sin(nx)}\decay{\sinh(ny)} \\ &\qquad (\text{on a } \pi \times \pi \text{ plate}), \\ \temp{u_n(x, y)} &= \underbrace{\wave{\sin\!\left(\frac{n\pi x}{L}\right)}}_{\text{zero at } x = 0,\; L} \underbrace{\decay{\sinh\!\left(\frac{n\pi y}{L}\right)}}_{\text{zero at } y = 0} \\ &\qquad (\text{on a plate of width } L) \end{aligned}

A wide, gentle wave on the heated top wall reaches deep into the plate, while a high-frequency wave with many tight wiggles has a large second derivative in xx (−n2\curvx{-n^2} times the wave) that forces sinh⁡(ny)\decay{\sinh(ny)} to die out quickly away from the top wall, smoothing out rapid boundary wiggles inside the plate.

Sharper waves along the heated top wall force a steeper drop-off into the plate, smoothing out rapid wiggles before they reach the middle.
4

Matching the Heated Top Wall

With the building blocks un(x,y)=sin⁡(nx)sinh⁡(ny)\temp{u_n(x, y)} = \wave{\sin(nx)}\decay{\sinh(ny)} in hand, we now want to choose the constants BnB_n so that our solution matches the given temperature along the heated top wall y=πy = \pi.

When the top wall is not already a single sine wave, we add the building blocks together and use the Fourier sine integral from the heat equation, where a function f(x)\temp{f(x)} on 0≤x≤π0 \le x \le \pi is built from ∑n=1∞bnsin⁡(nx)\sum_{n=1}^{\infty} b_n \wave{\sin(nx)} with bn=2π∫0πf(x)sin⁡(nx) dxb_n = \frac{2}{\pi}\int_0^\pi \temp{f(x)}\sin(nx)\,dx.

Matching the Heated Top Wall
u(x,π)=10sin⁡(3x)\htmlClass{lc-blue}{u(x, \pi)} = 10\htmlClass{lc-blue}{\sin(3x)}
u=0\htmlClass{lc-blue}{u} = 0
u=0\htmlClass{lc-blue}{u} = 0
u=0\htmlClass{lc-blue}{u} = 0
0\htmlClass{lc-mute}{0}
π\htmlClass{lc-mute}{\pi}
π\htmlClass{lc-mute}{\pi}
u(x,y)= ?\htmlClass{lc-blue}{u(x, y)} = \,?

When the top wall is already a single sine wave like u(x,π)=10sin⁡(3x)\temp{u(x, \pi)} = 10\wave{\sin(3x)}, don't set up an integral. Just keep the n=3n = 3 building block u(x,y)=B3sin⁡(3x)sinh⁡(3y)\temp{u(x, y)} = B_3 \wave{\sin(3x)}\decay{\sinh(3y)}, plug in y=πy = \pi, and divide by the constant number sinh⁡(3π)\decay{\sinh(3\pi)}:

u(x,π)=B3sin⁡(3x)sinh⁡(3π)=10sin⁡(3x)⟹u(x,y)=10sinh⁡(3π)sin⁡(3x)sinh⁡(3y)\displaystyle \begin{aligned} &\temp{u(x, \pi)} = B_3 \wave{\sin(3x)}\decay{\sinh(3\pi)} \\ &\quad = 10\wave{\sin(3x)} \\ &\Longrightarrow \quad \temp{u(x, y)} \\ &\quad = \frac{10}{\decay{\sinh(3\pi)}}\wave{\sin(3x)}\decay{\sinh(3y)} \end{aligned}

When the top wall is held at a constant u(x,π)=100\temp{u(x, \pi)} = \temp{100}, no single sine wave matches the flat edge, so we sum over all nn.

Text solution
Sum the building blocks and plug in the top wall y=πy = \piSetting y=πy = \pi makes the whole constant Bnsinh⁡(nπ)B_n \decay{\sinh(n\pi)} the coefficient in front of sin⁡(nx)\wave{\sin(nx)} for 100\temp{100}.
u(x,y)=∑n=1∞Bnsin⁡(nx)sinh⁡(ny)⟹100=∑n=1∞Bnsinh⁡(nπ)⏟Fourier sinecoefficientsin⁡(nx)\displaystyle \begin{aligned} &\temp{u(x, y)} = \sum_{n=1}^{\infty} B_n \wave{\sin(nx)}\decay{\sinh(ny)} \\ &\Longrightarrow \quad \temp{100} \\ &\quad = \sum_{n=1}^{\infty} \underbrace{B_n \decay{\sinh(n\pi)}}_{\begin{gathered}\text{Fourier sine} \\ \text{coefficient}\end{gathered}} \wave{\sin(nx)} \end{aligned}
Integrate from 00 to π\pi for Bnsinh⁡(nπ)B_n \decay{\sinh(n\pi)}Integrating 100sin⁡(nx)\temp{100}\sin(nx) and multiplying by 2π\frac{2}{\pi} gives 00 for even nn (where positive and negative arches cancel) and 400nπ\frac{400}{n\pi} for odd nn.
Bnsinh⁡(nπ)=2π∫0π100sin⁡(nx) dx=200π[−cos⁡(nx)n]0π=200nπ(1−cos⁡(nπ))={0if n is even400nπif n is odd\displaystyle \begin{aligned} &B_n \decay{\sinh(n\pi)} \\ &\quad = \frac{2}{\pi} \int_0^\pi \temp{100}\sin(nx)\,dx \\ &\quad = \frac{200}{\pi}\left[-\frac{\cos(nx)}{n}\right]_0^\pi \\ &\quad = \frac{200}{n\pi}\bigl(1 - \cos(n\pi)\bigr) \\ &\quad = \begin{cases} 0 & \text{if } n \text{ is even} \\ \dfrac{400}{n\pi} & \text{if } n \text{ is odd} \end{cases} \end{aligned}
Divide by sinh⁡(nπ)\decay{\sinh(n\pi)} and write odd n=2k−1n = 2k - 1Dividing by the constant sinh⁡(nπ)\decay{\sinh(n\pi)} makes sinh⁡(ny)sinh⁡(nπ)\frac{\decay{\sinh(ny)}}{\decay{\sinh(n\pi)}} equal 11 when y=πy = \pi.
Bn=400nπsinh⁡(nπ)⟹u(x,y)=400π∑k=1∞sin⁡((2k−1)x)sinh⁡((2k−1)y)(2k−1)sinh⁡((2k−1)π)\displaystyle \begin{aligned} &B_n = \frac{400}{n\pi \decay{\sinh(n\pi)}} \\ &\Longrightarrow \quad \temp{u(x, y)} = \\ &\frac{400}{\pi} \sum_{k=1}^{\infty} \frac{\begin{gathered}\wave{\sin((2k - 1)x)} \\ \decay{\sinh((2k - 1)y)}\end{gathered}}{(2k - 1)\decay{\sinh((2k - 1)\pi)}} \end{aligned}
5

Heating a Different Wall and Shifted Hyperbolic Sines

When the top wall was heated, sinh⁡(ny)\decay{\sinh(ny)} worked right away because the zero wall across from it was at y=0y = 0. Now let's find the steady-state temperature u(x,y)\temp{u(x, y)} on a rectangle of width LL and height HH when a different wall is heated, such as the left wall x=0x = 0 held at u(0,y)=g(y)\temp{u(0, y)} = \temp{g(y)}, where the zero wall across from it is at x=Lx = L instead of at 00 (for a heated bottom wall, it would be at y=Hy = H).

y=H: u=0y = H:\ \htmlClass{lc-blue}{u} = 0
x=0x = 0
u(0,y)=g(y)\htmlClass{lc-blue}{u(0, y)} = \htmlClass{lc-blue}{g(y)}
x=Lx = L
u=0\htmlClass{lc-blue}{u} = 0
y=0: u=0y = 0:\ \htmlClass{lc-blue}{u} = 0
0\htmlClass{lc-mute}{0}
L\htmlClass{lc-mute}{L}
H\htmlClass{lc-mute}{H}
Heating a Different Wall and Shifted Hyperbolic Sines
g(y)\htmlClass{lc-blue}{g(y)}
u=0\htmlClass{lc-blue}{u} = 0
u=0\htmlClass{lc-blue}{u} = 0
u=0\htmlClass{lc-blue}{u} = 0
0\htmlClass{lc-mute}{0}
L\htmlClass{lc-mute}{L}
H\htmlClass{lc-mute}{H}
X(x)= ?X(x) = \,?
Y(y)= ?Y(y) = \,?

Because sinh⁡(0)=0\decay{\sinh(0)} = 0, and replacing xx with L−xL - x (or yy with H−yH - y) does not change the second derivative (the two chain-rule factors of −1-1 multiply to 11), we make the hyperbolic sine equal zero on any wall by plugging in how far we are from that wall:

Zero at y=0:  sinh⁡ ⁣(nπyL),Zero at y=H:  sinh⁡ ⁣(nπ(H−y)L),Zero at x=L:  sinh⁡ ⁣(nπ(L−x)H)\displaystyle \begin{aligned} \text{Zero at } y = 0:\;& \decay{\sinh\!\left(\frac{n\pi y}{L}\right)}, \\ \text{Zero at } y = H:\;& \decay{\sinh\!\left(\frac{n\pi(H - y)}{L}\right)}, \\ \text{Zero at } x = L:\;& \decay{\sinh\!\left(\frac{n\pi(L - x)}{H}\right)} \end{aligned}

Now let's write the solution when the left wall of an L×HL \times H rectangle is held at u(0,y)=5sin⁡(2πyH)\temp{u(0, y)} = 5\wave{\sin\left(\tfrac{2\pi y}{H}\right)} and the other three walls are at 0∘0^\circ.

Text solution
Match the two opposite zero walls y=0,Hy = 0, H and the third zero wall x=Lx = LBecause u=0\temp{u} = 0 on both y=0y = 0 and y=Hy = H, yy gets the n=2n = 2 sine wave and xx gets the hyperbolic sine shifted to equal 00 at x=Lx = L.
u(x,y)\displaystyle \temp{u(x, y)} =B2sinh⁡ ⁣(2π(L−x)H)sin⁡ ⁣(2πyH)\displaystyle = B_2 \decay{\sinh\!\left(\frac{2\pi(L - x)}{H}\right)}\wave{\sin\!\left(\frac{2\pi y}{H}\right)}
Plug in the heated left wall x=0x = 0 to find B2B_2Plugging in x=0x = 0 and dividing by the constant sinh⁡(2πLH)\decay{\sinh\left(\tfrac{2\pi L}{H}\right)} finishes the solution.
u(0,y)=B2sinh⁡ ⁣(2πLH)sin⁡ ⁣(2πyH)=5sin⁡ ⁣(2πyH)⟹u(x,y)=5sinh⁡(2πLH)sinh⁡ ⁣(2π(L−x)H)sin⁡ ⁣(2πyH)\displaystyle \begin{aligned} &\temp{u(0, y)} \\ &\quad = B_2 \decay{\sinh\!\left(\frac{2\pi L}{H}\right)}\wave{\sin\!\left(\frac{2\pi y}{H}\right)} \\ &\quad = 5\wave{\sin\!\left(\frac{2\pi y}{H}\right)} \\ &\Longrightarrow \quad \temp{u(x, y)} = \frac{5}{\decay{\sinh\left(\tfrac{2\pi L}{H}\right)}} \\ &\qquad \decay{\sinh\!\left(\frac{2\pi(L - x)}{H}\right)}\wave{\sin\!\left(\frac{2\pi y}{H}\right)} \end{aligned}
6

Heating Multiple Walls by Superposition

Each building block needs three walls at 0∘0^\circ: two opposite zero walls for the sine wave and a third zero wall for the hyperbolic sine. Now we want to find the steady-state temperature u(x,y)\temp{u(x, y)} when two or more walls are heated at once, such as a π×π\pi \times \pi plate with the top wall at u(x,π)=100\temp{u(x, \pi)} = \temp{100} and the bottom wall at u(x,0)=50sin⁡(2x)\temp{u(x, 0)} = 50\wave{\sin(2x)}.

100\htmlClass{lc-blue}{100}
50sin⁡(2x)50\htmlClass{lc-blue}{\sin(2x)}
00
00
100\htmlClass{lc-blue}{100}
00
00
00
00
50sin⁡(2x)50\htmlClass{lc-blue}{\sin(2x)}
00
00
u\htmlClass{lc-blue}{u}
==
u1\htmlClass{lc-blue}{u_1}
++
u2\htmlClass{lc-blue}{u_2}
Heating Multiple Walls by Superposition
u(x,π)=100\htmlClass{lc-blue}{u(x, \pi)} = \htmlClass{lc-blue}{100}
u=0\htmlClass{lc-blue}{u} = 0
u=0\htmlClass{lc-blue}{u} = 0
u(x,0)=50sin⁡(2x)\htmlClass{lc-blue}{u(x, 0)} = 50\htmlClass{lc-blue}{\sin(2x)}
0\htmlClass{lc-mute}{0}
π\htmlClass{lc-mute}{\pi}
π\htmlClass{lc-mute}{\pi}
u(x,y)= ?\htmlClass{lc-blue}{u(x, y)} = \,?
Text solution
Split into one-wall subproblems u(x,y)=u1(x,y)+u2(x,y)\temp{u(x, y)} = \temp{u_1(x, y)} + \temp{u_2(x, y)}We let u1\temp{u_1} match u1(x,π)=100\temp{u_1(x, \pi)} = \temp{100} with 00 on the bottom wall, and let u2\temp{u_2} match u2(x,0)=50sin⁡(2x)\temp{u_2(x, 0)} = 50\wave{\sin(2x)} with 00 on the top wall.
∇2(u1+u2)\displaystyle \nabla^2(\temp{u_1} + \temp{u_2}) =∇2u1+∇2u2\displaystyle = \nabla^2 \temp{u_1} + \nabla^2 \temp{u_2} =0+0\displaystyle = 0 + 0 =0\displaystyle = 0
Solve the bottom-wall problem u2(x,y)\temp{u_2(x, y)} using a shifted hyperbolic sineSince u2\temp{u_2} is 00 at x=0x = 0, x=πx = \pi, and the top wall y=πy = \pi, we use the n=2n = 2 block with sinh⁡(2(π−y))\decay{\sinh(2(\pi - y))} and plug in y=0y = 0.
u2(x,y)=B2sin⁡(2x)sinh⁡(2(π−y))u2(x,0)=B2sin⁡(2x)sinh⁡(2π)=50sin⁡(2x)⟹B2=50sinh⁡(2π)\displaystyle \begin{aligned} &\temp{u_2(x, y)} \\ &\quad = B_2 \wave{\sin(2x)}\decay{\sinh(2(\pi - y))} \\ &\temp{u_2(x, 0)} \\ &\quad = B_2 \wave{\sin(2x)}\decay{\sinh(2\pi)} \\ &\quad = 50\wave{\sin(2x)} \\ &\Longrightarrow \quad B_2 = \frac{50}{\decay{\sinh(2\pi)}} \end{aligned}
Add u1\temp{u_1} and u2\temp{u_2} togetherAdding our earlier top-wall solution u1\temp{u_1} to u2\temp{u_2} gives 100+0=100100 + 0 = 100 on the top edge and 0+50sin⁡(2x)=50sin⁡(2x)0 + 50\sin(2x) = 50\sin(2x) on the bottom edge.
u(x,y)=400π∑k=1∞sin⁡((2k−1)x)sinh⁡((2k−1)y)(2k−1)sinh⁡((2k−1)π)⏟u1 (top wall)+50sinh⁡(2π)sin⁡(2x)sinh⁡(2(π−y))⏟u2 (bottom wall)\displaystyle \begin{aligned} &\temp{u(x, y)} = \\ &\underbrace{\frac{400}{\pi} \sum_{k=1}^{\infty} \frac{\begin{gathered}\wave{\sin((2k - 1)x)} \\ \decay{\sinh((2k - 1)y)}\end{gathered}}{(2k - 1)\decay{\sinh((2k - 1)\pi)}}}_{\temp{u_1} \text{ (top wall)}} \\ &+ \underbrace{\frac{50}{\decay{\sinh(2\pi)}}\wave{\sin(2x)}\decay{\sinh(2(\pi - y))}}_{\temp{u_2} \text{ (bottom wall)}} \end{aligned}
7

Laplace's Equation on a Circular Disk

Rectangles line up cleanly with xx and yy, but now we want to find the steady-state temperature u(r,θ)\temp{u(r, \theta)} inside a circular disk of radius aa when its outer rim r=ar = a is held at a given temperature u(a,θ)=f(θ)\temp{u(a, \theta)} = \temp{f(\theta)}.

r=a: u(a,θ)=f(θ)r = a:\ \htmlClass{lc-blue}{u(a, \theta)} = \htmlClass{lc-blue}{f(\theta)}
aa
rr
θ\theta
(r,θ)(r, \theta)
Δθ\Delta\theta
arc length=r Δθ\text{arc length} = \htmlClass{lc-orange}{r\,\Delta\theta}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}

Now let's separate variables in polar coordinates to see how u(r,θ)\temp{u(r, \theta)} behaves along the radius rr and around the angle θ\theta.

Laplace's Equation on a Circular Disk
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
aa
r=a: u(a,θ)=f(θ)r = a:\ \htmlClass{lc-blue}{u(a, \theta)} = \htmlClass{lc-blue}{f(\theta)}

Separating u(r,θ)=R(r)Θ(θ)\temp{u(r, \theta)} = \decay{R(r)}\wave{\Theta(\theta)} in the polar Laplace equation puts θ\theta and rr on opposite sides:

urr+1rur+1r2uθθ=0⟹r2R′′(r)+rR′(r)R(r)=−Θ′′(θ)Θ(θ)=λ\displaystyle \begin{aligned} \radial{u_{rr}} + \radial{\frac{1}{r}u_r} + \around{\frac{1}{r^2}u_{\theta\theta}} &= 0 \\ \Longrightarrow \quad \frac{r^2 \radial{R''(r)} + r \radial{R'(r)}}{\decay{R(r)}} &= -\frac{\around{\Theta''(\theta)}}{\wave{\Theta(\theta)}} = \lambda \end{aligned}

Because going around the circle by 2π2\pi brings us back to the exact same spot on the disk, Θ(θ+2π)=Θ(θ)\wave{\Theta(\theta + 2\pi)} = \wave{\Theta(\theta)} forces λ=n2\lambda = n^2 (n=0,1,2,…n = 0, 1, 2, \dots) and keeps both cos⁡(nθ)\wave{\cos(n\theta)} and sin⁡(nθ)\wave{\sin(n\theta)}. Trying R(r)=rm\decay{R(r)} = \decay{r^m} in r2R′′+rR′−n2R=0r^2 \radial{R''} + r \radial{R'} - n^2 \decay{R} = 0 gives m2=n2m^2 = n^2, or m=±nm = \pm n:

R(r)={C+Dln⁡r(n=0)Crn+Dr−n(n≥1)\displaystyle \decay{R(r)} = \begin{cases} C + D \decay{\ln r} & (n = 0) \\ C \decay{r^n} + D \decay{r^{-n}} & (n \ge 1) \end{cases}

We drop ln⁡r\decay{\ln r} and r−n\decay{r^{-n}} because they go to infinity at the center r=0r = 0, leaving the general steady-state temperature inside a disk:

u(r,θ)\displaystyle \temp{u(r, \theta)} =A0⏟temperature at center r=0+∑n=1∞rn(Ancos⁡(nθ)+Bnsin⁡(nθ))\displaystyle = \underbrace{A_0}_{\text{temperature at center } r = 0} + \sum_{n=1}^{\infty} \decay{r^n}\bigl(A_n \wave{\cos(n\theta)} + B_n \wave{\sin(n\theta)}\bigr)

Plugging in the outer rim r=ar = a to match f(θ)=A0\temp{f(\theta)} = A_0 +∑n=1∞an(Ancos⁡(nθ){} + \sum_{n=1}^{\infty} \decay{a^n}\bigl(A_n \wave{\cos(n\theta)} +Bnsin⁡(nθ)){} + B_n \wave{\sin(n\theta)}\bigr) gives the Fourier coefficients on the circle:

A0=12π∫02πf(θ) dθ,anAn=1π∫02πf(θ)cos⁡(nθ) dθ,anBn=1π∫02πf(θ)sin⁡(nθ) dθ\displaystyle \begin{aligned} A_0 &= \frac{1}{2\pi}\int_0^{2\pi} \temp{f(\theta)}\,d\theta, \\ \decay{a^n} A_n &= \frac{1}{\pi}\int_0^{2\pi} \temp{f(\theta)}\cos(n\theta)\,d\theta, \\ \decay{a^n} B_n &= \frac{1}{\pi}\int_0^{2\pi} \temp{f(\theta)}\sin(n\theta)\,d\theta \end{aligned}

When the rim temperature f(θ)\temp{f(\theta)} is already written out in cosines and sines (like 15+8cos⁡θ15 + 8\wave{\cos\theta}), don't integrate. Just set A0A_0, anAn\decay{a^n} A_n, and anBn\decay{a^n} B_n equal to the numbers in front of each wave at r=ar = a and remember to divide by an\decay{a^n}.

On any circle of radius rr inside the disk, the temperature comes smoothly back to its starting value after 2π2\pi, rapid wiggles around the rim shrink away faster toward the inside because of the factor (ra)n\decay{\left(\tfrac{r}{a}\right)^n}, and at the center r=0r = 0 every wave equals zero so only the average rim temperature A0A_0 is left.

As you move from the rim to the center of the disk, the rapid waves flatten out first until only the rim's average temperature is left at the center.

Key concepts

Saddle balance and boundary extremes (uxx=−uyy\curvx{u_{xx}} = -\curvy{u_{yy}})

A steady state satisfies Laplace's equation ∇2u=uxx+uyy=0\nabla^2 \temp{u} = \curvx{u_{xx}} + \curvy{u_{yy}} = 0, so any curvature in xx is cancelled by opposite curvature in yy (for instance, u(x,y)=3x2−3y2\temp{u(x, y)} = 3x^2 - 3y^2 has uxx=6\curvx{u_{xx}} = 6 and uyy=−6\curvy{u_{yy}} = -6). Because an interior peak or valley would require the surface to bend the same way in both directions, the maximum and minimum temperatures must always occur on the outer boundary.

One heated wall on a rectangle (Sine between two zero walls, shifted sinh⁡\decay{\sinh} for the third)

Look first at which pair of opposite walls is held at 0∘0^\circ. That direction gets the sine waves, and its width or height goes in the denominator inside both sin⁡\wave{\sin} and sinh⁡\decay{\sinh}. The other direction gets a hyperbolic sine shifted to equal 00 on the third zero wall:

  • Heated top wall y=Hy = H (zero at x=0,Lx = 0, L and y=0y = 0): un(x,y)=sin⁡ ⁣(nπxL)sinh⁡ ⁣(nπyL)\temp{u_n(x, y)} = \wave{\sin\!\left(\frac{n\pi x}{L}\right)}\decay{\sinh\!\left(\frac{n\pi y}{L}\right)}
  • Heated bottom wall y=0y = 0 (zero at x=0,Lx = 0, L and y=Hy = H): un(x,y)=sin⁡ ⁣(nπxL)sinh⁡ ⁣(nπ(H−y)L)\temp{u_n(x, y)} = \wave{\sin\!\left(\frac{n\pi x}{L}\right)}\decay{\sinh\!\left(\frac{n\pi(H - y)}{L}\right)}
  • Heated left wall x=0x = 0 (zero at y=0,Hy = 0, H and x=Lx = L): un(x,y)=sinh⁡ ⁣(nπ(L−x)H)sin⁡ ⁣(nπyH)\temp{u_n(x, y)} = \decay{\sinh\!\left(\frac{n\pi(L - x)}{H}\right)}\wave{\sin\!\left(\frac{n\pi y}{H}\right)}
When not to integrate

If the heated boundary is already a sum of waves that fit the plate or disk, such as u(x,π)=10sin⁡(3x)\temp{u(x, \pi)} = 10\wave{\sin(3x)} on a π×π\pi \times \pi square or u(2,θ)=15+8cos⁡(θ)\temp{u(2, \theta)} = 15 + 8\wave{\cos(\theta)} on a disk of radius a=2a = 2, do not compute Fourier integrals. Keep only the matching nn building blocks, plug in the heated boundary, and divide by the constant sinh⁡\decay{\sinh} or an\decay{a^n} factor (B3=10sinh⁡(3π)B_3 = \frac{10}{\decay{\sinh(3\pi)}} or A1=821=4A_1 = \frac{8}{\decay{2^1}} = 4). Use the Fourier integral only when the boundary temperature (such as a flat constant) is not already written in waves.

Multiple heated walls (Superposition u=u1+u2+…\temp{u} = \temp{u_1} + \temp{u_2} + \dots)

When two or more walls of a rectangle are nonzero (like u(x,π)=100\temp{u(x, \pi)} = \temp{100} and u(x,0)=50sin⁡(2x)\temp{u(x, 0)} = 50\wave{\sin(2x)}), split the problem into separate one-wall problems where the other three walls are 0∘0^\circ, solve each one-wall problem on its own, and add the results together.

Circular disk of radius aa (repeating every 2π2\pi and finite at the center)

With no walls in θ\theta and a finite temperature at r=0r = 0, the solution is u(r,θ)=A0\temp{u(r, \theta)} = A_0 +∑n=1∞rn(Ancos⁡(nθ){} + \sum_{n=1}^{\infty} \decay{r^n}(A_n \wave{\cos(n\theta)} +Bnsin⁡(nθ)){} + B_n \wave{\sin(n\theta)}). At the center r=0r = 0, every rn\decay{r^n} wave equals zero, so the center temperature is simply A0=12π∫02πf(θ) dθA_0 = \frac{1}{2\pi}\int_0^{2\pi} \temp{f(\theta)}\,d\theta, the average temperature around the rim.

8

Practice

1

Find the constant cc so that u(x,y)=3x2+cy2\temp{u(x, y)} = 3x^2 + cy^2 satisfies Laplace's equation, explain why u\temp{u} cannot have a hottest or coldest point inside the square plate 0≤x≤20 \le x \le 2, 0≤y≤20 \le y \le 2, and find the maximum and minimum values of u\temp{u} on that plate.

Take two derivatives in xx and two in yy to set uxx+uyy=0\curvx{u_{xx}} + \curvy{u_{yy}} = 0; then look at where on the square 0≤x≤20 \le x \le 2, 0≤y≤20 \le y \le 2 the positive term is largest while the negative term is zero (and vice versa).

Taking two derivatives in each direction gives the condition for Laplace's equation:
uxx=6,uyy=2c⟹uxx+uyy=6+2c=0⟹c=−3\displaystyle \begin{aligned} \curvx{u_{xx}} &= 6, \qquad \curvy{u_{yy}} = 2c \\ \Longrightarrow \quad \curvx{u_{xx}} + \curvy{u_{yy}} &= 6 + 2c = 0 \\ \Longrightarrow \quad c &= -3 \end{aligned}
So u(x,y)=3x2−3y2\temp{u(x, y)} = 3x^2 - 3y^2. Because opposite curvatures (uxx=−uyy\curvx{u_{xx}} = -\curvy{u_{yy}}) form a saddle at every point and prevent any interior peak or valley, the highest and lowest temperatures must occur on the boundary of the square 0≤x≤20 \le x \le 2, 0≤y≤20 \le y \le 2.
(Watch out: plugging in the corner (2,2)(2, 2) where both coordinates are largest makes the terms cancel to 3(4)−3(4)=03(4) - 3(4) = 0, and plugging in (0,0)(0, 0) also gives 00 instead of the minimum. Because 3x2≥03x^2 \ge 0 raises the temperature and −3y2≤0-3y^2 \le 0 lowers it, the maximum occurs where xx is largest and y=0y = 0, and the minimum occurs where x=0x = 0 and yy is largest.)
Maximum: u(2,0)=3(2)2−3(0)2=12 at (2,0),Minimum: u(0,2)=3(0)2−3(2)2=−12 at (0,2)\displaystyle \begin{aligned} \text{Maximum: } \temp{u(2, 0)} &= 3(2)^2 - 3(0)^2 \\ &= 12 \text{ at } (2, 0), \\ \text{Minimum: } \temp{u(0, 2)} &= 3(0)^2 - 3(2)^2 \\ &= -12 \text{ at } (0, 2) \end{aligned}
2

Solve Laplace's equation uxx+uyy=0\curvx{u_{xx}} + \curvy{u_{yy}} = 0 on a rectangle of width LL and height HH (0≤x≤L0 \le x \le L, 0≤y≤H0 \le y \le H) when the left, right, and top walls are held at 0∘0^\circ (u(0,y)=0\temp{u(0, y)} = 0, u(L,y)=0\temp{u(L, y)} = 0, u(x,H)=0\temp{u(x, H)} = 0) and the bottom wall is held at u(x,0)=4sin⁡(πxL)−sin⁡(3πxL)\temp{u(x, 0)} = 4\wave{\sin\left(\tfrac{\pi x}{L}\right)} - \wave{\sin\left(\tfrac{3\pi x}{L}\right)}.

The left and right walls x=0x = 0 and x=Lx = L are 0∘0^\circ, and the third zero wall is the top edge y=Hy = H: how should the inside of sinh⁡\decay{\sinh} be shifted so it equals 00 when y=Hy = H?

The zero walls at x=0x = 0 and x=Lx = L give sin⁡(nπxL)\wave{\sin\left(\tfrac{n\pi x}{L}\right)}, and the zero top wall at y=Hy = H gives the shifted hyperbolic sine sinh⁡(nπ(H−y)L)\decay{\sinh\left(\tfrac{n\pi(H - y)}{L}\right)}. Keeping the n=1n = 1 and n=3n = 3 building blocks to match the bottom wall:
u(x,y)=B1sin⁡ ⁣(πxL)sinh⁡ ⁣(π(H−y)L)+B3sin⁡ ⁣(3πxL)sinh⁡ ⁣(3π(H−y)L)\displaystyle \begin{aligned} &\temp{u(x, y)} = \\ &B_1 \wave{\sin\!\left(\frac{\pi x}{L}\right)}\decay{\sinh\!\left(\frac{\pi(H - y)}{L}\right)} \\ &+ B_3 \wave{\sin\!\left(\frac{3\pi x}{L}\right)}\decay{\sinh\!\left(\frac{3\pi(H - y)}{L}\right)} \end{aligned}
(Watch out: using unshifted sinh⁡(nπyL)\sinh\left(\tfrac{n\pi y}{L}\right) makes u(x,0)=0u(x, 0) = 0 at the heated bottom wall instead of the top wall y=Hy = H, and forgetting to divide by sinh⁡(nπHL)\decay{\sinh\left(\tfrac{n\pi H}{L}\right)} at y=0y = 0 leaves the wrong answer 4sin⁡(πxL)sinh⁡(π(H−y)L)4\sin\left(\tfrac{\pi x}{L}\right)\sinh\left(\tfrac{\pi(H - y)}{L}\right) −sin⁡(3πxL)sinh⁡(3π(H−y)L){} - \sin\left(\tfrac{3\pi x}{L}\right)\sinh\left(\tfrac{3\pi(H - y)}{L}\right).)
Plugging in the heated bottom wall y=0y = 0 gives B1sinh⁡(πHL)=4B_1 \decay{\sinh\left(\tfrac{\pi H}{L}\right)} = 4 and B3sinh⁡(3πHL)=−1B_3 \decay{\sinh\left(\tfrac{3\pi H}{L}\right)} = -1:
u(x,y)=4sinh⁡(πHL)sin⁡ ⁣(πxL)sinh⁡ ⁣(π(H−y)L)−1sinh⁡(3πHL)sin⁡ ⁣(3πxL)sinh⁡ ⁣(3π(H−y)L)\displaystyle \begin{aligned} &\temp{u(x, y)} = \frac{4}{\decay{\sinh\left(\tfrac{\pi H}{L}\right)}} \\ &\quad \wave{\sin\!\left(\frac{\pi x}{L}\right)}\decay{\sinh\!\left(\frac{\pi(H - y)}{L}\right)} \\ &- \frac{1}{\decay{\sinh\left(\tfrac{3\pi H}{L}\right)}} \\ &\quad \wave{\sin\!\left(\frac{3\pi x}{L}\right)}\decay{\sinh\!\left(\frac{3\pi(H - y)}{L}\right)} \end{aligned}
3

Find the steady-state temperature u(x,y)\temp{u(x, y)} on a rectangle 0≤x≤L0 \le x \le L, 0≤y≤H0 \le y \le H when the bottom, top, and left walls are held at 0∘0^\circ (u(x,0)=0\temp{u(x, 0)} = 0, u(x,H)=0\temp{u(x, H)} = 0, u(0,y)=0\temp{u(0, y)} = 0) and the right wall is held at a constant temperature u(L,y)=50\temp{u(L, y)} = \temp{50}.

Which pair of opposite walls is held at 0∘0^\circ to set the sine wave direction and its denominator (LL or HH)?

Because the bottom wall y=0y = 0 and top wall y=Hy = H are both 0∘0^\circ, yy gets the sine waves sin⁡(nπyH)\wave{\sin\left(\tfrac{n\pi y}{H}\right)} and the zero left wall x=0x = 0 gives sinh⁡(nπxH)\decay{\sinh\left(\tfrac{n\pi x}{H}\right)}:
u(x,y)\displaystyle \temp{u(x, y)} =∑n=1∞Bnsinh⁡ ⁣(nπxH)sin⁡ ⁣(nπyH)\displaystyle = \sum_{n=1}^{\infty} B_n \decay{\sinh\!\left(\frac{n\pi x}{H}\right)}\wave{\sin\!\left(\frac{n\pi y}{H}\right)}
(Watch out: dividing inside sin⁡\wave{\sin} and sinh⁡\decay{\sinh} by LL instead of HH out of habit from top-wall problems gives the wrong building block sinh⁡(nπxL)sin⁡(nπyL)\sinh\left(\tfrac{n\pi x}{L}\right)\sin\left(\tfrac{n\pi y}{L}\right), which is not zero on the top wall y=Hy = H. Always divide by the distance between the two opposite zero walls.)
Plugging in the right wall x=Lx = L to match u(L,y)=50\temp{u(L, y)} = \temp{50} on 0≤y≤H0 \le y \le H:
Bnsinh⁡ ⁣(nπLH)=2H∫0H50sin⁡ ⁣(nπyH)dy=100nπ(1−cos⁡(nπ))={0if n is even200nπif n is odd\displaystyle \begin{aligned} &B_n \decay{\sinh\!\left(\frac{n\pi L}{H}\right)} \\ &\quad = \frac{2}{H}\int_0^H \temp{50}\sin\!\left(\frac{n\pi y}{H}\right)dy \\ &\quad = \frac{100}{n\pi}\bigl(1 - \cos(n\pi)\bigr) \\ &\quad = \begin{cases} 0 & \text{if } n \text{ is even} \\ \dfrac{200}{n\pi} & \text{if } n \text{ is odd} \end{cases} \end{aligned}
Dividing by sinh⁡(nπLH)\decay{\sinh\left(\tfrac{n\pi L}{H}\right)} and writing odd n=2k−1n = 2k - 1:
u(x,y)\displaystyle \temp{u(x, y)} =200π∑k=1∞sinh⁡((2k−1)πxH)sin⁡((2k−1)πyH)(2k−1)sinh⁡((2k−1)πLH)\displaystyle = \frac{200}{\pi} \sum_{k=1}^{\infty} \frac{\decay{\sinh\left(\tfrac{(2k - 1)\pi x}{H}\right)}\wave{\sin\left(\tfrac{(2k - 1)\pi y}{H}\right)}}{(2k - 1)\decay{\sinh\left(\tfrac{(2k - 1)\pi L}{H}\right)}}
4

Find the steady-state temperature u(x,y)\temp{u(x, y)} on the square plate 0≤x≤π0 \le x \le \pi, 0≤y≤π0 \le y \le \pi when the bottom and right walls are held at 0∘0^\circ (u(x,0)=0\temp{u(x, 0)} = 0, u(π,y)=0\temp{u(\pi, y)} = 0), the top wall is held at u(x,π)=20sin⁡(x)\temp{u(x, \pi)} = 20\wave{\sin(x)}, and the left wall is held at u(0,y)=30sin⁡(2y)\temp{u(0, y)} = 30\wave{\sin(2y)}.

Split u=u1+u2\temp{u} = \temp{u_1} + \temp{u_2} into a top-wall problem and a left-wall problem: in the left-wall problem u2\temp{u_2}, which wall opposite x=0x = 0 is held at 0∘0^\circ?

Split u(x,y)=u1(x,y)+u2(x,y)\temp{u(x, y)} = \temp{u_1(x, y)} + \temp{u_2(x, y)} into a top-wall problem u1\temp{u_1} (with u1(x,π)=20sin⁡(x)\temp{u_1(x, \pi)} = 20\wave{\sin(x)} and the other three walls at 0∘0^\circ) and a left-wall problem u2\temp{u_2} (with u2(0,y)=30sin⁡(2y)\temp{u_2(0, y)} = 30\wave{\sin(2y)} and the other three walls at 0∘0^\circ).
For u1\temp{u_1}, the zero walls at x=0,πx = 0, \pi and y=0y = 0 give the n=1n = 1 block u1(x,y)=B1sin⁡(x)sinh⁡(y)\temp{u_1(x, y)} = B_1 \wave{\sin(x)}\decay{\sinh(y)}, and plugging in y=πy = \pi gives B1=20sinh⁡(π)B_1 = \frac{20}{\decay{\sinh(\pi)}}.
For u2\temp{u_2}, the zero walls at y=0,πy = 0, \pi and the right wall x=πx = \pi give the n=2n = 2 shifted block:
u2(x,y)\displaystyle \temp{u_2(x, y)} =B2sinh⁡(2(π−x))sin⁡(2y)\displaystyle = B_2 \decay{\sinh(2(\pi - x))}\wave{\sin(2y)}
(Watch out: using unshifted sinh⁡(2x)\sinh(2x) for u2\temp{u_2} makes the temperature 00 on the heated left wall x=0x = 0 instead of the right wall x=πx = \pi, giving the wrong answer 20sinh⁡(π)sin⁡(x)sinh⁡(y)\frac{20}{\sinh(\pi)}\sin(x)\sinh(y) +30sinh⁡(2π)sinh⁡(2x)sin⁡(2y){} + \frac{30}{\sinh(2\pi)}\sinh(2x)\sin(2y).)
Plugging x=0x = 0 into u2\temp{u_2} gives B2sinh⁡(2π)=30B_2 \decay{\sinh(2\pi)} = 30, and adding u1+u2\temp{u_1} + \temp{u_2} gives:
u(x,y)=20sinh⁡(π)sin⁡(x)sinh⁡(y)+30sinh⁡(2π)sinh⁡(2(π−x))sin⁡(2y)\displaystyle \begin{aligned} &\temp{u(x, y)} = \\ &\frac{20}{\decay{\sinh(\pi)}}\wave{\sin(x)}\decay{\sinh(y)} \\ &+ \frac{30}{\decay{\sinh(2\pi)}}\decay{\sinh(2(\pi - x))}\wave{\sin(2y)} \end{aligned}
5

Solve Laplace's equation inside a circular disk of radius a=2a = 2 when the rim r=2r = 2 is held at u(2,θ)=15+8cos⁡(θ)−12sin⁡(3θ)\temp{u(2, \theta)} = 15 + 8\wave{\cos(\theta)} - 12\wave{\sin(3\theta)}, and state the temperature at the center of the disk.

Match the general finite disk solution at r=2r = 2 term by term: what power of rr multiplies sin⁡(3θ)\wave{\sin(3\theta)}?

Keeping only the terms that stay finite at r=0r = 0 with n=0n = 0, n=1n = 1, and n=3n = 3 gives:
u(r,θ)\displaystyle \temp{u(r, \theta)} =A0+rA1cos⁡(θ)+r3B3sin⁡(3θ)\displaystyle = A_0 + \decay{r} A_1 \wave{\cos(\theta)} + \decay{r^3} B_3 \wave{\sin(3\theta)}
Plugging in the rim radius r=2r = 2 to match u(2,θ)=15+8cos⁡(θ)−12sin⁡(3θ)\temp{u(2, \theta)} = 15 + 8\wave{\cos(\theta)} - 12\wave{\sin(3\theta)}:
A0+2A1cos⁡(θ)+23B3sin⁡(3θ)\displaystyle A_0 + \decay{2} A_1 \wave{\cos(\theta)} + \decay{2^3} B_3 \wave{\sin(3\theta)} =15+8cos⁡(θ)−12sin⁡(3θ)\displaystyle = 15 + 8\wave{\cos(\theta)} - 12\wave{\sin(3\theta)}
(Watch out: dividing the sin⁡(3θ)\wave{\sin(3\theta)} coefficient by a=2a = 2 instead of a3=23=8\decay{a^3} = \decay{2^3} = 8 gives −6r3sin⁡(3θ)-6r^3\sin(3\theta), or forgetting to divide by 2n\decay{2^n} altogether gives 15+8rcos⁡(θ)−12r3sin⁡(3θ)15 + 8r\cos(\theta) - 12r^3\sin(3\theta).)
Solving A0=15A_0 = 15, 2A1=8⇒A1=4\decay{2}A_1 = 8 \Rightarrow A_1 = 4, and 8B3=−12⇒B3=−32\decay{8}B_3 = -12 \Rightarrow B_3 = -\frac{3}{2}, and setting r=0r = 0 for the center temperature:
u(r,θ)=15+4rcos⁡(θ)−32r3sin⁡(3θ),Center temperature u(0,θ)=15\displaystyle \begin{aligned} &\temp{u(r, \theta)} = 15 + 4\decay{r}\wave{\cos(\theta)} \\ &\qquad - \frac{3}{2}\decay{r^3}\wave{\sin(3\theta)}, \\ &\text{Center temperature } \temp{u(0, \theta)} = 15 \end{aligned}
6

Find the steady-state temperature u(r,θ)\temp{u(r, \theta)} inside a circular disk of radius aa when the upper half of the rim (0<θ<π0 < \theta < \pi) is held at 100∘\temp{100^\circ} and the lower half (π<θ<2π\pi < \theta < 2\pi) is held at 0∘0^\circ.

First find the average temperature A0A_0 around the whole rim 0≤θ≤2π0 \le \theta \le 2\pi; then on the upper half 0<θ<π0 < \theta < \pi, check whether cos⁡(nθ)\wave{\cos(n\theta)} or sin⁡(nθ)\wave{\sin(n\theta)} integrates to zero.

First find the constant term A0A_0 by averaging f(θ)\temp{f(\theta)} around the full 2π2\pi circle:
A0\displaystyle A_0 =12π∫0π100 dθ\displaystyle = \frac{1}{2\pi}\int_0^\pi \temp{100}\,d\theta =50\displaystyle = 50
(Watch out: using 1π\frac{1}{\pi} instead of 12π\frac{1}{2\pi} in the average formula doubles the constant term to A0=100A_0 = 100.)
For n≥1n \ge 1, the cosine integrals equal zero and the sine integrals leave only odd n=2k−1n = 2k - 1:
anAn=1π∫0π100cos⁡(nθ) dθ=100π[sin⁡(nθ)n]0π=0anBn=1π∫0π100sin⁡(nθ) dθ=100nπ(1−cos⁡(nπ))={0if n is even200nπif n is odd\displaystyle \begin{aligned} \decay{a^n} A_n &= \frac{1}{\pi}\int_0^\pi \temp{100}\cos(n\theta)\,d\theta \\ &= \frac{100}{\pi}\left[\frac{\sin(n\theta)}{n}\right]_0^\pi = 0 \\ \decay{a^n} B_n &= \frac{1}{\pi}\int_0^\pi \temp{100}\sin(n\theta)\,d\theta \\ &= \frac{100}{n\pi}\bigl(1 - \cos(n\pi)\bigr) \\ &= \begin{cases} 0 & \text{if } n \text{ is even} \\ \dfrac{200}{n\pi} & \text{if } n \text{ is odd} \end{cases} \end{aligned}
(Watch out: forgetting to divide by an\decay{a^n} when solving for BnB_n leaves r2k−1r^{2k-1} instead of (ra)2k−1\decay{\left(\tfrac{r}{a}\right)^{2k-1}} in the series.)
Dividing by an\decay{a^n} so that rnBn=200nπ(ra)n\decay{r^n} B_n = \frac{200}{n\pi}\decay{\left(\tfrac{r}{a}\right)^n} for odd n=2k−1n = 2k - 1:
u(r,θ)\displaystyle \temp{u(r, \theta)} =50+200π∑k=1∞(ra)2k−12k−1sin⁡((2k−1)θ)\displaystyle = 50 + \frac{200}{\pi} \sum_{k=1}^{\infty} \frac{\decay{\left(\tfrac{r}{a}\right)^{2k - 1}}}{2k - 1}\wave{\sin((2k - 1)\theta)}