Let $n \in \{2,3,\dots\}$ and $\alpha \in (0,1)$ I wish to compute the following integral: $$ \int \frac{1}{-x + \alpha x^n + \frac{\alpha}{2} n (1-x) x^{n-1}}dx. $$ When computing it with Mathematica, I get no result for general $n$ and when I fix $n$ to be some specific value, I get nasty expressions like, for example for $n=5$.
I was wondering if there is some trick to compute the integral for general $n$ as the integral does not look that complex.
This integral comes up in the context of a differential equation:
$x' = -x + \alpha x^n + \frac{\alpha}{2} n(1-x)x^{n-1},$
which I attempt to solve analytically. I have solved it numerically this is not a problem. For the analytical solution I have used WA to obtain an expression for this integral but the expression it gives is not something I can use to find a closed formula for $x$.
Wolfram Alpha works here with the expansion into partial fractions ( https://en.wikipedia.org/wiki/Partial_fraction_decomposition , sections: “Application to symbolic integration” and "Procedure"), which is the standard method for such a problem (= Polynomial in the denominator) .
The solution for $\,n=2\,$ is $\,\displaystyle \frac{\ln x}{\alpha -1} + constant$ .
The solution for $\,n>2\,$ is:
$$ \int\frac{dx}{-x+ \alpha x^n+\frac{1}{2}\alpha n(1-x)x^{n-1}} =$$ $$= \frac{1}{n-2}\sum\limits_{\{\omega: (n-2) \alpha \omega^{n-1}-n\alpha \omega^{n-2}+2=0\}}\frac{-n\ln(x-\omega)+(n-2)\omega\ln(x-\omega)}{(n-1)\omega-n} -\ln x + constant$$