Hi there I've been having a problem with this differential equation. I have the answer y = c(sin x)^2 for part (a) but it doesn't seem right. I'd appreciate any help with ether part.

(a) Given the differential equation

(sin x)(dy/dx) - 2ycos x = 0,

find the general solution, expressing y explicitly in terms of x.

(b) Find the general solution of

(sin x)(dy/dx) - 2ycos x = 3(sin x)^3.