3.65.36 \(\int \frac {-72+2 e^{e^x+x} x^7-25 x^8}{2 x^7} \, dx\) [6436]

Optimal. Leaf size=19 \[ 1+e^{e^x}+\frac {6}{x^6}-\frac {25 x^2}{4} \]

[Out]

exp(exp(x))+1+6/x^6-25/4*x^2

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 18, normalized size of antiderivative = 0.95, number of steps used = 7, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {12, 14, 2320, 2225} \begin {gather*} \frac {6}{x^6}-\frac {25 x^2}{4}+e^{e^x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-72 + 2*E^(E^x + x)*x^7 - 25*x^8)/(2*x^7),x]

[Out]

E^E^x + 6/x^6 - (25*x^2)/4

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, 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 2225

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 2320

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{2} \int \frac {-72+2 e^{e^x+x} x^7-25 x^8}{x^7} \, dx\\ &=\frac {1}{2} \int \left (2 e^{e^x+x}+\frac {-72-25 x^8}{x^7}\right ) \, dx\\ &=\frac {1}{2} \int \frac {-72-25 x^8}{x^7} \, dx+\int e^{e^x+x} \, dx\\ &=\frac {1}{2} \int \left (-\frac {72}{x^7}-25 x\right ) \, dx+\text {Subst}\left (\int e^x \, dx,x,e^x\right )\\ &=e^{e^x}+\frac {6}{x^6}-\frac {25 x^2}{4}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 18, normalized size = 0.95 \begin {gather*} e^{e^x}+\frac {6}{x^6}-\frac {25 x^2}{4} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-72 + 2*E^(E^x + x)*x^7 - 25*x^8)/(2*x^7),x]

[Out]

E^E^x + 6/x^6 - (25*x^2)/4

________________________________________________________________________________________

Maple [A]
time = 0.34, size = 15, normalized size = 0.79

method result size
default \(-\frac {25 x^{2}}{4}+\frac {6}{x^{6}}+{\mathrm e}^{{\mathrm e}^{x}}\) \(15\)
risch \(-\frac {25 x^{2}}{4}+\frac {6}{x^{6}}+{\mathrm e}^{{\mathrm e}^{x}}\) \(15\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/2*(2*x^7*exp(x)*exp(exp(x))-25*x^8-72)/x^7,x,method=_RETURNVERBOSE)

[Out]

-25/4*x^2+6/x^6+exp(exp(x))

________________________________________________________________________________________

Maxima [A]
time = 0.28, size = 14, normalized size = 0.74 \begin {gather*} -\frac {25}{4} \, x^{2} + \frac {6}{x^{6}} + e^{\left (e^{x}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/2*(2*x^7*exp(x)*exp(exp(x))-25*x^8-72)/x^7,x, algorithm="maxima")

[Out]

-25/4*x^2 + 6/x^6 + e^(e^x)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 31 vs. \(2 (15) = 30\).
time = 0.39, size = 31, normalized size = 1.63 \begin {gather*} \frac {{\left (4 \, x^{6} e^{\left (x + e^{x}\right )} - {\left (25 \, x^{8} - 24\right )} e^{x}\right )} e^{\left (-x\right )}}{4 \, x^{6}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/2*(2*x^7*exp(x)*exp(exp(x))-25*x^8-72)/x^7,x, algorithm="fricas")

[Out]

1/4*(4*x^6*e^(x + e^x) - (25*x^8 - 24)*e^x)*e^(-x)/x^6

________________________________________________________________________________________

Sympy [A]
time = 0.06, size = 15, normalized size = 0.79 \begin {gather*} - \frac {25 x^{2}}{4} + e^{e^{x}} + \frac {6}{x^{6}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/2*(2*x**7*exp(x)*exp(exp(x))-25*x**8-72)/x**7,x)

[Out]

-25*x**2/4 + exp(exp(x)) + 6/x**6

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 31 vs. \(2 (15) = 30\).
time = 0.38, size = 31, normalized size = 1.63 \begin {gather*} -\frac {{\left (25 \, x^{8} e^{x} - 4 \, x^{6} e^{\left (x + e^{x}\right )} - 24 \, e^{x}\right )} e^{\left (-x\right )}}{4 \, x^{6}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/2*(2*x^7*exp(x)*exp(exp(x))-25*x^8-72)/x^7,x, algorithm="giac")

[Out]

-1/4*(25*x^8*e^x - 4*x^6*e^(x + e^x) - 24*e^x)*e^(-x)/x^6

________________________________________________________________________________________

Mupad [B]
time = 4.04, size = 14, normalized size = 0.74 \begin {gather*} {\mathrm {e}}^{{\mathrm {e}}^x}-\frac {25\,x^2}{4}+\frac {6}{x^6} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-((25*x^8)/2 - x^7*exp(exp(x))*exp(x) + 36)/x^7,x)

[Out]

exp(exp(x)) - (25*x^2)/4 + 6/x^6

________________________________________________________________________________________