How do you compute $\int_{0}^{\pi}\sqrt{\sin^{-1}(\cos(x))\tan^{-1}(\cot(x))}dx$ I tried using the identity of $\frac{\pi}{2}-x$ and doing substitutions like $u=\cos(x)$, but I keep ending up with $0$.
Is there a concept I'm missing?

$$\int_{0}^{\pi}\sqrt{\sin^{-1}(\cos(x))\tan^{-1}(\cot(x))}dx$$
$$= \int_{0}^{\pi} \sqrt{\left(\frac{\pi}{2} - x\right)^2} dx$$
$$= \int_{0}^{\pi} \left|\frac{\pi}{2} - x\right| dx$$
$$= \int_{0}^{\pi/2} \left(\frac{\pi}{2} - x\right) ~dx + \int_{\pi/2}^\pi \left(x-\frac{\pi}{2}\right) ~dx$$
$$= \left[\frac{\pi}{2}x - \frac{1}{2}x^2\right]_0^{\pi/2} + \left[\frac{1}{2}x^2 - \frac{\pi}{2}x \right]_{\pi/2}^{\pi}$$
$$=\left(\frac{\pi^2}{4} - \frac{\pi^2}{8}\right) + \left(\frac{\pi^2}{2} - \frac{\pi^2}{2}\right) - \left( \frac{\pi^2}{8} - \frac{\pi^2}{4} \right)$$
$$=\frac{\pi^2}{4}$$
If you're getting 0, you may have forgotten the absolute value in going from $\sqrt{\left(\frac{\pi}{2} - x\right)^2}$ to $\left|\frac{\pi}{2} - x\right|$.
