Optimal. Leaf size=84 \[ \frac {1}{3} c d x^3 \left (a+b \tanh ^{-1}(c x)\right )+\frac {1}{2} d x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {5 b d \log (1-c x)}{12 c^2}-\frac {b d \log (c x+1)}{12 c^2}+\frac {b d x}{2 c}+\frac {1}{6} b d x^2 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 84, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {43, 5936, 12, 801, 633, 31} \[ \frac {1}{3} c d x^3 \left (a+b \tanh ^{-1}(c x)\right )+\frac {1}{2} d x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {5 b d \log (1-c x)}{12 c^2}-\frac {b d \log (c x+1)}{12 c^2}+\frac {b d x}{2 c}+\frac {1}{6} b d x^2 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 31
Rule 43
Rule 633
Rule 801
Rule 5936
Rubi steps
\begin {align*} \int x (d+c d x) \left (a+b \tanh ^{-1}(c x)\right ) \, dx &=\frac {1}{2} d x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {1}{3} c d x^3 \left (a+b \tanh ^{-1}(c x)\right )-(b c) \int \frac {d x^2 (3+2 c x)}{6-6 c^2 x^2} \, dx\\ &=\frac {1}{2} d x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {1}{3} c d x^3 \left (a+b \tanh ^{-1}(c x)\right )-(b c d) \int \frac {x^2 (3+2 c x)}{6-6 c^2 x^2} \, dx\\ &=\frac {1}{2} d x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {1}{3} c d x^3 \left (a+b \tanh ^{-1}(c x)\right )-(b c d) \int \left (-\frac {1}{2 c^2}-\frac {x}{3 c}+\frac {3+2 c x}{c^2 \left (6-6 c^2 x^2\right )}\right ) \, dx\\ &=\frac {b d x}{2 c}+\frac {1}{6} b d x^2+\frac {1}{2} d x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {1}{3} c d x^3 \left (a+b \tanh ^{-1}(c x)\right )-\frac {(b d) \int \frac {3+2 c x}{6-6 c^2 x^2} \, dx}{c}\\ &=\frac {b d x}{2 c}+\frac {1}{6} b d x^2+\frac {1}{2} d x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {1}{3} c d x^3 \left (a+b \tanh ^{-1}(c x)\right )+\frac {1}{2} (b d) \int \frac {1}{-6 c-6 c^2 x} \, dx-\frac {1}{2} (5 b d) \int \frac {1}{6 c-6 c^2 x} \, dx\\ &=\frac {b d x}{2 c}+\frac {1}{6} b d x^2+\frac {1}{2} d x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {1}{3} c d x^3 \left (a+b \tanh ^{-1}(c x)\right )+\frac {5 b d \log (1-c x)}{12 c^2}-\frac {b d \log (1+c x)}{12 c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 79, normalized size = 0.94 \[ \frac {d \left (4 a c^3 x^3+6 a c^2 x^2+2 b c^2 x^2+2 b c^2 x^2 (2 c x+3) \tanh ^{-1}(c x)+6 b c x+5 b \log (1-c x)-b \log (c x+1)\right )}{12 c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.54, size = 93, normalized size = 1.11 \[ \frac {4 \, a c^{3} d x^{3} + 2 \, {\left (3 \, a + b\right )} c^{2} d x^{2} + 6 \, b c d x - b d \log \left (c x + 1\right ) + 5 \, b d \log \left (c x - 1\right ) + {\left (2 \, b c^{3} d x^{3} + 3 \, b c^{2} d x^{2}\right )} \log \left (-\frac {c x + 1}{c x - 1}\right )}{12 \, c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.16, size = 305, normalized size = 3.63 \[ \frac {1}{3} \, c {\left (\frac {{\left (\frac {6 \, {\left (c x + 1\right )}^{2} b d}{{\left (c x - 1\right )}^{2}} - \frac {3 \, {\left (c x + 1\right )} b d}{c x - 1} + b d\right )} \log \left (-\frac {c x + 1}{c x - 1}\right )}{\frac {{\left (c x + 1\right )}^{3} c^{3}}{{\left (c x - 1\right )}^{3}} - \frac {3 \, {\left (c x + 1\right )}^{2} c^{3}}{{\left (c x - 1\right )}^{2}} + \frac {3 \, {\left (c x + 1\right )} c^{3}}{c x - 1} - c^{3}} + \frac {\frac {12 \, {\left (c x + 1\right )}^{2} a d}{{\left (c x - 1\right )}^{2}} - \frac {6 \, {\left (c x + 1\right )} a d}{c x - 1} + 2 \, a d + \frac {5 \, {\left (c x + 1\right )}^{2} b d}{{\left (c x - 1\right )}^{2}} - \frac {8 \, {\left (c x + 1\right )} b d}{c x - 1} + 3 \, b d}{\frac {{\left (c x + 1\right )}^{3} c^{3}}{{\left (c x - 1\right )}^{3}} - \frac {3 \, {\left (c x + 1\right )}^{2} c^{3}}{{\left (c x - 1\right )}^{2}} + \frac {3 \, {\left (c x + 1\right )} c^{3}}{c x - 1} - c^{3}} - \frac {b d \log \left (-\frac {c x + 1}{c x - 1} + 1\right )}{c^{3}} + \frac {b d \log \left (-\frac {c x + 1}{c x - 1}\right )}{c^{3}}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 81, normalized size = 0.96 \[ \frac {c d a \,x^{3}}{3}+\frac {d a \,x^{2}}{2}+\frac {c d b \arctanh \left (c x \right ) x^{3}}{3}+\frac {d b \arctanh \left (c x \right ) x^{2}}{2}+\frac {b d \,x^{2}}{6}+\frac {b d x}{2 c}+\frac {5 d b \ln \left (c x -1\right )}{12 c^{2}}-\frac {b d \ln \left (c x +1\right )}{12 c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 99, normalized size = 1.18 \[ \frac {1}{3} \, a c d x^{3} + \frac {1}{6} \, {\left (2 \, x^{3} \operatorname {artanh}\left (c x\right ) + c {\left (\frac {x^{2}}{c^{2}} + \frac {\log \left (c^{2} x^{2} - 1\right )}{c^{4}}\right )}\right )} b c d + \frac {1}{2} \, a d x^{2} + \frac {1}{4} \, {\left (2 \, x^{2} \operatorname {artanh}\left (c x\right ) + c {\left (\frac {2 \, x}{c^{2}} - \frac {\log \left (c x + 1\right )}{c^{3}} + \frac {\log \left (c x - 1\right )}{c^{3}}\right )}\right )} b d \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.90, size = 83, normalized size = 0.99 \[ \frac {d\,\left (3\,a\,x^2+b\,x^2+3\,b\,x^2\,\mathrm {atanh}\left (c\,x\right )\right )}{6}-\frac {\frac {d\,\left (3\,b\,\mathrm {atanh}\left (c\,x\right )-b\,\ln \left (c^2\,x^2-1\right )\right )}{6}-\frac {b\,c\,d\,x}{2}}{c^2}+\frac {c\,d\,\left (2\,a\,x^3+2\,b\,x^3\,\mathrm {atanh}\left (c\,x\right )\right )}{6} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.92, size = 100, normalized size = 1.19 \[ \begin {cases} \frac {a c d x^{3}}{3} + \frac {a d x^{2}}{2} + \frac {b c d x^{3} \operatorname {atanh}{\left (c x \right )}}{3} + \frac {b d x^{2} \operatorname {atanh}{\left (c x \right )}}{2} + \frac {b d x^{2}}{6} + \frac {b d x}{2 c} + \frac {b d \log {\left (x - \frac {1}{c} \right )}}{3 c^{2}} - \frac {b d \operatorname {atanh}{\left (c x \right )}}{6 c^{2}} & \text {for}\: c \neq 0 \\\frac {a d x^{2}}{2} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________