Solution:
Concept: In each part we separate the variables and integrate. For (ii) we also need the identity sin3x=3sinx−4sin3x. Rearranged, it gives sin3x=41(3sinx−sin3x).
Step 1 — Part (i): separate the variables.
We move the second term to the right, then multiply by sinycosydx (with siny=0).
dxdy=−cosycosxsiny
sinycosydy=−cosxdx
Step 2 — Part (i): integrate.
The left side is coty, whose integral is log∣siny∣. We write the constant as logc.
∫cotydy=−∫cosxdx
log∣siny∣=−sinx+logc
Step 3 — Part (i): remove the logarithm.
We move logc to the left and take the exponential of both sides.
logc∣siny∣=−sinx
siny=ce−sinx
Here the sign from the modulus is taken into the arbitrary constant c.
Step 4 — Part (ii): separate the variables.
We move cosecydx to the right and divide by cosec3xcosecy. Since cosecθ1=sinθ, this gives sines on both sides.
cosec3xdy=cosecydx
sinydy=sin3xdx
Step 5 — Part (ii): rewrite sin3x.
We use sin3x=41(3sinx−sin3x), because a cube of a sine has no direct standard integral.
∫sinydy=41∫(3sinx−sin3x)dx
Step 6 — Part (ii): integrate.
We use ∫sinkxdx=−kcoskx and write the constant as −c.
−cosy=41(−3cosx+3cos3x)−c
Multiplying by −1 gives the answer.
cosy=41(3cosx−3cos3x)+c
Therefore, (i) siny=ce−sinx; (ii) cosy=41(3cosx−3cos3x)+c, where c is an arbitrary constant.