\(\int \frac {(a+\frac {b}{x})^n}{x (c+d x)} \, dx\) [287]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [F]
Fricas [F]
Sympy [F]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 20, antiderivative size = 54 \[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x (c+d x)} \, dx=\frac {\left (a+\frac {b}{x}\right )^{1+n} \operatorname {Hypergeometric2F1}\left (1,1+n,2+n,\frac {c \left (a+\frac {b}{x}\right )}{a c-b d}\right )}{(a c-b d) (1+n)} \] Output:

(a+b/x)^(1+n)*hypergeom([1, 1+n],[2+n],c*(a+b/x)/(a*c-b*d))/(a*c-b*d)/(1+n 
)
 

Mathematica [A] (verified)

Time = 0.14 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.00 \[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x (c+d x)} \, dx=\frac {\left (a+\frac {b}{x}\right )^{1+n} \operatorname {Hypergeometric2F1}\left (1,1+n,2+n,\frac {c \left (a+\frac {b}{x}\right )}{a c-b d}\right )}{(a c-b d) (1+n)} \] Input:

Integrate[(a + b/x)^n/(x*(c + d*x)),x]
 

Output:

((a + b/x)^(1 + n)*Hypergeometric2F1[1, 1 + n, 2 + n, (c*(a + b/x))/(a*c - 
 b*d)])/((a*c - b*d)*(1 + n))
 

Rubi [A] (verified)

Time = 0.33 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {1016, 946, 78}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\left (a+\frac {b}{x}\right )^n}{x (c+d x)} \, dx\)

\(\Big \downarrow \) 1016

\(\displaystyle \int \frac {\left (a+\frac {b}{x}\right )^n}{x^2 \left (\frac {c}{x}+d\right )}dx\)

\(\Big \downarrow \) 946

\(\displaystyle -\int \frac {\left (a+\frac {b}{x}\right )^n}{\frac {c}{x}+d}d\frac {1}{x}\)

\(\Big \downarrow \) 78

\(\displaystyle \frac {\left (a+\frac {b}{x}\right )^{n+1} \operatorname {Hypergeometric2F1}\left (1,n+1,n+2,\frac {c \left (a+\frac {b}{x}\right )}{a c-b d}\right )}{(n+1) (a c-b d)}\)

Input:

Int[(a + b/x)^n/(x*(c + d*x)),x]
 

Output:

((a + b/x)^(1 + n)*Hypergeometric2F1[1, 1 + n, 2 + n, (c*(a + b/x))/(a*c - 
 b*d)])/((a*c - b*d)*(1 + n))
 

Defintions of rubi rules used

rule 78
Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(b 
*c - a*d)^n*((a + b*x)^(m + 1)/(b^(n + 1)*(m + 1)))*Hypergeometric2F1[-n, m 
 + 1, m + 2, (-d)*((a + b*x)/(b*c - a*d))], x] /; FreeQ[{a, b, c, d, m}, x] 
 &&  !IntegerQ[m] && IntegerQ[n]
 

rule 946
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_. 
), x_Symbol] :> Simp[1/n   Subst[Int[(a + b*x)^p*(c + d*x)^q, x], x, x^n], 
x] /; FreeQ[{a, b, c, d, m, n, p, q}, x] && NeQ[b*c - a*d, 0] && EqQ[m - n 
+ 1, 0]
 

rule 1016
Int[(x_)^(m_.)*((c_) + (d_.)*(x_)^(mn_.))^(q_.)*((a_) + (b_.)*(x_)^(n_.))^( 
p_.), x_Symbol] :> Int[x^(m - n*q)*(a + b*x^n)^p*(d + c*x^n)^q, x] /; FreeQ 
[{a, b, c, d, m, n, p}, x] && EqQ[mn, -n] && IntegerQ[q] && (PosQ[n] ||  !I 
ntegerQ[p])
 
Maple [F]

\[\int \frac {\left (a +\frac {b}{x}\right )^{n}}{x \left (d x +c \right )}d x\]

Input:

int((a+b/x)^n/x/(d*x+c),x)
 

Output:

int((a+b/x)^n/x/(d*x+c),x)
 

Fricas [F]

\[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x (c+d x)} \, dx=\int { \frac {{\left (a + \frac {b}{x}\right )}^{n}}{{\left (d x + c\right )} x} \,d x } \] Input:

integrate((a+b/x)^n/x/(d*x+c),x, algorithm="fricas")
 

Output:

integral(((a*x + b)/x)^n/(d*x^2 + c*x), x)
 

Sympy [F]

\[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x (c+d x)} \, dx=\int \frac {\left (a + \frac {b}{x}\right )^{n}}{x \left (c + d x\right )}\, dx \] Input:

integrate((a+b/x)**n/x/(d*x+c),x)
 

Output:

Integral((a + b/x)**n/(x*(c + d*x)), x)
 

Maxima [F]

\[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x (c+d x)} \, dx=\int { \frac {{\left (a + \frac {b}{x}\right )}^{n}}{{\left (d x + c\right )} x} \,d x } \] Input:

integrate((a+b/x)^n/x/(d*x+c),x, algorithm="maxima")
 

Output:

integrate((a + b/x)^n/((d*x + c)*x), x)
 

Giac [F]

\[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x (c+d x)} \, dx=\int { \frac {{\left (a + \frac {b}{x}\right )}^{n}}{{\left (d x + c\right )} x} \,d x } \] Input:

integrate((a+b/x)^n/x/(d*x+c),x, algorithm="giac")
 

Output:

integrate((a + b/x)^n/((d*x + c)*x), x)
 

Mupad [F(-1)]

Timed out. \[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x (c+d x)} \, dx=\int \frac {{\left (a+\frac {b}{x}\right )}^n}{x\,\left (c+d\,x\right )} \,d x \] Input:

int((a + b/x)^n/(x*(c + d*x)),x)
 

Output:

int((a + b/x)^n/(x*(c + d*x)), x)
 

Reduce [F]

\[ \int \frac {\left (a+\frac {b}{x}\right )^n}{x (c+d x)} \, dx=\frac {-\left (a x +b \right )^{n} a -x^{n} \left (\int \frac {\left (a x +b \right )^{n}}{x^{n} a c \,x^{2}+x^{n} a d \,x^{3}+x^{n} b c x +x^{n} b d \,x^{2}}d x \right ) a b c n +x^{n} \left (\int \frac {\left (a x +b \right )^{n}}{x^{n} a c \,x^{2}+x^{n} a d \,x^{3}+x^{n} b c x +x^{n} b d \,x^{2}}d x \right ) b^{2} d n}{x^{n} b d n} \] Input:

int((a+b/x)^n/x/(d*x+c),x)
 

Output:

( - (a*x + b)**n*a - x**n*int((a*x + b)**n/(x**n*a*c*x**2 + x**n*a*d*x**3 
+ x**n*b*c*x + x**n*b*d*x**2),x)*a*b*c*n + x**n*int((a*x + b)**n/(x**n*a*c 
*x**2 + x**n*a*d*x**3 + x**n*b*c*x + x**n*b*d*x**2),x)*b**2*d*n)/(x**n*b*d 
*n)