Differential EquationsPartial Differential Equations2 of 6
Partial Differential Equations · 2
The Heat Equation
We want to find how the temperature u(x,t) along a heated rod changes over time, which means separating space x and time t in the Heat Equation.
1
Separating Space and Time in the Heat Equation
Suppose a metal rod of length L has insulated sides, starts with a temperature profile u(x,0)=f(x), and has both ends held in 0∘ ice water for all t≥0. We want to find functions u(x,t) that satisfy both the Heat Equation and these 0∘ boundary conditions:
∂t∂u=k∂x2∂2u,u(0,t)=0,u(L,t)=0
Instead of looking for every possible solution at once, we look first for a spatial shape that cools in place without changing its shape, written as a space function times a time function.
Separating Space and Time in the Heat Equation
Text solution
Product guess and substituteWrite the temperature as a spatial shape X(x) times a time factor T(t), and plug the partial derivatives into ∂t∂u=k∂x2∂2u.
Divide by kX(x)T(t) to separate variablesPut all t terms on the left and all x terms on the right, so both sides must equal the same constant.
kT(t)T′(t)=X(x)X′′(x)=separation constant−λ2
Split into two ODEsRewrite the separated equation as an ordinary differential equation in space (with the 0∘ endpoints) and an ordinary differential equation in time.
Space equation:X′′(x)X(0)Time equation:T′(t)=−λ2X(x),=0,X(L)=0=−kλ2T(t)
So the single partial differential equation splits into two ordinary differential equations that we can solve one variable at a time.
In the curve below, the sign of the ratio X(x)X′′(x) tells us whether a spatial shape leaving 0∘ at x=0 bends away from the rod, stays flat, or arches back down to hit 0∘ at x=L.
To arch up from zero at the left end and come back down to zero at the right end, the curve has to bend back toward the rod, making its curvature ratio negative.
2
Normal Modes and Sine-Wave Starting Temperatures
Now we want to solve the Space Equation and Time Equation to find the basic building-block solutions un(x,t), and use them to find u(x,t) when the starting temperature u(x,0) is already made of sine waves:
Match sine-wave starting temperatures at t=0With L=π and k=1, each mode has e0=1 at t=0, so we read the coefficients straight from the starting temperature and attach each mode's exponential decay e−n2t.
So each standing sine wave along the rod keeps its spatial shape and decays exponentially at a rate proportional to n2.
As more half-waves (n=1,2,3,…) fit between the two 0∘ ends below, the peaks and valleys crowd closer together and curve more sharply, sending heat straight into neighboring valleys so the wave flattens n2 times faster.
Packing more half-waves between the zero-degree ends puts hot peaks right next to cold valleys, so the wave flattens toward zero much faster, with cooling speed growing as the square of the number of half-waves.
3
Fourier Sine Series for a Flat Starting Temperature
A single mode or a couple of modes works when u(x,0) is already built from sine waves, but what if the rod starts at a flat, even temperature across its whole length? We now want to find u(x,t) for a rod of length L with 0∘ ends when
u(x,0)=100(0<x<L)
To match a starting profile f(x) that isn't made of sine waves, we add all the normal modes together into an infinite series and use an integral to find how much of each sine wave we need.
Fourier Sine Series for a Flat Starting Temperature
Text solution
Sum all modes and set t=0By superposition, add all normal modes together and plug in t=0 so the starting profile f(x) is written as a Fourier sine series.
Integrate to find the Fourier sine coefficients BnSubstitute f(x)=100 into the formula for Bn and evaluate at x=L and x=0.
Bn=Fourier sine coefficientL2∫0Lf(x)sin(Lnπx)dx=L2∫0L100sin(Lnπx)dx=L200[−nπLcos(Lnπx)]0L=nπ200(1−cos(nπ))
Separate even and odd n and write the seriesSince cos(nπ)=1 for even n and cos(nπ)=−1 for odd n, only the odd modes remain.
Bnu(x,t)=⎩⎨⎧0nπ400if n is evenif n is odd=π400sin(Lπx)e−k(π/L)2t+3π400sin(L3πx)e−9k(π/L)2t+5π400sin(L5πx)e−25k(π/L)2t+…
So the flat 100∘ starting temperature is built entirely from odd sine waves, each decaying at its own rate.
In the cooling profile below, the odd sine modes add up to form the flat 100∘ top at t=0. As the rod cools, the high-n ripples die out first and round off the corners, leaving the temperature curve right on the single n=1 sine arch long before the rod reaches 0∘.
As the hot rod cools, its higher odd sine waves fade out so fast that the temperature curve soon matches the single wide first arch.
4
Long-Time Cooling and the First-Mode Approximation
Now suppose we take our evenly heated 100∘ rod with L=π and k=1, and we want to find the time t when the center of the rod, x=2π, cools down to 10∘:
u(2π,t)=10
Plugging x=2π into the infinite series gives an equation with infinitely many different exponentials, which we cannot solve for t with algebra alone.
Long-Time Cooling and the First-Mode Approximation
Text solution
Evaluate the series at the center x=2πSubstitute L=π,k=1, and x=2π into the flat-rod series and set the temperature equal to 10.
Drop the higher modes and solve for tBecause e−9t=(e−t)9 and e−25t=(e−t)25 are tiny by the time the center cools to 10∘, keep only the n=1 term and solve for t.
10e−tt≈π400e−t≈40π≈ln(π40) seconds
So the center of the rod reaches 10∘ at t≈ln(π40) seconds, with the higher modes adding less than a hundred-millionth of a degree by that time.
5
Separating New PDEs and Spotting When It Fails
What if the physics of the rod changes, giving a modified partial differential equation? We want to test the product guess u(x,t)=X(x)T(t) on three new equations to see how the two ODEs change, and to see when separation of variables fails:
ut=kuxx−cu,ut=x2uxx,ut=(x+t)uxx
Here ut and uxx are shorthand for the partial derivatives ∂t∂u and ∂x2∂2u.
Separating New PDEs and Spotting When It Fails
u(x,t)=X(x)T(t)
ututut=kuxx−cu=x2uxx=(x+t)uxx???
Text solution
Heat loss through the sides (ut=kuxx−cu)Substitute u(x,t)=X(x)T(t), divide by kX(x)T(t), and move the constant kc to the time side so the spatial sine modes stay the same while the time decay picks up −ct.
Position-dependent multiplier (ut=x2uxx)Substitute u(x,t)=X(x)T(t) and divide by X(x)T(t), keeping x2 on the right with the x terms to form two ODEs.
Sum of x and t (ut=(x+t)uxx)Substitute u(x,t)=X(x)T(t) and divide by X(x)T(t); neither dividing by (x+t) nor multiplying it out can put t alone on the left and x alone on the right.
T(t)T′(t)=(x+t)X(x)X′′(x)(not separable)
So separation of variables works with new terms whenever we can get x and t on opposite sides of the equation, and fails when a term keeps x and t stuck together.
Key concepts
For a rod of length L with both ends held at 0∘, separating u(x,t)=X(x)T(t) in ∂t∂u=k∂x2∂2u gives the normal modes
un(x,t)=Bnsin(Lnπx)e−k(nπ/L)2t(n=1,2,3,…)
Your first decision on any problem is how to match the starting temperature u(x,0)=f(x):
When not to integrate (sine-wave starting temperature)
If u(x,0) is already a sum of sine waves that fit the rod, like u(x,0)=50sin(3x)−12sin(5x) on L=π with k=1, do not set up the Fourier integral. At t=0,e0=1, so the starting profile already gives you n and Bn; just attach each mode's exponential decay to get u(x,t)=50sin(3x)e−9t−12sin(5x)e−25t.
When to use the Fourier sine integral (any other starting profile)
If u(x,0)=f(x) is not already made of sine waves, like a flat f(x)=100, sum all the modes and find the coefficients by orthogonality:
Bn=L2∫0Lf(x)sin(Lnπx)dx
If f(x) is symmetric across the midpoint x=2L, every even coefficient (n=2,4,6,…) cancels to zero.
When solving for a later time or cool temperature
Because the n2 in the exponent makes higher modes decay n2 times faster than the first mode, drop the n≥2 terms and solve the single n=1 equation, such as 10≈π400e−t at x=2π.
When given a modified PDE
Don't reuse the old time factor without checking. Plug u(x,t)=X(x)T(t) straight into the new PDE and divide by X(x)T(t). If you can get all the t's on one side and all the x's on the other (as in kTT′+kc=XX′′=−λ2 for ut=kuxx−cu), set both sides to −λ2. If a term like (x+t) in ut=(x+t)uxx brings x onto the t side or t onto the x side no matter how you rearrange it, the PDE cannot be separated.
6
Practice
1
A rod of length L=2 with conductivity k=3 and both ends held at 0∘ starts with temperature u(x,0)=40sin(23πx). Find u(x,t) for t>0, and state how many times faster this mode decays than the n=1 mode of the same rod.
Compare sin(23πx) with sin(Lnπx) when L=2: what is n, and do you need an integral to find Bn?
Comparing sin(23πx) with sin(2nπx) gives n=3 and B3=40. Attaching the n=3 time decay e−k(nπ/L)2t with k=3 and L=2 gives
(Watch out: don't forget to divide by L=2 inside (Lnπ)2: using (3π)2 instead of (23π)2 gives the wrong exponent e−27π2t, and using n instead of n2 for the relative decay speed gives 3 instead of 9.)
Because the decay exponent scales with n2, this n=3 mode decays 32=9 times faster than the n=1 mode.
2
A rod of length L=π with conductivity k=2 and ends held at 0∘ has starting temperature u(x,0)=25sin(x)−10sin(4x). Find u(x,t).
Each sine wave in the sum cools at its own rate. What value of n matches sin(x) and what value matches sin(4x) when L=π?
With L=π and k=2, the n-th mode has time decay e−2(nπ/π)2t=e−2n2t. Matching n=1 (e−2t) to the first wave and n=4 (e−32t) to the second wave gives
u(x,t)=25sin(x)e−2t−10sin(4x)e−32t
(Watch out: don't forget to square n=4 in the second exponent: multiplying 2⋅4 without squaring 4 gives −10sin(4x)e−8t.)
3
A rod of length L with conductivity k and 0∘ ends is heated to 100∘ on its left half (0<x<2L) and 0∘ on its right half (2L<x<L). Find the Fourier sine coefficients Bn, write the series solution u(x,t), and explain why the n=2 mode appears here even though it vanished for a uniformly heated 100∘ rod.
In Bn=L2∫0Lf(x)sin(Lnπx)dx, on which half of the rod is f(x) nonzero, and what does that do to the upper limit of the integral?
Because f(x)=0 from x=2L to x=L, the integral stops at x=2L while the factor in front stays L2:
(Watch out: shrinking the integration interval to [0,2L] does not change the L2 factor in front of the integral. Replacing L2 with 2L2=L4 doubles every coefficient to nπ400(1−cos(2nπ)).)
The n=2 mode is nonzero (B2=π200) because the starting temperature is hotter on the left half than on the right half, matching the uneven shape of sin(L2πx) instead of canceling out across the midpoint.
4
A rod of length L=π with k=1 and 0∘ ends starts at a uniform 50∘, so its temperature is u(x,t)=π200sin(x)e−t+3π200sin(3x)e−9t+5π200sin(5x)e−25t+…. Approximately how long does it take for the center of the rod, x=2π, to cool to 2∘?
Use the first-mode coefficient π200, not the flat starting temperature 50: setting 2=50e−t gives the wrong time t=ln(25).
By the time the center cools from 50∘ down to 2∘, how big are the e−9t and e−25t terms compared to the n=1 term?
By the time the center cools from 50∘ to 2∘, the n≥3 terms with e−9t,e−25t,… are tiny. Keeping only the n=1 term at x=2π gives
2≈π200sin(2π)e−t=π200e−t
(Watch out: use the first-mode coefficient π200, not the flat starting temperature 50: setting 2=50e−t gives the wrong time t=ln(25).)
Dividing by π200 gives e−t≈100π, so t≈ln(π100) seconds.
5
Suppose a rod of length L with 0∘ ends has an internal heat source proportional to temperature, obeying ut=kuxx+cu for a positive constant c. Use separation of variables u(x,t)=X(x)T(t) to find the normal modes un(x,t), and find the values of c for which the n=1 mode grows in time instead of decaying.
Substitute u(x,t)=X(x)T(t), divide every term by kX(x)T(t), and move the constant kc to the time side before setting both sides equal to −λ2.
Substituting u(x,t)=X(x)T(t) into ut=kuxx+cu and dividing by kX(x)T(t) separates the variables:
kT(t)T′(t)−kc=X(x)X′′(x)=−λ2
With 0∘ ends, the space equation X′′(x)=−λ2X(x) still gives Xn(x)=sin(Lnπx) and λ=Lnπ, while the time equation becomes T′(t)=−(k(Lnπ)2−c)T(t). Multiplying them gives the normal modes
un(x,t)=Bnsin(Lnπx)e−(k(nπ/L)2−c)t
(Watch out: +cu is a heat source, not heat loss, so −c appears inside the exponent −(k(Lnπ)2−c)t, and don't drop the factor of k when clearing kT(t). Forgetting k gives the wrong threshold c>(Lπ)2.)
The n=1 mode grows in time when its exponent is positive, which happens when c>k(Lπ)2.
6
Plug u(x,t)=X(x)T(t) into (a) xut=tuxx and (b) ut=uxx+xtu. For each PDE, either separate it into two ODEs using separation constant −λ2 or show why x and t cannot be separated.
After dividing by X(x)T(t), check what extra factors of x and t remain. Can division get all the t's on the left and all the x's on the right?
(a)Substituting u(x,t)=X(x)T(t) gives xX(x)T′(t)=tX′′(x)T(t). Dividing both sides by xtX(x)T(t) puts t alone on the left and x alone on the right:
tT(t)T′(t)=xX(x)X′′(x)=−λ2
(Watch out: don't divide by X(x)T(t) alone: leaving x on the left and t on the right gives T(t)xT′(t)=X(x)tX′′(x)=−λ2, which puts the wrong variable into each ODE: xT′+λ2T=0 and tX′′+λ2X=0.)
Rewriting each side gives the two ODEs T′(t)+λ2tT(t)=0 and X′′(x)+λ2xX(x)=0.
(b)Substituting u(x,t)=X(x)T(t) and dividing by X(x)T(t) gives
T(t)T′(t)=X(x)X′′(x)+xt
Because the added term xt multiplies x and t together, neither subtracting xt nor dividing by x or t can get t alone on the left and x alone on the right, so (b) is not separable.