Optimal. Leaf size=26 \[ 3 (-3+x)-\frac {e^{-2+x}}{x}+(-5+x) (4+4 \log (x)) \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 23, normalized size of antiderivative = 0.88, number of steps used = 9, number of rules used = 5, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {12, 14, 2197, 43, 2295} \begin {gather*} 7 x-\frac {e^{x-2}}{x}+4 x \log (x)-20 \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 43
Rule 2197
Rule 2295
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {\int \frac {e^x (1-x)+e^2 \left (-20 x+11 x^2\right )+4 e^2 x^2 \log (x)}{x^2} \, dx}{e^2}\\ &=\frac {\int \left (-\frac {e^x (-1+x)}{x^2}+\frac {e^2 (-20+11 x+4 x \log (x))}{x}\right ) \, dx}{e^2}\\ &=-\frac {\int \frac {e^x (-1+x)}{x^2} \, dx}{e^2}+\int \frac {-20+11 x+4 x \log (x)}{x} \, dx\\ &=-\frac {e^{-2+x}}{x}+\int \left (\frac {-20+11 x}{x}+4 \log (x)\right ) \, dx\\ &=-\frac {e^{-2+x}}{x}+4 \int \log (x) \, dx+\int \frac {-20+11 x}{x} \, dx\\ &=-\frac {e^{-2+x}}{x}-4 x+4 x \log (x)+\int \left (11-\frac {20}{x}\right ) \, dx\\ &=-\frac {e^{-2+x}}{x}+7 x-20 \log (x)+4 x \log (x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 23, normalized size = 0.88 \begin {gather*} -\frac {e^{-2+x}}{x}+7 x-20 \log (x)+4 x \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.57, size = 31, normalized size = 1.19 \begin {gather*} \frac {{\left (7 \, x^{2} e^{2} + 4 \, {\left (x^{2} - 5 \, x\right )} e^{2} \log \relax (x) - e^{x}\right )} e^{\left (-2\right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 34, normalized size = 1.31 \begin {gather*} \frac {{\left (4 \, x^{2} e^{2} \log \relax (x) + 7 \, x^{2} e^{2} - 20 \, x e^{2} \log \relax (x) - e^{x}\right )} e^{\left (-2\right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.07, size = 31, normalized size = 1.19
method | result | size |
norman | \(\frac {-20 x \ln \relax (x )+7 x^{2}+4 x^{2} \ln \relax (x )-{\mathrm e}^{x} {\mathrm e}^{-2}}{x}\) | \(31\) |
risch | \(4 x \ln \relax (x )-\frac {{\mathrm e}^{-2} \left (20 x \,{\mathrm e}^{2} \ln \relax (x )-7 x^{2} {\mathrm e}^{2}+{\mathrm e}^{x}\right )}{x}\) | \(31\) |
default | \({\mathrm e}^{-2} \left (-20 \,{\mathrm e}^{2} \ln \relax (x )+7 \,{\mathrm e}^{2} x +4 x \,{\mathrm e}^{2} \ln \relax (x )-\frac {{\mathrm e}^{x}}{x}\right )\) | \(32\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.38, size = 36, normalized size = 1.38 \begin {gather*} {\left (4 \, {\left (x \log \relax (x) - x\right )} e^{2} + 11 \, x e^{2} - 20 \, e^{2} \log \relax (x) - {\rm Ei}\relax (x) + \Gamma \left (-1, -x\right )\right )} e^{\left (-2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.98, size = 22, normalized size = 0.85 \begin {gather*} x\,\left (4\,\ln \relax (x)+7\right )-\frac {{\mathrm {e}}^{x-2}}{x}-20\,\ln \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.30, size = 22, normalized size = 0.85 \begin {gather*} 4 x \log {\relax (x )} + 7 x - 20 \log {\relax (x )} - \frac {e^{x}}{x e^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________