3.11.4 \(\int \frac {-5+(-1+e^{4+x} x-8 x^2) \log ^2(x)}{x \log ^2(x)} \, dx\)

Optimal. Leaf size=27 \[ e^{4+x}-4 x^2-\frac {\log (10)}{3}+\frac {5}{\log (x)}-\log (x) \]

________________________________________________________________________________________

Rubi [A]  time = 0.41, antiderivative size = 21, normalized size of antiderivative = 0.78, number of steps used = 10, number of rules used = 6, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.207, Rules used = {6742, 2194, 6688, 14, 2302, 30} \begin {gather*} -4 x^2+e^{x+4}-\log (x)+\frac {5}{\log (x)} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

E^(4 + x) - 4*x^2 + 5/Log[x] - Log[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 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]]

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 \left (e^{4+x}+\frac {-5-\log ^2(x)-8 x^2 \log ^2(x)}{x \log ^2(x)}\right ) \, dx\\ &=\int e^{4+x} \, dx+\int \frac {-5-\log ^2(x)-8 x^2 \log ^2(x)}{x \log ^2(x)} \, dx\\ &=e^{4+x}+\int \frac {-1-8 x^2-\frac {5}{\log ^2(x)}}{x} \, dx\\ &=e^{4+x}+\int \left (\frac {-1-8 x^2}{x}-\frac {5}{x \log ^2(x)}\right ) \, dx\\ &=e^{4+x}-5 \int \frac {1}{x \log ^2(x)} \, dx+\int \frac {-1-8 x^2}{x} \, dx\\ &=e^{4+x}-5 \operatorname {Subst}\left (\int \frac {1}{x^2} \, dx,x,\log (x)\right )+\int \left (-\frac {1}{x}-8 x\right ) \, dx\\ &=e^{4+x}-4 x^2+\frac {5}{\log (x)}-\log (x)\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 21, normalized size = 0.78 \begin {gather*} e^{4+x}-4 x^2+\frac {5}{\log (x)}-\log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.63, size = 27, normalized size = 1.00 \begin {gather*} -\frac {{\left (4 \, x^{2} - e^{\left (x + 4\right )}\right )} \log \relax (x) + \log \relax (x)^{2} - 5}{\log \relax (x)} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.35, size = 27, normalized size = 1.00 \begin {gather*} -\frac {4 \, x^{2} \log \relax (x) - e^{\left (x + 4\right )} \log \relax (x) + \log \relax (x)^{2} - 5}{\log \relax (x)} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.02, size = 21, normalized size = 0.78




method result size



default \(\frac {5}{\ln \relax (x )}-4 x^{2}-\ln \relax (x )+{\mathrm e}^{4+x}\) \(21\)
risch \(\frac {5}{\ln \relax (x )}-4 x^{2}-\ln \relax (x )+{\mathrm e}^{4+x}\) \(21\)
norman \(\frac {5+{\mathrm e}^{4+x} \ln \relax (x )-4 x^{2} \ln \relax (x )}{\ln \relax (x )}-\ln \relax (x )\) \(27\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.41, size = 20, normalized size = 0.74 \begin {gather*} -4 \, x^{2} + \frac {5}{\log \relax (x)} + e^{\left (x + 4\right )} - \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.87, size = 20, normalized size = 0.74 \begin {gather*} {\mathrm {e}}^{x+4}-\ln \relax (x)+\frac {5}{\ln \relax (x)}-4\,x^2 \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.26, size = 17, normalized size = 0.63 \begin {gather*} - 4 x^{2} + e^{x + 4} - \log {\relax (x )} + \frac {5}{\log {\relax (x )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________