Solution:
Concept: In each part we divide by the product that mixes x and y so the variables separate, and then integrate. Half-angle identities, 1−cosθ=2sin22θ and 1+cosθ=2cos22θ, turn (ii) into standard integrals.
Step 1 — Part (i): separate the variables.
We divide the equation by cosxsiny (with cosx=0, siny=0) and move the x-term to the right.
sinycosydy=−cosxsinxdx
cotydy=−tanxdx
Step 2 — Part (i): integrate.
We use ∫cotydy=log∣siny∣ and ∫tanxdx=−log∣cosx∣, and write the constant as logc.
log∣siny∣=log∣cosx∣+logc
siny=ccosx
Step 3 — Part (ii): separate and use half-angle identities.
We divide by (1+cosx)(1−cosy), then rewrite both denominators with half angles.
1−cosydy=1+cosxdx
2sin22ydy=2cos22xdx
21cosec22ydy=21sec22xdx
Step 4 — Part (ii): integrate.
We use ∫cosec22ydy=−2cot2y and ∫sec22xdx=2tan2x. The factors 21 and 2 cancel.
−cot2y=tan2x+c
Step 5 — Part (iii): separate.
We multiply both sides by sin2y1+sin2ydx, so the y-terms are with dy.
sin2y1+sin2ydy=cos2x1+cos2xdx
Each fraction splits into two terms.
(cosec2y+1)dy=(sec2x+1)dx
Step 6 — Part (iii): integrate.
We use ∫cosec2ydy=−coty and ∫sec2xdx=tanx, and add one arbitrary constant c.
−coty+y=tanx+x+c
y−coty=x+tanx+c
Therefore, (i) siny=ccosx; (ii) −cot2y=tan2x+c; (iii) y−coty=x+tanx+c, where c is an arbitrary constant.