\(\int \frac {2 e^{4+2 e^x x}-4 e^{2+e^x x} \log (5)+2 \log ^2(5)+e^{\frac {4-e^{2+x+e^x x}+8 x+4 x^2+e^x \log (5)}{e^{2+e^x x}-\log (5)}} (e^{4+2 e^x x} (-1+e^x x)+(8 x+8 x^2) \log (5)-\log ^2(5)+e^x x \log ^2(5)+e^{2+e^x x} (-8 x-8 x^2+2 \log (5)+e^x (4 x+12 x^2+12 x^3+4 x^4-2 x \log (5))))}{e^{4+2 e^x x}-2 e^{2+e^x x} \log (5)+\log ^2(5)} \, dx\) [7624]

   Optimal result
   Rubi [F(-1)]
   Mathematica [F]
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [B] (verification not implemented)
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 208, antiderivative size = 38 \[ \int \frac {2 e^{4+2 e^x x}-4 e^{2+e^x x} \log (5)+2 \log ^2(5)+e^{\frac {4-e^{2+x+e^x x}+8 x+4 x^2+e^x \log (5)}{e^{2+e^x x}-\log (5)}} \left (e^{4+2 e^x x} \left (-1+e^x x\right )+\left (8 x+8 x^2\right ) \log (5)-\log ^2(5)+e^x x \log ^2(5)+e^{2+e^x x} \left (-8 x-8 x^2+2 \log (5)+e^x \left (4 x+12 x^2+12 x^3+4 x^4-2 x \log (5)\right )\right )\right )}{e^{4+2 e^x x}-2 e^{2+e^x x} \log (5)+\log ^2(5)} \, dx=\left (2-e^{-e^x+\frac {(2+2 x)^2}{e^{2+e^x x}-\log (5)}}\right ) x \]

[Out]

(2-exp((2+2*x)^2/(exp(exp(x)*x+2)-ln(5))-exp(x)))*x

Rubi [F(-1)]

Timed out. \[ \int \frac {2 e^{4+2 e^x x}-4 e^{2+e^x x} \log (5)+2 \log ^2(5)+e^{\frac {4-e^{2+x+e^x x}+8 x+4 x^2+e^x \log (5)}{e^{2+e^x x}-\log (5)}} \left (e^{4+2 e^x x} \left (-1+e^x x\right )+\left (8 x+8 x^2\right ) \log (5)-\log ^2(5)+e^x x \log ^2(5)+e^{2+e^x x} \left (-8 x-8 x^2+2 \log (5)+e^x \left (4 x+12 x^2+12 x^3+4 x^4-2 x \log (5)\right )\right )\right )}{e^{4+2 e^x x}-2 e^{2+e^x x} \log (5)+\log ^2(5)} \, dx=\text {\$Aborted} \]

[In]

Int[(2*E^(4 + 2*E^x*x) - 4*E^(2 + E^x*x)*Log[5] + 2*Log[5]^2 + E^((4 - E^(2 + x + E^x*x) + 8*x + 4*x^2 + E^x*L
og[5])/(E^(2 + E^x*x) - Log[5]))*(E^(4 + 2*E^x*x)*(-1 + E^x*x) + (8*x + 8*x^2)*Log[5] - Log[5]^2 + E^x*x*Log[5
]^2 + E^(2 + E^x*x)*(-8*x - 8*x^2 + 2*Log[5] + E^x*(4*x + 12*x^2 + 12*x^3 + 4*x^4 - 2*x*Log[5]))))/(E^(4 + 2*E
^x*x) - 2*E^(2 + E^x*x)*Log[5] + Log[5]^2),x]

[Out]

$Aborted

Rubi steps Aborted

Mathematica [F]

\[ \int \frac {2 e^{4+2 e^x x}-4 e^{2+e^x x} \log (5)+2 \log ^2(5)+e^{\frac {4-e^{2+x+e^x x}+8 x+4 x^2+e^x \log (5)}{e^{2+e^x x}-\log (5)}} \left (e^{4+2 e^x x} \left (-1+e^x x\right )+\left (8 x+8 x^2\right ) \log (5)-\log ^2(5)+e^x x \log ^2(5)+e^{2+e^x x} \left (-8 x-8 x^2+2 \log (5)+e^x \left (4 x+12 x^2+12 x^3+4 x^4-2 x \log (5)\right )\right )\right )}{e^{4+2 e^x x}-2 e^{2+e^x x} \log (5)+\log ^2(5)} \, dx=\int \frac {2 e^{4+2 e^x x}-4 e^{2+e^x x} \log (5)+2 \log ^2(5)+e^{\frac {4-e^{2+x+e^x x}+8 x+4 x^2+e^x \log (5)}{e^{2+e^x x}-\log (5)}} \left (e^{4+2 e^x x} \left (-1+e^x x\right )+\left (8 x+8 x^2\right ) \log (5)-\log ^2(5)+e^x x \log ^2(5)+e^{2+e^x x} \left (-8 x-8 x^2+2 \log (5)+e^x \left (4 x+12 x^2+12 x^3+4 x^4-2 x \log (5)\right )\right )\right )}{e^{4+2 e^x x}-2 e^{2+e^x x} \log (5)+\log ^2(5)} \, dx \]

[In]

Integrate[(2*E^(4 + 2*E^x*x) - 4*E^(2 + E^x*x)*Log[5] + 2*Log[5]^2 + E^((4 - E^(2 + x + E^x*x) + 8*x + 4*x^2 +
 E^x*Log[5])/(E^(2 + E^x*x) - Log[5]))*(E^(4 + 2*E^x*x)*(-1 + E^x*x) + (8*x + 8*x^2)*Log[5] - Log[5]^2 + E^x*x
*Log[5]^2 + E^(2 + E^x*x)*(-8*x - 8*x^2 + 2*Log[5] + E^x*(4*x + 12*x^2 + 12*x^3 + 4*x^4 - 2*x*Log[5]))))/(E^(4
 + 2*E^x*x) - 2*E^(2 + E^x*x)*Log[5] + Log[5]^2),x]

[Out]

Integrate[(2*E^(4 + 2*E^x*x) - 4*E^(2 + E^x*x)*Log[5] + 2*Log[5]^2 + E^((4 - E^(2 + x + E^x*x) + 8*x + 4*x^2 +
 E^x*Log[5])/(E^(2 + E^x*x) - Log[5]))*(E^(4 + 2*E^x*x)*(-1 + E^x*x) + (8*x + 8*x^2)*Log[5] - Log[5]^2 + E^x*x
*Log[5]^2 + E^(2 + E^x*x)*(-8*x - 8*x^2 + 2*Log[5] + E^x*(4*x + 12*x^2 + 12*x^3 + 4*x^4 - 2*x*Log[5]))))/(E^(4
 + 2*E^x*x) - 2*E^(2 + E^x*x)*Log[5] + Log[5]^2), x]

Maple [A] (verified)

Time = 56.82 (sec) , antiderivative size = 50, normalized size of antiderivative = 1.32

method result size
risch \(-x \,{\mathrm e}^{-\frac {-{\mathrm e}^{x +{\mathrm e}^{x} x +2}+{\mathrm e}^{x} \ln \left (5\right )+4 x^{2}+8 x +4}{-{\mathrm e}^{{\mathrm e}^{x} x +2}+\ln \left (5\right )}}+2 x\) \(50\)
parallelrisch \(-{\mathrm e}^{-\frac {-{\mathrm e}^{x} {\mathrm e}^{{\mathrm e}^{x} x +2}+{\mathrm e}^{x} \ln \left (5\right )+4 x^{2}+8 x +4}{-{\mathrm e}^{{\mathrm e}^{x} x +2}+\ln \left (5\right )}} x +2 x\) \(51\)

[In]

int((((exp(x)*x-1)*exp(exp(x)*x+2)^2+((-2*x*ln(5)+4*x^4+12*x^3+12*x^2+4*x)*exp(x)+2*ln(5)-8*x^2-8*x)*exp(exp(x
)*x+2)+x*ln(5)^2*exp(x)-ln(5)^2+(8*x^2+8*x)*ln(5))*exp((-exp(x)*exp(exp(x)*x+2)+exp(x)*ln(5)+4*x^2+8*x+4)/(exp
(exp(x)*x+2)-ln(5)))+2*exp(exp(x)*x+2)^2-4*ln(5)*exp(exp(x)*x+2)+2*ln(5)^2)/(exp(exp(x)*x+2)^2-2*ln(5)*exp(exp
(x)*x+2)+ln(5)^2),x,method=_RETURNVERBOSE)

[Out]

-x*exp(-(-exp(x+exp(x)*x+2)+exp(x)*ln(5)+4*x^2+8*x+4)/(-exp(exp(x)*x+2)+ln(5)))+2*x

Fricas [A] (verification not implemented)

none

Time = 0.29 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.58 \[ \int \frac {2 e^{4+2 e^x x}-4 e^{2+e^x x} \log (5)+2 \log ^2(5)+e^{\frac {4-e^{2+x+e^x x}+8 x+4 x^2+e^x \log (5)}{e^{2+e^x x}-\log (5)}} \left (e^{4+2 e^x x} \left (-1+e^x x\right )+\left (8 x+8 x^2\right ) \log (5)-\log ^2(5)+e^x x \log ^2(5)+e^{2+e^x x} \left (-8 x-8 x^2+2 \log (5)+e^x \left (4 x+12 x^2+12 x^3+4 x^4-2 x \log (5)\right )\right )\right )}{e^{4+2 e^x x}-2 e^{2+e^x x} \log (5)+\log ^2(5)} \, dx=-x e^{\left (-\frac {4 \, {\left (x^{2} + 2 \, x + 1\right )} e^{x} + e^{\left (2 \, x\right )} \log \left (5\right ) - e^{\left (x e^{x} + 2 \, x + 2\right )}}{e^{x} \log \left (5\right ) - e^{\left (x e^{x} + x + 2\right )}}\right )} + 2 \, x \]

[In]

integrate((((exp(x)*x-1)*exp(exp(x)*x+2)^2+((-2*x*log(5)+4*x^4+12*x^3+12*x^2+4*x)*exp(x)+2*log(5)-8*x^2-8*x)*e
xp(exp(x)*x+2)+x*log(5)^2*exp(x)-log(5)^2+(8*x^2+8*x)*log(5))*exp((-exp(x)*exp(exp(x)*x+2)+exp(x)*log(5)+4*x^2
+8*x+4)/(exp(exp(x)*x+2)-log(5)))+2*exp(exp(x)*x+2)^2-4*log(5)*exp(exp(x)*x+2)+2*log(5)^2)/(exp(exp(x)*x+2)^2-
2*log(5)*exp(exp(x)*x+2)+log(5)^2),x, algorithm="fricas")

[Out]

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

Sympy [A] (verification not implemented)

Time = 3.65 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.21 \[ \int \frac {2 e^{4+2 e^x x}-4 e^{2+e^x x} \log (5)+2 \log ^2(5)+e^{\frac {4-e^{2+x+e^x x}+8 x+4 x^2+e^x \log (5)}{e^{2+e^x x}-\log (5)}} \left (e^{4+2 e^x x} \left (-1+e^x x\right )+\left (8 x+8 x^2\right ) \log (5)-\log ^2(5)+e^x x \log ^2(5)+e^{2+e^x x} \left (-8 x-8 x^2+2 \log (5)+e^x \left (4 x+12 x^2+12 x^3+4 x^4-2 x \log (5)\right )\right )\right )}{e^{4+2 e^x x}-2 e^{2+e^x x} \log (5)+\log ^2(5)} \, dx=- x e^{\frac {4 x^{2} + 8 x - e^{x} e^{x e^{x} + 2} + e^{x} \log {\left (5 \right )} + 4}{e^{x e^{x} + 2} - \log {\left (5 \right )}}} + 2 x \]

[In]

integrate((((exp(x)*x-1)*exp(exp(x)*x+2)**2+((-2*x*ln(5)+4*x**4+12*x**3+12*x**2+4*x)*exp(x)+2*ln(5)-8*x**2-8*x
)*exp(exp(x)*x+2)+x*ln(5)**2*exp(x)-ln(5)**2+(8*x**2+8*x)*ln(5))*exp((-exp(x)*exp(exp(x)*x+2)+exp(x)*ln(5)+4*x
**2+8*x+4)/(exp(exp(x)*x+2)-ln(5)))+2*exp(exp(x)*x+2)**2-4*ln(5)*exp(exp(x)*x+2)+2*ln(5)**2)/(exp(exp(x)*x+2)*
*2-2*ln(5)*exp(exp(x)*x+2)+ln(5)**2),x)

[Out]

-x*exp((4*x**2 + 8*x - exp(x)*exp(x*exp(x) + 2) + exp(x)*log(5) + 4)/(exp(x*exp(x) + 2) - log(5))) + 2*x

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 104 vs. \(2 (32) = 64\).

Time = 0.37 (sec) , antiderivative size = 104, normalized size of antiderivative = 2.74 \[ \int \frac {2 e^{4+2 e^x x}-4 e^{2+e^x x} \log (5)+2 \log ^2(5)+e^{\frac {4-e^{2+x+e^x x}+8 x+4 x^2+e^x \log (5)}{e^{2+e^x x}-\log (5)}} \left (e^{4+2 e^x x} \left (-1+e^x x\right )+\left (8 x+8 x^2\right ) \log (5)-\log ^2(5)+e^x x \log ^2(5)+e^{2+e^x x} \left (-8 x-8 x^2+2 \log (5)+e^x \left (4 x+12 x^2+12 x^3+4 x^4-2 x \log (5)\right )\right )\right )}{e^{4+2 e^x x}-2 e^{2+e^x x} \log (5)+\log ^2(5)} \, dx=-x e^{\left (\frac {4 \, x^{2}}{e^{\left (x e^{x} + 2\right )} - \log \left (5\right )} + \frac {e^{x} \log \left (5\right )}{e^{\left (x e^{x} + 2\right )} - \log \left (5\right )} + \frac {8 \, x}{e^{\left (x e^{x} + 2\right )} - \log \left (5\right )} - \frac {e^{\left (x e^{x} + x + 2\right )}}{e^{\left (x e^{x} + 2\right )} - \log \left (5\right )} + \frac {4}{e^{\left (x e^{x} + 2\right )} - \log \left (5\right )}\right )} + 2 \, x \]

[In]

integrate((((exp(x)*x-1)*exp(exp(x)*x+2)^2+((-2*x*log(5)+4*x^4+12*x^3+12*x^2+4*x)*exp(x)+2*log(5)-8*x^2-8*x)*e
xp(exp(x)*x+2)+x*log(5)^2*exp(x)-log(5)^2+(8*x^2+8*x)*log(5))*exp((-exp(x)*exp(exp(x)*x+2)+exp(x)*log(5)+4*x^2
+8*x+4)/(exp(exp(x)*x+2)-log(5)))+2*exp(exp(x)*x+2)^2-4*log(5)*exp(exp(x)*x+2)+2*log(5)^2)/(exp(exp(x)*x+2)^2-
2*log(5)*exp(exp(x)*x+2)+log(5)^2),x, algorithm="maxima")

[Out]

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

Giac [F]

\[ \int \frac {2 e^{4+2 e^x x}-4 e^{2+e^x x} \log (5)+2 \log ^2(5)+e^{\frac {4-e^{2+x+e^x x}+8 x+4 x^2+e^x \log (5)}{e^{2+e^x x}-\log (5)}} \left (e^{4+2 e^x x} \left (-1+e^x x\right )+\left (8 x+8 x^2\right ) \log (5)-\log ^2(5)+e^x x \log ^2(5)+e^{2+e^x x} \left (-8 x-8 x^2+2 \log (5)+e^x \left (4 x+12 x^2+12 x^3+4 x^4-2 x \log (5)\right )\right )\right )}{e^{4+2 e^x x}-2 e^{2+e^x x} \log (5)+\log ^2(5)} \, dx=\int { -\frac {{\left (x e^{x} \log \left (5\right )^{2} + {\left (x e^{x} - 1\right )} e^{\left (2 \, x e^{x} + 4\right )} - 2 \, {\left (4 \, x^{2} - {\left (2 \, x^{4} + 6 \, x^{3} + 6 \, x^{2} - x \log \left (5\right ) + 2 \, x\right )} e^{x} + 4 \, x - \log \left (5\right )\right )} e^{\left (x e^{x} + 2\right )} + 8 \, {\left (x^{2} + x\right )} \log \left (5\right ) - \log \left (5\right )^{2}\right )} e^{\left (\frac {4 \, x^{2} + e^{x} \log \left (5\right ) + 8 \, x - e^{\left (x e^{x} + x + 2\right )} + 4}{e^{\left (x e^{x} + 2\right )} - \log \left (5\right )}\right )} - 4 \, e^{\left (x e^{x} + 2\right )} \log \left (5\right ) + 2 \, \log \left (5\right )^{2} + 2 \, e^{\left (2 \, x e^{x} + 4\right )}}{2 \, e^{\left (x e^{x} + 2\right )} \log \left (5\right ) - \log \left (5\right )^{2} - e^{\left (2 \, x e^{x} + 4\right )}} \,d x } \]

[In]

integrate((((exp(x)*x-1)*exp(exp(x)*x+2)^2+((-2*x*log(5)+4*x^4+12*x^3+12*x^2+4*x)*exp(x)+2*log(5)-8*x^2-8*x)*e
xp(exp(x)*x+2)+x*log(5)^2*exp(x)-log(5)^2+(8*x^2+8*x)*log(5))*exp((-exp(x)*exp(exp(x)*x+2)+exp(x)*log(5)+4*x^2
+8*x+4)/(exp(exp(x)*x+2)-log(5)))+2*exp(exp(x)*x+2)^2-4*log(5)*exp(exp(x)*x+2)+2*log(5)^2)/(exp(exp(x)*x+2)^2-
2*log(5)*exp(exp(x)*x+2)+log(5)^2),x, algorithm="giac")

[Out]

integrate(-((x*e^x*log(5)^2 + (x*e^x - 1)*e^(2*x*e^x + 4) - 2*(4*x^2 - (2*x^4 + 6*x^3 + 6*x^2 - x*log(5) + 2*x
)*e^x + 4*x - log(5))*e^(x*e^x + 2) + 8*(x^2 + x)*log(5) - log(5)^2)*e^((4*x^2 + e^x*log(5) + 8*x - e^(x*e^x +
 x + 2) + 4)/(e^(x*e^x + 2) - log(5))) - 4*e^(x*e^x + 2)*log(5) + 2*log(5)^2 + 2*e^(2*x*e^x + 4))/(2*e^(x*e^x
+ 2)*log(5) - log(5)^2 - e^(2*x*e^x + 4)), x)

Mupad [F(-1)]

Timed out. \[ \int \frac {2 e^{4+2 e^x x}-4 e^{2+e^x x} \log (5)+2 \log ^2(5)+e^{\frac {4-e^{2+x+e^x x}+8 x+4 x^2+e^x \log (5)}{e^{2+e^x x}-\log (5)}} \left (e^{4+2 e^x x} \left (-1+e^x x\right )+\left (8 x+8 x^2\right ) \log (5)-\log ^2(5)+e^x x \log ^2(5)+e^{2+e^x x} \left (-8 x-8 x^2+2 \log (5)+e^x \left (4 x+12 x^2+12 x^3+4 x^4-2 x \log (5)\right )\right )\right )}{e^{4+2 e^x x}-2 e^{2+e^x x} \log (5)+\log ^2(5)} \, dx=\int \frac {2\,{\mathrm {e}}^{2\,x\,{\mathrm {e}}^x+4}-4\,{\mathrm {e}}^{x\,{\mathrm {e}}^x+2}\,\ln \left (5\right )+{\mathrm {e}}^{-\frac {8\,x+{\mathrm {e}}^x\,\ln \left (5\right )-{\mathrm {e}}^{x\,{\mathrm {e}}^x+2}\,{\mathrm {e}}^x+4\,x^2+4}{\ln \left (5\right )-{\mathrm {e}}^{x\,{\mathrm {e}}^x+2}}}\,\left (\ln \left (5\right )\,\left (8\,x^2+8\,x\right )-{\mathrm {e}}^{x\,{\mathrm {e}}^x+2}\,\left (8\,x-2\,\ln \left (5\right )-{\mathrm {e}}^x\,\left (4\,x-2\,x\,\ln \left (5\right )+12\,x^2+12\,x^3+4\,x^4\right )+8\,x^2\right )-{\ln \left (5\right )}^2+{\mathrm {e}}^{2\,x\,{\mathrm {e}}^x+4}\,\left (x\,{\mathrm {e}}^x-1\right )+x\,{\mathrm {e}}^x\,{\ln \left (5\right )}^2\right )+2\,{\ln \left (5\right )}^2}{{\mathrm {e}}^{2\,x\,{\mathrm {e}}^x+4}-2\,{\mathrm {e}}^{x\,{\mathrm {e}}^x+2}\,\ln \left (5\right )+{\ln \left (5\right )}^2} \,d x \]

[In]

int((2*exp(2*x*exp(x) + 4) - 4*exp(x*exp(x) + 2)*log(5) + exp(-(8*x + exp(x)*log(5) - exp(x*exp(x) + 2)*exp(x)
 + 4*x^2 + 4)/(log(5) - exp(x*exp(x) + 2)))*(log(5)*(8*x + 8*x^2) - exp(x*exp(x) + 2)*(8*x - 2*log(5) - exp(x)
*(4*x - 2*x*log(5) + 12*x^2 + 12*x^3 + 4*x^4) + 8*x^2) - log(5)^2 + exp(2*x*exp(x) + 4)*(x*exp(x) - 1) + x*exp
(x)*log(5)^2) + 2*log(5)^2)/(exp(2*x*exp(x) + 4) - 2*exp(x*exp(x) + 2)*log(5) + log(5)^2),x)

[Out]

int((2*exp(2*x*exp(x) + 4) - 4*exp(x*exp(x) + 2)*log(5) + exp(-(8*x + exp(x)*log(5) - exp(x*exp(x) + 2)*exp(x)
 + 4*x^2 + 4)/(log(5) - exp(x*exp(x) + 2)))*(log(5)*(8*x + 8*x^2) - exp(x*exp(x) + 2)*(8*x - 2*log(5) - exp(x)
*(4*x - 2*x*log(5) + 12*x^2 + 12*x^3 + 4*x^4) + 8*x^2) - log(5)^2 + exp(2*x*exp(x) + 4)*(x*exp(x) - 1) + x*exp
(x)*log(5)^2) + 2*log(5)^2)/(exp(2*x*exp(x) + 4) - 2*exp(x*exp(x) + 2)*log(5) + log(5)^2), x)