If d y d x + y tan x = sin 2 x and y 0 = 1 , then y π is equal to

If dydx+ytanx=sin2x and y0=1, then yπ is equal to
  1. -1
  2. 5
  3. 1
  4. -5

Solution

The given differential equation dydx+ytanx=sin2x is linear differential equation of the form 

dydx+Pxy=Qx with P(x)=tanxQ(x)=sin2x

Now, I.F.=ePxdx=etanxdx=elnsecx=secx

And, the solution is yI.F.=QxI.F.dx+c

ysecx=secxsin2xdx+c

ysecx=1cosx2sinxcosxdx+c

ysecx=2sinxdx+c

ysecx=-2cosx+c

Given, y0=1

1·sec0=-2cos0+c

1=-2+c

c=3

ysecx=-2cosx+3

Now, at x=π

yπsecπ=-2cosπ+3

yπ-1=-2-1+3

yπ=-5.

Asked in: JEE Main 2014 (19 Apr Online)

Practice more Differential Equations questions on Aicharya