Using the variable separable method.
Let u(x,t) = X(x)T(t)
Then, the given differential equation becomes
X(x)T′′(t)=c2X′′(x)T(t)
So we have that
c2T1dt2d2T=X1dx2d2X
Using the information that
u(0,t)=0=u(1,t)
We have that the general solution is of the form
u(x,t)=∑n=1∞[Ancos(nπc)t+Bnsin(nπc)t][sin(nπ)x]
u(x,0)=∑n=1∞Ansin(nπ)x=2x(1−x)
ut(x,0)=∑n=1∞Bnnπcsin(nπ)x=0
With
An=2∫012x(1−x)sin(nπ)xdx
And
Bn=nπc2∫010sin(nπ)xdx=0
We evaluate the integral
∫01(2x−2x2)sin(nπ)xdx=
[(2x−2x2)(nπ−1cosnπx)]01+[(2−4x)((nπ)21sinnπx)]01
+(nπ)24∫01sin(nπ)xdx
=(nπ)34[(−1)n+1+1]
Hence,
An=(nπ)38[(−1)n+1+1]
But since the value of Bn=0
We have that the solution with respect to the given conditions becomes
u(x,t)=∑n=1∞Ancos(nπc)tsin(nπ)x
where
An=(nπ)38[(−1)n+1+1]
Comments