Optimal. Leaf size=156 \[ -\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) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.36, antiderivative size = 165, normalized size of antiderivative = 1.06, number of steps used = 19, number of rules used = 15, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.750, Rules used = {6603, 2439, 2410, 2391, 2390, 2301, 2411, 2344, 2316, 2315, 6589, 6596, 2396, 2433, 2374} \[ -\frac {\text {PolyLog}(2,c x) (h \log (1-c x)+g)}{x}-2 c h \text {PolyLog}(2,c x)-c h \text {PolyLog}(3,c x)-2 c h \text {PolyLog}(3,1-c x)+c h \log (1-c x) \text {PolyLog}(2,c x)+2 c h \log (1-c x) \text {PolyLog}(2,1-c x)+\frac {\log (1-c x) (h \log (1-c x)+g)}{x}-\frac {c (h \log (1-c x)+g)^2}{2 h}+c g \log (x)-\frac {1}{2} c h \log ^2(1-c x)+c h \log (c x) \log ^2(1-c x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2301
Rule 2315
Rule 2316
Rule 2344
Rule 2374
Rule 2390
Rule 2391
Rule 2396
Rule 2410
Rule 2411
Rule 2433
Rule 2439
Rule 6589
Rule 6596
Rule 6603
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-\operatorname {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 \operatorname {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-\operatorname {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 \operatorname {Subst}\left (\int \frac {\log (x)}{\frac {1}{c}-\frac {x}{c}} \, dx,x,1-c x\right )-(c h) \operatorname {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,1-c x\right )-(2 c h) \operatorname {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) \operatorname {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.15, size = 150, normalized size = 0.96 \[ \frac {g (-\text {Li}_2(c x)+c x \log (x)+(1-c x) \log (1-c x))}{x}+h \left (-c \text {Li}_3(c x)-2 c \text {Li}_3(1-c x)+\frac {(c x-1) \text {Li}_2(c x) \log (1-c x)}{x}+2 c \text {Li}_2(1-c x) (\log (1-c x)+1)-c \log ^2(1-c x)+c \log (c x) \log ^2(1-c x)+\frac {\log ^2(1-c x)}{x}+2 c \log (c x) \log (1-c x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.54, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {h {\rm Li}_2\left (c x\right ) \log \left (-c x + 1\right ) + g {\rm Li}_2\left (c x\right )}{x^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (h \log \left (-c x + 1\right ) + g\right )} {\rm Li}_2\left (c x\right )}{x^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.27, 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 \[ {\left (c \log \relax (x) - \frac {{\left (c x - 1\right )} \log \left (-c x + 1\right ) + {\rm Li}_2\left (c x\right )}{x}\right )} g + h \int \frac {{\rm Li}_2\left (c x\right ) \log \left (-c x + 1\right )}{x^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\left (g+h\,\ln \left (1-c\,x\right )\right )\,\mathrm {polylog}\left (2,c\,x\right )}{x^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (g + h \log {\left (- c x + 1 \right )}\right ) \operatorname {Li}_{2}\left (c x\right )}{x^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________