Thank you all for replying!! I justed wanted to know if there is an another way of integrating this function....because at first i did not see that ...so is there another way ON TOP of the methods already seen here? Because in a test situation i may not have seen that but if there is another method that i can learn to do these types of questions with, then i can impoly that method instead.
Do you need another method? Those partial fractions are already straightforward enough to integrate. The trick for this integral, I think, is how to arrive at these partial fractions – and I believe this is down to experience. The more of such problems you do, the quicker you’ll be able to handle similar ones in future.
Anyway, the following equations can be handy:
(ii) if n is odd
(iii) if n is even