Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

In Problems 31-34 proceed as in Example 6 to find a solution of the initial-value problem with the given piecewise-defined forcing function.

34. y''+y=f(x),y(0)=0,y'(0)=1, where f(x)={0,x<0cosx,0x4π0,x>4π

Short Answer

Expert verified

y=sinx+0,x<012xsinx,0x4π2πsinx,x>4π

Step by step solution

01

To find the solutions of the corresponding homogeneous differential equation

We have the second order differential equation

y''+y=0,x<0cosx,0x4π0,x>4π

as the form

g(x)y''+p(x)y'+q(x)y=f(x)

with the initial conditions

y(0)=0andy'(0)=1

and we have to get its solution as the following technique :

First, we have to find the solutions of the corresponding homogeneous differential equation

y''+y=0 ……. (1)

By assuming that y=emxis a solution for this homogeneous differential equation, then follow then differentiate this assumption with respect to, then we have

y'=memxy''=m2emx …… (2)

After that, substitute with y=emxand equation (2) into the differential equation (1), then we obtain

m2emx+emx=0m2+1emx=0

Sincexmcannot be equal 0, the we have

m2+1=0

Then the roots are

m1,2=±i

Which are conjugate complex.

Then we can obtain the solution of the corresponding homogeneous differential equation as

yc=k1cosx+k2sinx ….. (a)

We have to apply the initial condition of the given differential equation as the following:

We have to apply the point(x,y)=(0,0)into equation, then we have

0=c1cos(0)+c2sin(0)c1=0 …… (g)

After that, we have to take the first derivative for the general solution as

Then apply the point into this first derivative function as

1=-c1sin0+c2cos0c2=1 …… (h)

Then, substitute with and shown in equations and into equation, then can we obtain the solution of the homogeneous D.E as

yh=sinx ……. (3)

02

To find the particular solution yp(x) of the differential equation as the following technique:

Second, now we have to find the particular solution yp(x)of the given differential equation as the following technique:

Since we have y1=cosxandy2=sinx, then we can obtain the wronskian Wy1,y2as

W(cosx,sinx)=y1y2y1'y2'=cosxsinx-sinxcosx=(cosx)×(cosx)-(sinx)×(-sinx)=cos2x+sin2x=1

W(cosx,sinx)=y1y2y1'y2'=cosxsinx-sinxcosx=(cosx)×(cosx)-(sinx)×(-sinx)=cos2x+sin2x=1

03

To find the Green’s function for the given equation

After that, we have to find the Green's function for the given differential equation as

G(x,t)=y1(t)y2(x)-y1(x)y2(t)W(t)=cost×sinx-cosx×sint1=sinxcost-cosxsint

Now since we have two different intervals for the particular solution, then we have to obtain ityp(x)as the following:

For the first interval,, we have, then we can obtain its particular solution as

For the second interval, x<0, we have f(t)=0, then we can obtain its particular solution yp1(x)as

yp1(x)=x0xG(x,t)f(t)dt=0x(sinxcost-cosxsint)(0)dt=0

For the second interval, 0x4π, we have, f(t)=costthen we can obtain its particular solution yp2(x)as

yp2(x)=x0xG(x,t)f(t)dt=0x(sinxcost-cosxsint)(cost)dt=sinx0xcos2tdt-cosx0xsintcostdt=sinx0x12+12cos2tdt-cosx0xsintcostdt=sinx12t+14sin2t0x-cosx12sin2t0x=sinx12t+14(2sintcost)0x-cosx12sin2t0x=sinx12x+12sinxcosx-(0)2cosx12sin2x-(0)=12xsinx+12sin2xcosx-12sin2xcosx=12xsinx

For the third interval, x<3π, we have, f(t)=0then we can obtain its particular solution yp1(x)as

yp3(x)=x0πG(x,t)f(t)dt=04π(sinxcost-cosxsint)(cost)dt-4πx(sinxcost-cosxsint)(0)dt=04π(sinxcost-cosxsint)(10)dt-0=sinx12t+14(2sintcost)04π-cosx12sin2t04π=sinx124π+12sin4πcos4π-(0)-cosx12sin24π-(0)=sinx[(2π+0)-(0)]-cosx[(0)-(0)]=2πsinx

04

Final proof

Then we can obtain the particular solution of the given differential equation as

yp(x)=0x<012xsinx,0x4π2πsinx,x>4π ……. (4)

Then from (3) and (4), we can obtain the solution of the given differential equation as

y=yh+yp=sinx+0x<012xsinx,0x4π2πsinx,x>4π

The result is

y=sinx+0x<012xsinx,0x4π2πsinx,x>4π

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