3.21.44 \(\int \frac {4 x^2+e^{2 e^x-2 x-2 e^5 x} (-2 x-2 e^5 x+2 e^x x)}{x} \, dx\)

Optimal. Leaf size=23 \[ e^{2 e^x-2 x-2 e^5 x}+2 x^2 \]

________________________________________________________________________________________

Rubi [A]  time = 0.15, antiderivative size = 22, normalized size of antiderivative = 0.96, number of steps used = 3, number of rules used = 2, integrand size = 44, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {14, 6706} \begin {gather*} 2 x^2+e^{2 \left (e^x-\left (1+e^5\right ) x\right )} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

E^(2*(E^x - (1 + E^5)*x)) + 2*x^2

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 6706

Int[(F_)^(v_)*(u_), x_Symbol] :> With[{q = DerivativeDivides[v, u, x]}, Simp[(q*F^v)/Log[F], x] /;  !FalseQ[q]
] /; FreeQ[F, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.16, size = 22, normalized size = 0.96 \begin {gather*} e^{2 e^x-2 \left (1+e^5\right ) x}+2 x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

E^(2*E^x - 2*(1 + E^5)*x) + 2*x^2

________________________________________________________________________________________

fricas [A]  time = 0.90, size = 20, normalized size = 0.87 \begin {gather*} 2 \, x^{2} + e^{\left (-2 \, x e^{5} - 2 \, x + 2 \, e^{x}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*x^2 + e^(-2*x*e^5 - 2*x + 2*e^x)

________________________________________________________________________________________

giac [A]  time = 0.18, size = 27, normalized size = 1.17 \begin {gather*} {\left (2 \, x^{2} e^{x} + e^{\left (-2 \, x e^{5} - x + 2 \, e^{x}\right )}\right )} e^{\left (-x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(2*x^2*e^x + e^(-2*x*e^5 - x + 2*e^x))*e^(-x)

________________________________________________________________________________________

maple [A]  time = 0.10, size = 21, normalized size = 0.91




method result size



norman \({\mathrm e}^{-2 x \,{\mathrm e}^{5}+2 \,{\mathrm e}^{x}-2 x}+2 x^{2}\) \(21\)
risch \({\mathrm e}^{-2 x \,{\mathrm e}^{5}+2 \,{\mathrm e}^{x}-2 x}+2 x^{2}\) \(21\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

exp(-x*exp(5)+exp(x)-x)^2+2*x^2

________________________________________________________________________________________

maxima [A]  time = 1.10, size = 20, normalized size = 0.87 \begin {gather*} 2 \, x^{2} + e^{\left (-2 \, x e^{5} - 2 \, x + 2 \, e^{x}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*x^2 + e^(-2*x*e^5 - 2*x + 2*e^x)

________________________________________________________________________________________

mupad [B]  time = 0.11, size = 22, normalized size = 0.96 \begin {gather*} 2\,x^2+{\mathrm {e}}^{-2\,x}\,{\mathrm {e}}^{2\,{\mathrm {e}}^x}\,{\mathrm {e}}^{-2\,x\,{\mathrm {e}}^5} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*x^2 + exp(-2*x)*exp(2*exp(x))*exp(-2*x*exp(5))

________________________________________________________________________________________

sympy [A]  time = 0.17, size = 20, normalized size = 0.87 \begin {gather*} 2 x^{2} + e^{- 2 x e^{5} - 2 x + 2 e^{x}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*x**2 + exp(-2*x*exp(5) - 2*x + 2*exp(x))

________________________________________________________________________________________