Q2E

Question

In Problems 1–8, find a general solution to the differential equation using the method of variation of parameters. y''+y=sect

Step-by-Step Solution

Verified
Answer

The general solution is  y(t)=c1cost+c2sint+(ln|cost|)cost+tsint

1Step 1: Find a particular solution.

The homogenous equation is r2+1=0.

 

Two independent solutions are r=±i.

 

y1=cost,y2=sint

 

Then yh(t)=c1cost+c2sint

 

The particular solution is  yp=v1(t)cost+v2(t)sint

2Step 2: evaluate v 1 and v 2 .

Here yp=v1(t)cost+v2(t)sint

 

And referring to (9) and solve the system then

  v1'cost+v2'sint=0-v1'sint+v2'cost=fa-v1'sint+v2'cost=sect




3Step 3: Find v 1 ' and v 1 .

v1'=-f(t)y2(t)a[y1(t)y'2(t)-y'1(t)y2(t)]=-sect.sint1[-cos2t.-sin2t]=-sect.sint[-cos2t-sin2t]=tant


Now integrating this.

v1(t)=-tantdt      =ln|cost|+C

4Step 4: Determine v 2 ' and v 2 .

v2'=f(t)y1(t)a[y1(t)y'2(t)-y'1(t)y2(t)]=sect.cost1[cos2t+sin2t]=1


Integrate this.

v2(t)=1dt       =t+C


Thus particular solution is

yp=(ln|cost|+C)cost+(t+C)sintyp=(ln|cost|)cost+tsint


Thus, general solution is:

y(t)=yh(t)+yp(t)y(t)=c1cost+c2sint+(ln|cost|)cost+tsint