Over the complex numbers, the polynomial factorization gives the partial fraction decomposition
Multiplication by and comparison of polynomial coefficients give and . Hence
Multiply the partial fraction decomposition by to obtain a polynomial identity:
At , this gives . Comparing the coefficients of then gives , so
The remaining coefficients agree: and . The original rational identity is understood away from its poles and .
Use integration by parts with and . This gives the antiderivative
Evaluating at the two bounds, with , yields
The double-angle formula gives . Setting reduces the equation to . On , the sine is nonnegative, so only is allowed. Therefore

There are unlisted articles, also show them or only show them.