Optimal. Leaf size=98 \[ -\frac {x^2 \text {Li}_2\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b c n \log (f)}+\frac {2 x \text {Li}_3\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b^2 c^2 n^2 \log ^2(f)}-\frac {2 \text {Li}_4\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b^3 c^3 n^3 \log ^3(f)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2611, 6744,
2320, 6724} \begin {gather*} -\frac {2 \text {PolyLog}\left (4,-e \left (f^{c (a+b x)}\right )^n\right )}{b^3 c^3 n^3 \log ^3(f)}+\frac {2 x \text {PolyLog}\left (3,-e \left (f^{c (a+b x)}\right )^n\right )}{b^2 c^2 n^2 \log ^2(f)}-\frac {x^2 \text {PolyLog}\left (2,-e \left (f^{c (a+b x)}\right )^n\right )}{b c n \log (f)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2320
Rule 2611
Rule 6724
Rule 6744
Rubi steps
\begin {align*} \int x^2 \log \left (1+e \left (f^{c (a+b x)}\right )^n\right ) \, dx &=-\frac {x^2 \text {Li}_2\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b c n \log (f)}+\frac {2 \int x \text {Li}_2\left (-e \left (f^{c (a+b x)}\right )^n\right ) \, dx}{b c n \log (f)}\\ &=-\frac {x^2 \text {Li}_2\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b c n \log (f)}+\frac {2 x \text {Li}_3\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b^2 c^2 n^2 \log ^2(f)}-\frac {2 \int \text {Li}_3\left (-e \left (f^{c (a+b x)}\right )^n\right ) \, dx}{b^2 c^2 n^2 \log ^2(f)}\\ &=-\frac {x^2 \text {Li}_2\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b c n \log (f)}+\frac {2 x \text {Li}_3\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b^2 c^2 n^2 \log ^2(f)}-\frac {2 \text {Subst}\left (\int \frac {\text {Li}_3\left (-e x^n\right )}{x} \, dx,x,f^{c (a+b x)}\right )}{b^3 c^3 n^2 \log ^3(f)}\\ &=-\frac {x^2 \text {Li}_2\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b c n \log (f)}+\frac {2 x \text {Li}_3\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b^2 c^2 n^2 \log ^2(f)}-\frac {2 \text {Li}_4\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b^3 c^3 n^3 \log ^3(f)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 98, normalized size = 1.00 \begin {gather*} -\frac {x^2 \text {Li}_2\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b c n \log (f)}+\frac {2 x \text {Li}_3\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b^2 c^2 n^2 \log ^2(f)}-\frac {2 \text {Li}_4\left (-e \left (f^{c (a+b x)}\right )^n\right )}{b^3 c^3 n^3 \log ^3(f)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(429\) vs.
\(2(98)=196\).
time = 0.02, size = 430, normalized size = 4.39
method | result | size |
risch | \(\frac {x^{3} \ln \left (1+e \left (f^{c \left (b x +a \right )}\right )^{n}\right )}{3}-\frac {\ln \left (1+e \,f^{b c n x} f^{-b c n x} \left (f^{c \left (b x +a \right )}\right )^{n}\right ) x^{3}}{3}-\frac {2 \polylog \left (4, -e \,f^{b c n x} f^{-b c n x} \left (f^{c \left (b x +a \right )}\right )^{n}\right )}{c^{3} b^{3} \ln \left (f \right )^{3} n^{3}}-\frac {\dilog \left (1+e \,f^{b c n x} f^{-b c n x} \left (f^{c \left (b x +a \right )}\right )^{n}\right ) x^{2}}{c b \ln \left (f \right ) n}+\frac {2 \dilog \left (1+e \,f^{b c n x} f^{-b c n x} \left (f^{c \left (b x +a \right )}\right )^{n}\right ) \ln \left (f^{c \left (b x +a \right )}\right ) x}{c^{2} b^{2} \ln \left (f \right )^{2} n}-\frac {\dilog \left (1+e \,f^{b c n x} f^{-b c n x} \left (f^{c \left (b x +a \right )}\right )^{n}\right ) \ln \left (f^{c \left (b x +a \right )}\right )^{2}}{c^{3} b^{3} \ln \left (f \right )^{3} n}-\frac {2 \polylog \left (2, -e \,f^{b c n x} f^{-b c n x} \left (f^{c \left (b x +a \right )}\right )^{n}\right ) \ln \left (f^{c \left (b x +a \right )}\right ) x}{c^{2} b^{2} \ln \left (f \right )^{2} n}+\frac {\polylog \left (2, -e \,f^{b c n x} f^{-b c n x} \left (f^{c \left (b x +a \right )}\right )^{n}\right ) \ln \left (f^{c \left (b x +a \right )}\right )^{2}}{c^{3} b^{3} \ln \left (f \right )^{3} n}+\frac {2 \polylog \left (3, -e \,f^{b c n x} f^{-b c n x} \left (f^{c \left (b x +a \right )}\right )^{n}\right ) x}{c^{2} b^{2} \ln \left (f \right )^{2} n^{2}}\) | \(430\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 162, normalized size = 1.65 \begin {gather*} \frac {1}{3} \, x^{3} \log \left (f^{{\left (b x + a\right )} c n} e + 1\right ) - \frac {b^{3} c^{3} n^{3} x^{3} \log \left (f^{a c n} e^{\left (b c n x \log \left (f\right ) + 1\right )} + 1\right ) \log \left (f\right )^{3} + 3 \, b^{2} c^{2} n^{2} x^{2} {\rm Li}_2\left (-f^{a c n} e^{\left (b c n x \log \left (f\right ) + 1\right )}\right ) \log \left (f\right )^{2} - 6 \, b c n x \log \left (f\right ) {\rm Li}_{3}(-f^{a c n} e^{\left (b c n x \log \left (f\right ) + 1\right )}) + 6 \, {\rm Li}_{4}(-f^{a c n} e^{\left (b c n x \log \left (f\right ) + 1\right )})}{3 \, b^{3} c^{3} n^{3} \log \left (f\right )^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 96, normalized size = 0.98 \begin {gather*} -\frac {b^{2} c^{2} n^{2} x^{2} {\rm Li}_2\left (-f^{b c n x + a c n} e\right ) \log \left (f\right )^{2} - 2 \, b c n x \log \left (f\right ) {\rm polylog}\left (3, -f^{b c n x + a c n} e\right ) + 2 \, {\rm polylog}\left (4, -f^{b c n x + a c n} e\right )}{b^{3} c^{3} n^{3} \log \left (f\right )^{3}} \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*} - \frac {b c e n e^{a c n \log {\left (f \right )}} \log {\left (f \right )} \int \frac {x^{3} e^{b c n x \log {\left (f \right )}}}{e e^{a c n \log {\left (f \right )}} e^{b c n x \log {\left (f \right )}} + 1}\, dx}{3} + \frac {x^{3} \log {\left (e \left (f^{c \left (a + b x\right )}\right )^{n} + 1 \right )}}{3} \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 x^2\,\ln \left (e\,{\left (f^{c\,\left (a+b\,x\right )}\right )}^n+1\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________