Solution;
(2x+tany)dx+(xāx2tany)dy=0...(1)
The equation is in the form;
Mdx+Ndy=0 ....(2)
Comparing (1) and (2);
M=2x+tany
N=xāx2tany
āyāMā=sec2y
āxāNā=1ā2xtany
Therefore;
Using cos(y) as the integrating factor makes (1) exact.
Multiple (1) with the I.F;
(2xcosy+siny)dx+(xcosyāx2siny)dy=0.....(3)A solution of (3) will be;
ā«y=constantādx+ā« (Terms in N without x)dy=C
ā«(2xcosy+siny)dx+ā«0=C
cosyā«2xdx+sinyā«1dx=C
x2cosy+xsiny=C