The correct option is
A y=t−1+ce−t where
t=tanx.Given,
cos2xdydx+y=tanx⇒dydx+ysec2x=tanxsec2x ....(1)
Here P=sec2x⇒∫PdP=∫sec2xdx=tanx
∴I.F.=etanx
Multiplying (1) by I.F. we get
etanxdydx+etanxysec2x=etanxtanxsec2x
Integrating both sides, we get
yetanx=∫etanx.tanxsec2xdx
Put tanx=t⇒sec2xdx=dt
∴yet=∫tetdt=et(t−1)+c
⇒y=t−1+ce−t where t=tanx