\(\int \frac {-50 x-20 e^4 x-2 e^8 x+(-20 x-4 e^4 x) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} (25+e^8+14 x^3+e^4 (10+3 x^3)+(9 x^2+2 e^4 x^2) \log (4)+(10+2 e^4+3 x^3+2 x^2 \log (4)) \log (x)+\log ^2(x))}{25+10 e^4+e^8+(10+2 e^4) \log (x)+\log ^2(x)} \, dx\) [9749]

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

Optimal result

Integrand size = 150, antiderivative size = 25 \[ \int \frac {-50 x-20 e^4 x-2 e^8 x+\left (-20 x-4 e^4 x\right ) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} \left (25+e^8+14 x^3+e^4 \left (10+3 x^3\right )+\left (9 x^2+2 e^4 x^2\right ) \log (4)+\left (10+2 e^4+3 x^3+2 x^2 \log (4)\right ) \log (x)+\log ^2(x)\right )}{25+10 e^4+e^8+\left (10+2 e^4\right ) \log (x)+\log ^2(x)} \, dx=\left (e^{\frac {x^2 (x+\log (4))}{5+e^4+\log (x)}}-x\right ) x \]

[Out]

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

Rubi [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(99\) vs. \(2(25)=50\).

Time = 1.66 (sec) , antiderivative size = 99, normalized size of antiderivative = 3.96, number of steps used = 6, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.027, Rules used = {6, 6873, 6874, 2326} \[ \int \frac {-50 x-20 e^4 x-2 e^8 x+\left (-20 x-4 e^4 x\right ) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} \left (25+e^8+14 x^3+e^4 \left (10+3 x^3\right )+\left (9 x^2+2 e^4 x^2\right ) \log (4)+\left (10+2 e^4+3 x^3+2 x^2 \log (4)\right ) \log (x)+\log ^2(x)\right )}{25+10 e^4+e^8+\left (10+2 e^4\right ) \log (x)+\log ^2(x)} \, dx=-x^2-\frac {4^{\frac {x^2}{\log (x)+e^4+5}} e^{\frac {x^3}{\log (x)+e^4+5}} \left (x^2 \log (16) \log (x)+\left (9+2 e^4\right ) x^2 \log (4)\right )}{\log (4) \left (\log (x)+e^4+5\right )^2 \left (\frac {x}{\left (\log (x)+e^4+5\right )^2}-\frac {2 x}{\log (x)+e^4+5}\right )} \]

[In]

Int[(-50*x - 20*E^4*x - 2*E^8*x + (-20*x - 4*E^4*x)*Log[x] - 2*x*Log[x]^2 + E^((x^3 + x^2*Log[4])/(5 + E^4 + L
og[x]))*(25 + E^8 + 14*x^3 + E^4*(10 + 3*x^3) + (9*x^2 + 2*E^4*x^2)*Log[4] + (10 + 2*E^4 + 3*x^3 + 2*x^2*Log[4
])*Log[x] + Log[x]^2))/(25 + 10*E^4 + E^8 + (10 + 2*E^4)*Log[x] + Log[x]^2),x]

[Out]

-x^2 - (4^(x^2/(5 + E^4 + Log[x]))*E^(x^3/(5 + E^4 + Log[x]))*((9 + 2*E^4)*x^2*Log[4] + x^2*Log[16]*Log[x]))/(
Log[4]*(5 + E^4 + Log[x])^2*(x/(5 + E^4 + Log[x])^2 - (2*x)/(5 + E^4 + Log[x])))

Rule 6

Int[(u_.)*((w_.) + (a_.)*(v_) + (b_.)*(v_))^(p_.), x_Symbol] :> Int[u*((a + b)*v + w)^p, x] /; FreeQ[{a, b}, x
] &&  !FreeQ[v, x]

Rule 2326

Int[(y_.)*(F_)^(u_)*((v_) + (w_)), x_Symbol] :> With[{z = v*(y/(Log[F]*D[u, x]))}, Simp[F^u*z, x] /; EqQ[D[z,
x], w*y]] /; FreeQ[F, x]

Rule 6873

Int[u_, x_Symbol] :> With[{v = NormalizeIntegrand[u, x]}, Int[v, x] /; v =!= u]

Rule 6874

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps \begin{align*} \text {integral}& = \int \frac {-2 e^8 x+\left (-50-20 e^4\right ) x+\left (-20 x-4 e^4 x\right ) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} \left (25+e^8+14 x^3+e^4 \left (10+3 x^3\right )+\left (9 x^2+2 e^4 x^2\right ) \log (4)+\left (10+2 e^4+3 x^3+2 x^2 \log (4)\right ) \log (x)+\log ^2(x)\right )}{25+10 e^4+e^8+\left (10+2 e^4\right ) \log (x)+\log ^2(x)} \, dx \\ & = \int \frac {\left (-50-20 e^4-2 e^8\right ) x+\left (-20 x-4 e^4 x\right ) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} \left (25+e^8+14 x^3+e^4 \left (10+3 x^3\right )+\left (9 x^2+2 e^4 x^2\right ) \log (4)+\left (10+2 e^4+3 x^3+2 x^2 \log (4)\right ) \log (x)+\log ^2(x)\right )}{25+10 e^4+e^8+\left (10+2 e^4\right ) \log (x)+\log ^2(x)} \, dx \\ & = \int \frac {\left (-50-20 e^4-2 e^8\right ) x+\left (-20 x-4 e^4 x\right ) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} \left (25+e^8+14 x^3+e^4 \left (10+3 x^3\right )+\left (9 x^2+2 e^4 x^2\right ) \log (4)+\left (10+2 e^4+3 x^3+2 x^2 \log (4)\right ) \log (x)+\log ^2(x)\right )}{\left (5 \left (1+\frac {e^4}{5}\right )+\log (x)\right )^2} \, dx \\ & = \int \left (-2 x+\frac {4^{\frac {x^2}{5 \left (1+\frac {e^4}{5}\right )+\log (x)}} e^{\frac {x^3}{5 \left (1+\frac {e^4}{5}\right )+\log (x)}} \left (25 \left (1+\frac {1}{25} e^4 \left (10+e^4\right )\right )+14 \left (1+\frac {3 e^4}{14}\right ) x^3+9 x^2 \log (4) \left (1+\frac {e^4 \log (16)}{9 \log (4)}\right )+10 \left (1+\frac {e^4}{5}\right ) \log (x)+3 x^3 \log (x)+x^2 \log (16) \log (x)+\log ^2(x)\right )}{\left (5 \left (1+\frac {e^4}{5}\right )+\log (x)\right )^2}\right ) \, dx \\ & = -x^2+\int \frac {4^{\frac {x^2}{5 \left (1+\frac {e^4}{5}\right )+\log (x)}} e^{\frac {x^3}{5 \left (1+\frac {e^4}{5}\right )+\log (x)}} \left (25 \left (1+\frac {1}{25} e^4 \left (10+e^4\right )\right )+14 \left (1+\frac {3 e^4}{14}\right ) x^3+9 x^2 \log (4) \left (1+\frac {e^4 \log (16)}{9 \log (4)}\right )+10 \left (1+\frac {e^4}{5}\right ) \log (x)+3 x^3 \log (x)+x^2 \log (16) \log (x)+\log ^2(x)\right )}{\left (5 \left (1+\frac {e^4}{5}\right )+\log (x)\right )^2} \, dx \\ & = -x^2-\frac {4^{\frac {x^2}{5+e^4+\log (x)}} e^{\frac {x^3}{5+e^4+\log (x)}} \left (x^2 \left (9 \log (4)+e^4 \log (16)\right )+x^2 \log (16) \log (x)\right )}{\log (4) \left (5+e^4+\log (x)\right )^2 \left (\frac {x}{\left (5+e^4+\log (x)\right )^2}-\frac {2 x}{5+e^4+\log (x)}\right )} \\ \end{align*}

Mathematica [F]

\[ \int \frac {-50 x-20 e^4 x-2 e^8 x+\left (-20 x-4 e^4 x\right ) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} \left (25+e^8+14 x^3+e^4 \left (10+3 x^3\right )+\left (9 x^2+2 e^4 x^2\right ) \log (4)+\left (10+2 e^4+3 x^3+2 x^2 \log (4)\right ) \log (x)+\log ^2(x)\right )}{25+10 e^4+e^8+\left (10+2 e^4\right ) \log (x)+\log ^2(x)} \, dx=\int \frac {-50 x-20 e^4 x-2 e^8 x+\left (-20 x-4 e^4 x\right ) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} \left (25+e^8+14 x^3+e^4 \left (10+3 x^3\right )+\left (9 x^2+2 e^4 x^2\right ) \log (4)+\left (10+2 e^4+3 x^3+2 x^2 \log (4)\right ) \log (x)+\log ^2(x)\right )}{25+10 e^4+e^8+\left (10+2 e^4\right ) \log (x)+\log ^2(x)} \, dx \]

[In]

Integrate[(-50*x - 20*E^4*x - 2*E^8*x + (-20*x - 4*E^4*x)*Log[x] - 2*x*Log[x]^2 + E^((x^3 + x^2*Log[4])/(5 + E
^4 + Log[x]))*(25 + E^8 + 14*x^3 + E^4*(10 + 3*x^3) + (9*x^2 + 2*E^4*x^2)*Log[4] + (10 + 2*E^4 + 3*x^3 + 2*x^2
*Log[4])*Log[x] + Log[x]^2))/(25 + 10*E^4 + E^8 + (10 + 2*E^4)*Log[x] + Log[x]^2),x]

[Out]

Integrate[(-50*x - 20*E^4*x - 2*E^8*x + (-20*x - 4*E^4*x)*Log[x] - 2*x*Log[x]^2 + E^((x^3 + x^2*Log[4])/(5 + E
^4 + Log[x]))*(25 + E^8 + 14*x^3 + E^4*(10 + 3*x^3) + (9*x^2 + 2*E^4*x^2)*Log[4] + (10 + 2*E^4 + 3*x^3 + 2*x^2
*Log[4])*Log[x] + Log[x]^2))/(25 + 10*E^4 + E^8 + (10 + 2*E^4)*Log[x] + Log[x]^2), x]

Maple [A] (verified)

Time = 4.14 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.12

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

[In]

int(((ln(x)^2+(4*x^2*ln(2)+2*exp(4)+3*x^3+10)*ln(x)+2*(2*x^2*exp(4)+9*x^2)*ln(2)+exp(4)^2+(3*x^3+10)*exp(4)+14
*x^3+25)*exp((2*x^2*ln(2)+x^3)/(ln(x)+5+exp(4)))-2*x*ln(x)^2+(-4*x*exp(4)-20*x)*ln(x)-2*x*exp(4)^2-20*x*exp(4)
-50*x)/(ln(x)^2+(2*exp(4)+10)*ln(x)+exp(4)^2+10*exp(4)+25),x,method=_RETURNVERBOSE)

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.29 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.16 \[ \int \frac {-50 x-20 e^4 x-2 e^8 x+\left (-20 x-4 e^4 x\right ) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} \left (25+e^8+14 x^3+e^4 \left (10+3 x^3\right )+\left (9 x^2+2 e^4 x^2\right ) \log (4)+\left (10+2 e^4+3 x^3+2 x^2 \log (4)\right ) \log (x)+\log ^2(x)\right )}{25+10 e^4+e^8+\left (10+2 e^4\right ) \log (x)+\log ^2(x)} \, dx=-x^{2} + x e^{\left (\frac {x^{3} + 2 \, x^{2} \log \left (2\right )}{e^{4} + \log \left (x\right ) + 5}\right )} \]

[In]

integrate(((log(x)^2+(4*x^2*log(2)+2*exp(4)+3*x^3+10)*log(x)+2*(2*x^2*exp(4)+9*x^2)*log(2)+exp(4)^2+(3*x^3+10)
*exp(4)+14*x^3+25)*exp((2*x^2*log(2)+x^3)/(log(x)+5+exp(4)))-2*x*log(x)^2+(-4*x*exp(4)-20*x)*log(x)-2*x*exp(4)
^2-20*x*exp(4)-50*x)/(log(x)^2+(2*exp(4)+10)*log(x)+exp(4)^2+10*exp(4)+25),x, algorithm="fricas")

[Out]

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

Sympy [F(-2)]

Exception generated. \[ \int \frac {-50 x-20 e^4 x-2 e^8 x+\left (-20 x-4 e^4 x\right ) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} \left (25+e^8+14 x^3+e^4 \left (10+3 x^3\right )+\left (9 x^2+2 e^4 x^2\right ) \log (4)+\left (10+2 e^4+3 x^3+2 x^2 \log (4)\right ) \log (x)+\log ^2(x)\right )}{25+10 e^4+e^8+\left (10+2 e^4\right ) \log (x)+\log ^2(x)} \, dx=\text {Exception raised: TypeError} \]

[In]

integrate(((ln(x)**2+(4*x**2*ln(2)+2*exp(4)+3*x**3+10)*ln(x)+2*(2*x**2*exp(4)+9*x**2)*ln(2)+exp(4)**2+(3*x**3+
10)*exp(4)+14*x**3+25)*exp((2*x**2*ln(2)+x**3)/(ln(x)+5+exp(4)))-2*x*ln(x)**2+(-4*x*exp(4)-20*x)*ln(x)-2*x*exp
(4)**2-20*x*exp(4)-50*x)/(ln(x)**2+(2*exp(4)+10)*ln(x)+exp(4)**2+10*exp(4)+25),x)

[Out]

Exception raised: TypeError >> '>' not supported between instances of 'Poly' and 'int'

Maxima [F(-2)]

Exception generated. \[ \int \frac {-50 x-20 e^4 x-2 e^8 x+\left (-20 x-4 e^4 x\right ) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} \left (25+e^8+14 x^3+e^4 \left (10+3 x^3\right )+\left (9 x^2+2 e^4 x^2\right ) \log (4)+\left (10+2 e^4+3 x^3+2 x^2 \log (4)\right ) \log (x)+\log ^2(x)\right )}{25+10 e^4+e^8+\left (10+2 e^4\right ) \log (x)+\log ^2(x)} \, dx=\text {Exception raised: RuntimeError} \]

[In]

integrate(((log(x)^2+(4*x^2*log(2)+2*exp(4)+3*x^3+10)*log(x)+2*(2*x^2*exp(4)+9*x^2)*log(2)+exp(4)^2+(3*x^3+10)
*exp(4)+14*x^3+25)*exp((2*x^2*log(2)+x^3)/(log(x)+5+exp(4)))-2*x*log(x)^2+(-4*x*exp(4)-20*x)*log(x)-2*x*exp(4)
^2-20*x*exp(4)-50*x)/(log(x)^2+(2*exp(4)+10)*log(x)+exp(4)^2+10*exp(4)+25),x, algorithm="maxima")

[Out]

Exception raised: RuntimeError >> ECL says: In function CAR, the value of the first argument is  0which is not
 of the expected type LIST

Giac [A] (verification not implemented)

none

Time = 0.95 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.16 \[ \int \frac {-50 x-20 e^4 x-2 e^8 x+\left (-20 x-4 e^4 x\right ) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} \left (25+e^8+14 x^3+e^4 \left (10+3 x^3\right )+\left (9 x^2+2 e^4 x^2\right ) \log (4)+\left (10+2 e^4+3 x^3+2 x^2 \log (4)\right ) \log (x)+\log ^2(x)\right )}{25+10 e^4+e^8+\left (10+2 e^4\right ) \log (x)+\log ^2(x)} \, dx=-x^{2} + x e^{\left (\frac {x^{3} + 2 \, x^{2} \log \left (2\right )}{e^{4} + \log \left (x\right ) + 5}\right )} \]

[In]

integrate(((log(x)^2+(4*x^2*log(2)+2*exp(4)+3*x^3+10)*log(x)+2*(2*x^2*exp(4)+9*x^2)*log(2)+exp(4)^2+(3*x^3+10)
*exp(4)+14*x^3+25)*exp((2*x^2*log(2)+x^3)/(log(x)+5+exp(4)))-2*x*log(x)^2+(-4*x*exp(4)-20*x)*log(x)-2*x*exp(4)
^2-20*x*exp(4)-50*x)/(log(x)^2+(2*exp(4)+10)*log(x)+exp(4)^2+10*exp(4)+25),x, algorithm="giac")

[Out]

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

Mupad [F(-1)]

Timed out. \[ \int \frac {-50 x-20 e^4 x-2 e^8 x+\left (-20 x-4 e^4 x\right ) \log (x)-2 x \log ^2(x)+e^{\frac {x^3+x^2 \log (4)}{5+e^4+\log (x)}} \left (25+e^8+14 x^3+e^4 \left (10+3 x^3\right )+\left (9 x^2+2 e^4 x^2\right ) \log (4)+\left (10+2 e^4+3 x^3+2 x^2 \log (4)\right ) \log (x)+\log ^2(x)\right )}{25+10 e^4+e^8+\left (10+2 e^4\right ) \log (x)+\log ^2(x)} \, dx=-\int \frac {50\,x+2\,x\,{\ln \left (x\right )}^2+20\,x\,{\mathrm {e}}^4+2\,x\,{\mathrm {e}}^8+\ln \left (x\right )\,\left (20\,x+4\,x\,{\mathrm {e}}^4\right )-{\mathrm {e}}^{\frac {x^3+2\,\ln \left (2\right )\,x^2}{{\mathrm {e}}^4+\ln \left (x\right )+5}}\,\left ({\mathrm {e}}^8+\ln \left (x\right )\,\left (3\,x^3+4\,\ln \left (2\right )\,x^2+2\,{\mathrm {e}}^4+10\right )+{\ln \left (x\right )}^2+{\mathrm {e}}^4\,\left (3\,x^3+10\right )+14\,x^3+2\,\ln \left (2\right )\,\left (2\,x^2\,{\mathrm {e}}^4+9\,x^2\right )+25\right )}{{\ln \left (x\right )}^2+\left (2\,{\mathrm {e}}^4+10\right )\,\ln \left (x\right )+10\,{\mathrm {e}}^4+{\mathrm {e}}^8+25} \,d x \]

[In]

int(-(50*x + 2*x*log(x)^2 + 20*x*exp(4) + 2*x*exp(8) + log(x)*(20*x + 4*x*exp(4)) - exp((2*x^2*log(2) + x^3)/(
exp(4) + log(x) + 5))*(exp(8) + log(x)*(2*exp(4) + 4*x^2*log(2) + 3*x^3 + 10) + log(x)^2 + exp(4)*(3*x^3 + 10)
 + 14*x^3 + 2*log(2)*(2*x^2*exp(4) + 9*x^2) + 25))/(10*exp(4) + exp(8) + log(x)^2 + log(x)*(2*exp(4) + 10) + 2
5),x)

[Out]

-int((50*x + 2*x*log(x)^2 + 20*x*exp(4) + 2*x*exp(8) + log(x)*(20*x + 4*x*exp(4)) - exp((2*x^2*log(2) + x^3)/(
exp(4) + log(x) + 5))*(exp(8) + log(x)*(2*exp(4) + 4*x^2*log(2) + 3*x^3 + 10) + log(x)^2 + exp(4)*(3*x^3 + 10)
 + 14*x^3 + 2*log(2)*(2*x^2*exp(4) + 9*x^2) + 25))/(10*exp(4) + exp(8) + log(x)^2 + log(x)*(2*exp(4) + 10) + 2
5), x)