Q20E

Question

Find a general solution to the differential equation.

y''+4y=sinθ-cosθ

Step-by-Step Solution

Verified
Answer

The general solution to the given differential equation is: y=c1cos(2θ)+c2sin(2θ)+13(sinθ-cosθ)

1Step 1: Write the auxiliary equation of the given differential equation.

The differential equation is,

 

y''+4y=sinθ-cosθ                                        ......(1)

 

Write the homogeneous differential equation of the equation (1),

 

y''+4y=0

 

The auxiliary equation for the above equation,

 

m2+4=0

2Step 2: Now find the complementary solution of the given equation is

Solve the auxiliary equation,

m2+4=0m=±2i

 

The roots of the auxiliary equation are, 


 m1=2i,      m2=-2i


 The complementary solution of the given equation is,


 yc=c1cos(2θ)+c2sin(2θ)

3Step 3: Use the method of undetermined coefficients

According to the method of undetermined coefficients, to find a particular solution to the differential equation; 

ay''+by'+cy=Ctmeαtcosβt             orCtmeαtsinβt                     ......(2)



For  β0, use the form

 

yp(x)=ts[(Amtm+...+A1t+A0)eαtcosβt+ts(Bmtm+...+B1t+B0)eαtsinβt]

 

With s = 1 if α+ is a root of the associated auxiliary equation.

 

And s = 0 if  α+ is not a root of the associated auxiliary equation.

4Step 4: Find the particular solution to find a general solution for the equation.

Comparing equations (1) and (2), we get:


M=0 and α=0;β=1

 

Therefore,  α+=i is not a root of the associated auxiliary equation so here s = 0

 

Assume, the particular solution of equation (1),

yp(t)=ts(Amtm+...+A1t+A0)eαxcosβx+ts(Bmtm+...+B1t+B0)eαxsinβxyp(θ)=θ0(A0)e(0)θcos(1)θ+θ0(B0)e(0)θsin(1)θyp(θ)=A0cosθ+B0sinθyp(θ)=Acosθ+Bsinθ                   ......(3)



Now find the first and second derivatives of the above equation,

yp'(θ)=-Asinθ+Bcosθyp''(θ)=-Acosθ-Bsinθ


Substitute the value of  yp(θ) and yp''(θ) the equation (1),


y''+4y=sinθ-cosθ-Acosθ-Bsinθ+4(Acosθ+Bsinθ)=sinθ-cosθ3Acosθ+3Bsinθ=sinθ-cosθ


Comparing all coefficients of the above equation,

3A=-1  A=-133B=1  B=13


Substitute the value of A and B in the equation (3),


yp(θ)=Acosθ+Bsinθyp(θ)=-13cosθ+13sinθyp(θ)=13sinθ-13cosθyp(θ)=13(sinθ-cosθ)



Therefore, the particular solution of equation (1),


yp(θ)=13(sinθ-cosθ)

5Step 5: Conclusion.

Therefore, the general solution is,


y=yc(θ)+yp(θ)y=c1cos(2θ)+c2sin(2θ)+13(sinθ-cosθ)