Answer on Question #40483, Math, Differential Calculus | Equations
The ends A and B of a rod 20cm long have the temperature at 30 degree centigrade and 80 degree centigrade respectively until steady state prevails. The temperatures of the ends are changed to 40 degree centigrade to 60 degree centigrade respectively. Find the temperature distribution in the rod at time t.
Solution
At time t=0 steady state prevails:
∂x2∂2u(x,0)=0, for 0≤x≤20,u(0,0)=30 and u(20,0)=80.
The solution to this boundary value problem is easily found, since the general solution of the differential equation is u(x)=Ax+B; where A and B are arbitrary constants. Then the boundary conditions reduce to u(0)=B=30 and u(20)=A⋅20+B=80.
We conclude that B=30 and A=2080−30=25.
So the steady-state initial temperature is
u(x,0)=25x+30.
We will start this section by solving the initial/boundary value problem
ut(x,t)=kuxx(x,t) for t>0 and 0<x<20,u(0,t)=40 and u(20,t)=60, for t>0,u(x,0)=25x+30, for 0≤x≤20.
It is useful for both mathematical and physical purposes to split the problem into two parts. We first find the steady-state temperature that satisfies the boundary conditions. A steady-state temperature is one that does not depend on time. Then ut=0, so the heat equation simplifies to uxx=0. Hence we are looking for a function us(x) defined for 0≤x≤20 such that
∂x2∂2us(x)=0, for 0<x<20,us(0,t)=40 and us(20,t)=60 for t>0.
The solution to this boundary value problem is easily found, since the general solution of the differential equation is us(x)=Ax+B; where A and B are arbitrary constants. Then the boundary conditions reduce to
us(0)=B=40 and us(20)=A⋅20+B=60.
We conclude that B=40 and A=2060−40=1.
So the steady-state temperature is
uS(x,0)=x+40.
It remains to find v=u−us. It will be a solution to the heat equation, since both u and us are, and the heat equation is linear. The boundary and initial conditions that v satisfies can be calculated from those for u and us. Thus, v=u−us, must satisfy
vt(x,t)=kvxx(x,t) for t>0 and 0<x<20
u(0,t)=0 and u(20,t)=0, for t>0
v(x,0)=u(x,0)−us=25x+30−(x+40)=23x−10, for 0≤x≤20.
Having found the steady-state temperature us and the temperature v, the solution to the original problem is u(x,t)=v(x,t)+us(x).
Let's hunt for solutions in the product form
v(x,t)=X(x)T(t),
where T(t) is a function of t and X(x) is a function of x.
When we insert v(x,t)=X(x)T(t) into the heat equation vt(x,t)=kvxx(x,t), we get
X(x)T′(t)=kX′′(x)T(t).
The key step is to separate the variables by bringing everything depending on t to the left, and everything depending on x to the right. Dividing equation by kX(x)T(t), we get
kT(t)T′(t)=X(x)X′′(x).
Since x and t are independent variables, the only way that the left-hand side, a function of t, can equal the right-hand side, a function of x, is if both functions are constant. Consequently, there is a constant that we will write as −λ; such that kT(t)T′(t)=−λ and X(x)X′′(x)=−λ or
T′(t)−λkT(t)=0 and X′′(x)+λX(x)=0.
The first equation has the general solution
T(t)=Ce−λkt.
Suppose that λ>0 and λ=ω2. Then the differential equation is X′′(x)+ω2X(x)=0, which has the general solution
X(x)=acosωx+bsinωx.
For this solution the boundary condition X(0)=0 becomes a=0. Then the boundary condition X(20)=0 becomes
bsin20ω=0.
We are only interested in nonzero solutions, so we must have sin20ω=0. This occurs if 20ω=nπ for some positive integer n. When this is true we have the eigenvalue λ=ω2=400n2π2. For any nonzero constant b, X(x)=bsin(20nπx) is an eigenfunction.
Finally, we get the product solutions,
vn(x,t)=e−400n2π2ktsin(20nπx),
for n=1,2,3,….
We are naturally led to consider the infinite series
v(x,t)=n=1∑∞bnvn(x,t)=n=1∑∞bne−400n2π2ktsin(20nπx).
Using the series definition for v, the initial condition becomes
v(x,0)=23x−10=n=1∑∞bnsin(20nπx),
where
bn=202∫020(23x−10)sin(20nπx)dx=203∫020xsin(20nπx)dx−∫020sin(20nπx)dx=+πn20(1−(−1)n).bn=−203πn400(−1)n+πn20(1−(−1)n)=πn20(1−4⋅(−1)n).v(x,t)=n=1∑∞πn20(1−4⋅(−1)n)sin(20nπx).
The temperature distribution in the rod at time t is
u(x,t)=x+40+n=1∑∞πn20(1−4⋅(−1)n)sin(20nπx).
Comments
Dear Satyam Verma, You are welcome. We are glad to be helpful. If you liked our service, please press a like-button beside the answer field. Thank you!
Your solution is best for understanding... Thanks a lot