Optimal. Leaf size=46 \[ \frac{1}{2} x^2 \text{PolyLog}\left (2,a x^2\right )-\frac{\left (1-a x^2\right ) \log \left (1-a x^2\right )}{2 a}-\frac{x^2}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0252799, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.444, Rules used = {6591, 2454, 2389, 2295} \[ \frac{1}{2} x^2 \text{PolyLog}\left (2,a x^2\right )-\frac{\left (1-a x^2\right ) \log \left (1-a x^2\right )}{2 a}-\frac{x^2}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6591
Rule 2454
Rule 2389
Rule 2295
Rubi steps
\begin{align*} \int x \text{Li}_2\left (a x^2\right ) \, dx &=\frac{1}{2} x^2 \text{Li}_2\left (a x^2\right )+\int x \log \left (1-a x^2\right ) \, dx\\ &=\frac{1}{2} x^2 \text{Li}_2\left (a x^2\right )+\frac{1}{2} \operatorname{Subst}\left (\int \log (1-a x) \, dx,x,x^2\right )\\ &=\frac{1}{2} x^2 \text{Li}_2\left (a x^2\right )-\frac{\operatorname{Subst}\left (\int \log (x) \, dx,x,1-a x^2\right )}{2 a}\\ &=-\frac{x^2}{2}-\frac{\left (1-a x^2\right ) \log \left (1-a x^2\right )}{2 a}+\frac{1}{2} x^2 \text{Li}_2\left (a x^2\right )\\ \end{align*}
Mathematica [A] time = 0.0091547, size = 43, normalized size = 0.93 \[ \frac{a x^2 \text{PolyLog}\left (2,a x^2\right )-a x^2+\left (a x^2-1\right ) \log \left (1-a x^2\right )}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.045, size = 52, normalized size = 1.1 \begin{align*}{\frac{{x}^{2}{\it polylog} \left ( 2,a{x}^{2} \right ) }{2}}+{\frac{\ln \left ( -a{x}^{2}+1 \right ){x}^{2}}{2}}-{\frac{{x}^{2}}{2}}-{\frac{\ln \left ( -a{x}^{2}+1 \right ) }{2\,a}}+{\frac{1}{2\,a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.985418, size = 54, normalized size = 1.17 \begin{align*} \frac{a x^{2}{\rm Li}_2\left (a x^{2}\right ) - a x^{2} +{\left (a x^{2} - 1\right )} \log \left (-a x^{2} + 1\right )}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.57043, size = 89, normalized size = 1.93 \begin{align*} \frac{a x^{2}{\rm Li}_2\left (a x^{2}\right ) - a x^{2} +{\left (a x^{2} - 1\right )} \log \left (-a x^{2} + 1\right )}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 4.02697, size = 39, normalized size = 0.85 \begin{align*} \begin{cases} - \frac{x^{2} \operatorname{Li}_{1}\left (a x^{2}\right )}{2} + \frac{x^{2} \operatorname{Li}_{2}\left (a x^{2}\right )}{2} - \frac{x^{2}}{2} + \frac{\operatorname{Li}_{1}\left (a x^{2}\right )}{2 a} & \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^{2}\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]