I have an equation of the form,
$$ \frac{dy}{dx} = A(x) + B(x) \sin^2(y)$$
How would I go about solving this? Obviously were $A(x) = 0$ then this would be separable and all would be OK, however the presence of the $A(x)$ term is confusing me.
Thanks in advance for any guidance
Divide both sides by $\sin^2(y)$ to get
$$\csc^2(y)\frac{\mathrm dy}{\mathrm dx}=A(x)\csc^2(y)+B(x)$$
Apply a Pythagorean identity:
$$\csc^2(y)\frac{\mathrm dy}{\mathrm dx}=A(x)\cot^2(y)+A(x)+B(x)$$
Let $u=\cot(y)$ to get
$$-\frac{\mathrm du}{\mathrm dx}=A(x)u^2+A(x)+B(x)$$
which is a Riccati equation.