Optimal. Leaf size=56 \[ \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} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0282725, antiderivative size = 56, normalized size of antiderivative = 1., 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 6591
Rule 2395
Rule 43
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.0238254, size = 48, normalized size = 0.86 \[ \frac{4 a^2 x^2 \text{PolyLog}(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]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 52, normalized size = 0.9 \begin{align*}{\frac{{x}^{2}{\it polylog} \left ( 2,ax \right ) }{2}}+{\frac{{x}^{2}\ln \left ( -ax+1 \right ) }{4}}-{\frac{\ln \left ( -ax+1 \right ) }{4\,{a}^{2}}}-{\frac{{x}^{2}}{8}}-{\frac{x}{4\,a}}+{\frac{3}{8\,{a}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.965084, size = 65, normalized size = 1.16 \begin{align*} \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}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.58187, size = 111, normalized size = 1.98 \begin{align*} \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}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.43658, size = 41, normalized size = 0.73 \begin{align*} \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} \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{\rm Li}_2\left (a x\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]