Q19E

Question

Find a general solution to the differential equation.

y''(x)-3y'(x)+2y(x)=exsinx

Step-by-Step Solution

Verified
Answer

The general solution to the differential equation is y=c1ex+c2e2x+12ex(cosx-sinx).

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

The differential equation is,

 

y''(x)-3y'(x)+2y(x)=exsinx                                     ......(1)

 

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

 

y''(x)-3y'(x)+2y(x)=0

 

The auxiliary equation for the above equation,

 

m2-3m+2=0

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

Solve the auxiliary equation,

 m2-3m+2=0m2-2m-m+2=0m(m-2)-1(m-2)=0(m-1)(m-2)=0


 

The roots of the auxiliary equation are, 

 m1=1,   &   m2=2


 

The complementary solution of the given equation is,

yc=c1ex+c2e2x


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 α=1;β=1

 

Therefore, α+=1+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(t)=t0(A0)e(1)xcos(1)x+t0(B0)e(1)xsin(1)xyp(t)=A0excosx+B0exsinxyp(t)=ex(Acosx+Bsinx)                            (3) 


 

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

 yp'(t)=ex(Acosx+Bsinx)+ex(-Asinx+Bcosx)yp'(t)=(B-A)exsinx+(A+B)excosxyp''(t)=(B-A)exsinx+(B-A)excosx+(A+B)excosx-(A+B)exsinxyp''(t)=(-2A)exsinx+(2B)excosx


 

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


y''(x)-3y'(x)+2y(x)=exsinx-(2A)exsinx+(2B)excosx-3[(B-A)exsinx+(A+B)excosx]+2[ex(Acosx+Bsinx)]      =exsinx(A-B)exsinx+(-A-B)excosx=exsinx



Comparing all coefficients of the above equation,

 

A-B=1                    ......(4)-A-B=0

 

Solve the above equations,

      A-B=1 - A-B=0      -2B=1           ​         B=-12¯


Substitute the value of B in the equation (4),

  A--12=1             A=12


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


yp(t)=ex(Acosx+Bsinx)yp(t)=ex12cosx-12sinx


Therefore, the particular solution of equation (1),

yp(t)=ex12cosx-12sinx



5Step 5: Conclusion

Therefore, the general solution is,

y=yc(t)+yp(t)y=c1ex+c2e2x+12ex(cosx-sinx)