3.94.83 \(\int \frac {e^2+(-2 x-8 x^2+6 x^3+e^x (2 x+e x)+e (-x-4 x^2+3 x^3)) \log ^2(x)}{x \log ^2(x)} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.32, antiderivative size = 38, normalized size of antiderivative = 1.36, number of steps used = 6, number of rules used = 4, integrand size = 58, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {6688, 2194, 2302, 30} \begin {gather*} (2+e) x^3-2 (2+e) x^2-(2+e) x+(2+e) e^x-\frac {e^2}{\log (x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(E^2 + (-2*x - 8*x^2 + 6*x^3 + E^x*(2*x + E*x) + E*(-x - 4*x^2 + 3*x^3))*Log[x]^2)/(x*Log[x]^2),x]

[Out]

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

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 2194

Int[((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.), x_Symbol] :> Simp[(F^(c*(a + b*x)))^n/(b*c*n*Log[F]), x] /; Fre
eQ[{F, a, b, c, n}, x]

Rule 2302

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/(x_), x_Symbol] :> Dist[1/(b*n), Subst[Int[x^p, x], x, a + b*L
og[c*x^n]], x] /; FreeQ[{a, b, c, n, p}, 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 \left ((2+e) \left (-1+e^x-4 x+3 x^2\right )+\frac {e^2}{x \log ^2(x)}\right ) \, dx\\ &=e^2 \int \frac {1}{x \log ^2(x)} \, dx+(2+e) \int \left (-1+e^x-4 x+3 x^2\right ) \, dx\\ &=-((2+e) x)-2 (2+e) x^2+(2+e) x^3+e^2 \operatorname {Subst}\left (\int \frac {1}{x^2} \, dx,x,\log (x)\right )+(2+e) \int e^x \, dx\\ &=e^x (2+e)-(2+e) x-2 (2+e) x^2+(2+e) x^3-\frac {e^2}{\log (x)}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.67, size = 49, normalized size = 1.75 \begin {gather*} \frac {{\left (2 \, x^{3} - 4 \, x^{2} + {\left (x^{3} - 2 \, x^{2} - x\right )} e + {\left (e + 2\right )} e^{x} - 2 \, x\right )} \log \relax (x) - e^{2}}{\log \relax (x)} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((x*exp(1)+2*x)*exp(x)+(3*x^3-4*x^2-x)*exp(1)+6*x^3-8*x^2-2*x)*log(x)^2+exp(2))/x/log(x)^2,x, algor
ithm="fricas")

[Out]

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

________________________________________________________________________________________

giac [B]  time = 0.17, size = 66, normalized size = 2.36 \begin {gather*} \frac {x^{3} e \log \relax (x) + 2 \, x^{3} \log \relax (x) - 2 \, x^{2} e \log \relax (x) - 4 \, x^{2} \log \relax (x) - x e \log \relax (x) - 2 \, x \log \relax (x) + e^{\left (x + 1\right )} \log \relax (x) + 2 \, e^{x} \log \relax (x) - e^{2}}{\log \relax (x)} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((x*exp(1)+2*x)*exp(x)+(3*x^3-4*x^2-x)*exp(1)+6*x^3-8*x^2-2*x)*log(x)^2+exp(2))/x/log(x)^2,x, algor
ithm="giac")

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.04, size = 48, normalized size = 1.71




method result size



default \(-2 x +\left ({\mathrm e}+2\right ) {\mathrm e}^{x}-\frac {{\mathrm e}^{2}}{\ln \relax (x )}-4 x^{2}+2 x^{3}-2 x^{2} {\mathrm e}+x^{3} {\mathrm e}-x \,{\mathrm e}\) \(48\)
risch \(x^{3} {\mathrm e}-2 x^{2} {\mathrm e}+2 x^{3}-x \,{\mathrm e}+{\mathrm e}^{x +1}-4 x^{2}-2 x +2 \,{\mathrm e}^{x}-\frac {{\mathrm e}^{2}}{\ln \relax (x )}\) \(49\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((((x*exp(1)+2*x)*exp(x)+(3*x^3-4*x^2-x)*exp(1)+6*x^3-8*x^2-2*x)*ln(x)^2+exp(2))/x/ln(x)^2,x,method=_RETURN
VERBOSE)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.36, size = 48, normalized size = 1.71 \begin {gather*} x^{3} e + 2 \, x^{3} - 2 \, x^{2} e - 4 \, x^{2} - x e - 2 \, x - \frac {e^{2}}{\log \relax (x)} + e^{\left (x + 1\right )} + 2 \, e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((((x*exp(1)+2*x)*exp(x)+(3*x^3-4*x^2-x)*exp(1)+6*x^3-8*x^2-2*x)*log(x)^2+exp(2))/x/log(x)^2,x, algor
ithm="maxima")

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 6.34, size = 42, normalized size = 1.50 \begin {gather*} {\mathrm {e}}^x\,\left (\mathrm {e}+2\right )-\frac {{\mathrm {e}}^2}{\ln \relax (x)}-x^2\,\left (2\,\mathrm {e}+4\right )-x\,\left (\mathrm {e}+2\right )+x^3\,\left (\mathrm {e}+2\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.31, size = 42, normalized size = 1.50 \begin {gather*} x^{3} \left (2 + e\right ) + x^{2} \left (- 2 e - 4\right ) + x \left (- e - 2\right ) + \left (2 + e\right ) e^{x} - \frac {e^{2}}{\log {\relax (x )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x**3*(2 + E) + x**2*(-2*E - 4) + x*(-E - 2) + (2 + E)*exp(x) - exp(2)/log(x)

________________________________________________________________________________________