I am working on a kind of tricky integral problem that I found online.
$$\int \frac{\cos^{2018}(x)}{\sin^{2018}(x)+\cos^{2018}(x)}dx$$
I tried substitution which changed it to
$$ \cos^{2018}(x) \ \to \sin^{2018}\left(x+\frac\pi2\right) $$
but after this substitution, I am quite uncertain how should I deal with $$\int \frac{\sin^{2018}\left(x+\frac\pi2\right)}{\sin^{2018}(x)+\sin^{2018}\left(x+\frac\pi2\right)}dx$$
I tried every trig identity that I could possibly use in order to sum the integral but I am still struggling with this. How should I approach to solve this integral? It would be very nice if anyone could help with this. Thanks.