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) across the plate once the temperature at every point has stopped changing over time (∂t∂u=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 measures between a point and its neighbors.
Steady States in 1D and Neighbor Averages
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:
2u(right)+u(left)−u(center)=2[u(right)−u(center)]−[u(center)−u(left)]⟹uxx∝Average of neighbors−u(center)
At steady state on a 1D rod, no point can stay hotter or colder than the average of its two neighbors, so uxx=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) must obey on a flat two-dimensional plate, where each interior point (x,y) trades heat with four neighbors: left and right along x, and up and down along y.
Laplace's Equation and Saddle Surfaces
Once the two-dimensional heat equation ut=k(uxx+uyy) settles into a steady state (ut=0), the differences between a point and its four neighbors must cancel out to zero:
Here ∇2u (read "nabla squared u") is just shorthand for adding the second derivatives in the x and y directions, not squaring a number. Moving uyy 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 x as long as it bends by the exact opposite amount along y, forming a saddle.
Wherever the steady-state surface arches upward along the x-slice (uxx<0), it dips downward by an equal amount along the y-slice (uyy>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 tells us the shape of the surface. Now let's find a formula for the steady-state temperature u(x,y) on a square plate of width π and height π when the left, right, and bottom walls are held at 0∘ and the top wall is heated to u(x,π)=f(x).
Remember from the heat equation that separating variables as u(x,y)=X(x)Y(y) between two zero walls at x=0 and x=π gives the sine waves X(x)=sin(nx), where taking two derivatives pulls out −n2:
X′′(x)=−n2sin(nx)=−n2X(x)
Because Laplace's equation uxx+uyy=0 requires the y-curvature to cancel the x-curvature, a sine wave in x forces Y′′(y)=+n2Y(y) in y.
Waves in One Direction, Exponentials in the Other
That gives eny and e−ny in y. To make their combination equal zero on the bottom wall y=0, we subtract e−ny from eny, which is written using hyperbolic sine:
sinh(ny)cosh(ny)=equals 0 at y=02eny−e−ny,=equals 1 at y=02eny+e−ny
Multiplying the x-wave by the y-exponential gives a building block that satisfies Laplace's equation everywhere inside the plate and automatically equals 0 on the left, right, and bottom walls:
un(x,y)un(x,y)=sin(nx)sinh(ny)(on a π×π plate),=zero at x=0,Lsin(Lnπx)zero at y=0sinh(Lnπy)(on a plate of width L)
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 x (−n2 times the wave) that forces 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) in hand, we now want to choose the constants Bn so that our solution matches the given temperature along the heated top wall y=π.
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) on 0≤x≤π is built from ∑n=1∞bnsin(nx) with bn=π2∫0πf(x)sin(nx)dx.
Matching the Heated Top Wall
When the top wall is already a single sine wave like u(x,π)=10sin(3x), don't set up an integral. Just keep the n=3 building block u(x,y)=B3sin(3x)sinh(3y), plug in y=π, and divide by the constant number sinh(3π):
Integrate from 0 to π for Bnsinh(nπ)Integrating 100sin(nx) and multiplying by π2 gives 0 for even n (where positive and negative arches cancel) and nπ400 for odd n.
Bnsinh(nπ)=π2∫0π100sin(nx)dx=π200[−ncos(nx)]0π=nπ200(1−cos(nπ))=⎩⎨⎧0nπ400if n is evenif n is odd
Divide by sinh(nπ) and write odd n=2k−1Dividing by the constant sinh(nπ) makes sinh(nπ)sinh(ny) equal 1 when y=π.
Heating a Different Wall and Shifted Hyperbolic Sines
When the top wall was heated, sinh(ny) worked right away because the zero wall across from it was at y=0. Now let's find the steady-state temperature u(x,y) on a rectangle of width L and height H when a different wall is heated, such as the left wall x=0 held at u(0,y)=g(y), where the zero wall across from it is at x=L instead of at 0 (for a heated bottom wall, it would be at y=H).
Heating a Different Wall and Shifted Hyperbolic Sines
Because sinh(0)=0, and replacing x with L−x (or y with H−y) does not change the second derivative (the two chain-rule factors of −1 multiply to 1), we make the hyperbolic sine equal zero on any wall by plugging in how far we are from that wall:
Zero at y=0:Zero at y=H:Zero at x=L:sinh(Lnπy),sinh(Lnπ(H−y)),sinh(Hnπ(L−x))
Now let's write the solution when the left wall of an L×H rectangle is held at u(0,y)=5sin(H2πy) and the other three walls are at 0∘.
Text solution
Match the two opposite zero walls y=0,H and the third zero wall x=LBecause u=0 on both y=0 and y=H,y gets the n=2 sine wave and x gets the hyperbolic sine shifted to equal 0 at x=L.
u(x,y)=B2sinh(H2π(L−x))sin(H2πy)
Plug in the heated left wall x=0 to find B2Plugging in x=0 and dividing by the constant sinh(H2πL) finishes the solution.
Each building block needs three walls at 0∘: 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) when two or more walls are heated at once, such as a π×π plate with the top wall at u(x,π)=100 and the bottom wall at u(x,0)=50sin(2x).
Heating Multiple Walls by Superposition
Text solution
Split into one-wall subproblems u(x,y)=u1(x,y)+u2(x,y)We let u1 match u1(x,π)=100 with 0 on the bottom wall, and let u2 match u2(x,0)=50sin(2x) with 0 on the top wall.
∇2(u1+u2)=∇2u1+∇2u2=0+0=0
Solve the bottom-wall problem u2(x,y) using a shifted hyperbolic sineSince u2 is 0 at x=0,x=π, and the top wall y=π, we use the n=2 block with sinh(2(π−y)) and plug in y=0.
Rectangles line up cleanly with x and y, but now we want to find the steady-state temperature u(r,θ) inside a circular disk of radius a when its outer rim r=a is held at a given temperature u(a,θ)=f(θ).
Now let's separate variables in polar coordinates to see how u(r,θ) behaves along the radius r and around the angle θ.
Laplace's Equation on a Circular Disk
Separating u(r,θ)=R(r)Θ(θ) in the polar Laplace equation puts θ and r on opposite sides:
Because going around the circle by 2π brings us back to the exact same spot on the disk, Θ(θ+2π)=Θ(θ) forces λ=n2 (n=0,1,2,…) and keeps both cos(nθ) and sin(nθ). Trying R(r)=rm in r2R′′+rR′−n2R=0 gives m2=n2, or m=±n:
R(r)={C+DlnrCrn+Dr−n(n=0)(n≥1)
We drop lnr and r−n because they go to infinity at the center r=0, leaving the general steady-state temperature inside a disk:
u(r,θ)=temperature at center r=0A0+n=1∑∞rn(Ancos(nθ)+Bnsin(nθ))
Plugging in the outer rim r=a to match f(θ)=A0+∑n=1∞an(Ancos(nθ)+Bnsin(nθ)) gives the Fourier coefficients on the circle:
When the rim temperature f(θ) is already written out in cosines and sines (like 15+8cosθ), don't integrate. Just set A0,anAn, and anBn equal to the numbers in front of each wave at r=a and remember to divide by an.
On any circle of radius r inside the disk, the temperature comes smoothly back to its starting value after 2π, rapid wiggles around the rim shrink away faster toward the inside because of the factor (ar)n, and at the center r=0 every wave equals zero so only the average rim temperature A0 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)
A steady state satisfies Laplace's equation ∇2u=uxx+uyy=0, so any curvature in x is cancelled by opposite curvature in y (for instance, u(x,y)=3x2−3y2 has uxx=6 and uyy=−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 for the third)
Look first at which pair of opposite walls is held at 0∘. That direction gets the sine waves, and its width or height goes in the denominator inside both sin and sinh. The other direction gets a hyperbolic sine shifted to equal 0 on the third zero wall:
Heated top wall y=H (zero at x=0,L and y=0): un(x,y)=sin(Lnπx)sinh(Lnπy)
Heated bottom wall y=0 (zero at x=0,L and y=H): un(x,y)=sin(Lnπx)sinh(Lnπ(H−y))
Heated left wall x=0 (zero at y=0,H and x=L): un(x,y)=sinh(Hnπ(L−x))sin(Hnπy)
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) on a π×π square or u(2,θ)=15+8cos(θ) on a disk of radius a=2, do not compute Fourier integrals. Keep only the matching n building blocks, plug in the heated boundary, and divide by the constant sinh or an factor (B3=sinh(3π)10 or A1=218=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+…)
When two or more walls of a rectangle are nonzero (like u(x,π)=100 and u(x,0)=50sin(2x)), split the problem into separate one-wall problems where the other three walls are 0∘, solve each one-wall problem on its own, and add the results together.
Circular disk of radius a (repeating every 2π and finite at the center)
With no walls in θ and a finite temperature at r=0, the solution is u(r,θ)=A0+∑n=1∞rn(Ancos(nθ)+Bnsin(nθ)). At the center r=0, every rn wave equals zero, so the center temperature is simply A0=2π1∫02πf(θ)dθ, the average temperature around the rim.
8
Practice
1
Find the constant c so that u(x,y)=3x2+cy2 satisfies Laplace's equation, explain why u cannot have a hottest or coldest point inside the square plate 0≤x≤2,0≤y≤2, and find the maximum and minimum values of u on that plate.
Take two derivatives in x and two in y to set uxx+uyy=0; then look at where on the square 0≤x≤2,0≤y≤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⟹uxx+uyy⟹c=6,uyy=2c=6+2c=0=−3
So u(x,y)=3x2−3y2. Because opposite curvatures (uxx=−uyy) 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≤2,0≤y≤2.
(Watch out: plugging in the corner (2,2) where both coordinates are largest makes the terms cancel to 3(4)−3(4)=0, and plugging in (0,0) also gives 0 instead of the minimum. Because 3x2≥0 raises the temperature and −3y2≤0 lowers it, the maximum occurs where x is largest and y=0, and the minimum occurs where x=0 and y is largest.)
Maximum: u(2,0)Minimum: u(0,2)=3(2)2−3(0)2=12 at (2,0),=3(0)2−3(2)2=−12 at (0,2)
2
Solve Laplace's equation uxx+uyy=0 on a rectangle of width L and height H (0≤x≤L,0≤y≤H) when the left, right, and top walls are held at 0∘ (u(0,y)=0,u(L,y)=0,u(x,H)=0) and the bottom wall is held at u(x,0)=4sin(Lπx)−sin(L3πx).
The left and right walls x=0 and x=L are 0∘, and the third zero wall is the top edge y=H: how should the inside of sinh be shifted so it equals 0 when y=H?
The zero walls at x=0 and x=L give sin(Lnπx), and the zero top wall at y=H gives the shifted hyperbolic sine sinh(Lnπ(H−y)). Keeping the n=1 and n=3 building blocks to match the bottom wall:
(Watch out: using unshifted sinh(Lnπy) makes u(x,0)=0 at the heated bottom wall instead of the top wall y=H, and forgetting to divide by sinh(LnπH) at y=0 leaves the wrong answer 4sin(Lπx)sinh(Lπ(H−y))−sin(L3πx)sinh(L3π(H−y)).)
Plugging in the heated bottom wall y=0 gives B1sinh(LπH)=4 and B3sinh(L3πH)=−1:
Find the steady-state temperature u(x,y) on a rectangle 0≤x≤L,0≤y≤H when the bottom, top, and left walls are held at 0∘ (u(x,0)=0,u(x,H)=0,u(0,y)=0) and the right wall is held at a constant temperature u(L,y)=50.
Which pair of opposite walls is held at 0∘ to set the sine wave direction and its denominator (L or H)?
Because the bottom wall y=0 and top wall y=H are both 0∘,y gets the sine waves sin(Hnπy) and the zero left wall x=0 gives sinh(Hnπx):
u(x,y)=n=1∑∞Bnsinh(Hnπx)sin(Hnπy)
(Watch out: dividing inside sin and sinh by L instead of H out of habit from top-wall problems gives the wrong building block sinh(Lnπx)sin(Lnπy), which is not zero on the top wall y=H. Always divide by the distance between the two opposite zero walls.)
Plugging in the right wall x=L to match u(L,y)=50 on 0≤y≤H:
Bnsinh(HnπL)=H2∫0H50sin(Hnπy)dy=nπ100(1−cos(nπ))=⎩⎨⎧0nπ200if n is evenif n is odd
Find the steady-state temperature u(x,y) on the square plate 0≤x≤π,0≤y≤π when the bottom and right walls are held at 0∘ (u(x,0)=0,u(π,y)=0), the top wall is held at u(x,π)=20sin(x), and the left wall is held at u(0,y)=30sin(2y).
Split u=u1+u2 into a top-wall problem and a left-wall problem: in the left-wall problem u2, which wall opposite x=0 is held at 0∘?
Split u(x,y)=u1(x,y)+u2(x,y) into a top-wall problem u1 (with u1(x,π)=20sin(x) and the other three walls at 0∘) and a left-wall problem u2 (with u2(0,y)=30sin(2y) and the other three walls at 0∘).
For u1, the zero walls at x=0,π and y=0 give the n=1 block u1(x,y)=B1sin(x)sinh(y), and plugging in y=π gives B1=sinh(π)20.
For u2, the zero walls at y=0,π and the right wall x=π give the n=2 shifted block:
u2(x,y)=B2sinh(2(π−x))sin(2y)
(Watch out: using unshifted sinh(2x) for u2 makes the temperature 0 on the heated left wall x=0 instead of the right wall x=π, giving the wrong answer sinh(π)20sin(x)sinh(y)+sinh(2π)30sinh(2x)sin(2y).)
Plugging x=0 into u2 gives B2sinh(2π)=30, and adding u1+u2 gives:
Solve Laplace's equation inside a circular disk of radius a=2 when the rim r=2 is held at u(2,θ)=15+8cos(θ)−12sin(3θ), and state the temperature at the center of the disk.
Match the general finite disk solution at r=2 term by term: what power of r multiplies sin(3θ)?
Keeping only the terms that stay finite at r=0 with n=0,n=1, and n=3 gives:
u(r,θ)=A0+rA1cos(θ)+r3B3sin(3θ)
Plugging in the rim radius r=2 to match u(2,θ)=15+8cos(θ)−12sin(3θ):
A0+2A1cos(θ)+23B3sin(3θ)=15+8cos(θ)−12sin(3θ)
(Watch out: dividing the sin(3θ) coefficient by a=2 instead of a3=23=8 gives −6r3sin(3θ), or forgetting to divide by 2n altogether gives 15+8rcos(θ)−12r3sin(3θ).)
Solving A0=15,2A1=8⇒A1=4, and 8B3=−12⇒B3=−23, and setting r=0 for the center temperature:
u(r,θ)=15+4rcos(θ)−23r3sin(3θ),Center temperature u(0,θ)=15
6
Find the steady-state temperature u(r,θ) inside a circular disk of radius a when the upper half of the rim (0<θ<π) is held at 100∘ and the lower half (π<θ<2π) is held at 0∘.
Watch out: using π1 instead of 2π1 in the average formula doubles the constant term to A0=100.
First find the average temperature A0 around the whole rim 0≤θ≤2π; then on the upper half 0<θ<π, check whether cos(nθ) or sin(nθ) integrates to zero.
First find the constant term A0 by averaging f(θ) around the full 2π circle:
A0=2π1∫0π100dθ=50
(Watch out: using π1 instead of 2π1 in the average formula doubles the constant term to A0=100.)
For n≥1, the cosine integrals equal zero and the sine integrals leave only odd n=2k−1:
anAnanBn=π1∫0π100cos(nθ)dθ=π100[nsin(nθ)]0π=0=π1∫0π100sin(nθ)dθ=nπ100(1−cos(nπ))=⎩⎨⎧0nπ200if n is evenif n is odd
(Watch out: forgetting to divide by an when solving for Bn leaves r2k−1 instead of (ar)2k−1 in the series.)
Dividing by an so that rnBn=nπ200(ar)n for odd n=2k−1: