I've been trying to find the general form of the following integral
$$ I(x;p,q,r,a,b)=\int\frac{x^{p}\ln^{q}(x+a)}{(x+a)^{b}}dx $$ where $a,p,q \in \mathbb{N}\setminus\{0\}$ and $b \in \mathbb{Q}$. Wolfram Alpha is able to solve this for some specific values of $p$ and $q$, i.e $p=2$ and $q=2$.
I'm looking for solutions based on simple functions, like those involved in the original integral: $\ln(x+a)$, powers of $x$ or powers of the fraction $1/(x+a)^{b}$.
Any help woul be very much apreciated.
Thanks in advance.
Using the substitution $x = t - a$, we have $$\eqalign{\int \dfrac{x^p}{(x+a)^b}\; dx &= \int \dfrac{ (t-a)^p}{t^b}\; dt = \sum_{j=0}^p {p \choose j} (-a)^{p-j} \int t^{j-b}\; dt\cr &= \sum_{j=0}^p {p \choose j} (-a)^{p-j} \dfrac{(x+a)^{j+1-b}}{j+1-b} + C} $$ (replacing $(x+a)^{j+1-b}/(j+1-b)$ by $\ln(x+a)$ if $j+1-b = 0$). Now $$\dfrac{\partial^q}{\partial b^q} (x+a)^{-b} = (-1)^q (\ln (x+a))^q(x+a)^{-b}$$ so that $$ \eqalign{\int \dfrac{x^p \ln(x+a)^q}{(x+a)^b}\; dx &= (-1)^q \sum_{j=0}^p {p \choose j} (-a)^{p-j} \dfrac{\partial^q}{\partial b^q} \dfrac{(x+a)^{j+1-b}}{j+1-b} \cr &= (-1)^q \sum_{j=0}^p \sum_{i=0}^q {p \choose j} \dfrac{q!}{i!} (-a)^{p-j} (-1)^i \dfrac{(x+a)^{j+1-b} \ln(x+a)^i}{(j+1-b)^{1+q-i}} + C}$$ This must be modified when $b$ is an integer from $1$ to $p+1$.