Docsity

Solving the Heat Equation with Dirichlet Boundary Conditions: A Mathematical Example, Study notes of Mathematics

Toggle sidebar
bg1
Math 456–Spring 2006. Dr. Alexandros Sopasakis page 34
A simple example follows:
Example:
Suppose a high frequency transmission line whose length is L= 121 meters. We wish to discover
how exactly is temperature distributed along the wire. This is important since if at any point the
wire temperature is high then transmission will be slowed. Suppose that the initial temperature on
the wire is everywhere the same u(x, 0) = 100 Celcius and that at each end the temperature is kept
at zero degrees with some cooling equipment. The material used in the construction of the wire has
a known thermal conductivity constant which is ν= 2. Find the temperature of the wire u(x, t) at
any location xin the future.
Solution
This problem can be translated mathematically to a heat equation with Dirichlet type conditions.
We know that the heat equation is generally considered to be a good model to use if we are to
describe the temperature distribution in a rod (or a wire). The term Dirichlet boundary conditions
is customarily used when we are given uon the boundary - in contrast we could have Newmann
boundary conditions which implies that the derivatives of uare known on the boundary instead.
Thus our model has the following form,
∂u
∂t = 2 ∂2u
∂t20<x<121, t > 0
u(0, t) = 0 t > 0
u(121, t) = 0 t > 0
u(x, 0) = 100 0 <x<121
We start as usual by assuming the solution to be u(x, t) = X(x)T(t). We then apply this separation
of variables and as seen before we obtain the following two ODEs
T0(t) + 2λT (t) = 0
X00 (x) + λX(x) = 0 with X(0) = 0 and X(121) = 0
How did the boundary conditions come about? We simply translated the boundary conditions from
the original problem. For instance since u(0, t) = 0 then it must be true that X(0)T(t) = 0. This
implies that either X(0) = 0 or that T(t) = 0. However if we allow T(t) = 0 then the whole solution
must be zero. We already know that u(x, t) = 0 is a possible solution and we are now looking
for other. Thus we take the other possibility of X(0) = 0. A similar argument will also produce
X(121) = 0. Note however that we can not use the non-homogeneous condition u(x, 0) = 100 yet.
This will come in handy in the very end.
We start by solving the 1st order ODE first. The “integrating factor” is µ=eR2λdt =e2λt (please
review the ”intro to ODEs” part of our notes from the very beginning of the class if you do not see
where this came from). As a result the equation becomes
(T(t)e2λt)0= 0
or after integration,
T(t) = Ce−2λt (3.25)
We now turn to the second ODE. The solution of this ODE should follow one of the cases shown
earlier in (3.24). Which one is appropriate is revealed by solving the equivalent quadratic equation
w2+λw = 0
pf3
pf4

Partial preview of the text

Download Solving the Heat Equation with Dirichlet Boundary Conditions: A Mathematical Example and more Study notes Mathematics in PDF only on Docsity!

A simple example follows: Example: Suppose a high frequency transmission line whose length is L = 121 meters. We wish to discover how exactly is temperature distributed along the wire. This is important since if at any point the wire temperature is high then transmission will be slowed. Suppose that the initial temperature on the wire is everywhere the same u(x, 0) = 100 Celcius and that at each end the temperature is kept at zero degrees with some cooling equipment. The material used in the construction of the wire has a known thermal conductivity constant which is ν = 2. Find the temperature of the wire u(x, t) at any location x in the future. Solution This problem can be translated mathematically to a heat equation with Dirichlet type conditions. We know that the heat equation is generally considered to be a good model to use if we are to describe the temperature distribution in a rod (or a wire). The term Dirichlet boundary conditions is customarily used when we are given u on the boundary - in contrast we could have Newmann boundary conditions which implies that the derivatives of u are known on the boundary instead. Thus our model has the following form,   

 

∂u ∂t = 2^

∂^2 u ∂t^2 0 < x <^121 , t >^0 u(0, t) = 0 t > 0 u(121, t) = 0 t > 0 u(x, 0) = 100 0 < x < 121

We start as usual by assuming the solution to be u(x, t) = X(x)T (t). We then apply this separation of variables and as seen before we obtain the following two ODEs

T ′ (t) + 2λT (t) = 0 X ′′ (x) + λX(x) = 0 with X(0) = 0 and X(121) = 0

How did the boundary conditions come about? We simply translated the boundary conditions from the original problem. For instance since u(0, t) = 0 then it must be true that X(0)T (t) = 0. This implies that either X(0) = 0 or that T (t) = 0. However if we allow T (t) = 0 then the whole solution must be zero. We already know that u(x, t) = 0 is a possible solution and we are now looking for other. Thus we take the other possibility of X(0) = 0. A similar argument will also produce X(121) = 0. Note however that we can not use the non-homogeneous condition u(x, 0) = 100 yet. This will come in handy in the very end. We start by solving the 1st order ODE first. The “integrating factor” is μ = e

∫ (^2) λdt = e^2 λt^ (please review the ”intro to ODEs” part of our notes from the very beginning of the class if you do not see where this came from). As a result the equation becomes

(T (t)e^2 λt)

′ = 0

or after integration, T (t) = Ce−^2 λt^ (3.25)

We now turn to the second ODE. The solution of this ODE should follow one of the cases shown earlier in (3.24). Which one is appropriate is revealed by solving the equivalent quadratic equation

w^2 + λw = 0

which gives that w = ±

−λ. Note that there are three possibilities for λ. Either λ is positive, negative or zero. We explore all three cases below although, as our discussion will show, it is only the case of λ > 0 which is physically relevant since, in the absence of any external heating, temperature tends to decrease. Note that for λ > 0 in equation (3.25) the temperature will decrease in time.

  • The case of λ < 0. Thus if λ < 0 then the roots w 1 and w 2 are both real and non-equal. Therefore the solution, following our chart from the previous page, is

X(x) = C 1 exp(

−λx) + C 2 exp(−

−λx) (3.26)

We can then obtain the values of the constants C 1 and C 2 based on the Dirichlet boundary conditions X(0) = X(121) = 0. which were originally provided for us. Note that substituting X(0) = 0 into (3.26) we immedi- ately obtain that C 1 + C 2 = 0. (3.27) Applying now the second boundary condition X(121) = 0 into (3.26) gives

C 1 exp(

− 121 λ) + C 2 exp(−

− 121 λ) = 0. (3.28)

So we manage to obtain two equations (3.27) and (3.28) in two unkowns C 1 and C 2. Solving these two equations for C 1 and C 2 will produce the complete solution (3.26) for X(x). However, as was pointed out earlier this case of λ < 0 is not physically relevant.

  • The case of λ = 0. If on the other hand λ = 0 then our original problem X ′′ (x) + λX(x) = 0 is reduced to simply X

′′ (x) = 0. This has a very easy solution X(x) = C 1 x + C 2. Applying the initial conditions X(0) = X(121) = 0 we obtain that X(x) = 0. This essentially implies that u(x, t) = X(x)T (t) = 0 or the so called “trivial solution”. This solution although mathematically possible is also not physical. Therefore we will next explore the last case which, based on our earler discussion is also making sense based on the physics of the problem.

  • The case of λ > 0. We continue here in order to find other more general solutions. Thus we then examine the last and most important case: λ > 0. In this case the solution based on (3.24) has the form, X(x) = C 1 cos(

λx) + C 2 sin(

λx) Once again the constants C 1 and C 2 can be found from the given conditions. Clearly for X(0) = 0 we obtain that C 1 = 0. Thus our solution above reduces to,

X(x) = C 2 sin(

λx) (3.29)

Note that applying the second condition X(121) = 0, and assuming that C 2 6 = 0, we can solve for λ. In that case we get

0 = sin(

λ) which gives that λ =

( (^) nπ

121

, for n = 0, 1 , 2 ,...

Based on the results of this theorem the coefficients Cn of (3.30) are defined to be

Cn =

0

100 sin

( (^) nπ

121

x

dx = 200

1 − cos(nπ) nπ

nπ if^ n^ is odd 0 if n is even

This therefore gives the complete solution for our PDE to be,

u(x, t) = 200

∑^ ∞

n=

1 − cos((2n + 1)π) (2n + 1)π

sin

(2n + 1)π 121

x

e−^2

(2n+1)^2 π^2 1212 t

assuming that λ > 0. Note that we wrote this solution for 2n + 1 instead of n in order to make sure that only the odd values are used.