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

Optimal. Leaf size=23 \[ 2-x+\left (-e^4+e^{3/x}-4 x\right ) x \]

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {6, 14, 2288} \begin {gather*} -4 x^2+e^{3/x} x-\left (1+e^4\right ) x \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 6

Int[(u_.)*((w_.) + (a_.)*(v_) + (b_.)*(v_))^(p_.), x_Symbol] :> Int[u*((a + b)*v + w)^p, x] /; FreeQ[{a, b}, x
] &&  !FreeQ[v, 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 2288

Int[(y_.)*(F_)^(u_)*((v_) + (w_)), x_Symbol] :> With[{z = (v*y)/(Log[F]*D[u, x])}, Simp[F^u*z, x] /; EqQ[D[z,
x], w*y]] /; FreeQ[F, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 24, normalized size = 1.04 \begin {gather*} -x-e^4 x+e^{3/x} x-4 x^2 \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-x - E^4*x + E^(3/x)*x - 4*x^2

________________________________________________________________________________________

fricas [A]  time = 0.55, size = 22, normalized size = 0.96 \begin {gather*} -4 \, x^{2} - x e^{4} + x e^{\frac {3}{x}} - x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.16, size = 23, normalized size = 1.00




method result size



derivativedivides \(-4 x^{2}-x -x \,{\mathrm e}^{4}+x \,{\mathrm e}^{\frac {3}{x}}\) \(23\)
default \(-4 x^{2}-x -x \,{\mathrm e}^{4}+x \,{\mathrm e}^{\frac {3}{x}}\) \(23\)
norman \(x \,{\mathrm e}^{\frac {3}{x}}+\left (-{\mathrm e}^{4}-1\right ) x -4 x^{2}\) \(23\)
risch \(-4 x^{2}-x -x \,{\mathrm e}^{4}+x \,{\mathrm e}^{\frac {3}{x}}\) \(23\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [C]  time = 0.40, size = 31, normalized size = 1.35 \begin {gather*} -4 \, x^{2} - x e^{4} - x + 3 \, {\rm Ei}\left (\frac {3}{x}\right ) - 3 \, \Gamma \left (-1, -\frac {3}{x}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-4*x^2 - x*e^4 - x + 3*Ei(3/x) - 3*gamma(-1, -3/x)

________________________________________________________________________________________

mupad [B]  time = 5.08, size = 18, normalized size = 0.78 \begin {gather*} -x\,\left (4\,x+{\mathrm {e}}^4-{\mathrm {e}}^{3/x}+1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-x*(4*x + exp(4) - exp(3/x) + 1)

________________________________________________________________________________________

sympy [A]  time = 0.12, size = 19, normalized size = 0.83 \begin {gather*} - 4 x^{2} + x e^{\frac {3}{x}} + x \left (- e^{4} - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________