Optimal. Leaf size=546 \[ -\frac{x (3 a c+2 b) \text{PolyLog}(2,c x)}{6 c^2}+\frac{(3 a c+2 b) \text{PolyLog}(3,1-c x)}{3 c^3}-\frac{(3 a c+2 b) \log (1-c x) \text{PolyLog}(2,c x)}{6 c^3}-\frac{(3 a c+2 b) \log (1-c x) \text{PolyLog}(2,1-c x)}{3 c^3}-\frac{x^2 (3 a c+2 b) \text{PolyLog}(2,c x)}{12 c}+\frac{1}{6} \left (3 a x^2+2 b x^3\right ) \log (1-c x) \text{PolyLog}(2,c x)-\frac{1}{9} b x^3 \text{PolyLog}(2,c x)+\frac{5 x (3 a c+2 b)}{24 c^2}-\frac{(3 a c+2 b) \log (c x) \log ^2(1-c x)}{6 c^3}+\frac{(3 a c+2 b) \log (1-c x)}{24 c^3}+\frac{(1-c x) (3 a c+2 b) \log (1-c x)}{6 c^3}+\frac{x^2 (3 a c+2 b)}{48 c}-\frac{x^2 (3 a c+2 b) \log (1-c x)}{24 c}+\frac{a (1-c x)^2}{8 c^2}+\frac{a (1-c x)^2 \log ^2(1-c x)}{4 c^2}-\frac{a (1-c x) \log ^2(1-c x)}{2 c^2}-\frac{a (1-c x)^2 \log (1-c x)}{4 c^2}+\frac{a (1-c x) \log (1-c x)}{c^2}+\frac{a x}{c}+\frac{4 b x}{9 c^2}-\frac{b \log ^2(1-c x)}{9 c^3}+\frac{2 b (1-c x) \log (1-c x)}{9 c^3}+\frac{2 b \log (1-c x)}{9 c^3}+\frac{b x^2}{9 c}+\frac{1}{9} b x^3 \log ^2(1-c x)-\frac{1}{9} b x^3 \log (1-c x)-\frac{b x^2 \log (1-c x)}{9 c}+\frac{b x^3}{27} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.71802, antiderivative size = 546, normalized size of antiderivative = 1., number of steps used = 40, number of rules used = 21, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 1.105, Rules used = {6742, 6591, 2395, 43, 6604, 2401, 2389, 2296, 2295, 2390, 2305, 2304, 2398, 2410, 2301, 6586, 6596, 2396, 2433, 2374, 6589} \[ -\frac{x (3 a c+2 b) \text{PolyLog}(2,c x)}{6 c^2}+\frac{(3 a c+2 b) \text{PolyLog}(3,1-c x)}{3 c^3}-\frac{(3 a c+2 b) \log (1-c x) \text{PolyLog}(2,c x)}{6 c^3}-\frac{(3 a c+2 b) \log (1-c x) \text{PolyLog}(2,1-c x)}{3 c^3}-\frac{x^2 (3 a c+2 b) \text{PolyLog}(2,c x)}{12 c}+\frac{1}{6} \left (3 a x^2+2 b x^3\right ) \log (1-c x) \text{PolyLog}(2,c x)-\frac{1}{9} b x^3 \text{PolyLog}(2,c x)+\frac{5 x (3 a c+2 b)}{24 c^2}-\frac{(3 a c+2 b) \log (c x) \log ^2(1-c x)}{6 c^3}+\frac{(3 a c+2 b) \log (1-c x)}{24 c^3}+\frac{(1-c x) (3 a c+2 b) \log (1-c x)}{6 c^3}+\frac{x^2 (3 a c+2 b)}{48 c}-\frac{x^2 (3 a c+2 b) \log (1-c x)}{24 c}+\frac{a (1-c x)^2}{8 c^2}+\frac{a (1-c x)^2 \log ^2(1-c x)}{4 c^2}-\frac{a (1-c x) \log ^2(1-c x)}{2 c^2}-\frac{a (1-c x)^2 \log (1-c x)}{4 c^2}+\frac{a (1-c x) \log (1-c x)}{c^2}+\frac{a x}{c}+\frac{4 b x}{9 c^2}-\frac{b \log ^2(1-c x)}{9 c^3}+\frac{2 b (1-c x) \log (1-c x)}{9 c^3}+\frac{2 b \log (1-c x)}{9 c^3}+\frac{b x^2}{9 c}+\frac{1}{9} b x^3 \log ^2(1-c x)-\frac{1}{9} b x^3 \log (1-c x)-\frac{b x^2 \log (1-c x)}{9 c}+\frac{b x^3}{27} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6742
Rule 6591
Rule 2395
Rule 43
Rule 6604
Rule 2401
Rule 2389
Rule 2296
Rule 2295
Rule 2390
Rule 2305
Rule 2304
Rule 2398
Rule 2410
Rule 2301
Rule 6586
Rule 6596
Rule 2396
Rule 2433
Rule 2374
Rule 6589
Rubi steps
\begin{align*} \int x (a+b x) \log (1-c x) \text{Li}_2(c x) \, dx &=\frac{1}{6} \left (3 a x^2+2 b x^3\right ) \log (1-c x) \text{Li}_2(c x)+c \int \left (\frac{(-2 b-3 a c) \text{Li}_2(c x)}{6 c^3}-\frac{(2 b+3 a c) x \text{Li}_2(c x)}{6 c^2}-\frac{b x^2 \text{Li}_2(c x)}{3 c}+\frac{(-2 b-3 a c) \text{Li}_2(c x)}{6 c^3 (-1+c x)}\right ) \, dx+\int \left (\frac{1}{2} a x \log ^2(1-c x)+\frac{1}{3} b x^2 \log ^2(1-c x)\right ) \, dx\\ &=\frac{1}{6} \left (3 a x^2+2 b x^3\right ) \log (1-c x) \text{Li}_2(c x)+\frac{1}{2} a \int x \log ^2(1-c x) \, dx+\frac{1}{3} b \int x^2 \log ^2(1-c x) \, dx-\frac{1}{3} b \int x^2 \text{Li}_2(c x) \, dx-\frac{(2 b+3 a c) \int \text{Li}_2(c x) \, dx}{6 c^2}-\frac{(2 b+3 a c) \int \frac{\text{Li}_2(c x)}{-1+c x} \, dx}{6 c^2}-\frac{(2 b+3 a c) \int x \text{Li}_2(c x) \, dx}{6 c}\\ &=\frac{1}{9} b x^3 \log ^2(1-c x)-\frac{(2 b+3 a c) x \text{Li}_2(c x)}{6 c^2}-\frac{(2 b+3 a c) x^2 \text{Li}_2(c x)}{12 c}-\frac{1}{9} b x^3 \text{Li}_2(c x)-\frac{(2 b+3 a c) \log (1-c x) \text{Li}_2(c x)}{6 c^3}+\frac{1}{6} \left (3 a x^2+2 b x^3\right ) \log (1-c x) \text{Li}_2(c x)+\frac{1}{2} a \int \left (\frac{\log ^2(1-c x)}{c}-\frac{(1-c x) \log ^2(1-c x)}{c}\right ) \, dx-\frac{1}{9} b \int x^2 \log (1-c x) \, dx+\frac{1}{9} (2 b c) \int \frac{x^3 \log (1-c x)}{1-c x} \, dx-\frac{(2 b+3 a c) \int \frac{\log ^2(1-c x)}{x} \, dx}{6 c^3}-\frac{(2 b+3 a c) \int \log (1-c x) \, dx}{6 c^2}-\frac{(2 b+3 a c) \int x \log (1-c x) \, dx}{12 c}\\ &=-\frac{(2 b+3 a c) x^2 \log (1-c x)}{24 c}-\frac{1}{27} b x^3 \log (1-c x)+\frac{1}{9} b x^3 \log ^2(1-c x)-\frac{(2 b+3 a c) \log (c x) \log ^2(1-c x)}{6 c^3}-\frac{(2 b+3 a c) x \text{Li}_2(c x)}{6 c^2}-\frac{(2 b+3 a c) x^2 \text{Li}_2(c x)}{12 c}-\frac{1}{9} b x^3 \text{Li}_2(c x)-\frac{(2 b+3 a c) \log (1-c x) \text{Li}_2(c x)}{6 c^3}+\frac{1}{6} \left (3 a x^2+2 b x^3\right ) \log (1-c x) \text{Li}_2(c x)+\frac{a \int \log ^2(1-c x) \, dx}{2 c}-\frac{a \int (1-c x) \log ^2(1-c x) \, dx}{2 c}-\frac{1}{27} (b c) \int \frac{x^3}{1-c x} \, dx+\frac{1}{9} (2 b c) \int \left (-\frac{\log (1-c x)}{c^3}-\frac{x \log (1-c x)}{c^2}-\frac{x^2 \log (1-c x)}{c}-\frac{\log (1-c x)}{c^3 (-1+c x)}\right ) \, dx-\frac{1}{24} (2 b+3 a c) \int \frac{x^2}{1-c x} \, dx+\frac{(2 b+3 a c) \operatorname{Subst}(\int \log (x) \, dx,x,1-c x)}{6 c^3}-\frac{(2 b+3 a c) \int \frac{\log (c x) \log (1-c x)}{1-c x} \, dx}{3 c^2}\\ &=\frac{(2 b+3 a c) x}{6 c^2}-\frac{(2 b+3 a c) x^2 \log (1-c x)}{24 c}-\frac{1}{27} b x^3 \log (1-c x)+\frac{(2 b+3 a c) (1-c x) \log (1-c x)}{6 c^3}+\frac{1}{9} b x^3 \log ^2(1-c x)-\frac{(2 b+3 a c) \log (c x) \log ^2(1-c x)}{6 c^3}-\frac{(2 b+3 a c) x \text{Li}_2(c x)}{6 c^2}-\frac{(2 b+3 a c) x^2 \text{Li}_2(c x)}{12 c}-\frac{1}{9} b x^3 \text{Li}_2(c x)-\frac{(2 b+3 a c) \log (1-c x) \text{Li}_2(c x)}{6 c^3}+\frac{1}{6} \left (3 a x^2+2 b x^3\right ) \log (1-c x) \text{Li}_2(c x)-\frac{1}{9} (2 b) \int x^2 \log (1-c x) \, dx-\frac{a \operatorname{Subst}\left (\int \log ^2(x) \, dx,x,1-c x\right )}{2 c^2}+\frac{a \operatorname{Subst}\left (\int x \log ^2(x) \, dx,x,1-c x\right )}{2 c^2}-\frac{(2 b) \int \log (1-c x) \, dx}{9 c^2}-\frac{(2 b) \int \frac{\log (1-c x)}{-1+c x} \, dx}{9 c^2}-\frac{(2 b) \int x \log (1-c x) \, dx}{9 c}-\frac{1}{27} (b c) \int \left (-\frac{1}{c^3}-\frac{x}{c^2}-\frac{x^2}{c}-\frac{1}{c^3 (-1+c x)}\right ) \, dx-\frac{1}{24} (2 b+3 a c) \int \left (-\frac{1}{c^2}-\frac{x}{c}-\frac{1}{c^2 (-1+c x)}\right ) \, dx+\frac{(2 b+3 a c) \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 )}{3 c^3}\\ &=\frac{b x}{27 c^2}+\frac{5 (2 b+3 a c) x}{24 c^2}+\frac{b x^2}{54 c}+\frac{(2 b+3 a c) x^2}{48 c}+\frac{b x^3}{81}+\frac{b \log (1-c x)}{27 c^3}+\frac{(2 b+3 a c) \log (1-c x)}{24 c^3}-\frac{b x^2 \log (1-c x)}{9 c}-\frac{(2 b+3 a c) x^2 \log (1-c x)}{24 c}-\frac{1}{9} b x^3 \log (1-c x)+\frac{(2 b+3 a c) (1-c x) \log (1-c x)}{6 c^3}+\frac{1}{9} b x^3 \log ^2(1-c x)-\frac{a (1-c x) \log ^2(1-c x)}{2 c^2}+\frac{a (1-c x)^2 \log ^2(1-c x)}{4 c^2}-\frac{(2 b+3 a c) \log (c x) \log ^2(1-c x)}{6 c^3}-\frac{(2 b+3 a c) x \text{Li}_2(c x)}{6 c^2}-\frac{(2 b+3 a c) x^2 \text{Li}_2(c x)}{12 c}-\frac{1}{9} b x^3 \text{Li}_2(c x)-\frac{(2 b+3 a c) \log (1-c x) \text{Li}_2(c x)}{6 c^3}+\frac{1}{6} \left (3 a x^2+2 b x^3\right ) \log (1-c x) \text{Li}_2(c x)-\frac{(2 b+3 a c) \log (1-c x) \text{Li}_2(1-c x)}{3 c^3}-\frac{1}{9} b \int \frac{x^2}{1-c x} \, dx+\frac{(2 b) \operatorname{Subst}(\int \log (x) \, dx,x,1-c x)}{9 c^3}-\frac{(2 b) \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,1-c x\right )}{9 c^3}-\frac{a \operatorname{Subst}(\int x \log (x) \, dx,x,1-c x)}{2 c^2}+\frac{a \operatorname{Subst}(\int \log (x) \, dx,x,1-c x)}{c^2}-\frac{1}{27} (2 b c) \int \frac{x^3}{1-c x} \, dx+\frac{(2 b+3 a c) \operatorname{Subst}\left (\int \frac{\text{Li}_2(x)}{x} \, dx,x,1-c x\right )}{3 c^3}\\ &=\frac{7 b x}{27 c^2}+\frac{a x}{c}+\frac{5 (2 b+3 a c) x}{24 c^2}+\frac{b x^2}{54 c}+\frac{(2 b+3 a c) x^2}{48 c}+\frac{b x^3}{81}+\frac{a (1-c x)^2}{8 c^2}+\frac{b \log (1-c x)}{27 c^3}+\frac{(2 b+3 a c) \log (1-c x)}{24 c^3}-\frac{b x^2 \log (1-c x)}{9 c}-\frac{(2 b+3 a c) x^2 \log (1-c x)}{24 c}-\frac{1}{9} b x^3 \log (1-c x)+\frac{2 b (1-c x) \log (1-c x)}{9 c^3}+\frac{a (1-c x) \log (1-c x)}{c^2}+\frac{(2 b+3 a c) (1-c x) \log (1-c x)}{6 c^3}-\frac{a (1-c x)^2 \log (1-c x)}{4 c^2}-\frac{b \log ^2(1-c x)}{9 c^3}+\frac{1}{9} b x^3 \log ^2(1-c x)-\frac{a (1-c x) \log ^2(1-c x)}{2 c^2}+\frac{a (1-c x)^2 \log ^2(1-c x)}{4 c^2}-\frac{(2 b+3 a c) \log (c x) \log ^2(1-c x)}{6 c^3}-\frac{(2 b+3 a c) x \text{Li}_2(c x)}{6 c^2}-\frac{(2 b+3 a c) x^2 \text{Li}_2(c x)}{12 c}-\frac{1}{9} b x^3 \text{Li}_2(c x)-\frac{(2 b+3 a c) \log (1-c x) \text{Li}_2(c x)}{6 c^3}+\frac{1}{6} \left (3 a x^2+2 b x^3\right ) \log (1-c x) \text{Li}_2(c x)-\frac{(2 b+3 a c) \log (1-c x) \text{Li}_2(1-c x)}{3 c^3}+\frac{(2 b+3 a c) \text{Li}_3(1-c x)}{3 c^3}-\frac{1}{9} b \int \left (-\frac{1}{c^2}-\frac{x}{c}-\frac{1}{c^2 (-1+c x)}\right ) \, dx-\frac{1}{27} (2 b c) \int \left (-\frac{1}{c^3}-\frac{x}{c^2}-\frac{x^2}{c}-\frac{1}{c^3 (-1+c x)}\right ) \, dx\\ &=\frac{4 b x}{9 c^2}+\frac{a x}{c}+\frac{5 (2 b+3 a c) x}{24 c^2}+\frac{b x^2}{9 c}+\frac{(2 b+3 a c) x^2}{48 c}+\frac{b x^3}{27}+\frac{a (1-c x)^2}{8 c^2}+\frac{2 b \log (1-c x)}{9 c^3}+\frac{(2 b+3 a c) \log (1-c x)}{24 c^3}-\frac{b x^2 \log (1-c x)}{9 c}-\frac{(2 b+3 a c) x^2 \log (1-c x)}{24 c}-\frac{1}{9} b x^3 \log (1-c x)+\frac{2 b (1-c x) \log (1-c x)}{9 c^3}+\frac{a (1-c x) \log (1-c x)}{c^2}+\frac{(2 b+3 a c) (1-c x) \log (1-c x)}{6 c^3}-\frac{a (1-c x)^2 \log (1-c x)}{4 c^2}-\frac{b \log ^2(1-c x)}{9 c^3}+\frac{1}{9} b x^3 \log ^2(1-c x)-\frac{a (1-c x) \log ^2(1-c x)}{2 c^2}+\frac{a (1-c x)^2 \log ^2(1-c x)}{4 c^2}-\frac{(2 b+3 a c) \log (c x) \log ^2(1-c x)}{6 c^3}-\frac{(2 b+3 a c) x \text{Li}_2(c x)}{6 c^2}-\frac{(2 b+3 a c) x^2 \text{Li}_2(c x)}{12 c}-\frac{1}{9} b x^3 \text{Li}_2(c x)-\frac{(2 b+3 a c) \log (1-c x) \text{Li}_2(c x)}{6 c^3}+\frac{1}{6} \left (3 a x^2+2 b x^3\right ) \log (1-c x) \text{Li}_2(c x)-\frac{(2 b+3 a c) \log (1-c x) \text{Li}_2(1-c x)}{3 c^3}+\frac{(2 b+3 a c) \text{Li}_3(1-c x)}{3 c^3}\\ \end{align*}
Mathematica [A] time = 0.610532, size = 362, normalized size = 0.66 \[ \frac{12 \text{PolyLog}(2,c x) \left (6 \log (1-c x) \left (3 a c \left (c^2 x^2-1\right )+2 b \left (c^3 x^3-1\right )\right )-c x \left (9 a c (c x+2)+2 b \left (2 c^2 x^2+3 c x+6\right )\right )\right )-144 (3 a c+2 b) \log (1-c x) \text{PolyLog}(2,1-c x)+432 a c \text{PolyLog}(3,1-c x)+288 b \text{PolyLog}(3,1-c x)+81 a c^3 x^2+108 a c^3 x^2 \log ^2(1-c x)-162 a c^3 x^2 \log (1-c x)+594 a c^2 x-432 a c^2 x \log (1-c x)-108 a c \log ^2(1-c x)-216 a c \log (c x) \log ^2(1-c x)+594 a c \log (1-c x)-378 a c+16 b c^3 x^3+66 b c^2 x^2+48 b c^3 x^3 \log ^2(1-c x)-48 b c^3 x^3 \log (1-c x)-84 b c^2 x^2 \log (1-c x)+372 b c x-48 b \log ^2(1-c x)-144 b \log (c x) \log ^2(1-c x)-240 b c x \log (1-c x)+372 b \log (1-c x)}{432 c^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.007, size = 0, normalized size = 0. \begin{align*} \int x \left ( bx+a \right ) \ln \left ( -cx+1 \right ){\it polylog} \left ( 2,cx \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.03758, size = 466, normalized size = 0.85 \begin{align*} -\frac{1}{432} \, c{\left (\frac{72 \,{\left (\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)\right )}{\left (3 \, a c + 2 \, b\right )}}{c^{4}} - \frac{16 \, b c^{3} x^{3} + 3 \,{\left (27 \, a c^{3} + 22 \, b c^{2}\right )} x^{2} + 6 \,{\left (99 \, a c^{2} + 62 \, b c\right )} x - 12 \,{\left (4 \, b c^{3} x^{3} + 3 \,{\left (3 \, a c^{3} + 2 \, b c^{2}\right )} x^{2} + 6 \,{\left (3 \, a c^{2} + 2 \, b c\right )} x + 6 \,{\left (3 \, a c + 2 \, b\right )} \log \left (-c x + 1\right )\right )}{\rm Li}_2\left (c x\right ) - 2 \,{\left (16 \, b c^{3} x^{3} + 6 \,{\left (9 \, a c^{3} + 5 \, b c^{2}\right )} x^{2} - 297 \, a c + 6 \,{\left (27 \, a c^{2} + 16 \, b c\right )} x - 186 \, b\right )} \log \left (-c x + 1\right )}{c^{4}}\right )} + \frac{1}{216} \,{\left (\frac{27 \,{\left (4 \, c^{2} x^{2}{\rm Li}_2\left (c x\right ) - c^{2} x^{2} - 2 \, c x + 2 \,{\left (c^{2} x^{2} - 1\right )} \log \left (-c x + 1\right )\right )} a}{c^{2}} + \frac{4 \,{\left (18 \, c^{3} x^{3}{\rm Li}_2\left (c x\right ) - 2 \, c^{3} x^{3} - 3 \, c^{2} x^{2} - 6 \, c x + 6 \,{\left (c^{3} x^{3} - 1\right )} \log \left (-c x + 1\right )\right )} b}{c^{3}}\right )} \log \left (-c x + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (b x^{2} + a x\right )}{\rm Li}_2\left (c x\right ) \log \left (-c x + 1\right ), x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \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{\left (b x + a\right )} x{\rm Li}_2\left (c x\right ) \log \left (-c x + 1\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]