The solution of cosy+(x siny −1)dydx=0 is xsecy = Ptany +c then ' P′ is
dxdy+xtany=secy I.F. =e∫ tany =elogsecy= secy Solution of the differential equation is ysecy =∫sec2 ydy = tany +c∴P=1