3.76.56 \(\int \frac {e^x (-1+7 x+x^2-x^3)-e^x x \log (x)}{x} \, dx\)

Optimal. Leaf size=18 \[ e^x \left (4+3 x-x^2-\log (x)\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 27, normalized size of antiderivative = 1.50, number of steps used = 11, number of rules used = 5, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {14, 2194, 2178, 2176, 2554} \begin {gather*} -e^x x^2+3 e^x x+4 e^x-e^x \log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

4*E^x + 3*E^x*x - E^x*x^2 - E^x*Log[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 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 2178

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - (c*f)/d))*ExpIntegral
Ei[(f*g*(c + d*x)*Log[F])/d])/d, x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !$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 2554

Int[Log[u_]*(v_), x_Symbol] :> With[{w = IntHide[v, x]}, Dist[Log[u], w, x] - Int[SimplifyIntegrand[(w*D[u, x]
)/u, x], x] /; InverseFunctionFreeQ[w, x]] /; InverseFunctionFreeQ[u, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.06, size = 15, normalized size = 0.83 \begin {gather*} -e^x \left (-4-3 x+x^2+\log (x)\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.78, size = 19, normalized size = 1.06 \begin {gather*} -{\left (x^{2} - 3 \, x - 4\right )} e^{x} - e^{x} \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-(x^2 - 3*x - 4)*e^x - e^x*log(x)

________________________________________________________________________________________

giac [A]  time = 0.17, size = 23, normalized size = 1.28 \begin {gather*} -x^{2} e^{x} + 3 \, x e^{x} - e^{x} \log \relax (x) + 4 \, e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.03, size = 20, normalized size = 1.11




method result size



risch \(-{\mathrm e}^{x} \ln \relax (x )-\left (x^{2}-3 x -4\right ) {\mathrm e}^{x}\) \(20\)
norman \(3 \,{\mathrm e}^{x} x -{\mathrm e}^{x} x^{2}-{\mathrm e}^{x} \ln \relax (x )+4 \,{\mathrm e}^{x}\) \(24\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-exp(x)*ln(x)-(x^2-3*x-4)*exp(x)

________________________________________________________________________________________

maxima [B]  time = 0.39, size = 29, normalized size = 1.61 \begin {gather*} -{\left (x^{2} - 2 \, x + 2\right )} e^{x} + {\left (x - 1\right )} e^{x} - e^{x} \log \relax (x) + 7 \, e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-(x^2 - 2*x + 2)*e^x + (x - 1)*e^x - e^x*log(x) + 7*e^x

________________________________________________________________________________________

mupad [B]  time = 4.50, size = 17, normalized size = 0.94 \begin {gather*} {\mathrm {e}}^x\,\left (3\,x-\ln \relax (x)-x^2+4\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((exp(x)*(7*x + x^2 - x^3 - 1) - x*exp(x)*log(x))/x,x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.32, size = 14, normalized size = 0.78 \begin {gather*} \left (- x^{2} + 3 x - \log {\relax (x )} + 4\right ) e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-x*exp(x)*ln(x)+(-x**3+x**2+7*x-1)*exp(x))/x,x)

[Out]

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

________________________________________________________________________________________