We will solve the problem in next full description
1) Differential equation
ut=c2uxx 0<x<l. t>0
2) Boundary conditions (zero conditions for example)
u(0,t)=0, u(l,t)=0;
3) Initial condition
u(x,0)=ϕ(x),0<x<l
Solution:
Let u(x,y)=X(x)T(t) or have separeted variables.
Inserting this form in differential equation we have:
X(x)T′(t)=c2T(t)X′′(x)
Dividing both paths by c2X(x)T(t) we have
c21⋅T(t)T′(t)=X(x)X′′(x)
In this equation left part depend on t bur right part depend on x therefore both part are equal some constant which may be denoted as -λ
Thus we have the system:
x={T′+λc2T(t)=0X′′(x)+λ⋅X(x)=0
Let we consider second eqution
X′′(x)+λ⋅X(x)=0
Boundary conditions at x=0 and x=l take the form:
X(0)=X(l)=0.
1) λ<0
General solution of ode is X(x)=C1e−−λx+C2eλx
Then X(0)=C1+C2=0 ,C2=−C1
Therefore X(x)=C⋅(e−−λx−e−λx)
Condition X(l)=0 implies
C⋅(e−−λl−e−λl)=0 and hence C=0, therefore X(x)≡0
but we need nontrival solution hence case λ<0 is impossible, case λ=0 is impossible too with similar argues, typical case is λ>0
In this case X(x)=C1sin(λx)+C2cos(λx)
X(0)= C2=0=> X(x)=Csin(λx)
X(l)=0=>sin(λl)=0=>λl=π⋅n.n>0
λn=(lπ⋅n)2 and Xn(x)=sin(lπ⋅n⋅x)
For this λn an equation T′+λc2T(t)=0 has solution
Tn(t)=e−λn⋅c2⋅t and u+n(x,t)=Tn(t)Xn(x)=e−λnc2tsin(lπnx)
After that we search solution in the form
∑n=1∞Cne−λnc2tsin(lπnx) for initial condition to satisfy.
Insertinf t=0 we have
∑n=1∞Cnsin(lπnx)=ϕ(x),0<x<l
Then Cn=l2∫0lϕ(x)sinlπnzdz -Fourier coefficients. With such coefficients solution of the problem is:
∑n=1∞Cne−λnc2tsin(lπnx)
Comments