3.50.97 \(\int \frac {e^{\frac {-x-x^2+e^x (10+5 x-5 x^2)}{x \log (3)}} (-x^2+e^x (-10+10 x-5 x^3))+x^2 \log (3)}{x^2 \log (3)} \, dx\) [4997]

Optimal. Leaf size=27 \[ e^{\frac {\left (-1+\frac {5 e^x (2-x)}{x}\right ) (1+x)}{\log (3)}}+x \]

[Out]

exp((1+x)*(-1+exp(x)/x*(-5*x+10))/ln(3))+x

________________________________________________________________________________________

Rubi [F]
time = 3.16, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {e^{\frac {-x-x^2+e^x \left (10+5 x-5 x^2\right )}{x \log (3)}} \left (-x^2+e^x \left (-10+10 x-5 x^3\right )\right )+x^2 \log (3)}{x^2 \log (3)} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Int[(E^((-x - x^2 + E^x*(10 + 5*x - 5*x^2))/(x*Log[3]))*(-x^2 + E^x*(-10 + 10*x - 5*x^3)) + x^2*Log[3])/(x^2*L
og[3]),x]

[Out]

x - Defer[Int][E^(-(((1 + x)*(5*E^x*(-2 + x) + x))/(x*Log[3]))), x]/Log[3] - (10*Defer[Int][E^(x - ((1 + x)*(5
*E^x*(-2 + x) + x))/(x*Log[3]))/x^2, x])/Log[3] + (10*Defer[Int][E^(x - ((1 + x)*(5*E^x*(-2 + x) + x))/(x*Log[
3]))/x, x])/Log[3] - (5*Defer[Int][E^(x - ((1 + x)*(5*E^x*(-2 + x) + x))/(x*Log[3]))*x, x])/Log[3]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\frac {\int \frac {e^{\frac {-x-x^2+e^x \left (10+5 x-5 x^2\right )}{x \log (3)}} \left (-x^2+e^x \left (-10+10 x-5 x^3\right )\right )+x^2 \log (3)}{x^2} \, dx}{\log (3)}\\ &=\frac {\int \left (-\frac {\exp \left (-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right ) \left (10 e^x-10 e^x x+x^2+5 e^x x^3\right )}{x^2}+\log (3)\right ) \, dx}{\log (3)}\\ &=x-\frac {\int \frac {\exp \left (-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right ) \left (10 e^x-10 e^x x+x^2+5 e^x x^3\right )}{x^2} \, dx}{\log (3)}\\ &=x-\frac {\int \frac {\exp \left (-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right ) \left (x^2+5 e^x \left (2-2 x+x^3\right )\right )}{x^2} \, dx}{\log (3)}\\ &=x-\frac {\int \left (\exp \left (-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right )+\frac {5 \exp \left (x-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right ) \left (2-2 x+x^3\right )}{x^2}\right ) \, dx}{\log (3)}\\ &=x-\frac {\int \exp \left (-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right ) \, dx}{\log (3)}-\frac {5 \int \frac {\exp \left (x-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right ) \left (2-2 x+x^3\right )}{x^2} \, dx}{\log (3)}\\ &=x-\frac {\int \exp \left (-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right ) \, dx}{\log (3)}-\frac {5 \int \left (\frac {2 \exp \left (x-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right )}{x^2}-\frac {2 \exp \left (x-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right )}{x}+\exp \left (x-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right ) x\right ) \, dx}{\log (3)}\\ &=x-\frac {\int \exp \left (-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right ) \, dx}{\log (3)}-\frac {5 \int \exp \left (x-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right ) x \, dx}{\log (3)}-\frac {10 \int \frac {\exp \left (x-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right )}{x^2} \, dx}{\log (3)}+\frac {10 \int \frac {\exp \left (x-\frac {(1+x) \left (5 e^x (-2+x)+x\right )}{x \log (3)}\right )}{x} \, dx}{\log (3)}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]
time = 0.19, size = 36, normalized size = 1.33 \begin {gather*} e^{-\frac {1}{\log (3)}-\frac {x}{\log (3)}-\frac {5 e^x (-2+x) (1+x)}{x \log (3)}}+x \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(E^((-x - x^2 + E^x*(10 + 5*x - 5*x^2))/(x*Log[3]))*(-x^2 + E^x*(-10 + 10*x - 5*x^3)) + x^2*Log[3])/
(x^2*Log[3]),x]

[Out]

E^(-Log[3]^(-1) - x/Log[3] - (5*E^x*(-2 + x)*(1 + x))/(x*Log[3])) + x

________________________________________________________________________________________

Maple [A]
time = 0.66, size = 27, normalized size = 1.00

method result size
risch \(x +{\mathrm e}^{-\frac {\left (x +1\right ) \left (5 \,{\mathrm e}^{x} x -10 \,{\mathrm e}^{x}+x \right )}{x \ln \left (3\right )}}\) \(27\)
norman \(\frac {x^{2}+x \,{\mathrm e}^{\frac {\left (-5 x^{2}+5 x +10\right ) {\mathrm e}^{x}-x^{2}-x}{x \ln \left (3\right )}}}{x}\) \(42\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((((-5*x^3+10*x-10)*exp(x)-x^2)*exp(((-5*x^2+5*x+10)*exp(x)-x^2-x)/x/ln(3))+x^2*ln(3))/x^2/ln(3),x,method=_
RETURNVERBOSE)

[Out]

x+exp(-(x+1)*(5*exp(x)*x-10*exp(x)+x)/x/ln(3))

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 56 vs. \(2 (24) = 48\).
time = 0.62, size = 56, normalized size = 2.07 \begin {gather*} \frac {x \log \left (3\right ) + e^{\left (-\frac {5 \, x e^{x}}{\log \left (3\right )} - \frac {x}{\log \left (3\right )} + \frac {5 \, e^{x}}{\log \left (3\right )} + \frac {10 \, e^{x}}{x \log \left (3\right )} - \frac {1}{\log \left (3\right )}\right )} \log \left (3\right )}{\log \left (3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((-5*x^3+10*x-10)*exp(x)-x^2)*exp(((-5*x^2+5*x+10)*exp(x)-x^2-x)/x/log(3))+x^2*log(3))/x^2/log(3),x
, algorithm="maxima")

[Out]

(x*log(3) + e^(-5*x*e^x/log(3) - x/log(3) + 5*e^x/log(3) + 10*e^x/(x*log(3)) - 1/log(3))*log(3))/log(3)

________________________________________________________________________________________

Fricas [A]
time = 0.38, size = 29, normalized size = 1.07 \begin {gather*} x + e^{\left (-\frac {x^{2} + 5 \, {\left (x^{2} - x - 2\right )} e^{x} + x}{x \log \left (3\right )}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((-5*x^3+10*x-10)*exp(x)-x^2)*exp(((-5*x^2+5*x+10)*exp(x)-x^2-x)/x/log(3))+x^2*log(3))/x^2/log(3),x
, algorithm="fricas")

[Out]

x + e^(-(x^2 + 5*(x^2 - x - 2)*e^x + x)/(x*log(3)))

________________________________________________________________________________________

Sympy [A]
time = 0.14, size = 26, normalized size = 0.96 \begin {gather*} x + e^{\frac {- x^{2} - x + \left (- 5 x^{2} + 5 x + 10\right ) e^{x}}{x \log {\left (3 \right )}}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((-5*x**3+10*x-10)*exp(x)-x**2)*exp(((-5*x**2+5*x+10)*exp(x)-x**2-x)/x/ln(3))+x**2*ln(3))/x**2/ln(3
),x)

[Out]

x + exp((-x**2 - x + (-5*x**2 + 5*x + 10)*exp(x))/(x*log(3)))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((-5*x^3+10*x-10)*exp(x)-x^2)*exp(((-5*x^2+5*x+10)*exp(x)-x^2-x)/x/log(3))+x^2*log(3))/x^2/log(3),x
, algorithm="giac")

[Out]

integrate((x^2*log(3) - (x^2 + 5*(x^3 - 2*x + 2)*e^x)*e^(-(x^2 + 5*(x^2 - x - 2)*e^x + x)/(x*log(3))))/(x^2*lo
g(3)), x)

________________________________________________________________________________________

Mupad [B]
time = 3.78, size = 49, normalized size = 1.81 \begin {gather*} x+{\mathrm {e}}^{-\frac {x}{\ln \left (3\right )}}\,{\mathrm {e}}^{\frac {10\,{\mathrm {e}}^x}{x\,\ln \left (3\right )}}\,{\mathrm {e}}^{\frac {5\,{\mathrm {e}}^x}{\ln \left (3\right )}}\,{\mathrm {e}}^{-\frac {1}{\ln \left (3\right )}}\,{\mathrm {e}}^{-\frac {5\,x\,{\mathrm {e}}^x}{\ln \left (3\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(exp(-(x - exp(x)*(5*x - 5*x^2 + 10) + x^2)/(x*log(3)))*(exp(x)*(5*x^3 - 10*x + 10) + x^2) - x^2*log(3))/
(x^2*log(3)),x)

[Out]

x + exp(-x/log(3))*exp((10*exp(x))/(x*log(3)))*exp((5*exp(x))/log(3))*exp(-1/log(3))*exp(-(5*x*exp(x))/log(3))

________________________________________________________________________________________