I am trying to solve the following integral: $$\int \dfrac{\cos^3(x)}{\sin^2(x)+\sin^4(x)}\,dx.$$
After many attempts (used even Wolfram-alpha it suggested I should multiply by $\sec^4(x)$ and pull a magic $u$ substitution...) I wrote $\cos^3(x) = \cos x (1-\sin^2(x))$ and from there substituted the $\sin$ and did partial fractions etc.
But I wonder what if the power of $\cos$ is even? For example let's say you have the integral: $$\int \dfrac{\cos^4(x)}{\sin^2(x)+\sin^4(x)}dx$$
Replace $\cos^2x$ by $(1+\cos2x)/2$, and $\sin^2x$ by $(1-\cos2x)/2$.