Optimal. Leaf size=132 \[ 3 x+\frac {3 (1-c x) \log (1-c x)}{c}-\frac {(1-c x) \log ^2(1-c x)}{c}-\frac {\log (c x) \log ^2(1-c x)}{c}-x \text {PolyLog}(2,c x)-\frac {\log (1-c x) \text {PolyLog}(2,c x)}{c}+x \log (1-c x) \text {PolyLog}(2,c x)-\frac {2 \log (1-c x) \text {PolyLog}(2,1-c x)}{c}+\frac {2 \text {PolyLog}(3,1-c x)}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 132, normalized size of antiderivative = 1.00, number of steps
used = 15, number of rules used = 12, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.923, Rules used = {6721, 2436,
2332, 6735, 2333, 6820, 6874, 6731, 2443, 2481, 2421, 6724} \begin {gather*} -x \text {Li}_2(c x)+\frac {2 \text {Li}_3(1-c x)}{c}+x \text {Li}_2(c x) \log (1-c x)-\frac {\text {Li}_2(c x) \log (1-c x)}{c}-\frac {2 \text {Li}_2(1-c x) \log (1-c x)}{c}-\frac {(1-c x) \log ^2(1-c x)}{c}-\frac {\log (c x) \log ^2(1-c x)}{c}+\frac {3 (1-c x) \log (1-c x)}{c}+3 x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2332
Rule 2333
Rule 2421
Rule 2436
Rule 2443
Rule 2481
Rule 6721
Rule 6724
Rule 6731
Rule 6735
Rule 6820
Rule 6874
Rubi steps
\begin {align*} \int \log (1-c x) \text {Li}_2(c x) \, dx &=x \log (1-c x) \text {Li}_2(c x)+c \int \left (-\frac {1}{c}-\frac {1}{c (-1+c x)}\right ) \text {Li}_2(c x) \, dx+\int \log ^2(1-c x) \, dx\\ &=x \log (1-c x) \text {Li}_2(c x)-\frac {\text {Subst}\left (\int \log ^2(x) \, dx,x,1-c x\right )}{c}+c \int \frac {x \text {Li}_2(c x)}{1-c x} \, dx\\ &=-\frac {(1-c x) \log ^2(1-c x)}{c}+x \log (1-c x) \text {Li}_2(c x)+\frac {2 \text {Subst}(\int \log (x) \, dx,x,1-c x)}{c}+c \int \left (-\frac {\text {Li}_2(c x)}{c}-\frac {\text {Li}_2(c x)}{c (-1+c x)}\right ) \, dx\\ &=2 x+\frac {2 (1-c x) \log (1-c x)}{c}-\frac {(1-c x) \log ^2(1-c x)}{c}+x \log (1-c x) \text {Li}_2(c x)-\int \text {Li}_2(c x) \, dx-\int \frac {\text {Li}_2(c x)}{-1+c x} \, dx\\ &=2 x+\frac {2 (1-c x) \log (1-c x)}{c}-\frac {(1-c x) \log ^2(1-c x)}{c}-x \text {Li}_2(c x)-\frac {\log (1-c x) \text {Li}_2(c x)}{c}+x \log (1-c x) \text {Li}_2(c x)-\frac {\int \frac {\log ^2(1-c x)}{x} \, dx}{c}-\int \log (1-c x) \, dx\\ &=2 x+\frac {2 (1-c x) \log (1-c x)}{c}-\frac {(1-c x) \log ^2(1-c x)}{c}-\frac {\log (c x) \log ^2(1-c x)}{c}-x \text {Li}_2(c x)-\frac {\log (1-c x) \text {Li}_2(c x)}{c}+x \log (1-c x) \text {Li}_2(c x)-2 \int \frac {\log (c x) \log (1-c x)}{1-c x} \, dx+\frac {\text {Subst}(\int \log (x) \, dx,x,1-c x)}{c}\\ &=3 x+\frac {3 (1-c x) \log (1-c x)}{c}-\frac {(1-c x) \log ^2(1-c x)}{c}-\frac {\log (c x) \log ^2(1-c x)}{c}-x \text {Li}_2(c x)-\frac {\log (1-c x) \text {Li}_2(c x)}{c}+x \log (1-c x) \text {Li}_2(c x)+\frac {2 \text {Subst}\left (\int \frac {\log (x) \log \left (c \left (\frac {1}{c}-\frac {x}{c}\right )\right )}{x} \, dx,x,1-c x\right )}{c}\\ &=3 x+\frac {3 (1-c x) \log (1-c x)}{c}-\frac {(1-c x) \log ^2(1-c x)}{c}-\frac {\log (c x) \log ^2(1-c x)}{c}-x \text {Li}_2(c x)-\frac {\log (1-c x) \text {Li}_2(c x)}{c}+x \log (1-c x) \text {Li}_2(c x)-\frac {2 \log (1-c x) \text {Li}_2(1-c x)}{c}+\frac {2 \text {Subst}\left (\int \frac {\text {Li}_2(x)}{x} \, dx,x,1-c x\right )}{c}\\ &=3 x+\frac {3 (1-c x) \log (1-c x)}{c}-\frac {(1-c x) \log ^2(1-c x)}{c}-\frac {\log (c x) \log ^2(1-c x)}{c}-x \text {Li}_2(c x)-\frac {\log (1-c x) \text {Li}_2(c x)}{c}+x \log (1-c x) \text {Li}_2(c x)-\frac {2 \log (1-c x) \text {Li}_2(1-c x)}{c}+\frac {2 \text {Li}_3(1-c x)}{c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 119, normalized size = 0.90 \begin {gather*} \frac {-2+3 c x+3 \log (1-c x)-3 c x \log (1-c x)-\log ^2(1-c x)+c x \log ^2(1-c x)-\log (c x) \log ^2(1-c x)+(-c x+(-1+c x) \log (1-c x)) \text {PolyLog}(2,c x)-2 \log (1-c x) \text {PolyLog}(2,1-c x)+2 \text {PolyLog}(3,1-c x)}{c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \ln \left (-c x +1\right ) \polylog \left (2, c x \right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 141, normalized size = 1.07 \begin {gather*} c {\left (\frac {x}{c} + \frac {\log \left (c x - 1\right )}{c^{2}}\right )} + \frac {{\left (c x {\rm Li}_2\left (c x\right ) - c x + {\left (c x - 1\right )} \log \left (-c x + 1\right )\right )} \log \left (-c x + 1\right )}{c} - \frac {\log \left (c x\right ) \log \left (-c x + 1\right )^{2} + 2 \, {\rm Li}_2\left (-c x + 1\right ) \log \left (-c x + 1\right ) - 2 \, {\rm Li}_{3}(-c x + 1)}{c} + \frac {2 \, c x - {\left (c x + \log \left (-c x + 1\right )\right )} {\rm Li}_2\left (c x\right ) - 2 \, {\left (c x - 1\right )} \log \left (-c x + 1\right )}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \log {\left (- c x + 1 \right )} \operatorname {Li}_{2}\left (c x\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \ln \left (1-c\,x\right )\,\mathrm {polylog}\left (2,c\,x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________