Optimal. Leaf size=21 \[ -1+\frac {2+e^x}{x}-\frac {2 (-5+e) x}{\log ^2(x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.24, antiderivative size = 25, normalized size of antiderivative = 1.19, number of steps
used = 11, number of rules used = 6, integrand size = 49, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.122, Rules used = {6, 6820, 14,
2228, 2334, 2335} \begin {gather*} \frac {e^x}{x}+\frac {2}{x}+\frac {2 (5-e) x}{\log ^2(x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6
Rule 14
Rule 2228
Rule 2334
Rule 2335
Rule 6820
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {(-20+4 e) x^2+\left (10 x^2-2 e x^2\right ) \log (x)+\left (-2+e^x (-1+x)\right ) \log ^3(x)}{x^2 \log ^3(x)} \, dx\\ &=\int \left (\frac {-2+e^x (-1+x)}{x^2}+\frac {4 (-5+e)}{\log ^3(x)}-\frac {2 (-5+e)}{\log ^2(x)}\right ) \, dx\\ &=(2 (5-e)) \int \frac {1}{\log ^2(x)} \, dx-(4 (5-e)) \int \frac {1}{\log ^3(x)} \, dx+\int \frac {-2+e^x (-1+x)}{x^2} \, dx\\ &=\frac {2 (5-e) x}{\log ^2(x)}-\frac {2 (5-e) x}{\log (x)}-(2 (5-e)) \int \frac {1}{\log ^2(x)} \, dx+(2 (5-e)) \int \frac {1}{\log (x)} \, dx+\int \left (-\frac {2}{x^2}+\frac {e^x (-1+x)}{x^2}\right ) \, dx\\ &=\frac {2}{x}+\frac {2 (5-e) x}{\log ^2(x)}+2 (5-e) \text {li}(x)-(2 (5-e)) \int \frac {1}{\log (x)} \, dx+\int \frac {e^x (-1+x)}{x^2} \, dx\\ &=\frac {2}{x}+\frac {e^x}{x}+\frac {2 (5-e) x}{\log ^2(x)}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 23, normalized size = 1.10 \begin {gather*} \frac {2}{x}+\frac {e^x}{x}-\frac {2 (-5+e) x}{\log ^2(x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.21, size = 29, normalized size = 1.38
method | result | size |
risch | \(\frac {{\mathrm e}^{x}+2}{x}-\frac {2 \left ({\mathrm e}-5\right ) x}{\ln \left (x \right )^{2}}\) | \(21\) |
default | \(-\frac {2 \,{\mathrm e} x}{\ln \left (x \right )^{2}}+\frac {10 x}{\ln \left (x \right )^{2}}+\frac {{\mathrm e}^{x}}{x}+\frac {2}{x}\) | \(29\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 0.47, size = 51, normalized size = 2.43 \begin {gather*} -2 \, e \Gamma \left (-1, -\log \left (x\right )\right ) - 4 \, e \Gamma \left (-2, -\log \left (x\right )\right ) + \frac {2}{x} + {\rm Ei}\left (x\right ) - \Gamma \left (-1, -x\right ) + 10 \, \Gamma \left (-1, -\log \left (x\right )\right ) + 20 \, \Gamma \left (-2, -\log \left (x\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 32, normalized size = 1.52 \begin {gather*} -\frac {2 \, x^{2} e - {\left (e^{x} + 2\right )} \log \left (x\right )^{2} - 10 \, x^{2}}{x \log \left (x\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.08, size = 22, normalized size = 1.05 \begin {gather*} \frac {- 2 e x + 10 x}{\log {\left (x \right )}^{2}} + \frac {e^{x}}{x} + \frac {2}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 36, normalized size = 1.71 \begin {gather*} -\frac {2 \, x^{2} e - e^{x} \log \left (x\right )^{2} - 10 \, x^{2} - 2 \, \log \left (x\right )^{2}}{x \log \left (x\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.29, size = 28, normalized size = 1.33 \begin {gather*} \frac {{\mathrm {e}}^x}{x}+\frac {10\,x}{{\ln \left (x\right )}^2}+\frac {2}{x}-\frac {2\,x\,\mathrm {e}}{{\ln \left (x\right )}^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________