3.37.100 \(\int \frac {2-8 e^4 x+2 e^9 x+e^{4+x} (-6 x+6 x^2+2 x^3)-4 \log (x)}{e^4 x^3} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.13, antiderivative size = 56, normalized size of antiderivative = 1.81, number of steps used = 14, number of rules used = 9, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {6, 12, 14, 2199, 2194, 2177, 2178, 37, 2304} \begin {gather*} -\frac {\left (1-e^4 \left (4-e^5\right ) x\right )^2}{e^4 x^2}+\frac {1}{e^4 x^2}+\frac {2 \log (x)}{e^4 x^2}+2 e^x+\frac {6 e^x}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

2*E^x + 1/(E^4*x^2) + (6*E^x)/x - (1 - E^4*(4 - E^5)*x)^2/(E^4*x^2) + (2*Log[x])/(E^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 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 37

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*(c + d*x)^(n +
1))/((b*c - a*d)*(m + 1)), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[b*c - a*d, 0] && EqQ[m + n + 2, 0] && NeQ
[m, -1]

Rule 2177

Int[((b_.)*(F_)^((g_.)*((e_.) + (f_.)*(x_))))^(n_.)*((c_.) + (d_.)*(x_))^(m_), x_Symbol] :> Simp[((c + d*x)^(m
 + 1)*(b*F^(g*(e + f*x)))^n)/(d*(m + 1)), x] - Dist[(f*g*n*Log[F])/(d*(m + 1)), 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] && LtQ[m, -1] && 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 2199

Int[(F_)^((c_.)*(v_))*(u_)^(m_.)*(w_), x_Symbol] :> Int[ExpandIntegrand[F^(c*ExpandToSum[v, x]), w*NormalizePo
werOfLinear[u, x]^m, x], x] /; FreeQ[{F, c}, x] && PolynomialQ[w, x] && LinearQ[v, x] && PowerOfLinearQ[u, x]
&& IntegerQ[m] &&  !$UseGamma === True

Rule 2304

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Log[c*x^
n]))/(d*(m + 1)), x] - Simp[(b*n*(d*x)^(m + 1))/(d*(m + 1)^2), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rubi steps

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

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.93, size = 34, normalized size = 1.10 \begin {gather*} -\frac {2 \, {\left (x e^{9} - 4 \, x e^{4} - {\left (x^{2} + 3 \, x\right )} e^{\left (x + 4\right )} - \log \relax (x)\right )} e^{\left (-4\right )}}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.19, size = 35, normalized size = 1.13 \begin {gather*} \frac {2 \, {\left (x^{2} e^{\left (x + 4\right )} - x e^{9} + 4 \, x e^{4} + 3 \, x e^{\left (x + 4\right )} + \log \relax (x)\right )} e^{\left (-4\right )}}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.08, size = 29, normalized size = 0.94




method result size



risch \(\frac {2 \,{\mathrm e}^{-4} \ln \relax (x )}{x^{2}}-\frac {2 \left ({\mathrm e}^{5}-{\mathrm e}^{x} x -3 \,{\mathrm e}^{x}-4\right )}{x}\) \(29\)
norman \(\frac {\left (-2 \,{\mathrm e}^{5}+8\right ) x +6 \,{\mathrm e}^{x} x +2 \,{\mathrm e}^{x} x^{2}+2 \,{\mathrm e}^{-4} \ln \relax (x )}{x^{2}}\) \(34\)
default \({\mathrm e}^{-4} \left (-\frac {2 \left ({\mathrm e}^{9}-4 \,{\mathrm e}^{4}\right )}{x}+\frac {2 \ln \relax (x )}{x^{2}}+2 \,{\mathrm e}^{4} \left (\frac {3 \,{\mathrm e}^{x}}{x}+{\mathrm e}^{x}\right )\right )\) \(40\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-4*ln(x)+(2*x^3+6*x^2-6*x)*exp(4)*exp(x)+2*x*exp(4)*exp(5)-8*x*exp(4)+2)/x^3/exp(4),x,method=_RETURNVERBO
SE)

[Out]

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

________________________________________________________________________________________

maxima [C]  time = 0.41, size = 44, normalized size = 1.42 \begin {gather*} 2 \, {\left (3 \, {\rm Ei}\relax (x) e^{4} - 3 \, e^{4} \Gamma \left (-1, -x\right ) - \frac {e^{9}}{x} + \frac {4 \, e^{4}}{x} + \frac {\log \relax (x)}{x^{2}} + e^{\left (x + 4\right )}\right )} e^{\left (-4\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 2.27, size = 28, normalized size = 0.90 \begin {gather*} 2\,{\mathrm {e}}^x+\frac {x\,\left (6\,{\mathrm {e}}^x-2\,{\mathrm {e}}^5+8\right )+2\,{\mathrm {e}}^{-4}\,\ln \relax (x)}{x^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2*exp(x) + (x*(6*exp(x) - 2*exp(5) + 8) + 2*exp(-4)*log(x))/x^2

________________________________________________________________________________________

sympy [A]  time = 0.33, size = 29, normalized size = 0.94 \begin {gather*} \frac {\left (2 x + 6\right ) e^{x}}{x} - \frac {-8 + 2 e^{5}}{x} + \frac {2 \log {\relax (x )}}{x^{2} e^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(2*x + 6)*exp(x)/x - (-8 + 2*exp(5))/x + 2*exp(-4)*log(x)/x**2

________________________________________________________________________________________