Optimal. Leaf size=27 \[ 5-\frac {7-25 e^{-5+e^5-x}}{x^2}-\log ^2(3) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 21, normalized size of antiderivative = 0.78, number of steps
used = 3, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {14, 2228}
\begin {gather*} \frac {25 e^{-x+e^5-5}}{x^2}-\frac {7}{x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2228
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {14}{x^3}-\frac {25 e^{-5+e^5-x} (2+x)}{x^3}\right ) \, dx\\ &=-\frac {7}{x^2}-25 \int \frac {e^{-5+e^5-x} (2+x)}{x^3} \, dx\\ &=-\frac {7}{x^2}+\frac {25 e^{-5+e^5-x}}{x^2}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 18, normalized size = 0.67 \begin {gather*} \frac {-7+25 e^{-5+e^5-x}}{x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.71, size = 23, normalized size = 0.85
method | result | size |
norman | \(\frac {-7+{\mathrm e}^{2 \ln \left (5\right )+{\mathrm e}^{5}-x -5}}{x^{2}}\) | \(19\) |
risch | \(\frac {25 \,{\mathrm e}^{{\mathrm e}^{5}-x -5}}{x^{2}}-\frac {7}{x^{2}}\) | \(20\) |
derivativedivides | \(\frac {{\mathrm e}^{2 \ln \left (5\right )+{\mathrm e}^{5}-x -5}}{x^{2}}-\frac {7}{x^{2}}\) | \(23\) |
default | \(\frac {{\mathrm e}^{2 \ln \left (5\right )+{\mathrm e}^{5}-x -5}}{x^{2}}-\frac {7}{x^{2}}\) | \(23\) |
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.51, size = 26, normalized size = 0.96 \begin {gather*} 25 \, e^{\left (e^{5} - 5\right )} \Gamma \left (-1, x\right ) + 50 \, e^{\left (e^{5} - 5\right )} \Gamma \left (-2, x\right ) - \frac {7}{x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 18, normalized size = 0.67 \begin {gather*} \frac {e^{\left (-x + e^{5} + 2 \, \log \left (5\right ) - 5\right )} - 7}{x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.04, size = 17, normalized size = 0.63 \begin {gather*} \frac {25 e^{- x - 5 + e^{5}}}{x^{2}} - \frac {7}{x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 79 vs.
\(2 (26) = 52\).
time = 0.40, size = 79, normalized size = 2.93 \begin {gather*} \frac {e^{\left (-x + e^{5} + 2 \, \log \left (5\right ) - 5\right )} - 7}{{\left (x - e^{5} - 2 \, \log \left (5\right ) + 5\right )}^{2} + 2 \, {\left (x - e^{5} - 2 \, \log \left (5\right ) + 5\right )} e^{5} + 4 \, {\left (x - e^{5} - 2 \, \log \left (5\right ) + 5\right )} \log \left (5\right ) + 4 \, e^{5} \log \left (5\right ) + 4 \, \log \left (5\right )^{2} - 10 \, x + e^{10} - 25} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.19, size = 20, normalized size = 0.74 \begin {gather*} \frac {25\,{\mathrm {e}}^{-x}\,{\mathrm {e}}^{-5}\,{\mathrm {e}}^{{\mathrm {e}}^5}}{x^2}-\frac {7}{x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________