3 Topic: Applications of Partial Differential Equations
3 Topic: Applications of Partial Differential Equations
3 Topic: Applications of Partial Differential Equations
Applications of
Prepared by:
Prof. Sunil
Department of Mathematics & Scientific Computing
NIT Hamirpur (HP)
2y 2y
c2
t 2 x 2
u 2u
c2
t x 2
where:
u (x, t) is the temperature distribution at position a and time t,
c is the thermal diffusivity (a material property),
u
represents the rate of change of temperature with respect to time and
t
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 2
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
2u
represents the second derivative of temperature with respect to position.
x 2
This equation essentially states that the rate of change of temperature at any
point is proportional to the curvature of the temperature distribution.
The heat equation can be solved with appropriate initial and boundary conditions,
such as specifying the initial temperature distribution u (x, 0) and boundary
conditions at the ends of the object. Various numerical and analytical techniques
can be employed to solve this equation for specific cases.
y-axis
Q1 Q2
A x-axis
x x+δx ℓ
Figure
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 3
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
The amount of heat crossing any section of the bar per second depends on the
area A of the cross-section, the conductivity K of the material of the bar and the
u
temperature gradient i.e., rate of change of temperature w.r.t. distance
x
normal to the area.
We have following results:
1. The amount of heat Q(t) in a small segment of rod between the cross
x x
sections at x and x x is Q( t ) SA us, t ds ,
x
where S is specific heat of the rod, and , the density of the material.
2. Q1 , the quantity of heat flowing into the section at a distance
u
x KA per sec.
x x
(A negative sign appears because heat flows in the direction of decreasing
temperature i.e. as x increases, u decreases).
3. Q 2 , the quantity of heat flowing out of the section at a distance
u
x x KA per sec.
x x x
Hence, the amount of heat retained (preserve) by the slab with thickness x
i.e. net heat flow into this segment of the rod is
u u
Q1 Q 2 KA per sec. (i)
x x x x x
Now the rate of change of heat content in the segment of the rod between x
and x x must be equal to net heat flow into this segment of the rod. Thus
Q u u
KA .
t x x x x x
Q u
But the rate of increase of heat in the slab i.e. SAx . (ii)
t t
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 4
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
Calculations:
Q( t ) x x x x
u s, t u , t
t
S A u s , t ds S A ds S A dx
t x x
t t
u 2u u K 2 u
S K
t x 2 t S x 2
u 2u
c2 , (iii)
t x 2
K
where c 2 , known as diffusivity of the material of the bar (block).
S
Equation (iii) is one-dimensional heat equation, which is second order,
homogeneous and periodic type.
Boundary conditions:
u 2u
The boundary conditions, satisfied by the equation c2 are:
t x 2
(i). u 0 when x 0 u 0, t 0
. This means that .
(ii). u 0 when x ℓ u ℓ, t 0
u 2u
Then XT and X T .
t x 2
X 1 T
Substituting in (i), we have XT c 2 X T . (iii)
X c2 T
Now the LHS of (iii) is a function of x only and the RHS is a function of t only.
Since x and t are independent variables, this equation can hold only when both
X 1 T
sides reduce to a constant, say k. i.e. k.
X c2 T
Then, the above equation leads to the two ordinary differential equations
d 2X dT
kX 0 and kc 2 T 0 . (iv)
dx 2 dt
X 0 0
Using (ii), the boundary conditions reduce to .
X ℓ 0
Calculations:
u 0, t 0 u 0, t X 0 Tt 0 X 0 0
Boundary conditions reduces to
u ℓ, t 0 u ℓ, t X ℓ T t 0 X ℓ 0
d 2X dT
Then p 2 X 0 and p 2c 2T 0 .
dx 2 dt
2 2
Solution is X c1e px c 2 e px and T c 3 e c p t .
X 0 0
Using boundary conditions , we get c1 0 and c 2 0 .
X ℓ 0
d2X dT
Then 0 and 0.
2 dt
dx
Solution is X c1x c 2 and T c 3 .
X 0 0
Using boundary conditions , we get c1 0 and c 2 0 .
X ℓ 0
d 2X dT
Then p 2 X 0 and p 2c 2T 0 .
2 dt
dx
2 2
Solution is X c1 cos px c 2 sin px and T c 3 e c p t .
X 0 0
Using boundary conditions , we get c1 0 and 0 c 2 sin pℓ .
X ℓ 0
dT dT
Since solution of kc 2 T 0 i.e. p 2 c 2 T 0 is
dt dt
c2n 22 t
T c 3e c p t Tn t b n e
2 2
ℓ2 .
u 2u u 0, t 0
satisfy equation c2 and boundary conditions .
t x 2 u ℓ, t 0
In order to satisfy the initial condition u x ,0 f x , we bring into play the linearity
principle, which states that
c2n 22 t
nx
u x , t u n x , t b n sin e ℓ2 ,
n 1 n 1
ℓ
u 2u u 0, t 0
satisfy equation c2 and boundary conditions .
t x 2 u ℓ, t 0
c2n 22t
nx
u x , t u n x , t b n sin e ℓ2 , we get
n 1 n 1
ℓ
nx
f ( x ) u x ,0 b n sin .
n 1
ℓ
Since RHS is a half range Fourier sine series expansion of f(x) in the interval
0, ℓ .
The Fourier coefficients b n ’s are given by
ℓ
2 nx
b n f ( x ) sin dx , n 1, 2, 3, .......
ℓ ℓ
0
ℓ
2 nx
with b n ’s calculated from b n
ℓ f ( x ) sin
ℓ
dx , n 1, 2, 3, .......
0
Remarks:
2
u 2 u
The various solutions of the heat equation c are
t x 2
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 8
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
2 2
u c1e px c 2 e px .c 3 e c p t .
u c1x c 2 .c 3 .
2 2
u c1 cos px c 2 sin px .c 3 e c p t .
Of these solutions, we have to choose that solution which is consistent with the
physical nature of the problem.
Since u decreases as time t increases, the only suitable solution of the heat
equation is
FINAL CONCLUSIONS
u 2u
The solution of one-dimensional heat flow equation c2 (i)
t x 2
u 0, t 0
satisfying the boundary conditions and the initial condition u x ,0 f x
u ℓ, t 0
is given by
c2n 22t
nx
u (x, t ) b n sin
ℓ
.e ℓ2 ,
n 1
ℓ
2 nx
with b n ’s calculated from b n
ℓ f ( x ) sin
ℓ
dx , n 1, 2, 3, .......
0
*****************************************
Now let us solve some problems related to one-dimensional heat flow equation:
Q.No.1.: A rod of length ℓ with insulated sides is initially at a uniform temperature u0.
Its ends are suddenly cooled to 0oC and are kept at that temperature. Find the
temperature function u(x, t).
Sol.: This is one-dimensional heat flow problem. This is also known as initial boundary
value problem (IBVP).
2
u 2 u
First we consider one-dimensional heat flow equation: c .
t x 2
To find: Temperature function u(x, t).
We know that the suitable solution of the one-dimensional heat flow equation is
n
sin pℓ 0 pℓ n p , n being an integer.
ℓ
c2n 22 t
nx
Solution (ii) reduces to u x , t b n sin .e ℓ2 . (on replacing c2 by bn)
ℓ
The most general solution is obtained by adding all such solutions for n = 1, 2, 3,….
c2n 22 t
nx
u ( x , t ) b n sin .e ℓ2 . (iii)
n 1
ℓ
nx
Since u(x, 0) = u0, then from (iii), we have u 0 b n sin
ℓ
,
n 1
c 2 2n 12 2 t
4u 0
1 2n 1x .e
n 1 2n 1
sin
ℓ
ℓ2 . Ans.
Q.No.2.: (a). An insulated rod of length ℓ has its ends A and B maintained at 0oC and
100oC, respectively, until steady state conditions prevail. If B is suddenly
reduced to 0oC and maintained at 0oC, find the temperature at a distance x
from A at time t.
(b). Find also the temperature, if the change consists of raising the temperature
of A to 20oC and reducing that of B to 80oC.
Sol.: This is one-dimensional heat flow problem. This is also known as initial boundary
value problem (IBVP).
u 2u
(a): Consider one-dimensional heat flow equation c2 . (i)
t x 2
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 11
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
2u
When the temperature u depends only upon x and not on t, (i) reduces to 0.
x 2
Its general solution is u ax b , (ii)
where a, b are arbitrary constants.
To find: a and b using boundary conditions
100
Since u = 0 for x = 0 and u = 100 for x ℓ , we get from (ii), b = 0 and a .
ℓ
100
The initial condition is expressed by u ( x ,0) x.
ℓ
100
Initial condition: Here u ( x ,0) x.
ℓ
Boundary conditions: The boundary conditions for the subsequent flow are
u(0, t) = 0 and u ℓ, t 0 for all values of t.
The most general solution of (i) satisfying the boundary condition is
c2n 22t
nx
u (x, t ) b n sin
ℓ
.e ℓ2 . (iii)
n 1
100 100 nx
Since u ( x ,0) x , we have x b n sin ,
ℓ ℓ n 1
ℓ
100
which is half-range sine series for x.
ℓ
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 12
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
ℓ
cos nx
sin
nx
2 ℓ 100 x
Thus b n
nx
dx
200
ℓ 1 ℓ
sin x
n 2
ℓ 0 ℓ ℓ ℓ 2 n
ℓ ℓ
0
200 ℓ 2 200
cos n 1n 200 1n 1 .
ℓ n
2
n n
where us(x) is a solution of (i) involving x only and satisfying the boundary condition;
ut(x, t) is then a function defined by (iv).
Thus, us(x) is a steady state solution of the form (ii) and ut(x, t) may be regarded as a
transient part of the solution which decreases with increase of time.
Since us(0) = 20 and u s ℓ 80 , we have form (ii)
20 = b and 80 aℓ b
60
b = 20 and a
ℓ
60
and u s x x 20 . (v)
ℓ
Putting x = 0 in (iv), we have u t 0, t u 0, t u s 0 20 20 0 . (vi)
100 60 40
Also u t ( x ,0) u ( x ,0) u s ( x ) x x 20 x 20 . (viii)
ℓ ℓ ℓ
Hence, (vi) and (vii) give the boundary conditions and (viii) gives the initial condition
relative to the transient solution u t x , t . Since the boundary values given by (vi) and
2 ℓ 40 nx 40
where bn is given by b n x 20 sin dx 1 cos n
ℓ n 2 ℓ ℓ n
c2n 22 t
80 1 nx
Hence (ix) becomes u t ( x , t )
n 2,4,6,.... n
sin
ℓ
.e ℓ2 .
4c 2 m 2 2 t
40 1 2mx
m 1 m
sin
ℓ
.e ℓ2 [taking n = 2m] (x)
This is the required temperature if the change consists of raising the temperature of A to
20oC and reducing that of B to 80oC.
u 2u
Q.No.3.: Solve the differential equation 2 for the conduction of heat along a
t x 2
rod without radiation, subject to the following conditions:
(i) u is not infinite for t ,
du
(ii) 0 for x = 0 and x ℓ ,
dx
u 2u
Here one-dimensional heat flow equation is 2 .
t x 2
Substituting u = X(x) T(t) in the given equation, we get
X T
XT 2 X T k 2 (say).
X T 2
d2X dT
k 2 X 0 and k 2 2T 0 . (1)
dx 2 dt
Their solutions are
2 2
X c1 cos kx c 2 sin kx and T c 3e k t . (2)
In (3) T for t therefore, u also i.e. the given condition (i) is not satisfied.
So, we reject the solutions (3) while (2) and (4), satisfy this condition.
Applying the condition (ii) to equation (4), we get c7 = 0
u XT c 8 c 9 a 0 (say). (5)
u 2 2
From (2), c1 sin kx c 2 cos kx kc 3e k t
x
Applying the condition (ii), we get c2 = 0 and c1 sin kℓ c 2 cos kℓ 0
c2 = 0 and kℓ n (n is an integer).
n 22 2t
2 2 nx
u c1 cos kx.c 3e k t a n cos e ℓ2 . (6)
ℓ
Hence, the general solution being the sum of (5) and (6), is
2 2 nx n 2 2 2 t / ℓ 2
u c1 cos kx.c 3 e k t a 0 a n cos e . (7)
ℓ
Find: The values of a 0 and a n
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 15
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
nx
Now using the condition (3), we get ℓx x 2 a 0 a n cos .
ℓ
and
ℓ
an
2 ℓ
ℓ 0
ℓx x 2 cosnx
ℓ
2
ℓ
dx ℓx x 2 sin
ℓ n
nx
ℓ
ℓ 2 x
ℓ2
n
2 2
cos
nx
ℓ
ℓ3
2
n
3 3
sin
nx
ℓ
0
2 ℓ3 4ℓ 2
0 2 2 cos n 1 0 2 2 , when n is even, otherwise 0.
ℓ n n
ℓ2 ℓ2 1 2mx 4m 2 2 2 t / ℓ 2
u x , t cos e . Ans.
6 2 m 1 m 2 ℓ
Q.No.4.: Bar with insulated ends. A bar 100 cm long, with insulated ends, has its ends
kept 0oC and 100oC until steady state conditions prevail. The two ends are then
suddenly insulated and kept so. Find the temperature distribution.
Sol.: This is one-dimensional heat flow problem.
The temperature u(x, t) along the bar satisfies the equation
2
u 2 u
c . (i)
t x 2
By law of heat conduction, the rate of heat flow is proportional to the gradient of the
temperature.
Thus, if the ends x = 0 and x ℓ 100 cm of the bar are insulated so that no heat can
flow through the ends, the boundary conditions are
u 0, t u ℓ, t
0, 0 for all t. (ii)
x x
2u
Initially, under steady state conditions, 0 . Its solution is u ax b .
x 2
Since u = 0 for x = 0 and u = 100 for x ℓ . b 0 and a 1 .
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 16
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
c2 0 .
u 2 2
Putting x ℓ in (v), c1p sin pℓe c p t for all t . [by (ii)]
x ℓ
nx c 2 n 2 2 t / ℓ 2
A0 A n cos
ℓ
e (where An = c1) (vi)
n 1
nx
Putting t = 0, u x ,0 A 0 A n cos x. [by (iii)]
n 1
ℓ
2 ℓ nx 2ℓ
and a n x cos dx cos n 1 = 0, where n is even;
ℓ 0 ℓ n 2
2
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 17
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
4ℓ
, where n is odd.
n 22
Hence, (vi) take the form
ℓ 4ℓ nx c 2 n 2 2 t / ℓ 2
u x , t cos e
2 n 1,3,5,.... n 2 2 ℓ
u 2u
Here one-dimensional heat flow equation is c2 . (i)
t x 2
We know that the suitable solution of the one-dimensional heat flow equation is
n
p .
ℓ
c 2 n 2 2 c 2 n 2 2
nx t nx t
Hence, (ii) reduces to u x , t c 2 sin
2
e ℓ a n sin e ℓ2
ℓ ℓ
[Replacing c 2 by a n ]
Giving n the values 1, 2, 3, ……… and adding all the solutions, we get the general
solution of (i)
c2 n 22
nx t
u x , t a n sin e ℓ2 . (iv)
n 1 ℓ
Further u(x, 0) = x.
nx
(iv) reduces to x a n sin , which is Fourier half-range sine series in 0, ℓ .
n 1 ℓ
ℓ
2 nx
Hence, a n x sin dx
ℓ 0 I II ℓ
2 ℓ 2 2ℓ
cos n 0 0
, n0 sin n 0n Z
ℓ n n
Q.No.6.: A bar with insulated sides is initially at temperature 0oC, throughout. The end
x 0 is kept at 0oC and heat is suddenly applied at the end x ℓ so that
u
A for x ℓ , where A is a constant. Find the temperature function.
x
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 19
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
where us(x, t) is steady state solution satisfying the given boundary conditions (ii) and
u t ( x , t ) is the transient solution given by
u t x , t u x , t u s x , t . (iii)
u u
and a a A
x x x ℓ
Therefore, u s x , t Ax . (iv)
Also, from (iii), u t u u s
x x x
u
ut us AA 0 [From (iv) and (ii)]
x x x ℓ x x ℓ
u
i 0
x x ℓ
Again from (iii), we have
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 20
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
u t x ,0 Ax .
u 2u
Hence, u t x ,0 is the solution of c2 2
t x
satisfying
u t 0, t 0
u t
0 (**)
x x ℓ
u t x ,0 Ax
which is given by
c1 0 .
u t 2 2
Also, from (v), we get c 2 p cos pxe c p t
x
ut c 2 p cos pℓ 0 [using (*)]
x x ℓ
cos pℓ 0 [ c 2 0 , otherwise from (v), ut(x, t) = 0]
pℓ 2n 1 p 2n 1 .
2 2ℓ
2c 2
n 2 n 12 t
From (v), u t x , t c 2 sin 2n 1 xe 4ℓ 2 .
2ℓ
2c 2
n 2 n 12 t
Replacing c2 by an, we get u t x , t a n sin 2n 1 xe 4ℓ 2 .
2ℓ
Giving n the values 1, 2, 3, ………. And adding, the general solution is given by
2c 2
n 2 n 12 t
u t x , t a n sin 2n 1 xe 4ℓ 2 . (vi)
n 1 2ℓ
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 21
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
n
Now u t x ,0 a n sin 2n 1 xe , which is a Fourier half range sine series in 0, ℓ
n 1 2ℓ
and hence
ℓ
2 x
a n u 1 x ,0 sin 2n 1 dx [using (*)]
ℓ0 2ℓ
ℓ
2A x
x sin 2n 1 dx
ℓ 0 I II 2ℓ
2A 4ℓ 2 8Aℓ 1n
0 sin 2n 1
ℓ 2n 12 2 2 2n 12 2
sin 2n 1 2 sin n 2 1 sin 2 1 sin n 1 sin
n n n
Therefore, from (vi), we have
2 n 1z 2c 2
8Aℓ
1 n
sin 2n 1
x t
u t (x, t)
2
2n 12 2ℓ
e 4ℓ 2 (vii)
n 1
Q.No.7.: A homogeneous rod of conducting material of length 100 cm has its ends kept
at zero temperature and the temperature initially is
x , 0 x 50
u x ,0
100 x, 50 x 100
Find the temperature u(x, t) at any time.
Sol.: This is one-dimensional heat flow problem.
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 22
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
u 2u
Consider the one-dimensional heat equation c2 2 . (i)
t x
We know the solution of (i) is given by
x , 0 x 50
Initial conditions: u x ,0 (iv)
100 x, 50 x 100
n x , 0 x 50
Using (iv), we get u x ,0 a n sin x
n 1 100 100 x, 50 x 100
which is a Fourier half-range sine series in (0, 100) and hence an is given by
1 nx
100 50 50
2 n n
an u ( x ,0) sin xdx x sin xdx I II 100 dx
100 x sin
100 0
100 50 0 I II 100 0
Integrating by parts, we get
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 23
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
50
n 50
x cos n
x n
sin 100 x cos n
1 100 x sin x
an 1 100 x 100 1 100
50 n 2
n 50 n 50 n
2 2
1 100 2 n 400 n
.2. 2 2 sin 2 2 sin , n0
50 n 2 n 2
[Here sin 2m 1 sin m 1m sin 1m ]
2 2 2
Therefore, from (vi) the required solution is given by
400 1m 2m 1 xe 2m 1c / 1002 t . Ans.
u x , t sin
m 0 2m 1
2 2 100
Q.No.8.: Find the temperature u(x, t) in a slab whose ends x = 0 and x = L are kept at
zero temperature and whose initial temperature f(x) is given by
1
k, 0x L
f x
2
0, 1
LxL
2
Sol.: This is one-dimensional heat flow problem.
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 24
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
u 2u
Consider the one-dimensional heat equation c2 2 . (i)
t x
We know the solution of (i) is given by
n
Now f x u x ,0 a n sin x,
n 1 L
2k n 4 k n
cos 1 . sin 2 , n 0 , as n varies from 1 to .
n 2 n 4
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 25
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
2 2 1 cos A n
cos 2A 1 2 sin A sin A . Here A
2 4
Therefore, from (vi), the required solution is given by
c 2n 2 2 c 2n 2 2
4k n nx t 4k 1 2 n nx t
u x , t
2
sin 2 sin e L sin sin e L2 . Ans.
n 1 n 4 L n 1 n 4 L
u 2 u
Q.No.9.: Solve the equation
t x 2
with boundary conditions u ( x ,0) 3 sin nx , u(0, t) = 0, where 0 < x <1, t < 0.
Sol.: This is one-dimensional heat flow problem.
u 2u
Consider the one-dimensional heat equation c2 2 .
t x
We know the solution of above is given by
Now given
Boundary conditions: u(0, t) = 0.
Initial conditions: u x ,0 3 sin nx .
1
3 cosm 1x cosm n x dx
0
0 0 0
1
sin 2nx
3 x 3 ∵ sin n 0n Z
2n 0
Hence, the required solution is given by, from (i)
u x , t 3 sin mxe m
2 2
t
. Ans.
m 1
V 2V
Q.No.10.: Find the solution of k 2 (i)
t x
having given that V V0 sin nt when x = 0, for all values of t, and V = 0,
Vx, t Ae ax bt . (ii)
V ax bt V ax bt 2V
Now Ae .b , Ae .a , Ae ax bt .a 2 .
t x x 2
Ab kAa 2 b ka 2 .
2
Ae ka t I.P. of V0 e int A V0 ,
in
ka 2 in a 2 (iv)
k
n 1/ 2 n 1 i
a (i) a . .
k k 2
1/ 2
1/ 2
Since (i) 1/2 cos i sin i sin cos 2 r 2 i sin 2 r 2
2 2 2
cos 4r 1 i sin 4 r 1 , r 0,1
4 4
[Using De Movier' s theorem]
Put r 0, i 1 / 2 cos i sin 1 i
4 4 2 2
5 5 1 1 1 i
r 1, i 1 / 2 cos i sin i
4 4 2 2 2
n 1 i
Also V, t 0 , a . (v)
k
Hence, from (iii), (iv) and (v), we have
n
x i nt 2 k x
n n n n
1i x int ix int
Vx , t Ae 2k Ae 2k 2k Ae 2k e
n
x n n
Ae 2 k cos nt x i sin nt x .
2k 2 k
The two possible solutions are
n
x n
Vx , t Ae 2k cos nt x , (vi)
2 k
n
x n
Vx , t Ae 2k sin nt x . (vii)
2 k
But from given V V0 sin nt , therefore, (vi) is the required solution with A = V0
n
x n
Hence, Vx , t V0 e 2k sin nt
x . Ans.
2k
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 28
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
2
Q.No.11.: Solve, k 2 , such that
t x
(i). is finite when t .
(ii). 0 , when x = 0 and 0 , when x ℓ for all t.
x
(iii). 0 , when t = 0 for all values of x between 0 and ℓ .
(a). x , t c1e px c 2 e px .e kp
2
t
(c). x , t c 3 x c 4
But the solution (a) does give the finite value of , when t . e
The solution (a) is rejected.
2. Also from given condition (ii) 0 and ℓ, t 0 (ii)
x x 0
And from the solution (c) given and (ii), c 3 0 , c 4 0 , which gives 0 ,
2 n
c1 cos pℓ.e kp t 0 cos pℓ 0 cos pℓ cos , n is odd.
2
c1 0 , otherwise from (iii), we would have x, t 0 , which is meaningless]
n
p , n is odd cos 0 2n 1 2 , n Z
2ℓ
kn 2 2
n t
(iv) reduces to x , t c1 cos xe 4ℓ 2
2ℓ
Replacing c1 by an, we have 1, 2, 3,….. and adding, we have the general solution,
kn 2 2
nx t
x , t a n cos e 4ℓ 2 . (v)
2ℓ
n
Now from given condition (iii), x ,0 0 a n cos x,
n 1 2ℓ
2
3
2
4 0
kt
x 1 kt
3x
e cos
2 ℓ
e cos
2 ℓ
...... ∵ sin 2 1, sin 0 .
2ℓ 3 2ℓ
Q.No.12.: A bar 10 cm long, with insulated sides, has its ends A and B maintained at
temperature 50oC and 100oC respectively, until steady state conditions prevail.
The temperature A is suddenly raised to 90oC and at the same time that at B is
lowered to 60oC. Find the temperature distribution in the bar at time t.
Sol.: This is one-dimensional heat flow problem.
The one dimensional heat equation is
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 30
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
u 2u
c2 2 . (i)
t x
For steady state conditions, the temperature u depends only upon x and not on t. therefore
u 2u 2u u
0 and (i) c 2 2 0 2 0 B u x ,0 Bx A . (ii)
t x x x
Now given, until steady state conditions prevail, we have
u 0,0 50
(iii)
u (10,0) 100
Using (iii) in (ii), we have
u 0,0 A 50
and u (10,0) 10B A 100 B5
Hence u x ,0 5x 50 . (iv)
Further the boundary conditions are
u 0, t 90
, (v)
u (10, t ) 60
which are non-zero. Therefore, assume the required, as
u x , t u s x , t u t x , t , (*)
where us(x, t) is the steady state solution satisfying the boundary conditions (v)
and ut(x, t) is the transient solution given by
u t x , t u x , t u s x , t . (vi)
2u 2u u
c2 2
0 2
0 As t 0
x x
u c1 x c 2 u x , t c1 x c 2 (vii)
From (v) and (vii), we have
u 0, t c 2 90
u 10, t 10c1 90 60 c1 3
u s x , t 3x 90 . (viii)
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 31
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
u 2u
Further, u(x, t) is the solution of c2 2
t x
satisfying u t 0, t 0 [To be proved in eqn. (ix)]
u t 0, t 0 . (ix)
u t 10, t 0 (x)
u t x ,0 8x 40 . (xi)
u 2u
Hence the solution ut(x, t) of c 2 2 , satisfying (ix) and (x) is given by
t x
c 2n 2 2
nx t
u t x , t b n sin e 102 .
n 1 10
nx
Using equation (xi), we have u t x , t b n sin , (xii)
n 1 10
80
n
1 1n , n 0 as n varies 1 to
0, n is odd
160
, n is even, say n 2m, m 1, 2,.......
n
160 80
Hence, b n , m = 1, 2, 3,……..
2mx m
Hence, from (xii), we have
m 2c 2 2
80 1 mx t
u t x , t sin e 25 [n = 2m] (xiii)
n 1 m 5
m 2c 2 2
80 1 mx t
3x 90
n 1 n
sin
5
e 25 . Ans. (Replacing m by n)
Q.No.13.: The ends A and B of a rod 20 cm long have the temperature at 30oC and 80oC
until steady state prevails. The temperature of the ends are changed to 40oC
and 60oC respectively. Find the temperature distribution in the rod at time t.
Sol.: This is one-dimensional heat flow problem.
u 2u
The one dimensional heat equation is c2 2 . (i)
t x
For steady state conditions, the temperature u depends only upon x and not on t. therefore
u 2u 2u u
0 and (i) c 2 2 0 2 0 A.
t x x x
u ( x , t ) Ax B , at t = 0
u x,0 Ax B (ii)
u 0,0 30
Now given, until steady state conditions prevail, we have . (iii)
u (20,0) 80
5
and u (20,0) 20A 30 80 A .
2
5
Hence u x ,0 x 30 (iv)
2
u 0, t 40
Further the boundary conditions are . (v)
u (20, t ) 60
which are non-zero. Therefore, assume the required, as
u x , t u s x , t u s x , t , (*)
where us(x, t) is the steady state solution satisfying the boundary conditions (v)
and ut(x, t) is the transient solution given by
u t x , t u x , t u s x , t (vi)
u 2u
For steady state solution us(x, t), consider 0 c2 2 0 .
t x
u c1 x c 2 u x, t c1x c 2 . (vii)
From (v) and (vii),
u 0, t c 2 40
u 20, t 20c1 40 60 c1 3
u s x , t x 40 . (viii)
u 2u
Further, ut(x, t) is the solution of c2 2 ,
t x
satisfying u t 0, t 0 [To be proved in eqn. (ix)]
3
u t x ,0 x 40 [To be proved in eqn. (xi)]
2
Now from (vi), we have
u t 0, t u 0, t u s 0, t 90 90 0 [From (v) and (viii)]
u t 0, t 0 . (ix)
u t 20, t 0 . (x)
1 20 2 200
bn
20
cos n 0 .10 1 2 cos n 20 1 2 cos n , n 0
10 n n 10n n
***
Home Assignments
u 2u
Q. No. 1.: Find a solution of the heat conduction equation such that
t x 2
(i) u is finite when t , (ii) u =100 when x = 0 or , for all t,
(iii) u = 0 when t = 0 for all values of x between 0 and .
(Here the initially ice-cold rod has its ends in boiling water)
Q. No. 2.: Find the temperature u(x, t) in a bar which is perfectly insulated laterally,
whose ends are kept at temperature 0oC and whose initial temperature in (oC)
is f x x 10 x given that its length is 10 cm, constant cross-section of
area 1 cm2 , density 10.6 gm/cm3, thermal conductivity 1.04 cal/cm deg./sec
and specific heat 0.056 cal/gm degree.
800 nx .0175n 2 2 t
Ans.: u x , t sin e .
2 2
n 1 n
10
u 2u u 0, t u ℓ, t
, 0 x ℓ, 0, 0 , u(x, 0) = x.
t x 2 x x
Ans.: u x , t
5 4ℓ 1 2n 1x e 2n 12 c 2 2 t / 25 .
cos
2 2 1 2n 12 ℓ
Q. No. 4.: The temperature at one end of a bar, 50 cm long with insulated sides, is kept
at 00C and that the other end is kept at 100oC until steady state conditions
prevail. The two ends are then suddenly insulated, so that the temperature
gradient is zero at each thereafter. Find the temperature distribution.
Ans.: u x , t 50
400 1 2n 1x e c 2 2 2n 12 t / 2500 .
cos
2 1 2n 12 50
Applications of Partial Differential Equations: One-Dimensional Heat flow equation 36
Prepared by: Dr. Sunil, NIT Hamirpur (HP)
************************************************
****************************************
****************************