Optimal. Leaf size=66 \[ \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} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0396548, antiderivative size = 66, normalized size of antiderivative = 1., 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 6591
Rule 2395
Rule 43
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.0292432, size = 57, normalized size = 0.86 \[ \frac{18 a^3 x^3 \text{PolyLog}(2,a x)-a x \left (2 a^2 x^2+3 a x+6\right )+6 \left (a^3 x^3-1\right ) \log (1-a x)}{54 a^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.047, size = 60, normalized size = 0.9 \begin{align*}{\frac{{x}^{3}{\it polylog} \left ( 2,ax \right ) }{3}}+{\frac{{x}^{3}\ln \left ( -ax+1 \right ) }{9}}-{\frac{\ln \left ( -ax+1 \right ) }{9\,{a}^{3}}}-{\frac{{x}^{3}}{27}}-{\frac{{x}^{2}}{18\,a}}-{\frac{x}{9\,{a}^{2}}}+{\frac{11}{54\,{a}^{3}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.973299, size = 76, normalized size = 1.15 \begin{align*} \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}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.59888, size = 132, normalized size = 2. \begin{align*} \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}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 4.42809, size = 49, normalized size = 0.74 \begin{align*} \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} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{2}{\rm Li}_2\left (a x\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]