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

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

________________________________________________________________________________________

Rubi [A]  time = 0.06, antiderivative size = 35, normalized size of antiderivative = 1.52, number of steps used = 6, number of rules used = 5, integrand size = 41, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.122, Rules used = {12, 14, 2176, 2194, 2197} \begin {gather*} -\frac {e^x}{14 x^2}-e^{5-x} (1-x)+e^{5-x}-x \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

E^(5 - x) - E^(5 - x)*(1 - x) - E^x/(14*x^2) - x

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 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 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 2197

Int[(F_)^((c_.)*(v_))*(u_)^(m_.)*(w_), x_Symbol] :> With[{b = Coefficient[v, x, 1], d = Coefficient[u, x, 0],
e = Coefficient[u, x, 1], f = Coefficient[w, x, 0], g = Coefficient[w, x, 1]}, Simp[(g*u^(m + 1)*F^(c*v))/(b*c
*e*Log[F]), x] /; EqQ[e*g*(m + 1) - b*c*(e*f - d*g)*Log[F], 0]] /; FreeQ[{F, c, m}, x] && LinearQ[{u, v, w}, x
]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 23, normalized size = 1.00 \begin {gather*} -\frac {e^x}{14 x^2}-x+e^{5-x} x \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.61, size = 30, normalized size = 1.30 \begin {gather*} \frac {{\left (14 \, x^{3} e^{5} - 14 \, x^{3} e^{x} - e^{\left (2 \, x\right )}\right )} e^{\left (-x\right )}}{14 \, x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/14*(14*x^3*e^5 - 14*x^3*e^x - e^(2*x))*e^(-x)/x^2

________________________________________________________________________________________

giac [A]  time = 0.17, size = 26, normalized size = 1.13 \begin {gather*} \frac {14 \, x^{3} e^{\left (-x + 5\right )} - 14 \, x^{3} - e^{x}}{14 \, x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.07, size = 20, normalized size = 0.87




method result size



risch \(x \,{\mathrm e}^{5-x}-x -\frac {{\mathrm e}^{x}}{14 x^{2}}\) \(20\)
norman \(\frac {\left (x^{3} {\mathrm e}^{5}-\frac {{\mathrm e}^{2 x}}{14}-{\mathrm e}^{x} x^{3}\right ) {\mathrm e}^{-x}}{x^{2}}\) \(29\)
default \(-x -{\mathrm e}^{5} {\mathrm e}^{-x}-\frac {{\mathrm e}^{x}}{14 x^{2}}-{\mathrm e}^{5} \left (-x \,{\mathrm e}^{-x}-{\mathrm e}^{-x}\right )\) \(38\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x*exp(5-x)-x-1/14*exp(x)/x^2

________________________________________________________________________________________

maxima [C]  time = 0.38, size = 38, normalized size = 1.65 \begin {gather*} {\left (x e^{5} + e^{5}\right )} e^{\left (-x\right )} - x - e^{\left (-x + 5\right )} - \frac {1}{14} \, \Gamma \left (-1, -x\right ) - \frac {1}{7} \, \Gamma \left (-2, -x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(x*e^5 + e^5)*e^(-x) - x - e^(-x + 5) - 1/14*gamma(-1, -x) - 1/7*gamma(-2, -x)

________________________________________________________________________________________

mupad [B]  time = 0.17, size = 18, normalized size = 0.78 \begin {gather*} x\,\left ({\mathrm {e}}^{5-x}-1\right )-\frac {{\mathrm {e}}^x}{14\,x^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x*(exp(5 - x) - 1) - exp(x)/(14*x^2)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/14*((2-x)*exp(x)+(-14*x**4+14*x**3)*exp(5-x)-14*x**3)/x**3,x)

[Out]

-x + (14*x**3*exp(5)*exp(-x) - exp(x))/(14*x**2)

________________________________________________________________________________________