Optimal. Leaf size=210 \[ -\frac{(b d-a e)^2 \text{PolyLog}(2,c (a+b x))}{2 b^2 e}+\frac{(d+e x)^2 \text{PolyLog}(2,c (a+b x))}{2 e}-\frac{(-a c e+b c d+e)^2 \log (-a c-b c x+1)}{4 b^2 c^2 e}-\frac{(-a c-b c x+1) (b d-a e) \log (-a c-b c x+1)}{2 b^2 c}-\frac{x (-a c e+b c d+e)}{4 b c}+\frac{(d+e x)^2 \log (-a c-b c x+1)}{4 e}-\frac{x (b d-a e)}{2 b}-\frac{(d+e x)^2}{8 e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.196508, antiderivative size = 210, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 8, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.533, Rules used = {6598, 2418, 2389, 2295, 2393, 2391, 2395, 43} \[ -\frac{(b d-a e)^2 \text{PolyLog}(2,c (a+b x))}{2 b^2 e}+\frac{(d+e x)^2 \text{PolyLog}(2,c (a+b x))}{2 e}-\frac{(-a c e+b c d+e)^2 \log (-a c-b c x+1)}{4 b^2 c^2 e}-\frac{(-a c-b c x+1) (b d-a e) \log (-a c-b c x+1)}{2 b^2 c}-\frac{x (-a c e+b c d+e)}{4 b c}+\frac{(d+e x)^2 \log (-a c-b c x+1)}{4 e}-\frac{x (b d-a e)}{2 b}-\frac{(d+e x)^2}{8 e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6598
Rule 2418
Rule 2389
Rule 2295
Rule 2393
Rule 2391
Rule 2395
Rule 43
Rubi steps
\begin{align*} \int (d+e x) \text{Li}_2(c (a+b x)) \, dx &=\frac{(d+e x)^2 \text{Li}_2(c (a+b x))}{2 e}+\frac{b \int \frac{(d+e x)^2 \log (1-a c-b c x)}{a+b x} \, dx}{2 e}\\ &=\frac{(d+e x)^2 \text{Li}_2(c (a+b x))}{2 e}+\frac{b \int \left (\frac{e (b d-a e) \log (1-a c-b c x)}{b^2}+\frac{(b d-a e)^2 \log (1-a c-b c x)}{b^2 (a+b x)}+\frac{e (d+e x) \log (1-a c-b c x)}{b}\right ) \, dx}{2 e}\\ &=\frac{(d+e x)^2 \text{Li}_2(c (a+b x))}{2 e}+\frac{1}{2} \int (d+e x) \log (1-a c-b c x) \, dx+\frac{(b d-a e) \int \log (1-a c-b c x) \, dx}{2 b}+\frac{(b d-a e)^2 \int \frac{\log (1-a c-b c x)}{a+b x} \, dx}{2 b e}\\ &=\frac{(d+e x)^2 \log (1-a c-b c x)}{4 e}+\frac{(d+e x)^2 \text{Li}_2(c (a+b x))}{2 e}+\frac{(b c) \int \frac{(d+e x)^2}{1-a c-b c x} \, dx}{4 e}-\frac{(b d-a e) \operatorname{Subst}(\int \log (x) \, dx,x,1-a c-b c x)}{2 b^2 c}+\frac{(b d-a e)^2 \operatorname{Subst}\left (\int \frac{\log (1-c x)}{x} \, dx,x,a+b x\right )}{2 b^2 e}\\ &=-\frac{(b d-a e) x}{2 b}-\frac{(b d-a e) (1-a c-b c x) \log (1-a c-b c x)}{2 b^2 c}+\frac{(d+e x)^2 \log (1-a c-b c x)}{4 e}-\frac{(b d-a e)^2 \text{Li}_2(c (a+b x))}{2 b^2 e}+\frac{(d+e x)^2 \text{Li}_2(c (a+b x))}{2 e}+\frac{(b c) \int \left (-\frac{e (b c d+e-a c e)}{b^2 c^2}+\frac{(b c d+e-a c e)^2}{b^2 c^2 (1-a c-b c x)}-\frac{e (d+e x)}{b c}\right ) \, dx}{4 e}\\ &=-\frac{(b d-a e) x}{2 b}-\frac{(b c d+e-a c e) x}{4 b c}-\frac{(d+e x)^2}{8 e}-\frac{(b c d+e-a c e)^2 \log (1-a c-b c x)}{4 b^2 c^2 e}-\frac{(b d-a e) (1-a c-b c x) \log (1-a c-b c x)}{2 b^2 c}+\frac{(d+e x)^2 \log (1-a c-b c x)}{4 e}-\frac{(b d-a e)^2 \text{Li}_2(c (a+b x))}{2 b^2 e}+\frac{(d+e x)^2 \text{Li}_2(c (a+b x))}{2 e}\\ \end{align*}
Mathematica [A] time = 0.0900849, size = 161, normalized size = 0.77 \[ \frac{e \left (-4 a^2 c^2 \text{PolyLog}(2,c (a+b x))+\left (-6 a^2 c^2-4 a c (b c x-2)+2 b^2 c^2 x^2-2\right ) \log (-a c-b c x+1)-b c x (-6 a c+b c x+2)\right )}{8 b^2 c^2}+\frac{d (c (a+b x) \text{PolyLog}(2,c (a+b x))-c (a+b x)+(c (a+b x)-1) \log (1-c (a+b x)))}{b c}+\frac{1}{2} e x^2 \text{PolyLog}(2,a c+b c x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.049, size = 292, normalized size = 1.4 \begin{align*} -{\frac{{\it polylog} \left ( 2,xbc+ac \right ){a}^{2}e}{2\,{b}^{2}}}+{\it polylog} \left ( 2,xbc+ac \right ) xd+{\frac{{\it polylog} \left ( 2,xbc+ac \right ) ad}{b}}+{\frac{{\it polylog} \left ( 2,xbc+ac \right ) e{x}^{2}}{2}}+{\frac{3\,e}{8\,{b}^{2}{c}^{2}}}-{\frac{5\,ae}{4\,{b}^{2}c}}+{\frac{d}{bc}}+{\frac{e\ln \left ( -xbc-ac+1 \right ){x}^{2}}{4}}+{\frac{\ln \left ( -xbc-ac+1 \right ) ad}{b}}+\ln \left ( -xbc-ac+1 \right ) xd+{\frac{3\,axe}{4\,b}}+{\frac{7\,{a}^{2}e}{8\,{b}^{2}}}-{\frac{\ln \left ( -xbc-ac+1 \right ) xae}{2\,b}}-{\frac{e\ln \left ( -xbc-ac+1 \right ) }{4\,{b}^{2}{c}^{2}}}-{\frac{e{x}^{2}}{8}}-{\frac{ex}{4\,bc}}-dx-{\frac{ad}{b}}-{\frac{\ln \left ( -xbc-ac+1 \right ) d}{bc}}-{\frac{3\,\ln \left ( -xbc-ac+1 \right ){a}^{2}e}{4\,{b}^{2}}}+{\frac{\ln \left ( -xbc-ac+1 \right ) ae}{{b}^{2}c}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.01942, size = 286, normalized size = 1.36 \begin{align*} -\frac{{\left (2 \, a b d - a^{2} e\right )}{\left (\log \left (b c x + a c\right ) \log \left (-b c x - a c + 1\right ) +{\rm Li}_2\left (-b c x - a c + 1\right )\right )}}{2 \, b^{2}} - \frac{b^{2} c^{2} e x^{2} + 2 \,{\left (4 \, b^{2} c^{2} d -{\left (3 \, a b c^{2} - b c\right )} e\right )} x - 4 \,{\left (b^{2} c^{2} e x^{2} + 2 \, b^{2} c^{2} d x\right )}{\rm Li}_2\left (b c x + a c\right ) - 2 \,{\left (b^{2} c^{2} e x^{2} + 4 \,{\left (a b c^{2} - b c\right )} d -{\left (3 \, a^{2} c^{2} - 4 \, a c + 1\right )} e + 2 \,{\left (2 \, b^{2} c^{2} d - a b c^{2} e\right )} x\right )} \log \left (-b c x - a c + 1\right )}{8 \, b^{2} c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.49073, size = 377, normalized size = 1.8 \begin{align*} -\frac{b^{2} c^{2} e x^{2} + 2 \,{\left (4 \, b^{2} c^{2} d -{\left (3 \, a b c^{2} - b c\right )} e\right )} x - 4 \,{\left (b^{2} c^{2} e x^{2} + 2 \, b^{2} c^{2} d x + 2 \, a b c^{2} d - a^{2} c^{2} e\right )}{\rm Li}_2\left (b c x + a c\right ) - 2 \,{\left (b^{2} c^{2} e x^{2} + 4 \,{\left (a b c^{2} - b c\right )} d -{\left (3 \, a^{2} c^{2} - 4 \, a c + 1\right )} e + 2 \,{\left (2 \, b^{2} c^{2} d - a b c^{2} e\right )} x\right )} \log \left (-b c x - a c + 1\right )}{8 \, b^{2} c^{2}} \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 (e x + d\right )}{\rm Li}_2\left ({\left (b x + a\right )} c\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]