3.46.27 \(\int \frac {e^{\frac {2+x^3+x \log (\frac {5 \log (\frac {1}{x})-5 \log (x)}{x})}{x}} (2 x+(2+x-2 x^3) \log (\frac {1}{x})+(-2-x+2 x^3) \log (x))}{-x^2 \log (\frac {1}{x})+x^2 \log (x)} \, dx\)

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

________________________________________________________________________________________

Rubi [B]  time = 1.06, antiderivative size = 71, normalized size of antiderivative = 2.84, number of steps used = 9, number of rules used = 5, integrand size = 78, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.064, Rules used = {6688, 12, 6742, 2288, 2554} \begin {gather*} \frac {5 e^{x^2+\frac {2}{x}} \left (1-x^3\right ) \log \left (\frac {1}{x}\right )}{\left (\frac {1}{x^2}-x\right ) x^3}-\frac {5 e^{x^2+\frac {2}{x}} \left (1-x^3\right ) \log (x)}{\left (\frac {1}{x^2}-x\right ) x^3} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 2288

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 2554

Int[Log[u_]*(v_), x_Symbol] :> With[{w = IntHide[v, x]}, Dist[Log[u], w, x] - Int[SimplifyIntegrand[(w*D[u, x]
)/u, x], x] /; InverseFunctionFreeQ[w, x]] /; InverseFunctionFreeQ[u, x]

Rule 6688

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

Rule 6742

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.23, size = 25, normalized size = 1.00 \begin {gather*} \frac {5 e^{\frac {2}{x}+x^2} \left (\log \left (\frac {1}{x}\right )-\log (x)\right )}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.65, size = 22, normalized size = 0.88 \begin {gather*} e^{\left (\frac {x^{3} + x \log \left (\frac {10 \, \log \left (\frac {1}{x}\right )}{x}\right ) + 2}{x}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.15, size = 18, normalized size = 0.72 \begin {gather*} e^{\left (x^{2} + \frac {2}{x} + \log \left (-\frac {10 \, \log \relax (x)}{x}\right )\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

e^(x^2 + 2/x + log(-10*log(x)/x))

________________________________________________________________________________________

maple [C]  time = 0.40, size = 141, normalized size = 5.64




method result size



risch \(-{\mathrm e}^{\frac {i x \pi \mathrm {csgn}\left (\frac {i \ln \relax (x )}{x}\right )^{3}+i x \pi \mathrm {csgn}\left (\frac {i \ln \relax (x )}{x}\right )^{2} \mathrm {csgn}\left (\frac {i}{x}\right )+i x \pi \mathrm {csgn}\left (\frac {i \ln \relax (x )}{x}\right )^{2} \mathrm {csgn}\left (i \ln \relax (x )\right )-i x \pi \,\mathrm {csgn}\left (\frac {i \ln \relax (x )}{x}\right ) \mathrm {csgn}\left (\frac {i}{x}\right ) \mathrm {csgn}\left (i \ln \relax (x )\right )-2 i x \pi \mathrm {csgn}\left (\frac {i \ln \relax (x )}{x}\right )^{2}+2 x^{3}-2 x \ln \relax (x )+2 x \ln \left (\ln \relax (x )\right )+2 x \ln \relax (5)+2 x \ln \relax (2)+4}{2 x}}\) \(141\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-exp(1/2*(I*x*Pi*csgn(I/x*ln(x))^3+I*x*Pi*csgn(I/x*ln(x))^2*csgn(I/x)+I*x*Pi*csgn(I/x*ln(x))^2*csgn(I*ln(x))-I
*x*Pi*csgn(I/x*ln(x))*csgn(I/x)*csgn(I*ln(x))-2*I*x*Pi*csgn(I/x*ln(x))^2+2*x^3-2*x*ln(x)+2*x*ln(ln(x))+2*x*ln(
5)+2*x*ln(2)+4)/x)

________________________________________________________________________________________

maxima [A]  time = 0.58, size = 17, normalized size = 0.68 \begin {gather*} -\frac {10 \, e^{\left (x^{2} + \frac {2}{x}\right )} \log \relax (x)}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-10*e^(x^2 + 2/x)*log(x)/x

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {{\mathrm {e}}^{\frac {x\,\ln \left (\frac {5\,\ln \left (\frac {1}{x}\right )-5\,\ln \relax (x)}{x}\right )+x^3+2}{x}}\,\left (2\,x-\ln \relax (x)\,\left (-2\,x^3+x+2\right )+\ln \left (\frac {1}{x}\right )\,\left (-2\,x^3+x+2\right )\right )}{x^2\,\ln \relax (x)-x^2\,\ln \left (\frac {1}{x}\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.55, size = 19, normalized size = 0.76 \begin {gather*} e^{\frac {x^{3} + x \log {\left (- \frac {10 \log {\relax (x )}}{x} \right )} + 2}{x}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________