Solution:
Concept: After dividing by x, the equation involves only dxdy and xy, so it is homogeneous. We put y=vx; then dxdy=v+xdxdv. The given point has x>0, so we work on x>0.
Step 1 — Make dxdy the subject.
We divide every term by x and move the cosine term to the right.
dxdy=xy−cos2xy
Step 2 — Substitute y=vx.
We replace dxdy by v+xdxdv, and the v terms cancel.
v+xdxdv=v−cos2v
xdxdv=−cos2v
Step 3 — Separate the variables.
We divide by cos2v and by x, using cos2v1=sec2v.
sec2vdv=−xdx
Step 4 — Integrate.
The integral of sec2v is tanv. We write the constant as logc.
tanv=−logx+logc
tanxy=logxc
Step 5 — Use x=1, y=4π.
We substitute. Since tan4π=1, we get logc=1.
1=logc
c=e
Step 6 — Simplify.
We put c=e and use logxe=loge−logx, with loge=1.
tanxy=logxe
tanxy=1−logx
Therefore, the particular solution is tan(xy)=1−logx, for x>0.