Optimal. Leaf size=27 \[ e^{4-\frac {\left (-1+\frac {2}{e^3}+\log (5)\right )^2}{x^2}} (4-x) x \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.67, antiderivative size = 34, normalized size of antiderivative = 1.26, number of steps
used = 2, number of rules used = 2, integrand size = 124, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.016, Rules used = {6873, 2326}
\begin {gather*} (4-x) x e^{4-\frac {\left (2-e^3 (1-\log (5))\right )^2}{e^6 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2326
Rule 6873
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {\exp \left (-2+\frac {-4+4 e^3-e^6-4 e^3 \log (5)+2 e^6 \log (5)-e^6 \log ^2(5)}{e^6 x^2}\right ) \left (4 e^6 x^2-2 e^6 x^3+8 \left (2-e^3 (1-\log (5))\right )^2-2 x \left (2-e^3 (1-\log (5))\right )^2\right )}{x^2} \, dx\\ &=e^{4-\frac {\left (2-e^3 (1-\log (5))\right )^2}{e^6 x^2}} (4-x) x\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 54, normalized size = 2.00 \begin {gather*} -5^{\frac {2 \left (-2+e^3\right )}{e^3 x^2}} e^{\frac {-4+4 e^3+e^6 \left (-1+4 x^2-\log ^2(5)\right )}{e^6 x^2}} (-4+x) x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 1.82, size = 826, normalized size = 30.59
method | result | size |
risch | \(\left (\frac {1}{625}\right )^{\frac {{\mathrm e}^{-3}}{x^{2}}} 25^{\frac {1}{x^{2}}} \left (-x^{2} {\mathrm e}^{6}+4 x \,{\mathrm e}^{6}\right ) {\mathrm e}^{\frac {-\ln \left (5\right )^{2}-2 x^{2}-4 \,{\mathrm e}^{-6}+4 \,{\mathrm e}^{-3}-1}{x^{2}}}\) | \(54\) |
gosper | \(-{\mathrm e}^{-\frac {\left ({\mathrm e}^{6} \ln \left (5\right )^{2}-4 x^{2} {\mathrm e}^{6}+4 \,{\mathrm e}^{3} \ln \left (5\right )-2 \,{\mathrm e}^{6} \ln \left (5\right )-4 \,{\mathrm e}^{3}+{\mathrm e}^{6}+4\right ) {\mathrm e}^{-6}}{x^{2}}} \left (x -4\right ) x\) | \(59\) |
norman | \(\frac {\left (4 x^{2} {\mathrm e}^{3} {\mathrm e}^{\frac {\left (-{\mathrm e}^{6} \ln \left (5\right )^{2}+\left (2 \,{\mathrm e}^{6}-4 \,{\mathrm e}^{3}\right ) \ln \left (5\right )+\left (4 x^{2}-1\right ) {\mathrm e}^{6}+4 \,{\mathrm e}^{3}-4\right ) {\mathrm e}^{-6}}{x^{2}}}-x^{3} {\mathrm e}^{3} {\mathrm e}^{\frac {\left (-{\mathrm e}^{6} \ln \left (5\right )^{2}+\left (2 \,{\mathrm e}^{6}-4 \,{\mathrm e}^{3}\right ) \ln \left (5\right )+\left (4 x^{2}-1\right ) {\mathrm e}^{6}+4 \,{\mathrm e}^{3}-4\right ) {\mathrm e}^{-6}}{x^{2}}}\right ) {\mathrm e}^{-3}}{x}\) | \(126\) |
default | \(\text {Expression too large to display}\) | \(826\) |
derivativedivides | \(\text {Expression too large to display}\) | \(827\) |
meijerg | \(\text {Expression too large to display}\) | \(1069\) |
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.75, size = 450, normalized size = 16.67 \begin {gather*} 2 \, x \sqrt {\frac {1}{x^{2}}} {\left | e^{3} \log \left (5\right ) - e^{3} + 2 \right |} e \Gamma \left (-\frac {1}{2}, \frac {{\left (e^{3} \log \left (5\right ) - e^{3} + 2\right )}^{2} e^{\left (-6\right )}}{x^{2}}\right ) - {\left (e^{3} \log \left (5\right ) - e^{3} + 2\right )}^{2} e^{\left (-2\right )} \Gamma \left (-1, \frac {{\left (e^{3} \log \left (5\right ) - e^{3} + 2\right )}^{2} e^{\left (-6\right )}}{x^{2}}\right ) + {\rm Ei}\left (-\frac {{\left (e^{3} \log \left (5\right ) - e^{3} + 2\right )}^{2} e^{\left (-6\right )}}{x^{2}}\right ) e^{4} \log \left (5\right )^{2} - \frac {4 \, \sqrt {\pi } \operatorname {erf}\left (\frac {{\left ({\left (\log \left (5\right ) - 1\right )} e^{3} + 2\right )} e^{\left (-3\right )}}{x}\right ) e^{7} \log \left (5\right )^{2}}{{\left (\log \left (5\right ) - 1\right )} e^{3} + 2} - 2 \, {\rm Ei}\left (-\frac {{\left (e^{3} \log \left (5\right ) - e^{3} + 2\right )}^{2} e^{\left (-6\right )}}{x^{2}}\right ) e^{4} \log \left (5\right ) + 4 \, {\rm Ei}\left (-\frac {{\left (e^{3} \log \left (5\right ) - e^{3} + 2\right )}^{2} e^{\left (-6\right )}}{x^{2}}\right ) e \log \left (5\right ) + \frac {8 \, \sqrt {\pi } \operatorname {erf}\left (\frac {{\left ({\left (\log \left (5\right ) - 1\right )} e^{3} + 2\right )} e^{\left (-3\right )}}{x}\right ) e^{7} \log \left (5\right )}{{\left (\log \left (5\right ) - 1\right )} e^{3} + 2} - \frac {16 \, \sqrt {\pi } \operatorname {erf}\left (\frac {{\left ({\left (\log \left (5\right ) - 1\right )} e^{3} + 2\right )} e^{\left (-3\right )}}{x}\right ) e^{4} \log \left (5\right )}{{\left (\log \left (5\right ) - 1\right )} e^{3} + 2} + {\rm Ei}\left (-\frac {{\left (e^{3} \log \left (5\right ) - e^{3} + 2\right )}^{2} e^{\left (-6\right )}}{x^{2}}\right ) e^{4} - 4 \, {\rm Ei}\left (-\frac {{\left (e^{3} \log \left (5\right ) - e^{3} + 2\right )}^{2} e^{\left (-6\right )}}{x^{2}}\right ) e + 4 \, {\rm Ei}\left (-\frac {{\left (e^{3} \log \left (5\right ) - e^{3} + 2\right )}^{2} e^{\left (-6\right )}}{x^{2}}\right ) e^{\left (-2\right )} - \frac {4 \, \sqrt {\pi } \operatorname {erf}\left (\frac {{\left ({\left (\log \left (5\right ) - 1\right )} e^{3} + 2\right )} e^{\left (-3\right )}}{x}\right ) e^{7}}{{\left (\log \left (5\right ) - 1\right )} e^{3} + 2} + \frac {16 \, \sqrt {\pi } \operatorname {erf}\left (\frac {{\left ({\left (\log \left (5\right ) - 1\right )} e^{3} + 2\right )} e^{\left (-3\right )}}{x}\right ) e^{4}}{{\left (\log \left (5\right ) - 1\right )} e^{3} + 2} - \frac {16 \, \sqrt {\pi } \operatorname {erf}\left (\frac {{\left ({\left (\log \left (5\right ) - 1\right )} e^{3} + 2\right )} e^{\left (-3\right )}}{x}\right ) e}{{\left (\log \left (5\right ) - 1\right )} e^{3} + 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 53 vs.
\(2 (24) = 48\).
time = 0.37, size = 53, normalized size = 1.96 \begin {gather*} -{\left (x^{2} - 4 \, x\right )} e^{\left (-\frac {{\left (e^{6} \log \left (5\right )^{2} + {\left (2 \, x^{2} + 1\right )} e^{6} - 2 \, {\left (e^{6} - 2 \, e^{3}\right )} \log \left (5\right ) - 4 \, e^{3} + 4\right )} e^{\left (-6\right )}}{x^{2}} + 6\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 53 vs.
\(2 (22) = 44\).
time = 0.40, size = 53, normalized size = 1.96 \begin {gather*} \left (- x^{2} + 4 x\right ) e^{\frac {\left (4 x^{2} - 1\right ) e^{6} - e^{6} \log {\left (5 \right )}^{2} - 4 + 4 e^{3} + \left (- 4 e^{3} + 2 e^{6}\right ) \log {\left (5 \right )}}{x^{2} e^{6}}} \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. 99 vs.
\(2 (24) = 48\).
time = 0.61, size = 99, normalized size = 3.67 \begin {gather*} -x^{2} e^{\left (\frac {{\left (x^{2} e^{6} - e^{6} \log \left (5\right )^{2} + 2 \, e^{6} \log \left (5\right ) - 4 \, e^{3} \log \left (5\right ) - e^{6} + 4 \, e^{3} - 4\right )} e^{\left (-6\right )}}{x^{2}} + 3\right )} + 4 \, x e^{\left (\frac {{\left (x^{2} e^{6} - e^{6} \log \left (5\right )^{2} + 2 \, e^{6} \log \left (5\right ) - 4 \, e^{3} \log \left (5\right ) - e^{6} + 4 \, e^{3} - 4\right )} e^{\left (-6\right )}}{x^{2}} + 3\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.76, size = 56, normalized size = 2.07 \begin {gather*} -\frac {{25}^{\frac {1}{x^2}}\,x\,{\mathrm {e}}^{\frac {4\,{\mathrm {e}}^{-3}}{x^2}}\,{\mathrm {e}}^{-\frac {4\,{\mathrm {e}}^{-6}}{x^2}}\,{\mathrm {e}}^4\,{\mathrm {e}}^{-\frac {{\ln \left (5\right )}^2}{x^2}}\,{\mathrm {e}}^{-\frac {1}{x^2}}\,\left (x-4\right )}{{25}^{\frac {2\,{\mathrm {e}}^{-3}}{x^2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________