Diffusion Equation
Diffusion Equation
Diffusion equations
Diffusion equation is a linear partial differential equation, since the functions related to u in the
equations (ut and ∆u) are both linear. Recall for the linear ordinary differential equations:
dP d2 P
= kP, and D 2 = kP, (2.1)
dt dx
p p
it is well-known that ekt and A cos( k/Dtx) + B sin( k/Dx) are the solutions of the respective
equations. Indeed in the second case, the exponential function ekitx/D is a complex solution. Thus
we can make a lucky guess for the solution of the diffusion equation:
∂P ∂2P
=D 2, (2.2)
∂t ∂x
that the solution is an exponential function
for some constants a, b, which could be complex numbers. By substitution, we find that the function
in (2.3) is a solution of (2.2) if a = Db2 , and depending on the values of b, we obtain three families
of solutions:
2
P (t, x) = eDb t ebx , b > 0, (2.4)
Db2 t
P (t, x) = e e−bx , b > 0, (2.5)
−Db2 t
P (t, x) = e e−bix , b > 0. (2.6)
The first two families of solutions are not reasonable solutions, since when x → ∞ (or −∞)
P (t, x) → ∞, which implies an unlimited growth at x = ∞ (or −∞). The third family of solutions
are complex, but their real and imaginary parts are both solutions of (2.2) too:
2 2
P (t, x) = e−Db t cos(bx), and P (t, x) = e−Db t sin(bx). (2.7)
19
20 CHAPTER 2. DIFFUSION EQUATIONS
These solutions are little more “reasonable” as they are bounded as x → ∞, but still they do not
satisfy natural boundary conditions P, Px → 0 as x → ∞.
Nevertheless solutions with above forms are solutions of diffusion equations, and we notice that
they are in form of P (t, x) = U (t)V (x). This motivates us to consider the solutions which is
separable on the two variables t and x:
and
U (t) = C1 eDkt ; (2.10)
and V satisfies
V ′′ (x) = kV (x). (2.11)
√
The solutions of (2.11) are C2 e kx with any complex number k. Thus we obtain solution of (2.2):
√
CeDkt e kx
, (2.12)
just like the three families of solutions we obtain by making lucky guess. To obtain more specific
solutions, we must take the boundary and initial conditions into considerations.
We start with the one-dimensional diffusion equation on an interval with length L:
∂P ∂2P
=D 2, x ∈ (0, L). (2.13)
∂t ∂x
Here the individuals of the the species inhabits a one dimensional patch (0, L), and the diffusion
coefficient of the population is D > 0. To get a definite solution of the problem, we need to have
an initial population distribution:
and a boundary condition. We assume that the exterior is hostile so homogeneous Dirichlet bound-
ary condition is satisfied:
P (t, 0) = P (t, L) = 0. (2.15)
We look for solution with form P (t, x) = U (t)V (x). Then we obtain (2.9) and (2.11), and (2.15)
implies that
V (0) = V (L) = 0. (2.16)
(2.11) and (2.16) become a boundary value problem for an ordinary differential equation, which is
a special case of Sturm-Liouville problems. We shall discuss this kind of problems in a separate
section next.
2.2. EIGENVALUES AND EIGENFUNCTIONS 21
We can see that y(x) = 0 is always a solution of the equation. So we shall look for solutions other
than the trivial zero solution. From elementary ODE knowledge, we know that the general solution
of y ′′ = ky is one of the following three forms:
√ √
c1 e− kt
+ c2 e kt
, if k > 0, (2.18)
c1 + c2 t, if k = 0, (2.19)
√ √
c1 cos( −kt) + c2 sin( −kt), if k < 0. (2.20)
One important characteristic of a boundary value problem is that it may not have a solution, while
the initial value problem always has a solution and the solution is unique if all terms in the equation
are differentiable.
√
For (2.17),
√
there is no solution when k > 0. Indeed if there is a solution, it must
be y(t) = c1 e − kt + c2 e kt for some constants c1 and c2 , and we can solve the constants by
√ √
0 = y(0) = c1 + c2 , 0 = y(L) = c1 e− kL
+ c2 e kL
.
m2 π 2
k=− , (2.21)
L2
m2 π 2 mπt
and the eigenfunctions associated with k = − 2 are c sin . Therefore (2.17) has a
L L
m2 π 2
sequence of eigenvalues: km = − 2 , and the set of eigenfunctions are the sine functions which
L
22 CHAPTER 2. DIFFUSION EQUATIONS
can “fit in” the interval (0, L). When the interval is (0, π) (so L = π), the expression of eigen-pairs
is much simpler:
km = −m2 , fm (t) = sin(mt). (2.22)
Example 2.1.
y ′′ + ky = 0, y(0) + y ′ (0) = y(π) = 0. (2.25)
The expression in the right-hand side of (2.24) is the Fourier series of u0 (x) on (0, L). Fourier
series is widely used in mathematical physics and signal process. All sine and cosine functions are
considered to be regular smooth waves, and Fourier series convert any noise (or signal) into a sum
of more regular waves, and that is a big help for the signal processing. Here we collect a few facts
of Fourier series.
Theorem 2.2. Let f (x) and f ′ (x) be piecewise continuous functions on the interval [0, L]. Then
f (x) can be expanded in either a pure sine series
∞
X mπx
f (x) = bm sin , (2.28)
L
m=1
Z L mπx
2
where bm = f (x) sin dx, m = 1, 2, · · · , or a pure cosine series
L 0 L
a0 X
∞ mπx
f (x) = + am cos , (2.29)
2 L
m=1
Z L mπx
2
where am = f (x) cos dx, m = 0, 1, 2, · · · .
L 0 L
X f (n) (0)
f (x) = xn , (2.30)
n!
m=0
but instead of expanding the function in polynomials, Fourier series expands a function in sine or
cosine functions. But Taylor series converges to the original function only in a small neighborhood
of x = 0 (though some time it is large), and the neighborhood depends on the function f . Fourier
series converges to the original functions for all functions and on the whole interval (0, L). (But it
may not converge to f (x) at x = 0 and x = L.)
Theorem 2.2 shows all sound wave can be decomposed into several regular waves plus a small
noise. The approximation of Fourier series is sine or cosine Fourier polynomials:
N
X mπx a0 X
N mπx
f (x) ≈ bm sin , f (x) ≈ + am cos . (2.31)
a 2 a
m=1 m=1
24 CHAPTER 2. DIFFUSION EQUATIONS
the solution is
∞ mπx
c0 X m2 π 2
u(t, x) = + cm exp −D 2 t cos ,
2 L L
m=1 (2.37)
Z mπx
2 L
where cm = u0 (x) cos dx, m ≥ 0, t > 0, x ∈ (0, L).
L 0 L
The derivation of this formula is left as exercise.
For these examples, the asymptotic behavior of the solution can be read from the formulas. For
homogeneous Dirichlet problem (2.13)-(2.15), the asymptotic limit is
2 πx
π t
lim u(t, x) = 0, and the asymptotic profile is u(t, x) ∼ c1 exp − 2 sin . (2.38)
t→∞ L L
On the other hand, for homogeneous Neumann problem (2.36), the asymptotic limit is
2 πx
c0 c0 π t
lim u(t, x) = , and the asymptotic profile is u(t, x) ∼ + c1 exp − 2 cos . (2.39)
t→∞ 2 2 L L
2.4. RELAXATION TO EQUILIBRIUM SOLUTIONS 25
Z L
The constant c0 above is (2/L) u0 (x)dx, thus the limit is
0
Z L
1
u0 (x)dx, (2.40)
L 0
the average value of the initial value u0 (x). The limits of both cases are also solutions of diffusion
equation, and in fact they are solutions which are independent of time t. Such solutions are
equilibrium solutions. For a general reaction-diffusion equation
∂u
∂t = d∆u + f (x, u), t > 0, x ∈ Ω,
u(0, x) = u0 (x), x ∈ Ω, (2.41)
B(u) = 0, t > 0, x ∈ ∂Ω,
A solution u1 (x) of (2.42) is a solution of (2.41) in the sense that the function U1 (t, x) = u1 (x) is a
solution of (2.41) with u(0, x) = u1 (x). It is not just a coincidence that for two examples we have
considered so far, the limit is always an equilibrium solution. We will show in next section that the
limit of a diffusion equation is usually an equilibrium solution.
Equilibrium solutions of diffusion equation are easier to find, and that will help us understand
the limit of solution when the solution itself is not so easy to find. The equilibrium equation for
(2.13)-(2.15) is
u′′ = 0, u(0) = u(L) = 0. (2.43)
The general solution for u′′ = 0 is u(x) = ax + b, and from the boundary conditions, we obtain
u(x) = 0 is the only equilibrium solution. The equilibrium equation for (2.36) is
For this problem u(x) = b for any b ∈ R is an equilibrium solution. However the limit in (2.36)
is the average value of the initial value u0 (x) only. Why does the solution of diffusion equation
selects this particular equilibrium solution, but not the others? We will answer this question in
next section.
We have obtained analytic solutions of 1-d diffusion equation in previous sections. The solutions
are in a form of infinite series. However in general, even such formulas cannot be obtained when
the spatial dimension is higher and the domain is arbitrary. (Later we will formulas of solutions
of diffusion equations for some special cases.) Here we use some integral formulas to show some
qualitative properties of solutions of general diffusion equation.
26 CHAPTER 2. DIFFUSION EQUATIONS
As a calculus warmup, we consider the diffusion equation with no-flux boundary condition
∂u
∂t = D∆u, t > 0, x ∈ Ω,
u(0, x) = u0 (x), x ∈ Ω, (2.45)
∇u(t, x) · n(x) = 0, t > 0, x ∈ ∂Ω.
From the biological modelling point of view, the species only randomly moves in Ω, the growth rate
is zero, and the boundary is “sealed”. Thus the total population should not change since no one
moves in or out, and no one is born or dead. Indeed that is the basic character of the equation,
and it also explains why the limit of the solution of (2.36) is the average value of the initial value
function.
Proof. Integrating the left hand side of the equation in (2.45) over Ω, we obtain
Z Z
∂u d
(t, x)dx = u(t, x)dx , (2.47)
Ω ∂t dt Ω
from the divergent theorem and the no-flux boundary condition. Therefore from (2.47) and (2.48),
we find that Z
d
u(t, x)dx = 0, (2.49)
dt Ω
Next we show that the solution u(t, x) always tends to a limit constant c, and because of (2.46),
that constant must be Z
1
u0 (x)dx. (2.50)
|Ω| Ω
A rigorous proof of this fact needs many more advanced mathematical knowledge, so we only sketch
the ideas here. We multiply the equation in (2.45) by the function u(t, x),
∂u
u = Du∆u. (2.51)
∂t
Similar to the proof of Proposition 2.5, we integrate the left hand side of (2.51):
Z Z Z Z
∂u ∂ 1 2 d 1 2 1d
u dx = u dx = u dx = [u(t, x)]2 dx, (2.52)
Ω ∂t Ω ∂t 2 dt Ω 2 2 dt Ω
2.4. RELAXATION TO EQUILIBRIUM SOLUTIONS 27
Z
Let E(t) = [u(t, x)]2 dx. Then (2.55) shows that E ′ (t) < 0 for all t > 0 and obviously E(t) > 0
Ω
for all t > 0. Thus limt→∞ E(t) ≥ 0 exists, and as t → ∞, E ′ (t) → 0, so
Z
lim |∇u(t, x)|2 dx = 0. (2.56)
t→∞ Ω
(2.56) implies limt→∞ |∇u(t, x)| = 0 for any x ∈ Ω, thus the limit of u(t, x) when t → ∞ must
be a function
Z with zero gradient,
Z thus the
Z limit function must be a constant u(x) = c. Since
R
c|Ω| = u(x)dx = lim u(t, x)dx = u0 (x)dx, then c = Ω u0 (x)dx/|Ω|. (Notice that we
Ω t→∞ Ω Ω
implicitly assume u(t, x) has a limit u(x) when t → ∞. While such a limit indeed exists, the
proof of its existence is beyond the scope of this notes, that is why this is only a sketch of proof.)
Nevertheless, we put our findings into another proposition:
Similar result can also be shown for Dirichlet problem, in which the limit function is u = 0.
From this property of diffusion equation, we can get a conclusion that the diffusion equation will
make the initial value flatter and bring it eventually to an equilibrium state without spatial pattern.
This can also be indicated from the differential equation itself. Let the average of the initial value
be c. For the points where u(t, x) > c, the function is likely to be convex down, with ∆u < 0, thus
the function value will decrease over these points; and for the points where u(t, x) < c, the opposite
occurs. This is called smothering effect of diffusion. In the following we use a Maple program to
demonstrate the smothering effect and the asymptotic tendency to the equilibrium. We consider
ut = 4uxx ,
t > 0, x ∈ (0, 4),
u(t, 0) = u(t, 4) = 0, (2.57)
u(0, x) = f (x),
28 CHAPTER 2. DIFFUSION EQUATIONS
(
100, x ∈ [1, 3],
where f (x) is given by the formula f (x) = S . From (2.32), we get the
0, x ∈ [0, 1) (3, 4].
formula of the solution of (2.57):
∞
X mπx
m2 π 2
u(t, x) = cm exp − t sin ,
4 4
m=1 (2.58)
Z mπx
1 4
where cm = f (x) sin dx, m ≥ 1, t > 0, x ∈ (0, 4).
2 0 4
The coefficients cm in the Fourier series can easily be calculated, but we will let Maple to do that.
Here is the Maple program diffusion.mws and some of the results:
> restart;
> with(plots): n:=’n’:
> f:=x->100*Heaviside(x-1)-100*Heaviside(x-3);
> plot(f(x), x=0..4);
> c:=n->0.5*int(f(x)*sin(n*Pi*x/4),x=0..4): c(n);
>uapprox1:=(x,t)->sum(c(n)*sin(n*Pi*x/4)*exp(-4*n^2*t), n=1..30);
30
X
uapprox1 :=(x,t) - > c(n) sin(1/4 n Pi x) exp(-4 n2 t)
n=1
> tvals:=seq(0.07/20*i,i=0..20):
> toplot:=[seq(uapprox1(x,t),t=tvals)]:
> plot(toplot,x=0..4);
> densityplot(uapprox1(x,t),x=0..4,t=0..0.2,colorstyle=HUE);
> animate(uapprox1(x,t), x=0..4, t=0..0.1,frames=50);
This is an animation generated by approximating the solution by the partial sum with n = 30 of
the series solution. The approximation is accurate since the remainder is an exponential decaying
function with smaller exponent. Note that the initial condition f (x) can be written as the difference
of two Heaviside functions, which is defined as
(
1, x ≥ 0,
H(x) = (2.59)
0, x < 0.
It is an interesting experiment to observe the changes of the spatial patterns of u(t, x) when t gets
forward. Here are a few snap shots of the animation:
2.4. RELAXATION TO EQUILIBRIUM SOLUTIONS 29
100
100
80
80
60 60
40 40
20
20
0 1 2 3 4
0 x
1 2 3 4
x
Figure 2.1: (a) f (x); (b) partial sum of Fourier series of f (x)
100 100
80 80
60 60
40 40
20 20
0 1 2 3 4 0 1 2 3 4
x x
Because of the truncation of the series solution, u(t, x) above indeed is the solution of (2.57)
with initial data
30
X mπx 200 h mπ mπ i
fe(x) = cm sin dx, cm = cos − cos . (2.60)
4 mπ 4 4
m=1
Figure 2.1 is a comparison of f and fe. From the last section, we know that when t → ∞,
u(t, x) → 0 exponentially fast. However the road to distinction is worth a more careful looking—it
can be dismantled into the following stages:
1. Forming a plateau From t = 0 (Figure 2.1(b)) to t = 0.002 (Figure 2.2 (a)), we can observe
that the initial data has been smoothed by the diffusion equation, and all the small wiggles
in u(0, x) are gone at t = 0.002. On the other hand, although u(0, x) is not a constant for
x ∈ (1, 3), u(0.002, x) is almost a constant on an interval slightly smaller than (1, 3). So in
the initial stage of the evolution of fe under diffusion, a plateau (or flat core) of height 100
forms, with a sharp but smooth drop-off to 0 near x = 1 and x = 3.
30 CHAPTER 2. DIFFUSION EQUATIONS
100 100
80 80
60 60
40 40
20 20
0 1 2 3 4 0 1 2 3 4
x x
100 100
80 80
60 60
40 40
20 20
0 1 2 3 4 0 1 2 3 4
x x
2. Erosion of the plateau From t = 0.002 (Figure 2.2 (a)) to t = 0.01 (Figure 2.2 (b)), the flat
core keeps shrinking though the top of the core is still at the level near 100. At t = 0.01, the
erosion finally dissolves the whole flat top, and the maximum point of u(t, ·) at x = 2 looks
more like a regular local maximum point. The graph of u(0.01, x) is close to a bell-shape.
In that time interval, the inflection points of u(t, ·) are still near x = 1 and x = 3, but at
t = 0.01, the interface between u = 0 and u = 100 is no longer as sharp as when t = 0.002.
3. Bell getting round In the next stage, smoothing effect brings the concave part of the graph
down, and the convex part of the graph up. And at the same time, the convex part is shrinking
as population loss via boundary gets bigger. At t = 0.04, the graph becomes almost concave
for all x, and the bell-shape becomes an arch. (see Figure 2.3)
4. Collapse of the arch In the final stage, the arch is close to the leading term of the series:
c1 exp(−π 2 t/4) sin(πx/4), and an exponential collapse is obvious. After t = 1, the graph can
hardly be seen. (see Figure 2.4)
2.5. ONE DIMENSIONAL CHEMICAL MIXING PROBLEM 31
Here we consider a simplified version of the chemical mixing problem which is discussed in Chapter
1: A tube with length L contains salt water. The cross-section (yz-direction) of the tube is so small
so we can assume that the concentration of the salt water is same for any point on a cross-section.
Let the concentration of the salt water in the tube be c(t, x) kg/m3 , t > 0 and 0 < x < L. We
assume that the diffusion of the salt is one-dimensional in the tube, and the velocity of fluid is
ignorable, thus c(t, x) satisfies the diffusion equation:
∂c ∂2c
= D 2. (2.61)
∂t ∂x
At the left hand side of the tube, a salt water solution with constant concentration C0 kg/m3 enters
the tube at a rate of R0 m3 /s, and on the right hand side of the tube, the mixed solution is removed
at the rate of R0 m3 /s. We also assume that the area of the cross section of the tube is A. Let A1
and A2 be the cross sections at x = 0 and x = L correspondingly. From the Fick’s law, the total
in-flux at x = 0 is
Z Z
J · (−n)ds = [−Dcx (t, 0)] · (1)ds = −DAcx (t, 0) = C0 R0 , (2.62)
A1 A1
Before attempting to solve the equation, we could find the equilibrium solutions, which satisfy
equation:
∂2c
D 2 = 0, x ∈ (0, L),
∂x (2.67)
∂c(0) = −B, ∂c(L) + Ec(L) = 0.
∂x ∂x
32 CHAPTER 2. DIFFUSION EQUATIONS
The reason we consider (2.69) instead of (2.66) is that the boundary conditions in (2.69) is homoge-
neous, thus we can use the technique of separation of variables. We assume that b(t, x) = U (t)V (x).
Then
U ′ (t) V ′′ (x)
=D = Dk, (2.70)
U (t) V (x)
U (t) = eDkt , and V (x) satisfies
This is a half-Neumann and half-Robin boundary condition. We use the method in Section 2.2 to
solve (2.71).
√ √
If k > 0, then V (x) = c1 e− kx+ c2 e kx . From the boundary conditions, we get
√ √ !
− k √ k √
det √ √ = 0, (2.72)
(E − k)e− kL (E + k)e kL
From the graph of the functions f1 (x) = cot(Lx) and f2 (x) = x, there are exactly one intersection
point xm of f1 and f2 in ((m − 1)π/L, mπ/L) for any positive integer m > 0. Then 2
√ this km = −xm
is the m-th eigenvalue of (2.71), and the corresponding eigenfunction is cos( −km x). Thus the
solution of (2.69) is
∞
X 2 (m − 1)π mπ
b(t, x) = bm e−Dxm t cos(xm x), where xm ∈ ( , ) satisfies cot(xm L) = xm . (2.75)
L L
m=1
2.6. CRITICAL PATCH SIZE AND BIFURCATIONS 33
Hence the solution is the sum of the equilibrium solution and an exponential decaying Fourier
series, and the solution converges to the equilibrium solution exponentially fast. It shows that in
equilibrium state, the exiting solution also has the concentration C0 , same as the incoming solution,
thus the amounts of salt entering and exiting the tube are balanced, but the concentration of solution
in the tube is higher than C0 , and the concentration at x = 0 is the highest.
The example in this section can be thought as a model of a continuously polluted river. The
left end point x = 0 is the source of the pollution where the pollutant enters the river at a constant
rate, and the right end point x = L is where the river merges to a bigger river or the ocean. Our
mathematical result shows that the concentration of pollutant in a continuously polluted river is
even higher than that in the source. As a consequence, we can see that at the confluence of two
polluted rivers, the pollution can be most serious, since the concentration there is much higher than
the ones of either branches. We should be cautious that we ignore the effect of drifting here, which
could make a big difference for rivers.
The simplest population growth model is the Malthus model dP/dt = aP for a positive constant
a > 0. In this section we consider Dirichlet boundary value problem of diffusive Malthus equation
∂P ∂2P
= D 2 + aP, t > 0, x ∈ (0, L),
∂t ∂x
u(t, 0) = u(t, L) = 0, (2.76)
u(0, x) = u0 (x), x ∈ (0, L).
We have seen that population are at a loss from the hostile boundary, but on the other hand, the
population will increase through linear reproduction. So the loss and gain are in a competition.
Let’s see what factor will determine the outcome of this battle.
Equation (2.76) can be solved in a similar way as (2.13)-(2.15). In fact, the form of the solution
only changes slightly: adding a term eat to reflect the exponential growth. The solution of (2.76)
is
X∞ mπx
m2 π 2
u(t, x) = cm exp at − D 2 t sin ,
L L
m=1 (2.77)
Z mπx
2 L
where cm = u0 (x) sin dx, m ≥ 1, t > 0, x ∈ (0, L).
L 0 L
However the fate of the solution may be different: since at is added to the exponent, now the
exponent may be a positive one, then u(t, x) will have a part which is exponentially increasing. In
fact, when the index m in the sum increases, the exponent gets more negative, thus whether u(t, x)
is exponentially increasing is determined by the first exponent coefficient a − (Dπ 2 /L2 ). We have
r
Dπ 2 D
when a > 2 or L > π, lim u(t, x) = ∞,
L a t→∞
r (2.78)
Dπ 2 D
when a < 2 or L < π, lim u(t, x) = 0.
L a t→∞
34 CHAPTER 2. DIFFUSION EQUATIONS
If we assume that the growth rate a and D are intrinsic parameters determined by the nature of
species
pand environment, then the size of the habitat L will play the deciding role here. The number
L0 = D/aπ is called the critical patch size, as the population cannot survive if the habitat is too
small (the outgoing flux wins over the growth), but the population will not only survive but thrive
to an exponential growth if the habitat is large enough (growth outpaces the emigration).
We say that a bifurcation occurs at L = L0 as the equilibrium solution u = 0 changes stability
type from stable for L < L0 to unstable for L > L0 . We notice that at L = L0 , the equation has
other equilibrium solutions u(x) = sin(πx/L), the eigenfunction associated with first eigenvalue
k1 = −π 2 /L2 . We will have more discussion on bifurcation problems when the growth rate is
nonlinear. From (2.78), we can also use a or D as bifurcation parameter instead of L, sometime
that is more convenient since we do not need to change the domain, but we get equivalent results.
The concept of critical patch size is related to habitat fragmentation in ecological studies.
Habitat fragmentation1 is the breaking up of a continuous habitat, ecosystem, or land-use type
into smaller fragments, which is considered to be one of several spatial processes in land transfor-
mation. It is commonly used in relation to the fragmentation of forests. Habitat fragmentation is
mainly caused by human activities such as logging, conversion of forests into agricultural areas and
suburbanization, but can also be caused by natural processes such as fire. From our mathematical
result in this section, if the the fragmentation of habitat limits the spatial movement of the plants
and animals, then the species can become extinct.
Most of this chapter, we have exclusively considered one dimensional spatial domain, for the sim-
plicity of the mathematical analysis. However any interesting application happens in 2-D or 3-D
spaces. In this section, we discuss the separation of variables in a two-dimensional rectangle.
We first consider a linear diffusion reaction equation:
2
∂u ∂ u ∂2u
∂t = D + + λu, t > 0, (x, y) ∈ R = (0, a) × (0, b),
∂x2 ∂y 2
(2.79)
∇u · n = 0, (x, y) ∈ ∂R,
u(0, x, y) = u (x, y), (x, y) ∈ R,
0
where D, λ, a, b > 0, and ∂R is the boundary of rectangle R. From the method of separation of
variables, we assume that
u(t, x, y) = U (t)V (x, y). (2.80)
and 2 2
∂ V + ∂ V = kV, t > 0, (x, y) ∈ R = (0, a) × (0, b),
∂x2 ∂y 2 (2.82)
∇V · n = 0, (x, y) ∈ ∂R.
For (2.82), we need a further separation of variables:
n2 π 2 nπx
k1n = − , W n (x) = cos , n = 0, 1, 2, · · · , (2.88)
a2 a
and the eigenvalues and eigenfunctions of (2.86) are
m2 π 2 mπy
k2m = − , Zm (y) = cos , m = 0, 1, 2, · · · . (2.89)
b2 b
Therefore the eigenvalues and eigenfunctions of (2.82) are
n2 π 2 m2 π 2 nπx mπy
kn,m = − − , V n,m (x, y) = cos · cos , (2.90)
a2 b2 a b
where n, m = 0, 1, 2, · · · . Thus we find that the solution of (2.79) is
∞
X nπx mπy
u(t, x, y) = cn,m e(Dkn,m +λ)t cos · cos , (2.91)
a b
n=0,m=0
k0,0 = 0, k0,1 = k1,0 = −1, k1,1 = −2, k2,0 = k0,2 = −4, k2,1 = k1,2 = −5, (2.92)
36 CHAPTER 2. DIFFUSION EQUATIONS
3
2.5
2.5
2.5
2.5
2
2
x
x
1.5
1.5
1.5
1.5
1
1
0.5
0.5
0.5
0.5
0
0
1
1
3
0
2.5
1.5
0.5
2.5
1.5
0.5
2.5
1.5
0.5
2.5
1.5
0.5
y
y
Figure 2.5: (From left to right) (a) V0,0 = 1; (b) V0,1 = cos y; (c) V1,0 = cos x; (d) V1,1 = cos x · cos y.
3
3
2.5
2.5
2.5
2.5
2
2
x
x
1.5
1.5
1.5
1.5
1
1
0.5
0.5
0.5
0.5
0
0
1
1
3
0
2.5
1.5
0.5
2.5
1.5
0.5
2.5
1.5
0.5
2.5
1.5
0.5
y
y
Figure 2.6: (From left to right) (a) V0,2 = cos(2y); (b) V2,0 = cos(2x); (c) V1,2 = cos x · cos(2y); (d)
V2,1 = cos(2x) · cos y.
We notice that many eigenvalues km,n have multiplicity more than 1, for example km,n =
kn,m = −(m2 + n2 ). In such case, the eigenspace is of higher dimensional, so more possible spatial
patterns are generated. For example, k1,0 = k0,1 = −1, and the eigenspace is span{cos x, cos y},
thus k1 cos x + k2 cos y is a spatial pattern for any k1 and k2 . In particular, the patterns generated
by cos x ± cos y are symmetric with respect to one of the diagonal lines.
3
3
2.5
2.5
2
2
x
x
1.5
1.5
1
1
0.5
0.5
0
0
1
1
3
0
2.5
1.5
0.5
2.5
1.5
0.5
y
Figure 2.7: (From left to right) (a) cos x + cos y; (b) cos y − cos x.
The solution (2.91) is always an exponential growth if λ > 0. Indeed, from the equation, the
no-flux boundary condition prevents the emigration through the boundary, and λ > 0 implies a
positive growth rate, thus the total population in R has an exponential growth. We can consider
corresponding Dirichlet boundary problem:
2
∂u ∂ u ∂2u
∂t = D ∂x2 + ∂y 2 + λu,
t > 0, (x, y) ∈ R = (0, a) × (0, b),
(2.93)
u(t, x, y) = 0, (x, y) ∈ ∂R,
u(0, x, y) = u (x, y), (x, y) ∈ R.
0
2.8. STEADY STATES IN RADIALLY SYMMETRIC DOMAINS AND TRANSIT TIMES 37
where bn,m can be determined by the initial conditions, and kn,m is defined in (2.90). Similar to
last section, the persistence/extinction of the population can be determined:
λ 1 1
when 2
> 2 + 2 , lim u(t, x) = ∞,
Dπ a b t→∞
(2.95)
λ 1 1
when < 2 + 2 , lim u(t, x) = 0.
Dπ 2 a b t→∞
Chapter 2 Exercises
5. In Example 2.1, use Maple to find the numerical values of the first three eigenvalues, and plot
the graphs of the corresponding eigenfunctions.
6. Show that the solution of
ut = Duxx , t > 0, x ∈ (0, L),
ux (t, 0) = ux (t, L) = 0, (2.100)
u(0, x) = u0 (x), x ∈ (0, L),
is
∞ mπx
c0 X m2 π 2
u(t, x) = + cm exp −D 2 t cos ,
2 L L
m=1 (2.101)
Z mπx
2 L
where cm = u0 (x) cos dx, m ≥ 0, t > 0, x ∈ (0, L).
L 0 L
38 CHAPTER 2. DIFFUSION EQUATIONS
u′′ = 0, x ∈ (0, 1), u(0) + 3u′ (0) = 5, u(1) − 5u′ (1) = 7. (2.103)
11. Suppose that u(t, x) is the solution of the convective-diffusion equation: (D > 0 and V > 0)
∂u ∂2u ∂u
= D − V , x ∈ (0, π),
∂t ∂x 2 ∂x
u(0, x) = u0 (x), x ∈ (0, π), (2.106)
∂u
(t, 0) = ∂u
(t, π) = 0.
∂x ∂x
Z 1
Show that the total population u(t, x)dx is a constant if u0 (x) = sin x but not a constant
0
if u0 (x) = cos(x).
12. Suppose that in the chemical mixing problem in Section 2.5, the salt solution drifts to the
right with velocity V . Then c(t, x) satisfies the convective-diffusion equation:
∂c ∂2c ∂c
=D 2 −V , (2.107)
∂t ∂x ∂x
with D, V > 0. Suppose that c(t, x) satisfies the same initial and boundary conditions in
(2.66).
2.8. STEADY STATES IN RADIALLY SYMMETRIC DOMAINS AND TRANSIT TIMES 39
13. Suppose that in the chemical mixing problem in Section 2.5, the salt is consumed in a chemical
reaction at a rate k. Then c(t, x) satisfies a linear diffusion equation:
∂c ∂2c
= D 2 − kc, (2.108)
∂t ∂x
with D, k > 0. Suppose that c(t, x) satisfies the same initial and boundary conditions in
(2.66).
(a) Find the equilibrium solution of (2.108). (You can use Maple to find the general formula.)
(b) Show that the equilibrium solution is positive, decreasing and concave up, and explain
the effect of the reaction to the geometric properties of the equilibrium solution.
(c) Compare the exiting flux −Dcx (t, L) of the equilibrium solution with that of (2.67).
(d) Plot the graphs of the equilibrium solutions of (2.67), (2.107) and (2.108) with same
parameters in Maple.
14. Determine the critical patch for a diffusive Malthus equation with Robin boundary conditions:
∂P ∂2P
= D 2 + aP, t > 0, x ∈ (0, L),
∂t ∂x
ux (t, 0) = bu(t, 0), ux (t, L) = −bu(t, L), (2.109)
u(0, x) = u0 (x), x ∈ (0, L).
Find the eigenvalues and eigenfunctions of the problem, and the series representation of the
solution.
(a) Use separation of variables method to show that if u(t, x) = U (t)V (x) is a solution, then
for some constant k, U and V satisfy