Optimal. Leaf size=56 \[ -\frac {d (c x+1)^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 x^2}+b c^2 d \log (x)-b c^2 d \log (1-c x)-\frac {b c d}{2 x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {37, 5936, 12, 77} \[ -\frac {d (c x+1)^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 x^2}+b c^2 d \log (x)-b c^2 d \log (1-c x)-\frac {b c d}{2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 37
Rule 77
Rule 5936
Rubi steps
\begin {align*} \int \frac {(d+c d x) \left (a+b \tanh ^{-1}(c x)\right )}{x^3} \, dx &=-\frac {d (1+c x)^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 x^2}-(b c) \int \frac {d (-1-c x)}{2 x^2 (1-c x)} \, dx\\ &=-\frac {d (1+c x)^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 x^2}-\frac {1}{2} (b c d) \int \frac {-1-c x}{x^2 (1-c x)} \, dx\\ &=-\frac {d (1+c x)^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 x^2}-\frac {1}{2} (b c d) \int \left (-\frac {1}{x^2}-\frac {2 c}{x}+\frac {2 c^2}{-1+c x}\right ) \, dx\\ &=-\frac {b c d}{2 x}-\frac {d (1+c x)^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 x^2}+b c^2 d \log (x)-b c^2 d \log (1-c x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 76, normalized size = 1.36 \[ -\frac {d \left (4 a c x+2 a-4 b c^2 x^2 \log (x)+3 b c^2 x^2 \log (1-c x)+b c^2 x^2 \log (c x+1)+2 b c x+2 (2 b c x+b) \tanh ^{-1}(c x)\right )}{4 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 89, normalized size = 1.59 \[ -\frac {b c^{2} d x^{2} \log \left (c x + 1\right ) + 3 \, b c^{2} d x^{2} \log \left (c x - 1\right ) - 4 \, b c^{2} d x^{2} \log \relax (x) + 2 \, {\left (2 \, a + b\right )} c d x + 2 \, a d + {\left (2 \, b c d x + b d\right )} \log \left (-\frac {c x + 1}{c x - 1}\right )}{4 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.20, size = 192, normalized size = 3.43 \[ {\left (b c d \log \left (-\frac {c x + 1}{c x - 1} - 1\right ) - b c d \log \left (-\frac {c x + 1}{c x - 1}\right ) + \frac {{\left (\frac {2 \, {\left (c x + 1\right )} b c d}{c x - 1} + b c d\right )} \log \left (-\frac {c x + 1}{c x - 1}\right )}{\frac {{\left (c x + 1\right )}^{2}}{{\left (c x - 1\right )}^{2}} + \frac {2 \, {\left (c x + 1\right )}}{c x - 1} + 1} + \frac {\frac {4 \, {\left (c x + 1\right )} a c d}{c x - 1} + 2 \, a c d + \frac {{\left (c x + 1\right )} b c d}{c x - 1} + b c d}{\frac {{\left (c x + 1\right )}^{2}}{{\left (c x - 1\right )}^{2}} + \frac {2 \, {\left (c x + 1\right )}}{c x - 1} + 1}\right )} c \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 84, normalized size = 1.50 \[ -\frac {c d a}{x}-\frac {d a}{2 x^{2}}-\frac {c d b \arctanh \left (c x \right )}{x}-\frac {d b \arctanh \left (c x \right )}{2 x^{2}}+c^{2} d b \ln \left (c x \right )-\frac {b c d}{2 x}-\frac {3 c^{2} d b \ln \left (c x -1\right )}{4}-\frac {c^{2} d b \ln \left (c x +1\right )}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 89, normalized size = 1.59 \[ -\frac {1}{2} \, {\left (c {\left (\log \left (c^{2} x^{2} - 1\right ) - \log \left (x^{2}\right )\right )} + \frac {2 \, \operatorname {artanh}\left (c x\right )}{x}\right )} b c d + \frac {1}{4} \, {\left ({\left (c \log \left (c x + 1\right ) - c \log \left (c x - 1\right ) - \frac {2}{x}\right )} c - \frac {2 \, \operatorname {artanh}\left (c x\right )}{x^{2}}\right )} b d - \frac {a c d}{x} - \frac {a d}{2 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.90, size = 75, normalized size = 1.34 \[ \frac {d\,\left (b\,c^2\,\mathrm {atanh}\left (c\,x\right )-b\,c^2\,\ln \left (c^2\,x^2-1\right )+2\,b\,c^2\,\ln \relax (x)\right )}{2}-\frac {\frac {d\,\left (a+b\,\mathrm {atanh}\left (c\,x\right )\right )}{2}+\frac {d\,x\,\left (2\,a\,c+b\,c+2\,b\,c\,\mathrm {atanh}\left (c\,x\right )\right )}{2}}{x^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.08, size = 95, normalized size = 1.70 \[ \begin {cases} - \frac {a c d}{x} - \frac {a d}{2 x^{2}} + b c^{2} d \log {\relax (x )} - b c^{2} d \log {\left (x - \frac {1}{c} \right )} - \frac {b c^{2} d \operatorname {atanh}{\left (c x \right )}}{2} - \frac {b c d \operatorname {atanh}{\left (c x \right )}}{x} - \frac {b c d}{2 x} - \frac {b d \operatorname {atanh}{\left (c x \right )}}{2 x^{2}} & \text {for}\: c \neq 0 \\- \frac {a d}{2 x^{2}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________