3.67.14 \(\int \frac {-20 x^2+4 e x^2+(10 x^2-2 e x^2) \log (x)+(-2+e^x (-1+x)) \log ^3(x)}{x^2 \log ^3(x)} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.37, antiderivative size = 25, normalized size of antiderivative = 1.19, number of steps used = 11, number of rules used = 6, integrand size = 49, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.122, Rules used = {6, 6688, 14, 2197, 2297, 2298} \begin {gather*} \frac {e^x}{x}+\frac {2}{x}+\frac {2 (5-e) x}{\log ^2(x)} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

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 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 2197

Int[(F_)^((c_.)*(v_))*(u_)^(m_.)*(w_), x_Symbol] :> With[{b = Coefficient[v, x, 1], d = Coefficient[u, x, 0],
e = Coefficient[u, x, 1], f = Coefficient[w, x, 0], g = Coefficient[w, x, 1]}, Simp[(g*u^(m + 1)*F^(c*v))/(b*c
*e*Log[F]), x] /; EqQ[e*g*(m + 1) - b*c*(e*f - d*g)*Log[F], 0]] /; FreeQ[{F, c, m}, x] && LinearQ[{u, v, w}, x
]

Rule 2297

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_), x_Symbol] :> Simp[(x*(a + b*Log[c*x^n])^(p + 1))/(b*n*(p + 1))
, x] - Dist[1/(b*n*(p + 1)), Int[(a + b*Log[c*x^n])^(p + 1), x], x] /; FreeQ[{a, b, c, n}, x] && LtQ[p, -1] &&
 IntegerQ[2*p]

Rule 2298

Int[Log[(c_.)*(x_)]^(-1), x_Symbol] :> Simp[LogIntegral[c*x]/c, x] /; FreeQ[c, x]

Rule 6688

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

Rubi steps

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

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.51, size = 32, normalized size = 1.52 \begin {gather*} -\frac {2 \, x^{2} e - {\left (e^{x} + 2\right )} \log \relax (x)^{2} - 10 \, x^{2}}{x \log \relax (x)^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((x-1)*exp(x)-2)*log(x)^3+(-2*x^2*exp(1)+10*x^2)*log(x)+4*x^2*exp(1)-20*x^2)/x^2/log(x)^3,x, algori
thm="fricas")

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.13, size = 36, normalized size = 1.71 \begin {gather*} -\frac {2 \, x^{2} e - e^{x} \log \relax (x)^{2} - 10 \, x^{2} - 2 \, \log \relax (x)^{2}}{x \log \relax (x)^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((x-1)*exp(x)-2)*log(x)^3+(-2*x^2*exp(1)+10*x^2)*log(x)+4*x^2*exp(1)-20*x^2)/x^2/log(x)^3,x, algori
thm="giac")

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.04, size = 21, normalized size = 1.00




method result size



risch \(\frac {{\mathrm e}^{x}+2}{x}-\frac {2 \left ({\mathrm e}-5\right ) x}{\ln \relax (x )^{2}}\) \(21\)
default \(-\frac {2 \,{\mathrm e} x}{\ln \relax (x )^{2}}+\frac {10 x}{\ln \relax (x )^{2}}+\frac {{\mathrm e}^{x}}{x}+\frac {2}{x}\) \(29\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((((x-1)*exp(x)-2)*ln(x)^3+(-2*x^2*exp(1)+10*x^2)*ln(x)+4*x^2*exp(1)-20*x^2)/x^2/ln(x)^3,x,method=_RETURNVE
RBOSE)

[Out]

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

________________________________________________________________________________________

maxima [C]  time = 0.44, size = 51, normalized size = 2.43 \begin {gather*} -2 \, e \Gamma \left (-1, -\log \relax (x)\right ) - 4 \, e \Gamma \left (-2, -\log \relax (x)\right ) + \frac {2}{x} + {\rm Ei}\relax (x) - \Gamma \left (-1, -x\right ) + 10 \, \Gamma \left (-1, -\log \relax (x)\right ) + 20 \, \Gamma \left (-2, -\log \relax (x)\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((x-1)*exp(x)-2)*log(x)^3+(-2*x^2*exp(1)+10*x^2)*log(x)+4*x^2*exp(1)-20*x^2)/x^2/log(x)^3,x, algori
thm="maxima")

[Out]

-2*e*gamma(-1, -log(x)) - 4*e*gamma(-2, -log(x)) + 2/x + Ei(x) - gamma(-1, -x) + 10*gamma(-1, -log(x)) + 20*ga
mma(-2, -log(x))

________________________________________________________________________________________

mupad [B]  time = 4.29, size = 28, normalized size = 1.33 \begin {gather*} \frac {{\mathrm {e}}^x}{x}+\frac {10\,x}{{\ln \relax (x)}^2}+\frac {2}{x}-\frac {2\,x\,\mathrm {e}}{{\ln \relax (x)}^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((log(x)^3*(exp(x)*(x - 1) - 2) - log(x)*(2*x^2*exp(1) - 10*x^2) + 4*x^2*exp(1) - 20*x^2)/(x^2*log(x)^3),x)

[Out]

exp(x)/x + (10*x)/log(x)^2 + 2/x - (2*x*exp(1))/log(x)^2

________________________________________________________________________________________

sympy [A]  time = 0.28, size = 22, normalized size = 1.05 \begin {gather*} \frac {- 2 e x + 10 x}{\log {\relax (x )}^{2}} + \frac {e^{x}}{x} + \frac {2}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((x-1)*exp(x)-2)*ln(x)**3+(-2*x**2*exp(1)+10*x**2)*ln(x)+4*x**2*exp(1)-20*x**2)/x**2/ln(x)**3,x)

[Out]

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

________________________________________________________________________________________