Optimal. Leaf size=31 \[ 5-e^5+x+\left (\frac {-1+e^{-x}}{-5+\frac {1}{x}}+\frac {x}{2}\right ) x \]
________________________________________________________________________________________
Rubi [A] time = 0.44, antiderivative size = 59, normalized size of antiderivative = 1.90, number of steps used = 13, number of rules used = 8, integrand size = 51, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.157, Rules used = {27, 6742, 2199, 2194, 2176, 2177, 2178, 1850} \begin {gather*} \frac {x^2}{2}-\frac {e^{-x} x}{5}+\frac {6 x}{5}-\frac {e^{-x}}{25}+\frac {e^{-x}}{25 (1-5 x)}-\frac {1}{25 (1-5 x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 1850
Rule 2176
Rule 2177
Rule 2178
Rule 2194
Rule 2199
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {e^{-x} \left (2 x-6 x^2+5 x^3+e^x \left (1-11 x+20 x^2+25 x^3\right )\right )}{(-1+5 x)^2} \, dx\\ &=\int \left (\frac {e^{-x} x \left (2-6 x+5 x^2\right )}{(-1+5 x)^2}+\frac {1-11 x+20 x^2+25 x^3}{(-1+5 x)^2}\right ) \, dx\\ &=\int \frac {e^{-x} x \left (2-6 x+5 x^2\right )}{(-1+5 x)^2} \, dx+\int \frac {1-11 x+20 x^2+25 x^3}{(-1+5 x)^2} \, dx\\ &=\int \left (\frac {6}{5}+x-\frac {1}{5 (-1+5 x)^2}\right ) \, dx+\int \left (-\frac {4 e^{-x}}{25}+\frac {e^{-x} x}{5}+\frac {e^{-x}}{5 (-1+5 x)^2}+\frac {e^{-x}}{25 (-1+5 x)}\right ) \, dx\\ &=-\frac {1}{25 (1-5 x)}+\frac {6 x}{5}+\frac {x^2}{2}+\frac {1}{25} \int \frac {e^{-x}}{-1+5 x} \, dx-\frac {4}{25} \int e^{-x} \, dx+\frac {1}{5} \int e^{-x} x \, dx+\frac {1}{5} \int \frac {e^{-x}}{(-1+5 x)^2} \, dx\\ &=\frac {4 e^{-x}}{25}-\frac {1}{25 (1-5 x)}+\frac {e^{-x}}{25 (1-5 x)}+\frac {6 x}{5}-\frac {e^{-x} x}{5}+\frac {x^2}{2}+\frac {\text {Ei}\left (\frac {1}{5} (1-5 x)\right )}{125 \sqrt [5]{e}}-\frac {1}{25} \int \frac {e^{-x}}{-1+5 x} \, dx+\frac {1}{5} \int e^{-x} \, dx\\ &=-\frac {e^{-x}}{25}-\frac {1}{25 (1-5 x)}+\frac {e^{-x}}{25 (1-5 x)}+\frac {6 x}{5}-\frac {e^{-x} x}{5}+\frac {x^2}{2}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.16, size = 32, normalized size = 1.03 \begin {gather*} -\frac {2-60 x+\left (275-50 e^{-x}\right ) x^2+125 x^3}{50-250 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.74, size = 38, normalized size = 1.23 \begin {gather*} -\frac {{\left (50 \, x^{2} - {\left (125 \, x^{3} + 275 \, x^{2} - 60 \, x + 2\right )} e^{x}\right )} e^{\left (-x\right )}}{50 \, {\left (5 \, x - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 33, normalized size = 1.06 \begin {gather*} \frac {125 \, x^{3} - 50 \, x^{2} e^{\left (-x\right )} + 275 \, x^{2} - 60 \, x + 2}{50 \, {\left (5 \, x - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.13, size = 33, normalized size = 1.06
method | result | size |
risch | \(\frac {x^{2}}{2}+\frac {6 x}{5}+\frac {1}{125 x -25}-\frac {x^{2} {\mathrm e}^{-x}}{5 x -1}\) | \(33\) |
norman | \(\frac {\left (-{\mathrm e}^{x} x -x^{2}+\frac {11 \,{\mathrm e}^{x} x^{2}}{2}+\frac {5 \,{\mathrm e}^{x} x^{3}}{2}\right ) {\mathrm e}^{-x}}{5 x -1}\) | \(38\) |
default | \(\frac {1}{125 x -25}+\frac {6 x}{5}+\frac {x^{2}}{2}-\frac {{\mathrm e}^{-x}}{25 \left (5 x -1\right )}+\frac {6 \,{\mathrm e}^{-x}}{25}-\frac {\left (5 x +7\right ) {\mathrm e}^{-x}}{25}\) | \(49\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 33, normalized size = 1.06 \begin {gather*} \frac {125 \, x^{3} - 50 \, x^{2} e^{\left (-x\right )} + 275 \, x^{2} - 60 \, x + 2}{50 \, {\left (5 \, x - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.12, size = 37, normalized size = 1.19 \begin {gather*} \frac {x^2}{{\mathrm {e}}^x-5\,x\,{\mathrm {e}}^x}+\frac {\frac {5\,x^3}{2}+\frac {11\,x^2}{2}-x}{5\,x-1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.15, size = 27, normalized size = 0.87 \begin {gather*} \frac {x^{2}}{2} - \frac {x^{2} e^{- x}}{5 x - 1} + \frac {6 x}{5} + \frac {1}{125 x - 25} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________