Optimal. Leaf size=130 \[ -\frac {\left (a+b \coth ^{-1}(c+d x)\right ) \log \left (\frac {2}{1+c+d x}\right )}{f}+\frac {\left (a+b \coth ^{-1}(c+d x)\right ) \log \left (\frac {2 d (e+f x)}{(d e+f-c f) (1+c+d x)}\right )}{f}+\frac {b \text {PolyLog}\left (2,1-\frac {2}{1+c+d x}\right )}{2 f}-\frac {b \text {PolyLog}\left (2,1-\frac {2 d (e+f x)}{(d e+f-c f) (1+c+d x)}\right )}{2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {6247, 6058,
2449, 2352, 2497} \begin {gather*} \frac {\left (a+b \coth ^{-1}(c+d x)\right ) \log \left (\frac {2 d (e+f x)}{(c+d x+1) (-c f+d e+f)}\right )}{f}-\frac {\log \left (\frac {2}{c+d x+1}\right ) \left (a+b \coth ^{-1}(c+d x)\right )}{f}-\frac {b \text {Li}_2\left (1-\frac {2 d (e+f x)}{(d e-c f+f) (c+d x+1)}\right )}{2 f}+\frac {b \text {Li}_2\left (1-\frac {2}{c+d x+1}\right )}{2 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2352
Rule 2449
Rule 2497
Rule 6058
Rule 6247
Rubi steps
\begin {align*} \int \frac {a+b \coth ^{-1}(c+d x)}{e+f x} \, dx &=\frac {\text {Subst}\left (\int \frac {a+b \coth ^{-1}(x)}{\frac {d e-c f}{d}+\frac {f x}{d}} \, dx,x,c+d x\right )}{d}\\ &=-\frac {\left (a+b \coth ^{-1}(c+d x)\right ) \log \left (\frac {2}{1+c+d x}\right )}{f}+\frac {\left (a+b \coth ^{-1}(c+d x)\right ) \log \left (\frac {2 d (e+f x)}{(d e+f-c f) (1+c+d x)}\right )}{f}+\frac {b \text {Subst}\left (\int \frac {\log \left (\frac {2}{1+x}\right )}{1-x^2} \, dx,x,c+d x\right )}{f}-\frac {b \text {Subst}\left (\int \frac {\log \left (\frac {2 \left (\frac {d e-c f}{d}+\frac {f x}{d}\right )}{\left (\frac {f}{d}+\frac {d e-c f}{d}\right ) (1+x)}\right )}{1-x^2} \, dx,x,c+d x\right )}{f}\\ &=-\frac {\left (a+b \coth ^{-1}(c+d x)\right ) \log \left (\frac {2}{1+c+d x}\right )}{f}+\frac {\left (a+b \coth ^{-1}(c+d x)\right ) \log \left (\frac {2 d (e+f x)}{(d e+f-c f) (1+c+d x)}\right )}{f}-\frac {b \text {Li}_2\left (1-\frac {2 d (e+f x)}{(d e+f-c f) (1+c+d x)}\right )}{2 f}+\frac {b \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1+c+d x}\right )}{f}\\ &=-\frac {\left (a+b \coth ^{-1}(c+d x)\right ) \log \left (\frac {2}{1+c+d x}\right )}{f}+\frac {\left (a+b \coth ^{-1}(c+d x)\right ) \log \left (\frac {2 d (e+f x)}{(d e+f-c f) (1+c+d x)}\right )}{f}+\frac {b \text {Li}_2\left (1-\frac {2}{1+c+d x}\right )}{2 f}-\frac {b \text {Li}_2\left (1-\frac {2 d (e+f x)}{(d e+f-c f) (1+c+d x)}\right )}{2 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.19, size = 352, normalized size = 2.71 \begin {gather*} \frac {a \log (e+f x)+b \left (\coth ^{-1}(c+d x)-\tanh ^{-1}(c+d x)\right ) \log (e+f x)+b \tanh ^{-1}(c+d x) \left (-\log \left (\frac {1}{\sqrt {1-(c+d x)^2}}\right )+\log \left (i \sinh \left (\tanh ^{-1}\left (\frac {d e-c f}{f}\right )+\tanh ^{-1}(c+d x)\right )\right )\right )-\frac {1}{2} i b \left (-\frac {1}{4} i \left (\pi -2 i \tanh ^{-1}(c+d x)\right )^2+i \left (\tanh ^{-1}\left (\frac {d e-c f}{f}\right )+\tanh ^{-1}(c+d x)\right )^2+\left (\pi -2 i \tanh ^{-1}(c+d x)\right ) \log \left (1+e^{2 \tanh ^{-1}(c+d x)}\right )+2 i \left (\tanh ^{-1}\left (\frac {d e-c f}{f}\right )+\tanh ^{-1}(c+d x)\right ) \log \left (1-e^{-2 \left (\tanh ^{-1}\left (\frac {d e-c f}{f}\right )+\tanh ^{-1}(c+d x)\right )}\right )-\left (\pi -2 i \tanh ^{-1}(c+d x)\right ) \log \left (\frac {2}{\sqrt {1-(c+d x)^2}}\right )-2 i \left (\tanh ^{-1}\left (\frac {d e-c f}{f}\right )+\tanh ^{-1}(c+d x)\right ) \log \left (2 i \sinh \left (\tanh ^{-1}\left (\frac {d e-c f}{f}\right )+\tanh ^{-1}(c+d x)\right )\right )-i \text {PolyLog}\left (2,-e^{2 \tanh ^{-1}(c+d x)}\right )-i \text {PolyLog}\left (2,e^{-2 \left (\tanh ^{-1}\left (\frac {d e-c f}{f}\right )+\tanh ^{-1}(c+d x)\right )}\right )\right )}{f} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.96, size = 220, normalized size = 1.69
method | result | size |
risch | \(\frac {a \ln \left (\left (d x +c -1\right ) f -c f +d e +f \right )}{f}-\frac {b \dilog \left (\frac {\left (d x +c -1\right ) f -c f +d e +f}{-c f +d e +f}\right )}{2 f}-\frac {b \ln \left (d x +c -1\right ) \ln \left (\frac {\left (d x +c -1\right ) f -c f +d e +f}{-c f +d e +f}\right )}{2 f}+\frac {b \dilog \left (\frac {\left (d x +c +1\right ) f -c f +d e -f}{-c f +d e -f}\right )}{2 f}+\frac {b \ln \left (d x +c +1\right ) \ln \left (\frac {\left (d x +c +1\right ) f -c f +d e -f}{-c f +d e -f}\right )}{2 f}\) | \(191\) |
derivativedivides | \(\frac {\frac {a d \ln \left (c f -d e -f \left (d x +c \right )\right )}{f}+\frac {b d \ln \left (c f -d e -f \left (d x +c \right )\right ) \mathrm {arccoth}\left (d x +c \right )}{f}+\frac {b d \ln \left (c f -d e -f \left (d x +c \right )\right ) \ln \left (\frac {-f \left (d x +c \right )+f}{-c f +d e +f}\right )}{2 f}+\frac {b d \dilog \left (\frac {-f \left (d x +c \right )+f}{-c f +d e +f}\right )}{2 f}-\frac {b d \ln \left (c f -d e -f \left (d x +c \right )\right ) \ln \left (\frac {-f \left (d x +c \right )-f}{-c f +d e -f}\right )}{2 f}-\frac {b d \dilog \left (\frac {-f \left (d x +c \right )-f}{-c f +d e -f}\right )}{2 f}}{d}\) | \(220\) |
default | \(\frac {\frac {a d \ln \left (c f -d e -f \left (d x +c \right )\right )}{f}+\frac {b d \ln \left (c f -d e -f \left (d x +c \right )\right ) \mathrm {arccoth}\left (d x +c \right )}{f}+\frac {b d \ln \left (c f -d e -f \left (d x +c \right )\right ) \ln \left (\frac {-f \left (d x +c \right )+f}{-c f +d e +f}\right )}{2 f}+\frac {b d \dilog \left (\frac {-f \left (d x +c \right )+f}{-c f +d e +f}\right )}{2 f}-\frac {b d \ln \left (c f -d e -f \left (d x +c \right )\right ) \ln \left (\frac {-f \left (d x +c \right )-f}{-c f +d e -f}\right )}{2 f}-\frac {b d \dilog \left (\frac {-f \left (d x +c \right )-f}{-c f +d e -f}\right )}{2 f}}{d}\) | \(220\) |
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 \frac {a + b \operatorname {acoth}{\left (c + d x \right )}}{e + f x}\, 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 \frac {a+b\,\mathrm {acoth}\left (c+d\,x\right )}{e+f\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________