Find a general solution to the differential equation.

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

Short Answer

Expert verified

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

Step by step solution

01

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

02

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

03

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.

04

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,

role="math" localid="1654943684164" A-B=1-A-B=0  -2B=1  ​         B=-12¯

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

role="math" localid="1654943962777" A--12=1A=12

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

role="math" localid="1654944097396" yp(t)=ex(Acosx+Bsinx)yp(t)=ex12cosx-12sinx

Therefore, the particular solution of equation (1),

yp(t)=ex12cosx-12sinx

05

Conclusion

Therefore, the general solution is,

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

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free