Optimal. Leaf size=214 \[ -\frac {\left (a+b \coth ^{-1}(c+d x)\right )^2 \log \left (\frac {2}{1+c+d x}\right )}{f}+\frac {\left (a+b \coth ^{-1}(c+d x)\right )^2 \log \left (\frac {2 d (e+f x)}{(d e+f-c f) (1+c+d x)}\right )}{f}+\frac {b \left (a+b \coth ^{-1}(c+d x)\right ) \text {PolyLog}\left (2,1-\frac {2}{1+c+d x}\right )}{f}-\frac {b \left (a+b \coth ^{-1}(c+d x)\right ) \text {PolyLog}\left (2,1-\frac {2 d (e+f x)}{(d e+f-c f) (1+c+d x)}\right )}{f}+\frac {b^2 \text {PolyLog}\left (3,1-\frac {2}{1+c+d x}\right )}{2 f}-\frac {b^2 \text {PolyLog}\left (3,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 = 214, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {6247, 6060}
\begin {gather*} -\frac {b \left (a+b \coth ^{-1}(c+d x)\right ) \text {Li}_2\left (1-\frac {2 d (e+f x)}{(d e-c f+f) (c+d x+1)}\right )}{f}+\frac {\left (a+b \coth ^{-1}(c+d x)\right )^2 \log \left (\frac {2 d (e+f x)}{(c+d x+1) (-c f+d e+f)}\right )}{f}+\frac {b \text {Li}_2\left (1-\frac {2}{c+d x+1}\right ) \left (a+b \coth ^{-1}(c+d x)\right )}{f}-\frac {\log \left (\frac {2}{c+d x+1}\right ) \left (a+b \coth ^{-1}(c+d x)\right )^2}{f}-\frac {b^2 \text {Li}_3\left (1-\frac {2 d (e+f x)}{(d e-c f+f) (c+d x+1)}\right )}{2 f}+\frac {b^2 \text {Li}_3\left (1-\frac {2}{c+d x+1}\right )}{2 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6060
Rule 6247
Rubi steps
\begin {align*} \int \frac {\left (a+b \coth ^{-1}(c+d x)\right )^2}{e+f x} \, dx &=\frac {\text {Subst}\left (\int \frac {\left (a+b \coth ^{-1}(x)\right )^2}{\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 )^2 \log \left (\frac {2}{1+c+d x}\right )}{f}+\frac {\left (a+b \coth ^{-1}(c+d x)\right )^2 \log \left (\frac {2 d (e+f x)}{(d e+f-c f) (1+c+d x)}\right )}{f}+\frac {b \left (a+b \coth ^{-1}(c+d x)\right ) \text {Li}_2\left (1-\frac {2}{1+c+d x}\right )}{f}-\frac {b \left (a+b \coth ^{-1}(c+d x)\right ) \text {Li}_2\left (1-\frac {2 d (e+f x)}{(d e+f-c f) (1+c+d x)}\right )}{f}+\frac {b^2 \text {Li}_3\left (1-\frac {2}{1+c+d x}\right )}{2 f}-\frac {b^2 \text {Li}_3\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 = 12.52, size = 1376, normalized size = 6.43 \begin {gather*} \frac {24 a^2 f \log (e+f x)+48 a b f \left (\left (\coth ^{-1}(c+d x)-\tanh ^{-1}(c+d x)\right ) \log (e+f x)+\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}{8} \left (-\left (\pi -2 i \tanh ^{-1}(c+d x)\right )^2+4 \left (\tanh ^{-1}\left (\frac {d e-c f}{f}\right )+\tanh ^{-1}(c+d x)\right )^2-4 i \left (\pi -2 i \tanh ^{-1}(c+d x)\right ) \log \left (1+e^{2 \tanh ^{-1}(c+d x)}\right )+8 \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 )+4 \left (i \pi +2 \tanh ^{-1}(c+d x)\right ) \log \left (\frac {2}{\sqrt {1-(c+d x)^2}}\right )-8 \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 )-4 \text {PolyLog}\left (2,-e^{2 \tanh ^{-1}(c+d x)}\right )-4 \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 )\right )-b^2 \left (i f \pi ^3-16 d e \coth ^{-1}(c+d x)^3+16 f \coth ^{-1}(c+d x)^3+16 c f \coth ^{-1}(c+d x)^3+16 d e e^{-\tanh ^{-1}\left (\frac {f}{d e-c f}\right )} \sqrt {\frac {d^2 e^2-2 c d e f+\left (-1+c^2\right ) f^2}{(d e-c f)^2}} \coth ^{-1}(c+d x)^3-16 c e^{-\tanh ^{-1}\left (\frac {f}{d e-c f}\right )} f \sqrt {\frac {d^2 e^2-2 c d e f+\left (-1+c^2\right ) f^2}{(d e-c f)^2}} \coth ^{-1}(c+d x)^3-24 i f \pi \coth ^{-1}(c+d x) \log (2)+4 f \coth ^{-1}(c+d x)^2 \log (64)+24 i f \pi \coth ^{-1}(c+d x) \log \left (e^{-\coth ^{-1}(c+d x)}+e^{\coth ^{-1}(c+d x)}\right )+24 f \coth ^{-1}(c+d x)^2 \log \left (1-e^{2 \coth ^{-1}(c+d x)}\right )-24 f \coth ^{-1}(c+d x)^2 \log \left (1-e^{\coth ^{-1}(c+d x)+\tanh ^{-1}\left (\frac {f}{d e-c f}\right )}\right )-24 f \coth ^{-1}(c+d x)^2 \log \left (1+e^{\coth ^{-1}(c+d x)+\tanh ^{-1}\left (\frac {f}{d e-c f}\right )}\right )-24 f \coth ^{-1}(c+d x)^2 \log \left (1-e^{2 \left (\coth ^{-1}(c+d x)+\tanh ^{-1}\left (\frac {f}{d e-c f}\right )\right )}\right )-48 f \coth ^{-1}(c+d x) \tanh ^{-1}\left (\frac {f}{d e-c f}\right ) \log \left (\frac {1}{2} i e^{-\coth ^{-1}(c+d x)-\tanh ^{-1}\left (\frac {f}{d e-c f}\right )} \left (-1+e^{2 \left (\coth ^{-1}(c+d x)+\tanh ^{-1}\left (\frac {f}{d e-c f}\right )\right )}\right )\right )-24 f \coth ^{-1}(c+d x)^2 \log \left (-e^{-\coth ^{-1}(c+d x)} \left (d e \left (-1+e^{2 \coth ^{-1}(c+d x)}\right )+\left (1+c+e^{2 \coth ^{-1}(c+d x)}-c e^{2 \coth ^{-1}(c+d x)}\right ) f\right )\right )+24 f \coth ^{-1}(c+d x)^2 \log \left (\frac {-d e \left (-1+e^{2 \coth ^{-1}(c+d x)}\right )+\left (-1-e^{2 \coth ^{-1}(c+d x)}+c \left (-1+e^{2 \coth ^{-1}(c+d x)}\right )\right ) f}{d e-(1+c) f}\right )-24 i f \pi \coth ^{-1}(c+d x) \log \left (\frac {1}{\sqrt {1-\frac {1}{(c+d x)^2}}}\right )+24 f \coth ^{-1}(c+d x)^2 \log \left (-\frac {d (e+f x)}{(c+d x) \sqrt {1-\frac {1}{(c+d x)^2}}}\right )+48 f \coth ^{-1}(c+d x) \tanh ^{-1}\left (\frac {f}{d e-c f}\right ) \log \left (i \sinh \left (\coth ^{-1}(c+d x)+\tanh ^{-1}\left (\frac {f}{d e-c f}\right )\right )\right )+24 f \coth ^{-1}(c+d x) \text {PolyLog}\left (2,e^{2 \coth ^{-1}(c+d x)}\right )-48 f \coth ^{-1}(c+d x) \text {PolyLog}\left (2,-e^{\coth ^{-1}(c+d x)+\tanh ^{-1}\left (\frac {f}{d e-c f}\right )}\right )-48 f \coth ^{-1}(c+d x) \text {PolyLog}\left (2,e^{\coth ^{-1}(c+d x)+\tanh ^{-1}\left (\frac {f}{d e-c f}\right )}\right )-24 f \coth ^{-1}(c+d x) \text {PolyLog}\left (2,e^{2 \left (\coth ^{-1}(c+d x)+\tanh ^{-1}\left (\frac {f}{d e-c f}\right )\right )}\right )+24 f \coth ^{-1}(c+d x) \text {PolyLog}\left (2,\frac {e^{2 \coth ^{-1}(c+d x)} (d e+f-c f)}{d e-(1+c) f}\right )-12 f \text {PolyLog}\left (3,e^{2 \coth ^{-1}(c+d x)}\right )+48 f \text {PolyLog}\left (3,-e^{\coth ^{-1}(c+d x)+\tanh ^{-1}\left (\frac {f}{d e-c f}\right )}\right )+48 f \text {PolyLog}\left (3,e^{\coth ^{-1}(c+d x)+\tanh ^{-1}\left (\frac {f}{d e-c f}\right )}\right )+12 f \text {PolyLog}\left (3,e^{2 \left (\coth ^{-1}(c+d x)+\tanh ^{-1}\left (\frac {f}{d e-c f}\right )\right )}\right )-12 f \text {PolyLog}\left (3,\frac {e^{2 \coth ^{-1}(c+d x)} (d e+f-c f)}{d e-(1+c) f}\right )\right )}{24 f^2} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 5.34, size = 1766, normalized size = 8.25
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(1766\) |
default | \(\text {Expression too large to display}\) | \(1766\) |
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 {\left (a + b \operatorname {acoth}{\left (c + d x \right )}\right )^{2}}{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.00 \begin {gather*} \int \frac {{\left (a+b\,\mathrm {acoth}\left (c+d\,x\right )\right )}^2}{e+f\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________