Given:
xy+y2=tanx+y
Differentiating both sides with respect to x, we have:
dxd(xy)+dxd(y2)=dxd(tanx)+dxdy
Applying the product rule:
xdxdy+y+2ydxdy=sec2x+dxdy
Simplifying:
xdxdy+y+2ydxdy=sec2x+dxdy
Rearranging terms:
(x+2y−1)dxdy=sec2x−y
Thus:
dxdy=x+2y−1sec2x−y