Q29E

Question

Find the solution to the initial value problem.y''(θ)-y(θ)=sinθ-e2θ;     y(0)=1,    y'(0)=-1

Step-by-Step Solution

Verified
Answer

The solution to the initial value problem is y=34eθ+712e-θ-12sinθ-13e2θ.

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

The differential equation is,

 y''(θ)-y(θ)=sinθ-e2θ                     ......(1)


 

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

 y''(θ)-y(θ)=0


 

The auxiliary equation for the above equation,

 m2-1=0m=±1

2Step 2: Find the complementary solution of the given equation.

The root of an auxiliary equation is, 

 

m1=1,   m2=-1

 

The complementary solution of the given equation is,

 

yc=c1eθ+c2e-θ

3Step 3: Now find the particular solution to find a general solution for the equation.

Assume, the particular solution of equation (1),

 

yp(θ)=Asinθ+Bcosθ+Ce2θ               ......(2)

 

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

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


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

y''(θ)-y(θ)=sinθ-e2θ-Asinθ-Bcosθ+4Ce2θ-[Asinθ+Bcosθ+Ce2θ]=sinθ-e2θ-2Asinθ-2Bcosθ+3Ce2θ=sinθ-e2θ


Comparing all coefficients of the above equation,

  -2A=1   A=-12-2B=0   B=03C=-1   C=-13


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

 yp(θ)=-12sinθ+(0)cosθ-13e2θyp(θ)=-12sinθ-13e2θ



4Step 4: The general solution and use the given initial condition.

Therefore, the general solution is,

y=yc(θ)+yp(θ)y=c1eθ+c2e-θ-12sinθ-13e2θ                     ......(3)


Given the initial condition,

 

y(0)=1,    y'(0)=-1

 

Substitute the value of y = 1 and  θ=0 in the equation (3),

y=c1eθ+c2e-θ-12sinθ-13e2θ1=c1e0+c2e-0-12sin(0)-13e2(0)1=c1+c2-13c1+c2=43                                   ......(4)



Now find the derivative of the equation (3),

y'=c1eθ-c2e-θ-12cosθ-23e2θ


Substitute the value of y’ = -1 and θ=0 in the above equation,

y'=c1eθ-c2e-θ-12cosθ-23e2θ-1=c1e0-c2e-0-12cos(0)-23e2(0)-1=c1-c2-12-23c1-c2=16                                 .....(5)


Solve the equation (4) and (5),

c1+c2=43c1-c2=16       2c1=96          c1=34¯


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

c1+c2=4334+c2=43c2=712


Substitute the value of  c1and c2 in the equation (3),

y=c1eθ+c2e-θ-12sinθ-13e2θy=34eθ+712e-θ-12sinθ-13e2θ


Thus, the solution to the initial value is:


y=34eθ+712e-θ-12sinθ-13e2θ