If y = y ( x ) is the solution of the differential equation d y d x = ( t a n x - y ) s e c 2 x , x ∈…

If y=y(x) is the solution of the differential equation dydx=(tanx-y)sec2x , x-π2, π2 , such that y0=0, then y-π4 is equal to:
  1. 1e-2
  2. 2+1e
  3. e-2
  4. 12-e

Solution

The given differential equation can be written as
dydx+ysec2x=tanx.sec2x
Integrating factor =esec2xdx=etanx
Hence, solution of given differential equation,
y.etanx=tanx.sec2x.etanxdx
y.etanx=tanx.etanx-sec2x.etanxdx   (using integration by parts)

y.etanx=tanx.etanx-etanx+c

Given, y0=0c=1

Solution of given differential is

y.etanx=tanx.etanx-etanx+1

Hence, y-π4=-1e-1-e-1+1e-1

 y-π4=e-2

Asked in: JEE Main 2019 (10 Apr Shift 1)

Practice more Differential Equations questions on Aicharya