Differential EquationsPartial Differential Equations3 of 6
Partial Differential Equations · 3
Insulated Ends and Fixed Temperatures
When both ends of a rod are held at 0∘, heat drains out of both sides and only sine waves survive. Now we want to find the temperature u(x,t) when the ends of the rod are sealed with insulation so no heat can escape.
1
Insulated Ends and Cosine Modes
Because heat flows along the slope of the temperature graph, sealing the ends of a rod of length L means the curve must meet x=0 and x=L with zero slope:
∂x∂u(0,t)=0and∂x∂u(L,t)=0
Insulated Ends and Cosine Modes
Because cos(ωx) starts with zero slope at x=0 and reaches a flat peak or valley at x=L whenever ω=Lnπ, the natural modes for an insulated rod are cosine waves, including the n=0 constant mode cos(0)=1 that never decays:
For any starting temperature curve on an insulated rod, the graph immediately flattens at both insulated ends and settles onto the horizontal line at the rod's starting average temperature.
On an insulated rod, every starting temperature curve bends flat at both ends and levels out to its starting average temperature.
2
Solving the Heat Equation with Insulated Ends
Now let's find u(x,t) on an insulated rod of length L=π with k=1, first when the starting temperature is u(x,0)=50+10cos(x)−4cos(3x), and then when it starts as the tilted line u(x,0)=x.
Solving the Heat Equation with Insulated Ends
Example 1:L=π,k=1, insulated ends, with u(x,0)=50+10cos(x)−4cos(3x).
Text solution
Attach each cosine mode's time decay e−n2t With L=π and k=1, the insulated modes cos(Lnπx) are cos(nx) with decay factor e−n2t, and u(x,0) is already written as a sum of the n=0,n=1, and n=3 modes.
So the cos(3x) wave dies out nine times faster than the cos(x) wave, and the rod settles to a uniform 50∘.
Example 2:L=π,k=1, insulated ends, with u(x,0)=x.
Text solution
Average starting temperature a0 The constant mode a0 is the average value of u(x,0)=x across the rod from 0 to π.
a0=π1∫0πxdx=π1[2x2]0π=2π
Cosine coefficients an by integration by parts To build the tilted line x out of cos(nx) waves, we integrate by parts, differentiating x and integrating cos(nx), using sin(nπ)=0 and cos(nπ)=(−1)n at the upper limit.
Keep odd modes and attach time decay e−n2t Because (−1)n−1 is 0 for even n and −2 for odd n=1,3,5,…, only the odd cosine waves survive, each shrinking by e−n2t.
So the ends of the line u(x,0)=x bend flat and the rod levels out at its midpoint temperature 2π.
3
Fixed Nonzero Temperatures and Steady State
When the ends of a rod are held at nonzero temperatures, say u(0,t)=100∘ on the left and u(L,t)=20∘ on the right, we cannot just add waves that match those end values, because adding two solutions would add their boundary temperatures too. We want to find u(x,t) for a rod of length L that starts at u(x,0)=0∘ and has its ends held at 100∘ and 20∘.
Fixed Nonzero Temperatures and Steady State
Text solution
Steady-state line usteady(x) as t→∞ After all the changing waves die out, the temperature settles to the straight line connecting (0,100) to (L,20), where ∂x2∂2u=0.
usteady(x)=100−L80x
Starting difference w(x,0) with zero endpoints Writing u(x,t)=usteady(x)+w(x,t) makes the difference w(x,t) equal to 0 at both x=0 and x=L, with starting temperature u(x,0)−usteady(x).
w(x,0)=0−(100−L80x)=−100+L80x
Sine coefficients bn for the difference Since w(x,t) is 0 at both ends, we expand w(x,0) in sin(Lnπx) using integration by parts, differentiating −100+L80x and integrating sin(Lnπx).
Add the steady-state line back to the decaying sine series Attaching the decay factor e−k(nπ/L)2t to each sine mode gives w(x,t), which we add to usteady(x).
So the sine sum fades away over time, leaving the tilted steady-state line 100−L80x.
For any pair of fixed end temperatures, the steady-state line connects the two endpoints directly, and the vertical difference w(x,t) between the temperature curve and that line stays at zero at both ends as it decays away.
For any fixed end temperatures, subtracting the straight steady-state line connecting them leaves a decaying gap that is zero at both ends.
4
One End Fixed, One End Insulated
Finally, we want to find u(x,t) when the two ends have different boundary conditions: the left end is held at u(0,t)=0∘, while the right end is insulated, ∂x∂u(L,t)=0.
One End Fixed, One End Insulated
Holding x=0 at 0∘ gives us sin(ωx), and insulating x=L means sin(ωx) must reach a flat peak or valley at x=L, where ωL is an odd multiple of 2π. So the rod fits an odd number of quarter-waves:
Each bn comes from the same idea as the half-wave sine coefficients: the product of two different quarter-wave sines integrates to 0 over [0,L], and each one squared integrates to 2L, so
bn=L2∫0Lu(x,0)sin(2L(2n−1)πx)dx
Because the first mode sin(2Lπx) has half the frequency of sin(Lπx), its decay exponent has (21)2=41, so insulating one end makes the first mode decay four times slower. And if the left end is held at a nonzero temperature like 100∘ while the right end is insulated, no heat can cross x=L, so the steady state is the flat line usteady(x)=100∘.
For a sine wave held at zero on the left end, the slope at the right end is nonzero and lets heat escape unless an odd number of quarter-waves fits into the rod, putting a flat peak or valley right at x=L.
With the left end held at 0°, only odd quarter-wave sines reach a flat peak or valley at the insulated right end and keep heat from leaking out through the cap.
Key concepts
Every heat equation problem on a rod of length L comes down to two steps: subtract the t→∞ steady state to make the boundary conditions zero, then match the waves to the zero conditions at the two ends.
Nonzero boundary temperatures: subtract the steady state first
Find the straight line usteady(x) that the rod settles to as t→∞, then solve for the difference w(x,t)=u(x,t)−usteady(x) starting from w(x,0)=u(x,0)−usteady(x).
Both ends fixed (u(0,t)=100,u(L,t)=20): tilted line usteady(x)=100−L80x.
One end fixed, one end insulated (u(0,t)=100,∂x∂u(L,t)=0): flat horizontal line usteady(x)=100, because an insulated end has zero slope.
Zero boundary conditions: choose the modes that fit the ends
Both ends fixed at 0 (u(0,t)=0,u(L,t)=0): half-wave sinessin(Lnπx), decaying to 0.
Both ends insulated (∂x∂u(0,t)=0,∂x∂u(L,t)=0): average temperature plus half-wave cosines,
which settles to the starting average a0 (for u(x,0)=x on [0,π],a0=2π).
Left end at 0, right end insulated (u(0,t)=0,∂x∂u(L,t)=0): odd quarter-wave sinessin(2L(2n−1)πx) for n=1,2,3,…, decaying to 0, with the n=1 mode decaying four times slower than with both ends at 0.
When not to integrate
If u(x,0) (or w(x,0)) is already written out in the rod's matching sine or cosine modes, such as u(x,0)=50+10cos(x)−4cos(3x) on an insulated rod of length π, skip the Fourier integrals and attach e−kωn2t directly to each term.
5
Practice
1
A rod of length L=π with k=1 and insulated ends (∂x∂u(0,t)=0 and ∂x∂u(π,t)=0) has initial temperature u(x,0)=40−8cos(x)+3cos(4x). Find u(x,t) and the temperature of the rod as t→∞.
On L=π, the insulated modes are cos(nx). Is u(x,0) already written as a sum of those modes, and what is the decay factor for each n?
With L=π and k=1, the natural cosine modes are cos(nx) and each decays by e−n2t:
40 is the n=0 constant mode (e0=1).
−8cos(x) is the n=1 mode (e−12t=e−t).
3cos(4x) is the n=4 mode (e−42t=e−16t). (Watch out: a common slip is forgetting to square n=4 in the exponent and writing e−4t, which gives 40−8cos(x)e−t+3cos(4x)e−4t, or assuming the rod cools to 0 instead of its average 40.)
u(x,t)=40−8cos(x)e−t+3cos(4x)e−16t;as t→∞, the temperatureapproaches 40.
2
A rod of length L=π with k=1 and insulated ends (∂x∂u(0,t)=0 and ∂x∂u(π,t)=0) has initial temperature u(x,0)=2π−2x. Find u(x,t).
Start by finding the average temperature a0 of 2π−2x on [0,π], then integrate an=π2∫0π(2π−2x)cos(nx)dx by parts.
First find the average starting temperature a0:
a0=π1∫0π(2π−2x)dx=π1[2πx−x2]0π=π
Next find an by integrating by parts, differentiating 2π−2x to get −2 and integrating cos(nx) to get nsin(nx):
A rod of length L with diffusivity k starts at a uniform temperature u(x,0)=40. At t=0, the left end is held at u(0,t)=40 and the right end is held at u(L,t)=100. Find u(x,t).
First write the straight steady-state line usteady(x) connecting (0,40) to (L,100), then subtract it from u(x,0)=40 to find the starting difference w(x,0).
The straight steady-state line from 40 at x=0 to 100 at x=L is:
usteady(x)=40+L60x
Subtracting usteady(x) from u(x,0)=40 gives the starting difference:
w(x,0)=u(x,0)−usteady(x)=40−(40+L60x)=−L60x
(Watch out: subtracting in the reverse order, usteady(x)−u(x,0)=L60x, flips every coefficient's sign and gives −nπ120(−1)n inside the sum.)
Expanding w(x,0)=−L60x in a sine series on [0,L] by integrating by parts, differentiating −L60x and integrating sin(Lnπx); the leftover integral of a constant times cos(Lnπx) over [0,L] is 0:
A rod of length L with diffusivity k has its left end held at u(0,t)=0 and its right end insulated, ∂x∂u(L,t)=0. Write the fundamental (n=1) mode and compare its exponential decay rate to the fundamental mode of the same rod with both ends held at 0.
What fraction of a sine wave starts at 0 at x=0 and reaches its first flat peak at x=L, and what happens to that frequency in the decay exponent?
For n=1, a single quarter-wave sin(2Lπx) starts at 0 on the left and reaches its first flat peak at x=L, with frequency ω1=2Lπ. Squaring ω1 in the exponential factor e−kω12t gives a decay rate of:
k(2Lπ)2=4L2kπ2
(Watch out: forgetting to square the 21 in ω1=2Lπ leads to saying the decay rate is 21 as large, or two times slower, instead of 41.)
The fundamental mode is b1sin(2Lπx)e−k(π/(2L))2t. Its decay rate 4L2kπ2 is 41 of the decay rate L2kπ2 for the rod with both ends at 0, so it cools four times slower.
5
A rod of length L=π with k=1 has its left end held at u(0,t)=90 and its right end insulated, ∂x∂u(π,t)=0. Given the initial temperature u(x,0)=90−12sin(2x)+5sin(23x), find u(x,t) and the steady-state temperature as t→∞.
Since no heat can cross the insulated right end at x=π, what is the steady-state line when the left end is held at 90? Then check the frequencies ω of the two sine terms.
Because the right end is insulated (∂x∂u(π,t)=0), the steady-state line must have zero slope while matching 90 at x=0, so usteady(x)=90. Subtracting 90 leaves w(x,0)=−12sin(2x)+5sin(23x), which is already written in the quarter-wave modes sin(2(2n−1)x) for n=1 (ω1=21) and n=2 (ω2=23).
Attaching e−ω2t to each mode gives e−(1/2)2t=e−t/4 and e−(3/2)2t=e−9t/4.(Watch out: forgetting to square the frequencies 21 and 23 gives 90−12sin(2x)e−t/2+5sin(23x)e−3t/2.)
u(x,t)=90−12sin(2x)e−t/4+5sin(23x)e−9t/4;as t→∞, the temperatureapproaches the flat steady stateusteady(x)=90.