Optimal. Leaf size=56 \[ -\frac {\log (1-a x)}{4 a^2}+\frac {1}{2} x^2 \text {Li}_2(a x)+\frac {1}{4} x^2 \log (1-a x)-\frac {x}{4 a}-\frac {x^2}{8} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {6591, 2395, 43} \[ \frac {1}{2} x^2 \text {PolyLog}(2,a x)-\frac {\log (1-a x)}{4 a^2}+\frac {1}{4} x^2 \log (1-a x)-\frac {x}{4 a}-\frac {x^2}{8} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 2395
Rule 6591
Rubi steps
\begin {align*} \int x \text {Li}_2(a x) \, dx &=\frac {1}{2} x^2 \text {Li}_2(a x)+\frac {1}{2} \int x \log (1-a x) \, dx\\ &=\frac {1}{4} x^2 \log (1-a x)+\frac {1}{2} x^2 \text {Li}_2(a x)+\frac {1}{4} a \int \frac {x^2}{1-a x} \, dx\\ &=\frac {1}{4} x^2 \log (1-a x)+\frac {1}{2} x^2 \text {Li}_2(a x)+\frac {1}{4} a \int \left (-\frac {1}{a^2}-\frac {x}{a}-\frac {1}{a^2 (-1+a x)}\right ) \, dx\\ &=-\frac {x}{4 a}-\frac {x^2}{8}-\frac {\log (1-a x)}{4 a^2}+\frac {1}{4} x^2 \log (1-a x)+\frac {1}{2} x^2 \text {Li}_2(a x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 48, normalized size = 0.86 \[ \frac {4 a^2 x^2 \text {Li}_2(a x)+2 \left (a^2 x^2-1\right ) \log (1-a x)-a x (a x+2)}{8 a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.56, size = 48, normalized size = 0.86 \[ \frac {4 \, a^{2} x^{2} {\rm Li}_2\left (a x\right ) - a^{2} x^{2} - 2 \, a x + 2 \, {\left (a^{2} x^{2} - 1\right )} \log \left (-a x + 1\right )}{8 \, a^{2}} \]
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 {\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 = 52, normalized size = 0.93 \[ \frac {x^{2} \polylog \left (2, a x \right )}{2}-\frac {\ln \left (-a x +1\right )}{4 a^{2}}+\frac {3}{8 a^{2}}-\frac {x}{4 a}+\frac {x^{2} \ln \left (-a x +1\right )}{4}-\frac {x^{2}}{8} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 48, normalized size = 0.86 \[ \frac {4 \, a^{2} x^{2} {\rm Li}_2\left (a x\right ) - a^{2} x^{2} - 2 \, a x + 2 \, {\left (a^{2} x^{2} - 1\right )} \log \left (-a x + 1\right )}{8 \, a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.34, size = 46, normalized size = 0.82 \[ \frac {x^2\,\ln \left (1-a\,x\right )}{4}-\frac {\ln \left (1-a\,x\right )}{4\,a^2}-\frac {x}{4\,a}-\frac {x^2}{8}+\frac {x^2\,\mathrm {polylog}\left (2,a\,x\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.81, size = 41, normalized size = 0.73 \[ \begin {cases} - \frac {x^{2} \operatorname {Li}_{1}\left (a x\right )}{4} + \frac {x^{2} \operatorname {Li}_{2}\left (a x\right )}{2} - \frac {x^{2}}{8} - \frac {x}{4 a} + \frac {\operatorname {Li}_{1}\left (a x\right )}{4 a^{2}} & \text {for}\: a \neq 0 \\0 & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________