After looking at my working I found a big brain substitution:
\cos{x}=\frac{u}{\sqrt{1-u^2}}
Which gets you straight to:
\int \frac{1}{(1-2u^2)(u^2-1)} du so you can go partial fractions straight away.
We can use the divide by x^2 on the top and bottom trick:
\int \frac{x^2-1}{\left(x^2+1\right)\sqrt{x^4+1}}dx
I=\int \frac{1-\frac{1}{x^2}}{\left(x+\frac{1}{x}\right)\sqrt{\frac{x^4+1}{x^2}}}dx
I=\int \frac{1-\frac{1}{x^2}}{\left(x+\frac{1}{x}\right)\sqrt{(x+\frac{1}{x})^2-2}}dx
Let...
[is it meant to be sin^2{x} or sin^2{3x}? I dont see how you could solve the equation in it's current state (I tried product to sum, then triple angle identity but thats so grindy).
\frac{\cos{2x}-1}{x^3-x^2}=\frac{1-2\sin^2{x}-1}{x^3-x^2}=\frac{-2\sin^2{x}}{x^3-x^2}=\frac{-2\sin^2{x}}{x^3}+\frac{2\sin^2{x}}{x^2}
The first limit approaches zero since its basically the limit of \frac{1}{x} and the second limit approaches 2
Edit: dumb sign mistake which is fixed.