If y = y x is the solution of the differential equation, d y d x + 2 y tan x = sin x , y π 3 = 0 , then…

If y=yx is the solution of the differential equation, dydx+2ytanx=sinx,yπ3=0, then the maximum value of the function yx over R is equal to :
  1. 8
  2. 12
  3. -154
  4. 18

Solution

dydx+2ytanx=sinx

I.F.=e2tanxdx=e2lnsecx

I.F.=sec2x

y.sec2x=sinx.sec2xdx+C

y.sec2x=secxtanxdx+C

y.sec2x=secx+C

x=π3;y=0

C=-2

y=secx-2sec2x=cosx-2cos2x

Let cosx=t, -1t1

y=t-2t2dydt=1-4t=0t=14

Second-order derivative is negative

 max=14-18=2-18=18

Asked in: JEE Main 2021 (16 Mar Shift 1)

Practice more Differential Equations questions on Aicharya