Optimal. Leaf size=80 \[ \frac {\left (a+\frac {b}{x}\right )^m x \left (1+\frac {a x}{b}\right )^{-m} (c+d x)^n \left (1+\frac {d x}{c}\right )^{-n} F_1\left (1-m;-m,-n;2-m;-\frac {a x}{b},-\frac {d x}{c}\right )}{1-m} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {446, 140, 138}
\begin {gather*} \frac {x \left (a+\frac {b}{x}\right )^m \left (\frac {a x}{b}+1\right )^{-m} (c+d x)^n \left (\frac {d x}{c}+1\right )^{-n} F_1\left (1-m;-m,-n;2-m;-\frac {a x}{b},-\frac {d x}{c}\right )}{1-m} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 138
Rule 140
Rule 446
Rubi steps
\begin {align*} \int \left (a+\frac {b}{x}\right )^m (c+d x)^n \, dx &=\left (\left (a+\frac {b}{x}\right )^m x^m (b+a x)^{-m}\right ) \int x^{-m} (b+a x)^m (c+d x)^n \, dx\\ &=\left (\left (a+\frac {b}{x}\right )^m x^m \left (1+\frac {a x}{b}\right )^{-m}\right ) \int x^{-m} \left (1+\frac {a x}{b}\right )^m (c+d x)^n \, dx\\ &=\left (\left (a+\frac {b}{x}\right )^m x^m \left (1+\frac {a x}{b}\right )^{-m} (c+d x)^n \left (1+\frac {d x}{c}\right )^{-n}\right ) \int x^{-m} \left (1+\frac {a x}{b}\right )^m \left (1+\frac {d x}{c}\right )^n \, dx\\ &=\frac {\left (a+\frac {b}{x}\right )^m x \left (1+\frac {a x}{b}\right )^{-m} (c+d x)^n \left (1+\frac {d x}{c}\right )^{-n} F_1\left (1-m;-m,-n;2-m;-\frac {a x}{b},-\frac {d x}{c}\right )}{1-m}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 0.12, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a+\frac {b}{x}\right )^m (c+d x)^n \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int \left (a +\frac {b}{x}\right )^{m} \left (d x +c \right )^{n}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + \frac {b}{x}\right )^{m} \left (c + d x\right )^{n}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a+\frac {b}{x}\right )}^m\,{\left (c+d\,x\right )}^n \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________