Professional Documents
Culture Documents
2D Heat Equation
2D Heat Equation
Ryan C. Daileda
Trinity University
Physical motivation
Consider a thin rectangular plate made of some thermally
conductive material. Suppose the dimensions of the plate are a × b.
The plate is heated in some way, and then insulated along its
top and bottom.
Our goal is to mathematically model the way thermal energy
moves through the plate.
Daileda The 2D heat equation
The 2D heat equation Homogeneous Dirichlet boundary conditions Steady state solutions
We let
u(0, y , t) = u(a, y , t) = 0, 0 ≤ y ≤ b, t ≥ 0,
u(x, 0, t) = u(x, b, t) = 0, 0 ≤ x ≤ a, t ≥ 0. (2)
As usual, we
separate variables to produce simple solutions to (1) and
(2), and then
use the principle of superposition to build up a solution that
satisfies (3) as well.
Separation of variables
Assuming that
u(x, y , t) = X (x)Y (y )T (t),
plugging into the heat equation (1) and using the boundary
conditions (2) yields the separated equations
We have already seen that the solutions to (4) and (5) are
mπ
Xm (x) = sin µm x, µm = , B = −µ2m
a
nπ
Yn (y ) = sin νn y , νn = , C = −νn2 ,
b
for m, n ∈ N. Using these values in (6) gives
2
Tmn (t) = e −λmn t ,
where r
m2 n2
q
λmn = c µ2m + νn2 = cπ + 2.
a2 b
Superposition
∞ X
∞
2
X
u(x, y , t) = Amn sin µm x sin νn y e −λmn t .
m=1 n=1
Initial conditions
which is just the double Fourier series for f (x, y ). We know that
if f is a C 2 function then
Z aZ b
4 mπ nπ
Amn = f (x, y ) sin x sin dy dx.
ab 0 0 a b
Conclusion
Theorem
Suppose that f (x, y ) is a C 2 function on the rectangle
[0, a] × [0, b]. The solution to the heat equation (1) with
homogeneous Dirichlet boundary conditions (2) and initial
conditions (3) is given by
∞ X
∞
2
X
u(x, y , t) = Amn sin µm x sin νn y e −λmn t ,
m=1 n=1
mπ nπ
q
where µm = , νn = , λmn = c µ2m + νn2 , and
a b
Z aZ b
4 mπ nπ
Amn = f (x, y ) sin x sin y dy dx.
ab 0 0 a b
Remarks:
We have not actually verified that this solution is unique, i.e.
that this is the only solution to problem.
We will prove uniqueness later using the maximum principle.
Example
A 2 × 2 square plate with c = 1/3 is heated in such a way that the
temperature in the lower half is 50, while the temperature in the
upper half is 0. After that, it is insulated laterally, and the
temperature at its edges is held at 0. Find an expression that gives
the temperature in the plate for t > 0.
Since r
π m2 n2 πp 2
λmn = + = m + n2
3 4 4 6
the solution is
∞ ∞
200 X X (1 + (−1)m+1 )(1 − cos nπ
2 ) mπ
u(x, y , t) = 2
sin x
π mn 2
m=1 n=1
nπ −π2 (m2 +n2 )t/36
× sin ye .
2
ut = 0.
uxx = 0.
Laplace’s equation
Separation of variables
X ′′ + kX = 0 , Y ′′ − kY = 0,
X (0) = X (a) = 0 , Y (0) = 0.
Y (y ) = Yn (y ) = An e µn y + Bn e −µn y .
∞
X
u(x, y ) = Bn sin µn x sinh µn y .
n=1
The general solution satisfies the Laplace equation (7) inside the
rectangle, as well as the three homogeneous boundary conditions
on three of its sides (left, right and bottom).
Conclusion
Theorem
If f2 (x) is piecewise smooth, the solution to the Dirichlet problem
is
∞
X
u(x, y ) = Bn sin µn x sinh µn y ,
n=1
a
2
Z
nπ nπ
where µn = and Bn = f2 (x) sin x dx.
a a sinh nπb
a 0 a
If we know the sine series expansion for f2 (x) then we can use
the relationship
1
Bn = (nth sine coefficient of f2 (x))
sinh nπb
a
Example
Example
Solve the Dirichlet problem on the square [0, 1] × [0, 1], subject to
the boundary conditions
where (
75x if 0 ≤ x ≤ 23 ,
f2 (x) =
150(1 − x) if 23 < x ≤ 1.
Thus,
!
1 450 sin 2nπ
3 450 sin 2nπ
3
Bn = = ,
sinh nπ π 2 n2 π 2 n2 sinh nπ
and
450 X sin 2nπ
∞
3
u(x, y ) = 2 sin nπx sinh nπy .
π n2 sinh nπ
n=1