Question #68975

Find the temperature in a bar of length l with both ends insulated and with initial
temperature in the rod being sin ( π x / l ) .
.

Expert's answer

Answer on Question 68975 - Math - Differential Equations

Find the temperature in a bar of length LL with both ends insulated and with initial temperature in the rod being sinπxL\sin\frac{\pi x}{L}.

Solution: We consider the initial boundary value problem for the heat equation

ut=a2uxx,x(0,L),t>0,u_{t}=a^{2}u_{xx},\qquad x\in(0,L),\quad t>0, (1)

u(0,x)=sinπxL,u(0,x)=\sin\frac{\pi x}{L}, (2)

ux(t,0)=ux(t,L)=0.u_{x}(t,0)=u_{x}(t,L)=0. (3)

Let us find a special type of non-trivial solutions

v(t,x)=T(t)X(x)v(t,x)=T(t)X(x) (4)

of (1) that satisfies conditions (3). We will show that there exists a countable set of such solutions

vn(t,x)=Tn(t)Xn(x),n=0,1,2,v_{n}(t,x)=T_{n}(t)X_{n}(x),\quad n=0,1,2,\ldots

Then we will look for a solution uu of (1)–(3) in the form

u(t,x)=n=0vn(t,x).u(t,x)=\sum_{n=0}^{\infty}v_{n}(t,x).

We substitute (4) into the differential equation (1), and divide by a2va^{2}v. This gives

T(t)a2T(t)=X(x)X(x).\frac{T^{\prime}(t)}{a^{2}T(t)}=\frac{X^{\prime\prime}(x)}{X(x)}.

The left-hand side of the equality depends only upon tt and the right-hand one is independent of tt. It follows that

T(t)a2T(t)=X(x)X(x)=λ,\frac{T^{\prime}(t)}{a^{2}T(t)}=\frac{X^{\prime\prime}(x)}{X(x)}=-\lambda,

where λ\lambda is a constant. Thus v(t,x)=T(t)X(x)v(t,x)=T(t)X(x) is a solution of the heat equation that satisfies boundary conditions (3) if and only if TT and XX satisfy the ordinary differential equation

T(t)+λa2T(t)=0,t(0,+)T^{\prime}(t)+\lambda a^{2}T(t)=0,\qquad t\in(0,+\infty) (5)

and the boundary value problem

X(x)+λX(x)=0,x(0,L),X^{\prime\prime}(x)+\lambda X(x)=0,\quad x\in(0,L), (6)

X(0)=0,X(L)=0.X^{\prime}(0)=0,\quad X^{\prime}(L)=0. (7)

respectively.

The Sturm-Liouville problem (6)–(7) always admits the trivial solution X=0X=0, but this is of no use to us. We must find all values of λ\lambda

for which there exist non-trivial solutions of (6)–(7). It is possible for non-negative λ\lambda only. In fact, if λ<0\lambda<0, then equation (6) has the general solution

X(x)=C1sinh(λx)+C2cosh(λx).X(x)=C_{1}\sinh(\sqrt{-\lambda}x)+C_{2}\cosh(\sqrt{-\lambda}x).

From boundary conditions (7) we have

C1=0,C2sinh(λL)=0.C_{1}=0,\quad C_{2}\sinh(\sqrt{-\lambda}\,L)=0.

Therefore sinh(λL)=0\sinh(\sqrt{-\lambda}\,L)=0, which is impossible for the positive number λL\sqrt{-\lambda}\,L.

If λ=0\lambda=0, then there exists a nonzero solution X0=1X_{0}=1 of (6), (7). For λ>0\lambda>0 we have X(x)=C1cosλx+C2sinλxX(x)=C_{1}\cos\sqrt{\lambda}x+C_{2}\sin\sqrt{\lambda}x. Substituting XX into (7) yields

X(x)=C1λsinλx+C2λcosλx;X^{\prime}(x)=-C_{1}\sqrt{\lambda}\sin\sqrt{\lambda}x+C_{2}\sqrt{\lambda}\cos\sqrt{\lambda}x;

X(0)=0C2=0;X^{\prime}(0)=0\quad\Rightarrow\quad C_{2}=0;

X(L)=0C1λsinλL=0sinλL=0,X^{\prime}(L)=0\quad\Rightarrow\quad C_{1}\sqrt{\lambda}\sin\sqrt{\lambda}L=0\quad\Rightarrow\quad\sin\sqrt{\lambda}L=0,

since both the constants C1C_{1} and C2C_{2} cannot be zero simultaneously. Then XX need not be identically zero if and only if sinλL=0\sin\sqrt{\lambda}L=0, that is, if

λn=π2n2L2,n=1,2,.\lambda_{n}=\frac{\pi^{2}n^{2}}{L^{2}},\qquad n=1,2,\ldots.

These values are called the eigenvalues of the problem. The corresponding solutions are

Xn(x)=cosπnxL,n=1,2,.X_{n}(x)=\cos\frac{\pi nx}{L},\qquad n=1,2,\ldots.

Next, we can solve equation (5) for all eigenvalues:

T0=0T0(t)=A0;T_{0}^{\prime}=0\quad\Rightarrow\quad T_{0}(t)=A_{0};

Tn+a2π2n2L2Tn=0Tn(t)=Anea2π2n2L2t.T_{n}^{\prime}+\frac{a^{2}\pi^{2}n^{2}}{L^{2}}T_{n}=0\quad\Rightarrow\quad T_{n}(t)=A_{n}e^{-\frac{a^{2}\pi^{2}n^{2}}{L^{2}}t}.

We attempt to represent the solution uu of (1)–(3) as an infinite series

u(t,x)=A0+n=1Anea2π2n2L2tcosπnxL.u(t,x)=A_{0}+\sum_{n=1}^{\infty}A_{n}e^{-\frac{a^{2}\pi^{2}n^{2}}{L^{2}}t}\cos\frac{\pi nx}{L}.

We need to determine the coefficients AnA_{n} in such a way that initial condition (2) holds. We have

u(0,x)=A0+n=1AncosπnxL=sinπxL.u(0,x)=A_{0}+\sum_{n=1}^{\infty}A_{n}\cos\frac{\pi nx}{L}=\sin\frac{\pi x}{L}.

The last series is called a Fourier series of function sinπxL\sin \frac{\pi x}{L}. Moreover,


A0=1L0LsinπxLdx,An=2L0LsinπxLcosπnxLdx.A _ {0} = \frac {1}{L} \int_ {0} ^ {L} \sin \frac {\pi x}{L} d x, \qquad A _ {n} = \frac {2}{L} \int_ {0} ^ {L} \sin \frac {\pi x}{L} \cos \frac {\pi n x}{L} d x.A0=0LsinπxLdx=Lπ0LsinπxLd(πxL)=LπcosπxL0L=2Lπ.A _ {0} = \int_ {0} ^ {L} \sin \frac {\pi x}{L} d x = \frac {L}{\pi} \int_ {0} ^ {L} \sin \frac {\pi x}{L} d \left(\frac {\pi x}{L}\right) = - \frac {L}{\pi} \cos \frac {\pi x}{L} \Big | _ {0} ^ {L} = \frac {2 L}{\pi}.An=0LsinπxLcosπnxLdx=120L(sinπ(n+1)xL+sinπ(n1)xL)dx=12(Lπ(n+1)0Lsinπ(n+1)xLd(π(n+1)xL)+Lπ(n1)0Lsinπ(n1)xLd(π(n1)xL)=12(Lπ(n+1)cosπ(n+1)xL0LLπ(n1)cosπ(n1)xL0L)=(1(1)n+1)(Lπ(n+1)+Lπ(n1))=2(1(1)n+1)nLπ(n21)={8kLπ(4k21)ifn=2k0ifn=2k1.\begin{array}{l} A _ {n} = \int_ {0} ^ {L} \sin \frac {\pi x}{L} \cos \frac {\pi n x}{L} d x = \frac {1}{2} \int_ {0} ^ {L} \left(\sin \frac {\pi (n + 1) x}{L} + \sin \frac {\pi (n - 1) x}{L}\right) d x \\ = \frac {1}{2} \left(\frac {L}{\pi (n + 1)} \int_ {0} ^ {L} \sin \frac {\pi (n + 1) x}{L} d \left(\frac {\pi (n + 1) x}{L}\right) \right. \\ + \frac {L}{\pi (n - 1)} \int_ {0} ^ {L} \sin \frac {\pi (n - 1) x}{L} d \left(\frac {\pi (n - 1) x}{L}\right) \\ = \frac {1}{2} \left(- \frac {L}{\pi (n + 1)} \cos \frac {\pi (n + 1) x}{L} \Bigg | _ {0} ^ {L} - \frac {L}{\pi (n - 1)} \cos \frac {\pi (n - 1) x}{L} \Bigg | _ {0} ^ {L}\right) \\ = (1 - (- 1) ^ {n + 1}) \left(\frac {L}{\pi (n + 1)} + \frac {L}{\pi (n - 1)}\right) = \frac {2 (1 - (- 1) ^ {n + 1}) n L}{\pi (n ^ {2} - 1)} \\ = \left\{ \begin{array}{l l} \frac {8 k L}{\pi (4 k ^ {2} - 1)} & \text {if} \quad n = 2 k \\ 0 & \text {if} \quad n = 2 k - 1 \end{array} \right.. \\ \end{array}


Answer:


u(t,x)=2Lπ+k=18kLπ(4k21)e4a2π2k2L2tcos2πkxL.u (t, x) = \frac {2 L}{\pi} + \sum_ {k = 1} ^ {\infty} \frac {8 k L}{\pi (4 k ^ {2} - 1)} e ^ {- \frac {4 a ^ {2} \pi^ {2} k ^ {2}}{L ^ {2}} t} \cos \frac {2 \pi k x}{L}.


Answer provided by https://www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS