


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Math 124A: PDEs
Solving the diffusion (heat) equation
Fix a positive number k and consider the diffusion equation on the whole line
(DE) ut = kuxx (on 0 < t < ∞, −∞ < x < ∞)
Properties of the diffusion equation:
You know this because the diffusion equation is linear! You can also check it by taking partial derivatives: Find
ut =
∂u ∂t
∂t (a 1 S 1 + a 2 S 2 )
uxx =
∂^2 u ∂^2 x
∂x^2 (a 1 S 1 + a 2 S 2 )
Check that ut − kuxx = 0!
Check:
ut(x, t) = [S(x − y, t)]t = St(x − y, t) uxx(x, t) = [S(x − y, t)]xx = Sxx(x − y, t).
Then, ut(x, t) − kuxx(x, t) = St(x − y, t) − kSxx(x − y, t) = 0 since S solves (DE).
−∞ S(x^ −^ y, t)g(y)dy^ is a solution of (DE) (for any function g of one variable).
This is also easy to check simply by differentiating u! (If you can pull deriva- tives under the integral sign.) Intuitively, we can think of this integral as an infinite sum. In the integral above, we are summing solutions of (DE), so by
linearity, u should solve (DE). More rigorously, if we partition the line into intervals of size ∆y = (^1) n , for each integer k, (^1) n g(k n ) is just some number, and by the previous property
g(k n )∆y
S(x − (^) nk , t) solves (DE). By linearity,
Sn(x, t) =
k=−∞
g
k n
x −
k n
, t
∆y
is a solution of (DE). Of course, as n gets large, Sn(x, t) → u(x, t)! This implies that u also solves (DE) (to see this, take limits of both sides of the equation (Sn)t = k(Sn)xx).
ax, at) is also a solution of (DE) (for any positive number a)!
Check by differentiating (use the chain rule):
ut(x, t) =
∂t [v(
ax, at)] =
∂v ∂t
ax, at)
∂t (at) = a vt(
ax, at)
uxx(x, t) =
∂x
a
∂v ∂x
= a vxx(
ax, at).
Then, ut − kuxx = 0 at every point (with t > 0 ).
We will start by solving (DE) with special choice for the initial condition: The problem (??) will be
(??)
St = kSxx (0 < t < ∞, −∞ < x < ∞) S(x, 0) = δ(x) (−∞ < x < ∞).
The solution S(x, t) that we find is alternately called the source function for the diffusion equation, Green’s function for the diffusion equation, or the fun- damental solution of the diffusion equation.
This solution gives us all others! If we want to solve the problem (?)
(?)
ut = kuxx (0 < t < ∞, −∞ < x < ∞) u(x, 0) = φ(x) (−∞ < x < ∞),
the solution is
u(x, t) =
−∞
S(x − y, t)φ(y)dy.
Why? Well, by our properties of the diffusion equation, this solves (DE) (i.e., ut = kuxx). Also, we can check whether the initial condition holds:
u(x, 0) =
−∞
S(x − y, 0)φ(y)dy =
−∞
δ(x − y)φ(y)dy = φ(x).
Multiplying both sides by (^) kt :
− x 2 k
t
g′
x √ t
= g′′
x √ t
If we let z = √xt , we have − 2 zk g′(z) = g′′(z), or
g′′(z) +
z 2 k
g′(z) = 0.
We know how to solve this for g... use an integrating factor! The integrating
factor is e
z 42 k , and we can calculate d dz
e
z 42 k g′(z)
= e
z 42 k g′′(z) +
2 z 4 k
e
z 42 k g′(z) = e
z 42 k^ ( g′′(z) +
z 2 k
g′(z)
Therefore, there is some constant c such that
e
z 42 k g′(z) = c.
We have found that g′(z) = ce−^ z 42 k
. Now, we could integrate again to find Q(x, t) = g(z) and use the initial conditions to figure out the constants... but all we really want to find is S = ∂Q ∂x! Since Q(x, t) = g(z) and z = √xt ,
S(x, t) = Qx(x, t) = g′(z)zx =
c √ t
e−^ 4 xkt^2 .
The only thing we need to figure out is what the constant c is. We use the fact that as t → 0, S should get close to its initial condition: S(x, t) → S(x, 0) = δ(x). This means that
−∞ S(x, t)dx^ →^
−∞ δ(x)dx^ = 1! We know how to integrate this (by changing variables from x to p = x/
4 kt): ∫ (^) ∞
−∞
c √ t
e−^ 4 xkt^2 dx =
c √ t
−∞
e−p
4 kt dp
= c
4 k
−∞
e−p 2 dp = c
4 k
π.
To make sure that this approaches 1, we need the constant c = √ 41 πk.
Now, we know exactly what the source function is!
S(x, t) =
4 πkt
e−^ 4 xkt^2 .
To solve the problem (?) ((DE) with (IC) u(x, 0) = φ(x)), we find u by integrating:
u(x, t) =
−∞
S(x − y, t)φ(y)dy =
4 πkt
−∞
e−^
(x− 4 kty) 2 φ(y)dy.
You can take the formula above and check that it works! (Find ut − kuxx; it should work out to be 0. For the initial condition, we can’t really plug in t = 0 — this give us the fraction “ 00 ” — but we can take the limit as t → 0! It’s a fair amount of work, but we could prove that u(x, t) → φ(x).)