Option (B) is correct.
The right side is a function of xy alone, so the equation is homogeneous. Put y=vx, so that dxdy=v+xdxdv:
v+xdxdv=v+tanv⇒xdxdv=tanv
Separate the variables (for tanv=0):
cotvdv=xdx
Integrating, log∣sinv∣=log∣x∣+log∣C∣, so sinv=Cx. Replacing v by xy gives sin(xy)=Cx.
Option (A) is wrong. It comes from integrating cotv as log∣cosv∣ instead of log∣sinv∣. Differentiating cosv=Cx back gives xdxdv=−cotv, which belongs to the different equation dxdy=xy−cot(xy).
Option (C) is wrong. Differentiating tanv=Cx gives sec2vdxdv=C=xtanv, that is xdxdv=sinvcosv. This belongs to dxdy=xy+sin(xy)cos(xy), not to the given equation.
Option (D) is wrong. Differentiating sinv=xC gives xcosvdxdv=−sinv, that is xdxdv=−tanv. The sign is lost, so this solves dxdy=xy−tan(xy).