Optimal. Leaf size=66 \[ -\frac {\log (1-a x)}{9 a^3}-\frac {x}{9 a^2}+\frac {1}{3} x^3 \text {Li}_2(a x)+\frac {1}{9} x^3 \log (1-a x)-\frac {x^2}{18 a}-\frac {x^3}{27} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {6591, 2395, 43} \[ \frac {1}{3} x^3 \text {PolyLog}(2,a x)-\frac {x}{9 a^2}-\frac {\log (1-a x)}{9 a^3}-\frac {x^2}{18 a}+\frac {1}{9} x^3 \log (1-a x)-\frac {x^3}{27} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 2395
Rule 6591
Rubi steps
\begin {align*} \int x^2 \text {Li}_2(a x) \, dx &=\frac {1}{3} x^3 \text {Li}_2(a x)+\frac {1}{3} \int x^2 \log (1-a x) \, dx\\ &=\frac {1}{9} x^3 \log (1-a x)+\frac {1}{3} x^3 \text {Li}_2(a x)+\frac {1}{9} a \int \frac {x^3}{1-a x} \, dx\\ &=\frac {1}{9} x^3 \log (1-a x)+\frac {1}{3} x^3 \text {Li}_2(a x)+\frac {1}{9} a \int \left (-\frac {1}{a^3}-\frac {x}{a^2}-\frac {x^2}{a}-\frac {1}{a^3 (-1+a x)}\right ) \, dx\\ &=-\frac {x}{9 a^2}-\frac {x^2}{18 a}-\frac {x^3}{27}-\frac {\log (1-a x)}{9 a^3}+\frac {1}{9} x^3 \log (1-a x)+\frac {1}{3} x^3 \text {Li}_2(a x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 57, normalized size = 0.86 \[ \frac {18 a^3 x^3 \text {Li}_2(a x)+6 \left (a^3 x^3-1\right ) \log (1-a x)-a x \left (2 a^2 x^2+3 a x+6\right )}{54 a^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.51, size = 56, normalized size = 0.85 \[ \frac {18 \, a^{3} x^{3} {\rm Li}_2\left (a x\right ) - 2 \, a^{3} x^{3} - 3 \, a^{2} x^{2} - 6 \, a x + 6 \, {\left (a^{3} x^{3} - 1\right )} \log \left (-a x + 1\right )}{54 \, a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{2} {\rm Li}_2\left (a x\right )\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 60, normalized size = 0.91 \[ \frac {x^{3} \polylog \left (2, a x \right )}{3}+\frac {x^{3} \ln \left (-a x +1\right )}{9}-\frac {\ln \left (-a x +1\right )}{9 a^{3}}-\frac {x^{3}}{27}-\frac {x^{2}}{18 a}-\frac {x}{9 a^{2}}+\frac {11}{54 a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 56, normalized size = 0.85 \[ \frac {18 \, a^{3} x^{3} {\rm Li}_2\left (a x\right ) - 2 \, a^{3} x^{3} - 3 \, a^{2} x^{2} - 6 \, a x + 6 \, {\left (a^{3} x^{3} - 1\right )} \log \left (-a x + 1\right )}{54 \, a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.23, size = 53, normalized size = 0.80 \[ \frac {x^3\,\ln \left (1-a\,x\right )}{9}-\frac {\ln \left (a\,x-1\right )}{9\,a^3}-\frac {x}{9\,a^2}-\frac {x^3}{27}+\frac {x^3\,\mathrm {polylog}\left (2,a\,x\right )}{3}-\frac {x^2}{18\,a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 3.25, size = 49, normalized size = 0.74 \[ \begin {cases} - \frac {x^{3} \operatorname {Li}_{1}\left (a x\right )}{9} + \frac {x^{3} \operatorname {Li}_{2}\left (a x\right )}{3} - \frac {x^{3}}{27} - \frac {x^{2}}{18 a} - \frac {x}{9 a^{2}} + \frac {\operatorname {Li}_{1}\left (a x\right )}{9 a^{3}} & \text {for}\: a \neq 0 \\0 & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________