Optimal. Leaf size=24 \[ e^5+5 (-2+x)^4 x+2 \log ^2\left (e^{-x} x\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 23, normalized size of antiderivative = 0.96, number of steps used = 4, number of rules used = 4, integrand size = 42, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {14, 34, 43, 6686} \begin {gather*} 5 x (2-x)^4+2 \log ^2\left (e^{-x} x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 34
Rule 43
Rule 6686
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (5 (-2+x)^3 (-2+5 x)-\frac {4 (-1+x) \log \left (e^{-x} x\right )}{x}\right ) \, dx\\ &=-\left (4 \int \frac {(-1+x) \log \left (e^{-x} x\right )}{x} \, dx\right )+5 \int (-2+x)^3 (-2+5 x) \, dx\\ &=5 (2-x)^4 x+2 \log ^2\left (e^{-x} x\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [B] time = 0.03, size = 71, normalized size = 2.96 \begin {gather*} 76 x-158 x^2+120 x^3-40 x^4+5 x^5-4 x \log (x)+2 \log ^2(x)-4 x \left (-1+x-\log (x)+\log \left (e^{-x} x\right )\right )+4 \log (x) \left (x-\log (x)+\log \left (e^{-x} x\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.56, size = 35, normalized size = 1.46 \begin {gather*} 5 \, x^{5} - 40 \, x^{4} + 120 \, x^{3} - 160 \, x^{2} + 2 \, \log \left (x e^{\left (-x\right )}\right )^{2} + 80 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 35, normalized size = 1.46 \begin {gather*} 5 \, x^{5} - 40 \, x^{4} + 120 \, x^{3} - 158 \, x^{2} - 4 \, x \log \relax (x) + 2 \, \log \relax (x)^{2} + 80 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.11, size = 57, normalized size = 2.38
method | result | size |
default | \(5 x^{5}-40 x^{4}+120 x^{3}-162 x^{2}+80 x +4 \ln \left (x \,{\mathrm e}^{-x}\right ) \ln \relax (x )-4 x \ln \left (x \,{\mathrm e}^{-x}\right )+4 x \ln \relax (x )-2 \ln \relax (x )^{2}\) | \(57\) |
risch | \(\left (4 x -4 \ln \relax (x )\right ) \ln \left ({\mathrm e}^{x}\right )+2 \ln \relax (x )^{2}-2 i x \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{-x}\right )^{2}+2 i x \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{-x}\right ) \mathrm {csgn}\left (i {\mathrm e}^{-x}\right )+2 i x \pi \mathrm {csgn}\left (i x \,{\mathrm e}^{-x}\right )^{3}-2 i x \pi \mathrm {csgn}\left (i x \,{\mathrm e}^{-x}\right )^{2} \mathrm {csgn}\left (i {\mathrm e}^{-x}\right )+5 x^{5}-40 x^{4}+120 x^{3}-162 x^{2}+80 x +2 i \pi \ln \relax (x ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{-x}\right )^{2}-2 i \pi \ln \relax (x ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{-x}\right ) \mathrm {csgn}\left (i {\mathrm e}^{-x}\right )-2 i \pi \ln \relax (x ) \mathrm {csgn}\left (i x \,{\mathrm e}^{-x}\right )^{3}+2 i \pi \ln \relax (x ) \mathrm {csgn}\left (i x \,{\mathrm e}^{-x}\right )^{2} \mathrm {csgn}\left (i {\mathrm e}^{-x}\right )\) | \(223\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.37, size = 61, normalized size = 2.54 \begin {gather*} 5 \, x^{5} - 40 \, x^{4} + 120 \, x^{3} - 162 \, x^{2} - 4 \, x \log \left (x e^{\left (-x\right )}\right ) + 4 \, {\left (x - \log \relax (x)\right )} \log \relax (x) + 4 \, \log \left (x e^{\left (-x\right )}\right ) \log \relax (x) + 2 \, \log \relax (x)^{2} + 80 \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.53, size = 35, normalized size = 1.46 \begin {gather*} 5\,x^5-40\,x^4+120\,x^3-158\,x^2-4\,x\,\ln \relax (x)+80\,x+2\,{\ln \relax (x)}^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.16, size = 32, normalized size = 1.33 \begin {gather*} 5 x^{5} - 40 x^{4} + 120 x^{3} - 160 x^{2} + 80 x + 2 \log {\left (x e^{- x} \right )}^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________