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

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

________________________________________________________________________________________

Rubi [A]  time = 0.29, antiderivative size = 37, normalized size of antiderivative = 1.42, number of steps used = 17, number of rules used = 9, integrand size = 44, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.204, Rules used = {14, 2176, 2194, 6742, 2353, 2305, 2304, 2302, 30} \begin {gather*} e^{x+4}-e^{x+4} (x+1)-\frac {2 \log ^4(x)}{x}+\left (2-e^4\right ) \log ^4(x) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Int[((b_.)*(F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_.), x_Symbol] :> Simp[((c + d*x)^m
*(b*F^(g*(e + f*x)))^n)/(f*g*n*Log[F]), x] - Dist[(d*m)/(f*g*n*Log[F]), Int[(c + d*x)^(m - 1)*(b*F^(g*(e + f*x
)))^n, x], x] /; FreeQ[{F, b, c, d, e, f, g, n}, x] && GtQ[m, 0] && IntegerQ[2*m] &&  !$UseGamma === True

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 2304

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Log[c*x^
n]))/(d*(m + 1)), x] - Simp[(b*n*(d*x)^(m + 1))/(d*(m + 1)^2), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rule 2305

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Lo
g[c*x^n])^p)/(d*(m + 1)), x] - Dist[(b*n*p)/(m + 1), Int[(d*x)^m*(a + b*Log[c*x^n])^(p - 1), x], x] /; FreeQ[{
a, b, c, d, m, n}, x] && NeQ[m, -1] && GtQ[p, 0]

Rule 2353

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol]
:> With[{u = ExpandIntegrand[(a + b*Log[c*x^n])^p, (f*x)^m*(d + e*x^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[
{a, b, c, d, e, f, m, n, p, q, r}, x] && IntegerQ[q] && (GtQ[q, 0] || (IGtQ[p, 0] && IntegerQ[m] && IntegerQ[r
]))

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

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.04, size = 27, normalized size = 1.04




method result size



risch \(-\frac {\left (x \,{\mathrm e}^{4}-2 x +2\right ) \ln \relax (x )^{4}}{x}-x \,{\mathrm e}^{4+x}\) \(27\)
default \(-{\mathrm e}^{4+x} \left (4+x \right )+4 \,{\mathrm e}^{4+x}-\frac {2 \ln \relax (x )^{4}}{x}-{\mathrm e}^{4} \ln \relax (x )^{4}+2 \ln \relax (x )^{4}\) \(40\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [B]  time = 0.50, size = 82, normalized size = 3.15 \begin {gather*} -e^{4} \log \relax (x)^{4} + 2 \, \log \relax (x)^{4} - {\left (x e^{4} - e^{4}\right )} e^{x} - \frac {2 \, {\left (\log \relax (x)^{4} + 4 \, \log \relax (x)^{3} + 12 \, \log \relax (x)^{2} + 24 \, \log \relax (x) + 24\right )}}{x} + \frac {8 \, {\left (\log \relax (x)^{3} + 3 \, \log \relax (x)^{2} + 6 \, \log \relax (x) + 6\right )}}{x} - e^{\left (x + 4\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-e^4*log(x)^4 + 2*log(x)^4 - (x*e^4 - e^4)*e^x - 2*(log(x)^4 + 4*log(x)^3 + 12*log(x)^2 + 24*log(x) + 24)/x +
8*(log(x)^3 + 3*log(x)^2 + 6*log(x) + 6)/x - e^(x + 4)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________