Optimal. Leaf size=22 \[ x+\frac {9 \left (-e^5+x-e^x (25+x)\right )}{x} \]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 23, normalized size of antiderivative = 1.05, number of steps used = 10, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {14, 2199, 2194, 2177, 2178} \begin {gather*} x-9 e^x-\frac {225 e^x}{x}-\frac {9 e^5}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2177
Rule 2178
Rule 2194
Rule 2199
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {9 e^5+x^2}{x^2}-\frac {9 e^x \left (-25+25 x+x^2\right )}{x^2}\right ) \, dx\\ &=-\left (9 \int \frac {e^x \left (-25+25 x+x^2\right )}{x^2} \, dx\right )+\int \frac {9 e^5+x^2}{x^2} \, dx\\ &=-\left (9 \int \left (e^x-\frac {25 e^x}{x^2}+\frac {25 e^x}{x}\right ) \, dx\right )+\int \left (1+\frac {9 e^5}{x^2}\right ) \, dx\\ &=-\frac {9 e^5}{x}+x-9 \int e^x \, dx+225 \int \frac {e^x}{x^2} \, dx-225 \int \frac {e^x}{x} \, dx\\ &=-9 e^x-\frac {9 e^5}{x}-\frac {225 e^x}{x}+x-225 \text {Ei}(x)+225 \int \frac {e^x}{x} \, dx\\ &=-9 e^x-\frac {9 e^5}{x}-\frac {225 e^x}{x}+x\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 23, normalized size = 1.05 \begin {gather*} -9 e^x-\frac {9 e^5}{x}-\frac {225 e^x}{x}+x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.56, size = 19, normalized size = 0.86 \begin {gather*} \frac {x^{2} - 9 \, {\left (x + 25\right )} e^{x} - 9 \, e^{5}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.16, size = 21, normalized size = 0.95 \begin {gather*} \frac {x^{2} - 9 \, x e^{x} - 9 \, e^{5} - 225 \, e^{x}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 20, normalized size = 0.91
method | result | size |
risch | \(x -\frac {9 \,{\mathrm e}^{5}}{x}-\frac {9 \left (x +25\right ) {\mathrm e}^{x}}{x}\) | \(20\) |
default | \(x -\frac {9 \,{\mathrm e}^{5}}{x}-\frac {225 \,{\mathrm e}^{x}}{x}-9 \,{\mathrm e}^{x}\) | \(21\) |
norman | \(\frac {x^{2}-9 \,{\mathrm e}^{x} x -9 \,{\mathrm e}^{5}-225 \,{\mathrm e}^{x}}{x}\) | \(22\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.37, size = 24, normalized size = 1.09 \begin {gather*} x - \frac {9 \, e^{5}}{x} - 225 \, {\rm Ei}\relax (x) - 9 \, e^{x} + 225 \, \Gamma \left (-1, -x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.93, size = 20, normalized size = 0.91 \begin {gather*} x-9\,{\mathrm {e}}^x-\frac {9\,{\mathrm {e}}^5+225\,{\mathrm {e}}^x}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.11, size = 19, normalized size = 0.86 \begin {gather*} x + \frac {\left (- 9 x - 225\right ) e^{x}}{x} - \frac {9 e^{5}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________