I'm interested in the following problem:
Evaluate the indefinite integral$$I=\int\frac{\sin(x)+\cos(x)}{\sin^4(x)+\cos^2(x)}~dx$$
Here's what I did:
We note that $$I = \int\frac{\sin(x)}{\sin^4(x)+\cos^2(x)}~dx+\int\frac{\cos(x)}{\sin^4(x)+\cos^2(x)}~dx$$Now we evaluate each part separately. Let $\cos(x)=u$ and thus, $$I_1:=\int\frac{\sin(x)}{\sin^4(x)+\cos^2(x)}~dx=\int\frac{-du}{(1-u^2)^2+u^2}=-\int\frac{du}{1+u^4-u^2}$$For the second part, we substitute $\sin(x)=v$ and so, $$I_2:=\int\frac{\cos(x)}{\sin^4(x)+\cos^2(x)}~dx = \int\frac{dv}{v^4+1-v^2}=\int\frac{du}{u^4+1-u^2}$$ Now as, $I=I_1+I_2$, we conclude $$I=\int 0~ du = \text{Constant}$$However, we get a different answer by WolframAlpha.
So my question where am I wrong in above process?
Any help will be highly appreciated.