I am unable to find the definite integral for the given function.
$$\int_0^{\pi/2} x^2\csc^2(x)dx$$
I tried integrating by parts and approaching it like an indefinite integral. But I am convinced that the problem involves some methods of definite integrals.
Although the indefinite integral of $x^2\csc^2x$ is not elementary, its definite integration still is. First, integrate-by-parts
$$\int_0^{\pi/2} x^2\csc^2x\>dx=-\int_0^{\pi/2} x^2d(\cot x)dx =2\int_0^{\pi/2}x\cot x \>dx$$ $$=2\int_0^{\pi/2}xd(\ln \sin x)=-2\int_0^{\pi/2}\ln \sin x\> dx=-2J\tag 1$$
where
$$J=\int_0^{\pi/4}\ln \sin x dx+\int_{\pi/4}^{\pi/2}\ln \sin x dx =\int_0^{\pi/4}(\ln \sin x + \ln\cos x)dx$$ $$=\int_0^{\pi/4}\ln(\frac12\sin2 x )dx =-\frac\pi4 \ln2 + \frac12\int_0^{\pi/2}\ln\sin t dt = -\frac\pi4 \ln2 + \frac12J$$
Thus, $J=-\frac\pi2\ln2$. Substitute $J$ into (1) to get
$$\int_0^{\pi/2} x^2\csc^2x\>dx=\pi\ln2$$