Q25E

Question

In Problems 21–26, solve the initial value problem.

 (y2 sin x)dx+(1x-yx)dy,y(π)=1

Step-by-Step Solution

Verified
Answer

The solution is sin x-x cos x=ln y+1y+π-1 .

1Step 1: Evaluate the equation is exact

Here  (y2 sin x)dx+1x-yxdy,y(π)=1

 

The condition for exact is  My=Nx.

M(x,y)=(y2 sin x)N(x,y)=1x-yxMy=2 y sin xNx=y-1x2MyNx

 

 

 This equation is not exact.

2Step 2: Find the solution

But this equation can be separable.

 (y2 sin x)dx+1-yxdy=0(x sin x)dx=y-1y2dy

  

 Integrating on both sides, the result is 

 -x cos x+sin x=ln y+1y+C

 

Therefore, the solution of the differential equation is-x cos x+sin x=ln y+1y+C  

3Step 3: Apply the initial conditions

Apply the initial conditions y(π)=1.

 -π cos π+ sin π=ln 1+11+CC=π-1

 The solutions is 

 .

 -x cos x+sin x=ln y+1y+π-1sin x-x cos x=ln y+1y+π-1

Hence the solution is  sin x-x cos x=ln y+1y+π-1