Optimal. Leaf size=36 \[ -\frac{\text{PolyLog}(2,a x)}{x}+a \log (x)-a \log (1-a x)+\frac{\log (1-a x)}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0218984, antiderivative size = 36, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.556, Rules used = {6591, 2395, 36, 29, 31} \[ -\frac{\text{PolyLog}(2,a x)}{x}+a \log (x)-a \log (1-a x)+\frac{\log (1-a x)}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6591
Rule 2395
Rule 36
Rule 29
Rule 31
Rubi steps
\begin{align*} \int \frac{\text{Li}_2(a x)}{x^2} \, dx &=-\frac{\text{Li}_2(a x)}{x}-\int \frac{\log (1-a x)}{x^2} \, dx\\ &=\frac{\log (1-a x)}{x}-\frac{\text{Li}_2(a x)}{x}+a \int \frac{1}{x (1-a x)} \, dx\\ &=\frac{\log (1-a x)}{x}-\frac{\text{Li}_2(a x)}{x}+a \int \frac{1}{x} \, dx+a^2 \int \frac{1}{1-a x} \, dx\\ &=a \log (x)-a \log (1-a x)+\frac{\log (1-a x)}{x}-\frac{\text{Li}_2(a x)}{x}\\ \end{align*}
Mathematica [A] time = 0.0097221, size = 36, normalized size = 1. \[ -\frac{\text{PolyLog}(2,a x)}{x}+a \log (x)-a \log (1-a x)+\frac{\log (1-a x)}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.119, size = 40, normalized size = 1.1 \begin{align*} -{\frac{{\it polylog} \left ( 2,ax \right ) }{x}}+a\ln \left ( -ax \right ) -a\ln \left ( -ax+1 \right ) +{\frac{\ln \left ( -ax+1 \right ) }{x}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.00914, size = 38, normalized size = 1.06 \begin{align*} a \log \left (x\right ) - \frac{{\left (a x - 1\right )} \log \left (-a x + 1\right ) +{\rm Li}_2\left (a x\right )}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.78236, size = 88, normalized size = 2.44 \begin{align*} -\frac{a x \log \left (a x - 1\right ) - a x \log \left (x\right ) +{\rm Li}_2\left (a x\right ) - \log \left (-a x + 1\right )}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.56346, size = 24, normalized size = 0.67 \begin{align*} a \log{\left (x \right )} + a \operatorname{Li}_{1}\left (a x\right ) - \frac{\operatorname{Li}_{1}\left (a x\right )}{x} - \frac{\operatorname{Li}_{2}\left (a x\right )}{x} \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 \frac{{\rm Li}_2\left (a x\right )}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]