3.59.75 \(\int \frac {-13 x-6 x^2+e^{\frac {1}{x}} (-4+4 x)}{3 x} \, dx\)

Optimal. Leaf size=22 \[ 7+x+\left (\frac {4}{3} \left (-4+e^{\frac {1}{x}}\right )-x\right ) x+\log (5) \]

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 21, normalized size of antiderivative = 0.95, number of steps used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {12, 14, 2288} \begin {gather*} -x^2+\frac {4}{3} e^{\frac {1}{x}} x-\frac {13 x}{3} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

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

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 21, normalized size = 0.95 \begin {gather*} \frac {1}{3} \left (-13 x+4 e^{\frac {1}{x}} x-3 x^2\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.81, size = 16, normalized size = 0.73 \begin {gather*} -x^{2} + \frac {4}{3} \, x e^{\frac {1}{x}} - \frac {13}{3} \, x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.22, size = 21, normalized size = 0.95 \begin {gather*} \frac {1}{3} \, x^{2} {\left (\frac {4 \, e^{\frac {1}{x}}}{x} - \frac {13}{x} - 3\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.12, size = 17, normalized size = 0.77




method result size



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



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 4.06, size = 14, normalized size = 0.64 \begin {gather*} -\frac {x\,\left (3\,x-4\,{\mathrm {e}}^{1/x}+13\right )}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 17, normalized size = 0.77 \begin {gather*} - x^{2} + \frac {4 x e^{\frac {1}{x}}}{3} - \frac {13 x}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/3*((4*x-4)*exp(1/x)-6*x**2-13*x)/x,x)

[Out]

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

________________________________________________________________________________________