Optimal. Leaf size=177 \[ \frac {(e+f x)^{1+m} \left (a+b \cot ^{-1}(c+d x)\right )}{f (1+m)}+\frac {i b d (e+f x)^{2+m} \, _2F_1\left (1,2+m;3+m;\frac {d (e+f x)}{d e+i f-c f}\right )}{2 f (d e+(i-c) f) (1+m) (2+m)}-\frac {i b d (e+f x)^{2+m} \, _2F_1\left (1,2+m;3+m;\frac {d (e+f x)}{d e-(i+c) f}\right )}{2 f (d e-(i+c) f) (1+m) (2+m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 177, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {5156, 4973,
726, 70} \begin {gather*} \frac {(e+f x)^{m+1} \left (a+b \cot ^{-1}(c+d x)\right )}{f (m+1)}+\frac {i b d (e+f x)^{m+2} \, _2F_1\left (1,m+2;m+3;\frac {d (e+f x)}{d e-c f+i f}\right )}{2 f (m+1) (m+2) (d e+(-c+i) f)}-\frac {i b d (e+f x)^{m+2} \, _2F_1\left (1,m+2;m+3;\frac {d (e+f x)}{d e-(c+i) f}\right )}{2 f (m+1) (m+2) (d e-(c+i) f)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 70
Rule 726
Rule 4973
Rule 5156
Rubi steps
\begin {align*} \int (e+f x)^m \left (a+b \cot ^{-1}(c+d x)\right ) \, dx &=\frac {\text {Subst}\left (\int \left (\frac {d e-c f}{d}+\frac {f x}{d}\right )^m \left (a+b \cot ^{-1}(x)\right ) \, dx,x,c+d x\right )}{d}\\ &=\frac {(e+f x)^{1+m} \left (a+b \cot ^{-1}(c+d x)\right )}{f (1+m)}+\frac {b \text {Subst}\left (\int \frac {\left (\frac {d e-c f}{d}+\frac {f x}{d}\right )^{1+m}}{1+x^2} \, dx,x,c+d x\right )}{f (1+m)}\\ &=\frac {(e+f x)^{1+m} \left (a+b \cot ^{-1}(c+d x)\right )}{f (1+m)}+\frac {b \text {Subst}\left (\int \left (\frac {i \left (\frac {d e-c f}{d}+\frac {f x}{d}\right )^{1+m}}{2 (i-x)}+\frac {i \left (\frac {d e-c f}{d}+\frac {f x}{d}\right )^{1+m}}{2 (i+x)}\right ) \, dx,x,c+d x\right )}{f (1+m)}\\ &=\frac {(e+f x)^{1+m} \left (a+b \cot ^{-1}(c+d x)\right )}{f (1+m)}+\frac {(i b) \text {Subst}\left (\int \frac {\left (\frac {d e-c f}{d}+\frac {f x}{d}\right )^{1+m}}{i-x} \, dx,x,c+d x\right )}{2 f (1+m)}+\frac {(i b) \text {Subst}\left (\int \frac {\left (\frac {d e-c f}{d}+\frac {f x}{d}\right )^{1+m}}{i+x} \, dx,x,c+d x\right )}{2 f (1+m)}\\ &=\frac {(e+f x)^{1+m} \left (a+b \cot ^{-1}(c+d x)\right )}{f (1+m)}+\frac {i b d (e+f x)^{2+m} \, _2F_1\left (1,2+m;3+m;\frac {d (e+f x)}{d e+i f-c f}\right )}{2 f (d e+(i-c) f) (1+m) (2+m)}-\frac {i b d (e+f x)^{2+m} \, _2F_1\left (1,2+m;3+m;\frac {d (e+f x)}{d e-(i+c) f}\right )}{2 f (d e-(i+c) f) (1+m) (2+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.29, size = 162, normalized size = 0.92 \begin {gather*} \frac {(e+f x)^{1+m} \left (2 \left (a+b \cot ^{-1}(c+d x)\right )+\frac {b d (e+f x) \left ((d e-(i+c) f) \, _2F_1\left (1,2+m;3+m;\frac {d (e+f x)}{d e-(-i+c) f}\right )+(-d e+(-i+c) f) \, _2F_1\left (1,2+m;3+m;\frac {d (e+f x)}{d e-(i+c) f}\right )\right )}{(-i d e+f+i c f) (d e-(i+c) f) (2+m)}\right )}{2 f (1+m)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.17, size = 0, normalized size = 0.00 \[\int \left (f x +e \right )^{m} \left (a +b \,\mathrm {arccot}\left (d x +c \right )\right )\, 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(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \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 (e+f\,x\right )}^m\,\left (a+b\,\mathrm {acot}\left (c+d\,x\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________