Solution;
Take the Laplace transform of both the left hand side as;
L[∂t∂u]=sU(x,s)−u(x,0)
And of the right hand side as;
L[∂x2∂2u]=∂x2∂2U(x,s)
We have;
∂x2∂2U(x,s)=sU(x,s)−u(x,0)
From the problem;
u(x,o)=sin(πx)
Substitute;
∂x2∂2U(x,s)−sU(x,s)=−sin(πx)
This is a ODE whose general solution can be written as;
U(x,s)=Uh(x,s)+Up(x,s)
where Uh(x,s) is the general solution of the homogeneous problem obtained as;
m2−s=0
m=−+s
Hence;
Uh(x,s)=c1esx+c2e−sx
and Up(x,s) is any particular solution of the non-homogeneous problem,which is;
Up(x,s)=Acos(πx)+Bsin(πx)
We first use the method of undetermined coefficients to find A and B. To this end we have;
dxdUp(x,s)=−πAsin(πx)+πBcos(πx)
The second derivative;
dx2d2Up(x,s)=−π2Acos(πx)−π2Bcos(πx)
Therefore;
dx2d2Up(x,s)−Up(x,s)=−sin(πx)
By substitution;
(−π2−s)(Acos(πx)+Bsin(πx))=−sin(πx)
From which we conclude that;
−(π2+s)A=0 ; A=0
Also;
−(π2+s)B=−1 ;B=s+π21
Now we have the general solution as;
U(x,s)=c1esx+c2e−sx+s+π21sin(πx)
We note the the Laplace transforms of the boundary conditions give;
u(0,t)=0⟹U(0,s)=0
u(1,t)=0⟹U(1,s)=0
So we have;
U(0,s)=0=c1+c2
U(1,s)=0=c1es+c2e−s
Which gives c1=c2=0 and we have;
U(x,s)=s+π21sin(πx)
To find our solution we apply the inverse Laplace transform;
u(x,t)=sin(πx)L−1[s+π21]
u(x,t)=e−π2tsin(πx)
Comments