If we substitute $cos^{-1}(x)$ with $z$ then,corresponding values of $x=1$ are $z=0,2\pi,4\pi...$ And correspond values of $x=0$ are $z=\pi/2,3\pi/2,5\pi/2...$
Now if for $x$ belongs to $[0,1]$ corresponding value is taken $z$ belongs to $[\pi/2,0]$ then the value of integral comes out to be $(\pi^2)/8$ but for $z$ belongs to $[5\pi/2,2\pi]$ the value of integral comes out to be $9(\pi^2)/8$
Which interval should be taken?
I apologise for stating anything wrong if I have done any.
Edit: previously the question was written about {cos^-1(x)}^2 by mistake