Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
u
2u
2
t
x
[1]
Here, = k/c, is the thermal diffusion coefficient with dimensions of length squared over time.
The initial condition specifies the value of u at all values of x at t = 0. This condition is written as
follows:
u(x,0) = f(x)
[2]
In problem 5 we have f(x) = sin(0.4x) and in problem 13, f(x) = x. The boundary conditions at x
= 0 and x = xmax, can be functions of time in general. These are written as follows.
u(0,t) = uL(t)
u(xmax,t) = uR(t)
[3]
[4]
We do not know, in advance, if this solution will work. However, we assume that it will and we
substitute it for u in equation [1]. Since X(x) is a function of x only and T(t) is a function of t only,
we obtain the following result when we substitute equation [4] into equation [1].
u X ( x)T (t )
T (t )
X ( x)
t
t
t
2u
2 X ( x)T (t )
2 X ( x)
2
T
(
t
)
x
x 2
x 2
[5]
If we divide the final equation through by the product X(x)T(t), we obtain the following result.
Mail Code
8348
Phone: 818.677.6448
Fax: 818.677.7062
1 1 T (t )
1 2 X ( x)
T (t ) t
X ( x ) x 2
[6]
The left hand side of equation [6] is a function of t only; the right hand side is a function of x only.
The only way that this can be correct is if both sides equal a constant. This also shows that the
separation of variables solution works. In order to simply the solution, we choose the constant 1 to
be equal to2. This gives us two ordinary differential equations to solve.
1 d 2 X ( x)
2
2
X ( x) dx
1 1 dT (t )
2
T (t ) dt
The first equation becomes
[7]
dT (t )
2T (t ) . The general solution to this equation is known
dt
d 2 X ( x)
2 X ( x) 0 . The general solution to this equation is X(x) = Bsin(x) + Ccos(x).
2
dx
Thus, our general solution for u(x,t) = X(x)T(t) becomes (after defining AB as C 1 and AC as C2)
u ( x, t ) T (t ) X ( x) Ae t B sin(x ) C cos(x)
2
e t C1 sin(x ) C2 cos(x )
2
[8]
At this point we have to consider the initial conditions, boundary conditions and property values
for each problem separately. Equation [8] will be the starting point for the analysis of all four
problems.
Problem 5 Find the temperature, u(x,t) in a bar of silver (length = 10 cm, constant cross
section of area 1 cm2, density 10.6 g/cm3, thermal conductivity 1.04 cal/(s cm oC), specific
heat 0.056 cal/(g oC) that is perfectly insulated laterally, whose ends are kept at
temperature 0oC and whose initial temperature (in oC) is sin(0.4x).
In this case the boundary conditions are u(0,t) = 0 and u(x max,t) = 0. If we substitute the boundary
condition at x = 0 into equation [8], get the following result because sin(0) = 0 and cos(0) = 1.
[9]
Equation [9] will be satisfied for all t if C2 = 0. With C2 = 0, we can apply the solution in equation
[8] to the boundary condition at x = xmax.
2
[10]
Equation [10] can only be satisfied if the sine term is zero. This will be true only if xmax is an
integral times . If n denotes an integer, we must have
The choice of 2 for the constant as opposed to just plain comes from experience. Choosing
the constant to have this form now gives a more convenient result later. If we chose the constant
to be simply , we would obtain the same result, but the expression of the constant would be
awkward.
2
As usual, you can confirm that this solution satisfies the differential equation by substituting the
solution into the differential equation.
1
Mail Code
8348
Phone: 818.677.6448
Fax: 818.677.7062
xmax n
n
xmax
or
[11]
Since any integral value of n gives a solution to the original differential equations, with the
boundary conditions that u = 0 at both boundaries, the most general solution is one that is a sum
of all possible solutions, each multiplied by a different constant, C n. This general solution is
written as follows
u ( x, t ) Cn e nt sin(n x )
2
with
n 1
n
xmax
[12]
We still have to satisfy the initial condition that u(x,0) = f(x). Substituting this condition for t = 0
into equation [12] gives
n x
xmax
f ( x ) u ( x ,0) Cn sin
n 1
[13]
Since the ordinary differential equation for X(x) forms a Sturm-Liouville problem, the solutions
Cnsin(nx/xmax) are eigenfunction solutions to the problem in the interval 0 x x max. Thus we can
expand any initial condition function, f(x) in terms of these eigenfunctions. We can obtain the
usual equation for eigenfunction expansion coefficients of Sturm-Liouville solutions by using the
orthogonality relationships for integrals of the sine. If we multiply both sides of equation [13] by
sin(mx/xmax), where m is another integer, and integrate both sides of the resulting equation from
a lower limit of zero to an upper limit of xmax, we get the following result.
x max
m x
dx
f ( x ) sin
xmax
x max
n 1 0
x max
C
n 1
m x
n x
sin
dx
xmax
xmax
sin
m x
n x
sin
dx Cm
Cn sin
xmax
xmax
x max
m x
dx
sin 2
xmax
[14]
In the second row of equation [14] we reverse the order of summation and integration because
these operations commute. We then recognize that the integrals in the summation all vanish
unless m = n, leaving only this integral to evaluate. Solving for C m and evaluating the last
integral3 in equation [14] gives the following result.
xmax
Cm
mx
dx
xmax
f ( x ) sin
xmax
mx
dx
sin
x
max
2
xmax
xmax
mx
dx
x
max
f ( x ) sin
[15]
Using a standard integral table, and the fact that the sine of zero and the sine of an integral
multiple of are zero, we find the following result:
x max
x x
mx
2mx
dx max sin
sin
2
4
m
x
max
xmax
x max
2mxmax
xmax xmax
x
max
sin
2
4m
xmax
2
Mail Code
8348
Phone: 818.677.6448
Fax: 818.677.7062
For any initial condition, then, we can perform the integral on the right hand side of equation [15]
to compute the values of Cm and substitute the result into equation [12] to compute u(x,t). We
recognize that equation [15] is the usual equation for eigenfunction expansions in Sturm-Liouville
problems.
In this problem we have f(x) = sin(0.4x). No dimensions are given for the constant 0.4 in this
equation, but we know that it must have units of inverse length to make the argument of the sine
a dimensionless quantity. Since other length data are given in units of cm, we assume that the
units value multiplying x is 0.4 cm-1; since xmax = 10 cm, the value of 0.4 cm-1 = 4/xmax and we can
write this initial condition as f(x) = sin[(4)x/xmax]. If we substitute f(x) = sin[(4)x/xmax] into
equation [15] we find Cm as follows.
Cm
2
x max
x max
4x
sin
xmax
mx
sin
xmax
xmax
dx
x max
4m
x
x max
sin 2
dx
[16]
Because sin(mx/xmax) is an orthogonal function in the region 0 x x max, the only time that this
integral is non zero is when m = 4. We have just shownError: Reference source not found that
the integral of sin2(mx/xmax) between x = 0 and x = xmax = xmax/2 so that equation [16] tells us that
Cm = 1 when m = 4 and Cm = 0 for all other values of m.
m4
Cm
m4
[17]
Substituting this result into equation [12] gives the following solution to the diffusion equation
when f(x) sin(x/xmax) and the boundary temperatures are zero.
u ( x, t ) e
4
xmax
4x
xmax
sin
[18]
For the data in this problem we can compute the thermal diffusivity as follows.
1.04 cal
k
1.752 cm 2
cm s o C
[19]
u ( x, t ) A0 An e nt cos(n x )
2
n 1
Mail Code
8348
n
n
xmax
L
c2
Phone: 818.677.6448
Fax: 818.677.7062
u( x, t ) e t C1 sin(x ) C2 cos(x )
2
[8]
[20]
The boundary condition that the u/x = 0 at x = 0 gives the following result.
u ( x , t )
x
0 e t C1 cos(0) C2 sin(0) e
2
C1
[21]
x 0
We can satisfy this condition by having C1 = 0. Setting C1 to zero in equation [20] and applying
the boundary condition that u/x = 0 at x = L gives.
u ( x , t )
x
0 e t C2 sin(L )
[22]
xL
We can satisfy this condition is the sine term is zero, which it will be if L is an integer multiple of
.
L n
or
n
L
integer n
[23]
As usual, we take the general solution to be the sum of all solutions that satisfy the differential
equation and the boundary conditions. Note that when the eigenfunction is cos(nx/L) we do
have a nonzero eigenfunction for n = 0, so we include this in our sum. However, this
eigenfunction is simply cos(0) = 1. We will write this term separately outside the sum.
u ( x, t ) A0 e 0 cos(0)
An e
2
n t
cos( n x ) A0
n 1
An e
n 1
2
n t
cos( n x )
n
L
As usual we find the coefficients, An, by using an eigenfunction expansion. A specific example of
this is given in the next problem. The development in the next problem solution shows that the
equations for these coefficients match those of equation (2) in section 11.3.
The solution gives u A0 as t . That is, the steady-state solution is a constant temperature
everywhere in the region. This seems correct. For the adiabatic boundary conditions, there is no
way for heat to leave the region. The initial temperature profile will head to heat transfer in the x
direction so long as there is a temperature difference. At steady state, there is no mechanism to
maintain any temperature difference so that the solution approaches a constant.
Problem 14 Find the temperature in the bar of problem 13 with L = , = c 2 = 1 and f(x) =
x.
Here we use the general solution in equation [24] that satisfies the differential equation and the
boundary conditions and apply it to the given initial condition. Setting L = in equation [24] gives
n = n and the following result for our general solution.
Mail Code
8348
Phone: 818.677.6448
Fax: 818.677.7062
[24]
u ( x , t ) A0 An e n
cos(nx )
[25]
n 1
An cos(nx)
[26]
n 1
If we multiply both sides of this equation by cos(mx) and integrate the result from 0 to , we
obtain.
x cos mx dx
A0
n 1
An cos(nx)
cos mx dx
[27]
We have to consider the case of m = 0, in which case the eigenfunction is 1, separately. This
gives.
A0
The integral
x (1) dx
cos mx dx sin mx
0
x
x 0
n 1
An cos(nx)
sin m
(1) dx
sin 0 m 0.
[28]
on the right, except for the integral of A0dx are zero. (This is consistent with the notion that the
set of eigenfunctions ym = cos(mx/L) for the cosine solution, which starts at n = 0, gives y 0 = 1;
since the y0 eigenfunction must be orthogonal to all other eigenfunctions, we expect that the
integral of any eigenfunction, other than y0, will be zero.) This gives the following result for A0.
x2
x dx
x 0
2
2
0
2
2
A0 dx A0
A0
[29]
Returning to equation [27], we find Am for m 1, using the result for the orthogonality of the
cosine function to give.
Am
x cos mx dx
0
cos
[30]
2
mx dx
Using integral tables gives the following result for the integral in the numerator.
cos mx x sin mx
m2
m
0 x cos mx dx
cos m 1
m2
[31]
The integral in the denominator can also be found using integral tables as
Mail Code
8348
Phone: 818.677.6448
Fax: 818.677.7062
cos mx sin mx x
0 cos mx dx
2m
2
cos m sin m
0
2m
2
2
[32]
Using these results and noting that (cos(m 1) equals 2 for odd m and zero for even m gives
Am as follows.
4
cos m 1 2
m odd
2
m
m
0
Am
2
0
m even
0 cos mx dx
2
x cos mx dx
[30]
Substituting this result for Am (m 1) and the previous result for A0 into equation [25] gives.
4
u ( x, t )
2
e n t cos(nx)
n2
n1, 3, 5 ,
[31]
Setting = 1 (given) gives the following result for the first few terms in the series.
u ( x, t )
4 t
e 9t cos(3 x) e 25t cos(5 x) e 49 t cos(7 x )
e cos( x)
2
9
25
49
[32]
u
2u
2 Ne ax
t
x
u(0, t ) u( L, t ) 0 u( x,0) f ( x )
[33]
Substituting the proposed solution, u(x,t) = v(x,t) + w(x) into the diffusion equation gives, after
some manipulation, the result shown in equation [34]. In the first step we drop the w/t
derivative since w is a function of x only. In the second step we drop the v terms since they are
exactly the diffusion equation and v satisfies that partial differential equation.
Ne ax
v w
2 v w v
2v
2w
2w
t
x 2
t
x 2
x 2
x 2
[34]
Since w is a function of x only, the first and last terms in [34] give us an ordinary differential
equation that we can solve for w. Writing this equation and integrating it two times gives.
Mail Code
8348
Phone: 818.677.6448
Fax: 818.677.7062
Ne
2w
d 2w
2 2
x
dx
ax
d 2w
N
e ax
2
dx
[35]
dw
N
N ax
e ax dx C1
e C1
dx
[36]
N
N ax
e C1 dx C2 2 e ax C1 x C2
a
a
[37]
We can combine the solution definition, u(x,t) = v(x,t) + w(x), with the initial condition, u(x,t) = f(x),
to get an initial condition for v.
v(x,0) = u(x,0) w(x) = f(x) w(x)
[38]
We would have to use this initial condition for v(x,0) in developing any eigenfunction expansion to
match the initial conditions. The constants of integration in equation [37] can be found by
matching boundary temperatures. If u(0,t) = w(0) = u A and u(L,t) = w(L) = uB we have the
following results form equation [37].
w( 0) u A
N a0
N
e C1 (0) C2 2 C2
2
a
a
w( L ) u B
C2 u A
N
a 2
N aL
N
N
e C1L C2 2 e aL C1L u A 2
2
a
a
a
[39]
[40]
C1
uB u A
N
2 e aL 1
L
a L
[41]
Substituting the results of equations [40] and [41] for C 1 and C2 into equation [37] gives.
N ax uB u A
N
N
e
2 e aL 1 x C2 u A 2
2
a
L
a L
a
[42]
A rearrangement gives
w uA
uB u A
N
x
x 2 e aL 1 1 e ax
L
a
L
[42]
The solution for v(x,t) which satisfies the diffusion equation with zero boundary conditions has
already been found; it is given by equation [12].
v ( x, t ) Cn e nt sin( n x )
2
n 1
with
n
L
[12]
The coefficients Cn are found by the following formula for eigenfunction expansion coefficients.
This is the same formula as equation [15] with f(x) replaced by f(x) w(x).
Mail Code
8348
Phone: 818.677.6448
Fax: 818.677.7062
Cm
mx
dx
L
f ( x ) w( x ) sin
0
mx
0 sin L dx
2
2
f ( x ) w( x ) sin mx dx
L0
L
[43]
Substituting equation [42] for w(x) gives the equation necessary to compute the expansion
coefficients, Cm.
L
2
u uA
N
x
mx
Cm f ( x ) u A B
x 2 e aL 1 1 e ax sin
dx
L0
L
a
L
L
[44]
In this problem we are given uA = uB = 0 which makes only a slight simplification in the final result.
Mail Code
8348
Phone: 818.677.6448
Fax: 818.677.7062