Optimal. Leaf size=156 \[ c h \log (c x) \log ^2(1-c x)+\frac {\log (1-c x) (g+h \log (1-c x))}{x}+c (g+2 h \log (1-c x)) \log \left (1-\frac {1}{1-c x}\right )+c h \log (1-c x) \text {PolyLog}(2,c x)-\frac {(g+h \log (1-c x)) \text {PolyLog}(2,c x)}{x}-2 c h \text {PolyLog}\left (2,\frac {1}{1-c x}\right )+2 c h \log (1-c x) \text {PolyLog}(2,1-c x)-c h \text {PolyLog}(3,c x)-2 c h \text {PolyLog}(3,1-c x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 156, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 10, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {6738, 2483,
2458, 2379, 2438, 6724, 6731, 2443, 2481, 2421} \begin {gather*} -\frac {\text {Li}_2(c x) (h \log (1-c x)+g)}{x}+\frac {\log (1-c x) (h \log (1-c x)+g)}{x}+c \log \left (1-\frac {1}{1-c x}\right ) (2 h \log (1-c x)+g)-2 c h \text {Li}_2\left (\frac {1}{1-c x}\right )-c h \text {Li}_3(c x)-2 c h \text {Li}_3(1-c x)+c h \text {Li}_2(c x) \log (1-c x)+2 c h \text {Li}_2(1-c x) \log (1-c x)+c h \log (c x) \log ^2(1-c x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2379
Rule 2421
Rule 2438
Rule 2443
Rule 2458
Rule 2481
Rule 2483
Rule 6724
Rule 6731
Rule 6738
Rubi steps
\begin {align*} \int \frac {(g+h \log (1-c x)) \text {Li}_2(c x)}{x^2} \, dx &=-\frac {(g+h \log (1-c x)) \text {Li}_2(c x)}{x}-(c h) \int \left (\frac {\text {Li}_2(c x)}{x}-\frac {c \text {Li}_2(c x)}{-1+c x}\right ) \, dx-\int \frac {\log (1-c x) (g+h \log (1-c x))}{x^2} \, dx\\ &=\frac {\log (1-c x) (g+h \log (1-c x))}{x}-\frac {(g+h \log (1-c x)) \text {Li}_2(c x)}{x}+c \int \frac {g+h \log (1-c x)}{x (1-c x)} \, dx+(c h) \int \frac {\log (1-c x)}{x (1-c x)} \, dx-(c h) \int \frac {\text {Li}_2(c x)}{x} \, dx+\left (c^2 h\right ) \int \frac {\text {Li}_2(c x)}{-1+c x} \, dx\\ &=\frac {\log (1-c x) (g+h \log (1-c x))}{x}+c h \log (1-c x) \text {Li}_2(c x)-\frac {(g+h \log (1-c x)) \text {Li}_2(c x)}{x}-c h \text {Li}_3(c x)+(c h) \int \frac {\log ^2(1-c x)}{x} \, dx+(c h) \int \left (\frac {\log (1-c x)}{x}-\frac {c \log (1-c x)}{-1+c x}\right ) \, dx-\text {Subst}\left (\int \frac {g+h \log (x)}{x \left (\frac {1}{c}-\frac {x}{c}\right )} \, dx,x,1-c x\right )\\ &=c h \log (c x) \log ^2(1-c x)+\frac {\log (1-c x) (g+h \log (1-c x))}{x}+c h \log (1-c x) \text {Li}_2(c x)-\frac {(g+h \log (1-c x)) \text {Li}_2(c x)}{x}-c h \text {Li}_3(c x)-c \text {Subst}\left (\int \frac {g+h \log (x)}{x} \, dx,x,1-c x\right )+(c h) \int \frac {\log (1-c x)}{x} \, dx-\left (c^2 h\right ) \int \frac {\log (1-c x)}{-1+c x} \, dx+\left (2 c^2 h\right ) \int \frac {\log (c x) \log (1-c x)}{1-c x} \, dx-\text {Subst}\left (\int \frac {g+h \log (x)}{\frac {1}{c}-\frac {x}{c}} \, dx,x,1-c x\right )\\ &=c g \log (x)+c h \log (c x) \log ^2(1-c x)+\frac {\log (1-c x) (g+h \log (1-c x))}{x}-\frac {c (g+h \log (1-c x))^2}{2 h}-c h \text {Li}_2(c x)+c h \log (1-c x) \text {Li}_2(c x)-\frac {(g+h \log (1-c x)) \text {Li}_2(c x)}{x}-c h \text {Li}_3(c x)-h \text {Subst}\left (\int \frac {\log (x)}{\frac {1}{c}-\frac {x}{c}} \, dx,x,1-c x\right )-(c h) \text {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,1-c x\right )-(2 c h) \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 g \log (x)-\frac {1}{2} c h \log ^2(1-c x)+c h \log (c x) \log ^2(1-c x)+\frac {\log (1-c x) (g+h \log (1-c x))}{x}-\frac {c (g+h \log (1-c x))^2}{2 h}-2 c h \text {Li}_2(c x)+c h \log (1-c x) \text {Li}_2(c x)-\frac {(g+h \log (1-c x)) \text {Li}_2(c x)}{x}+2 c h \log (1-c x) \text {Li}_2(1-c x)-c h \text {Li}_3(c x)-(2 c h) \text {Subst}\left (\int \frac {\text {Li}_2(x)}{x} \, dx,x,1-c x\right )\\ &=c g \log (x)-\frac {1}{2} c h \log ^2(1-c x)+c h \log (c x) \log ^2(1-c x)+\frac {\log (1-c x) (g+h \log (1-c x))}{x}-\frac {c (g+h \log (1-c x))^2}{2 h}-2 c h \text {Li}_2(c x)+c h \log (1-c x) \text {Li}_2(c x)-\frac {(g+h \log (1-c x)) \text {Li}_2(c x)}{x}+2 c h \log (1-c x) \text {Li}_2(1-c x)-c h \text {Li}_3(c x)-2 c h \text {Li}_3(1-c x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 150, normalized size = 0.96 \begin {gather*} \frac {g (c x \log (x)+(1-c x) \log (1-c x)-\text {PolyLog}(2,c x))}{x}+h \left (2 c \log (c x) \log (1-c x)-c \log ^2(1-c x)+\frac {\log ^2(1-c x)}{x}+c \log (c x) \log ^2(1-c x)+\frac {(-1+c x) \log (1-c x) \text {PolyLog}(2,c x)}{x}+2 c (1+\log (1-c x)) \text {PolyLog}(2,1-c x)-c \text {PolyLog}(3,c x)-2 c \text {PolyLog}(3,1-c x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.20, size = 0, normalized size = 0.00 \[\int \frac {\left (g +h \ln \left (-c x +1\right )\right ) \polylog \left (2, c x \right )}{x^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \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 \frac {\left (g + h \log {\left (- c x + 1 \right )}\right ) \operatorname {Li}_{2}\left (c x\right )}{x^{2}}\, 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 \frac {\left (g+h\,\ln \left (1-c\,x\right )\right )\,\mathrm {polylog}\left (2,c\,x\right )}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________