0

How do I get a closed form of $$\int\frac{x^n}{1+x^m}dx$$

Background: There were many times that, when I put an integral of the form: $$\int_{-\infty}^\infty\frac{x^n}{1+x^m}dx$$in Wolfram Alpha, it gives the indefinite integral too. So I wonder if there is a closed form expression for this indefinite integral.

I know that when $n=m-1$ we easily obtain $\frac{1}{m}\ln(1+x^m)+C$, but other than that I don't know how to obtain the general form. Integration by parts would be too tedious.

Kamal Saleh
  • 6,497

1 Answers1

4

The antiderivative can be written in terms of the Lerch Phi function.

$$\frac{x^{n +1} \Phi \! \left(-x^{m}, 1, \frac{n +1}{m}\right)}{m}$$

This can also be written as a hypergeometric function:

$$\frac{x^{n +1} {}_{2}F_{1}\left(1,\frac{n +1}{m};\frac{m +n +1}{m};-x^{m}\right)}{n +1} $$

I think that's the best you can do if you want a "closed form" in general. For particular positive integers $m$ and $n$ you can get an "elementary" (but possibly messy) antiderivative by expanding the integrand in partial fractions.

Robert Israel
  • 448,999