Optimal. Leaf size=247 \[ -\frac {1}{2} b c^2 e \coth ^{-1}(c x)^2-\frac {1}{2} b c^2 e \tanh ^{-1}(c x)^2-a c^2 e \log (x)+b c^2 e \tanh ^{-1}(c x) \log \left (\frac {2}{1-c x}\right )+\frac {1}{2} (a+b) c^2 e \log (1-c x)+\frac {1}{2} (a-b) c^2 e \log (1+c x)-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )-b c^2 e \coth ^{-1}(c x) \log \left (2-\frac {2}{1+c x}\right )+\frac {1}{2} b c^2 e \text {PolyLog}\left (2,1-\frac {2}{1-c x}\right )+\frac {1}{2} b c^2 e \text {PolyLog}\left (2,-1+\frac {2}{1+c x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.34, antiderivative size = 247, normalized size of antiderivative = 1.00, number
of steps used = 13, number of rules used = 13, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.482, Rules
used = {6038, 331, 212, 6233, 6857, 815, 6136, 6080, 2497, 6131, 6055, 2449, 2352}
\begin {gather*} -\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (e \log \left (1-c^2 x^2\right )+d\right )}{2 x^2}+\frac {1}{2} c^2 e (a+b) \log (1-c x)+\frac {1}{2} c^2 e (a-b) \log (c x+1)-a c^2 e \log (x)-\frac {b c \left (e \log \left (1-c^2 x^2\right )+d\right )}{2 x}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (e \log \left (1-c^2 x^2\right )+d\right )+\frac {1}{2} b c^2 e \text {Li}_2\left (1-\frac {2}{1-c x}\right )+\frac {1}{2} b c^2 e \text {Li}_2\left (\frac {2}{c x+1}-1\right )-\frac {1}{2} b c^2 e \tanh ^{-1}(c x)^2-\frac {1}{2} b c^2 e \coth ^{-1}(c x)^2+b c^2 e \log \left (\frac {2}{1-c x}\right ) \tanh ^{-1}(c x)-b c^2 e \log \left (2-\frac {2}{c x+1}\right ) \coth ^{-1}(c x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 331
Rule 815
Rule 2352
Rule 2449
Rule 2497
Rule 6038
Rule 6055
Rule 6080
Rule 6131
Rule 6136
Rule 6233
Rule 6857
Rubi steps
\begin {align*} \int \frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x^3} \, dx &=-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )+\left (2 c^2 e\right ) \int \left (\frac {a+b c x+b \coth ^{-1}(c x)}{2 x \left (-1+c^2 x^2\right )}-\frac {b c^2 x \tanh ^{-1}(c x)}{2 \left (-1+c^2 x^2\right )}\right ) \, dx\\ &=-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )+\left (c^2 e\right ) \int \frac {a+b c x+b \coth ^{-1}(c x)}{x \left (-1+c^2 x^2\right )} \, dx-\left (b c^4 e\right ) \int \frac {x \tanh ^{-1}(c x)}{-1+c^2 x^2} \, dx\\ &=-\frac {1}{2} b c^2 e \tanh ^{-1}(c x)^2-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )+\left (c^2 e\right ) \int \left (\frac {a+b c x}{x \left (-1+c^2 x^2\right )}+\frac {b \coth ^{-1}(c x)}{x \left (-1+c^2 x^2\right )}\right ) \, dx+\left (b c^3 e\right ) \int \frac {\tanh ^{-1}(c x)}{1-c x} \, dx\\ &=-\frac {1}{2} b c^2 e \tanh ^{-1}(c x)^2+b c^2 e \tanh ^{-1}(c x) \log \left (\frac {2}{1-c x}\right )-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )+\left (c^2 e\right ) \int \frac {a+b c x}{x \left (-1+c^2 x^2\right )} \, dx+\left (b c^2 e\right ) \int \frac {\coth ^{-1}(c x)}{x \left (-1+c^2 x^2\right )} \, dx-\left (b c^3 e\right ) \int \frac {\log \left (\frac {2}{1-c x}\right )}{1-c^2 x^2} \, dx\\ &=-\frac {1}{2} b c^2 e \coth ^{-1}(c x)^2-\frac {1}{2} b c^2 e \tanh ^{-1}(c x)^2+b c^2 e \tanh ^{-1}(c x) \log \left (\frac {2}{1-c x}\right )-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )+\left (c^2 e\right ) \int \left (-\frac {a}{x}+\frac {(a+b) c}{2 (-1+c x)}+\frac {(a-b) c}{2 (1+c x)}\right ) \, dx-\left (b c^2 e\right ) \int \frac {\coth ^{-1}(c x)}{x (1+c x)} \, dx+\left (b c^2 e\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-c x}\right )\\ &=-\frac {1}{2} b c^2 e \coth ^{-1}(c x)^2-\frac {1}{2} b c^2 e \tanh ^{-1}(c x)^2-a c^2 e \log (x)+b c^2 e \tanh ^{-1}(c x) \log \left (\frac {2}{1-c x}\right )+\frac {1}{2} (a+b) c^2 e \log (1-c x)+\frac {1}{2} (a-b) c^2 e \log (1+c x)-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )-b c^2 e \coth ^{-1}(c x) \log \left (2-\frac {2}{1+c x}\right )+\frac {1}{2} b c^2 e \text {Li}_2\left (1-\frac {2}{1-c x}\right )+\left (b c^3 e\right ) \int \frac {\log \left (2-\frac {2}{1+c x}\right )}{1-c^2 x^2} \, dx\\ &=-\frac {1}{2} b c^2 e \coth ^{-1}(c x)^2-\frac {1}{2} b c^2 e \tanh ^{-1}(c x)^2-a c^2 e \log (x)+b c^2 e \tanh ^{-1}(c x) \log \left (\frac {2}{1-c x}\right )+\frac {1}{2} (a+b) c^2 e \log (1-c x)+\frac {1}{2} (a-b) c^2 e \log (1+c x)-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}-\frac {\left (a+b \coth ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )-b c^2 e \coth ^{-1}(c x) \log \left (2-\frac {2}{1+c x}\right )+\frac {1}{2} b c^2 e \text {Li}_2\left (1-\frac {2}{1-c x}\right )+\frac {1}{2} b c^2 e \text {Li}_2\left (-1+\frac {2}{1+c x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 161, normalized size = 0.65 \begin {gather*} \frac {1}{2} \left (-\frac {a d}{x^2}-2 a c^2 e \log (x)+(a+b) c^2 e \log (1-c x)+(a-b) c^2 e \log (1+c x)-\frac {b d \left (2 \coth ^{-1}(c x)+c x (2+c x \log (1-c x)-c x \log (1+c x))\right )}{2 x^2}-\frac {e \left (a+b c x+\left (b-b c^2 x^2\right ) \coth ^{-1}(c x)\right ) \log \left (1-c^2 x^2\right )}{x^2}-b c^2 e \left (\text {PolyLog}\left (2,-\frac {1}{c x}\right )-\text {PolyLog}\left (2,\frac {1}{c x}\right )\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 2.54, size = 0, normalized size = 0.00 \[\int \frac {\left (a +b \,\mathrm {arccoth}\left (c x \right )\right ) \left (d +e \ln \left (-c^{2} x^{2}+1\right )\right )}{x^{3}}\, 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 \frac {\left (a + b \operatorname {acoth}{\left (c x \right )}\right ) \left (d + e \log {\left (- c^{2} x^{2} + 1 \right )}\right )}{x^{3}}\, 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\,x\right )\right )\,\left (d+e\,\ln \left (1-c^2\,x^2\right )\right )}{x^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________