(it doesn't make sense to have x in the limits when it is the variable you're integrating with respect to...EDIT, if it is pi, then no worries )
the way to handle an integral like this, is to simply expand the numerator, using the binomial theorem if n is large enough to make it useful, and then dividing each term by x. for the first term, the 1/x, the integral would be ln|x|, for the others, use the power rule for integrals:
then apply the fundamental theorem of calculus to deal with the limits on the integral.