Question #66341

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 66341 - 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)

We look for a specific type of solution; namely, a product of a function of tt only and a function of xx only:

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

We substitute this function vv 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 this equality depends only upon tt. The right-hand side is independent of tt. It follows that

X(x)X(x)=λ,\frac{X^{\prime\prime}(x)}{X(x)}=-\lambda,

where λ\lambda is a constant. Then

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

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) (4)

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), (5)

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

respectively. Since we wish to have ux=0u_{x}=0 for x=0x=0 and x=Lx=L, we only consider those solutions of the last equation which also satisfy conditions (6).

This homogeneous problem always has the trivial solution X=0X=0, but this is of no use to us. We are interested in cases where this is not the only solution. It is possible for non-negative λ\lambda only.

If $\lambda=0$, then there exists a nonzero solution $X_{0}=1$ of (5), (6). For $\lambda>0$ we have $X(x)=C_{1}\cos\sqrt{\lambda}x+C_{2}\sin\sqrt{\lambda}x$. Substituting $X$ into (6) 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 (4) 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}\,dx,\qquad A_{n}=\frac{2}{L}\int_{0}^{L}\sin\frac{\pi x}{L}\cos\frac{\pi nx}{L}\,dx.

A0=0LsinπxLdx=Lπ0LsinπxLd(πxL)=LπcosπxL0L=2Lπ.A_{0}=\int_{0}^{L}\sin\frac{\pi x}{L}dx=\frac{L}{\pi}\int_{0}^{L}\sin\frac{\pi x}{L}d\left(\frac{\pi x}{L}\right)=-\frac{L}{\pi}\left.\cos\frac{\pi x}{L}\right|_{0}^{L}=\frac{2L}{\pi}.

3


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