Doug C. answered 11/02/18
Math Tutor with Reputation to make difficult concepts understandable
If you use a tool like Wolfram Alpha to solve this when n = 2 or 3, the solution proposed is very complicated. Here are some hints. I think if you multiply the original integrand (numerator and denominator) by csc(n+2)x you can transform the integrand into something like:
∫ csc2x/(csc2x + csc2xcot2x) dx.
That can be transformed into ∫ 1/(1+cot2x) dx (Is that step legitimate, since csc2x at 0 is not defined?). Something to think about.
Finally, with a bit of manipulation: ∫ sin2x dx. From 0 to π/2 that evaluates to π/4. Try the following graph and apply the slider to set n to various values.
https://www.desmos.com/calculator/rxrosty9bv
You still need to determine the antiderivative for sin2x and likely make some observations about what is happening at 0, but this should give you some ideas.