3.90.89 \(\int \frac {220-5 x+e^{2+x} (-44+21 x)}{-20 x+4 e^{2+x} x} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.36, antiderivative size = 22, normalized size of antiderivative = 0.92, number of steps used = 10, number of rules used = 8, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.258, Rules used = {6741, 12, 6742, 2282, 36, 31, 29, 43} \begin {gather*} \frac {x}{4}+5 \log \left (5-e^{x+2}\right )-11 \log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(220 - 5*x + E^(2 + x)*(-44 + 21*x))/(-20*x + 4*E^(2 + x)*x),x]

[Out]

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

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2282

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rule 6741

Int[u_, x_Symbol] :> With[{v = NormalizeIntegrand[u, x]}, Int[v, x] /; v =!= u]

Rule 6742

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-220+5 x-e^{2+x} (-44+21 x)}{4 \left (5-e^{2+x}\right ) x} \, dx\\ &=\frac {1}{4} \int \frac {-220+5 x-e^{2+x} (-44+21 x)}{\left (5-e^{2+x}\right ) x} \, dx\\ &=\frac {1}{4} \int \left (\frac {100}{-5+e^{2+x}}+\frac {-44+21 x}{x}\right ) \, dx\\ &=\frac {1}{4} \int \frac {-44+21 x}{x} \, dx+25 \int \frac {1}{-5+e^{2+x}} \, dx\\ &=\frac {1}{4} \int \left (21-\frac {44}{x}\right ) \, dx+25 \operatorname {Subst}\left (\int \frac {1}{(-5+x) x} \, dx,x,e^{2+x}\right )\\ &=\frac {21 x}{4}-11 \log (x)+5 \operatorname {Subst}\left (\int \frac {1}{-5+x} \, dx,x,e^{2+x}\right )-5 \operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,e^{2+x}\right )\\ &=\frac {x}{4}+5 \log \left (5-e^{2+x}\right )-11 \log (x)\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 22, normalized size = 0.92 \begin {gather*} \frac {x}{4}+5 \log \left (5-e^{2+x}\right )-11 \log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(220 - 5*x + E^(2 + x)*(-44 + 21*x))/(-20*x + 4*E^(2 + x)*x),x]

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.80, size = 17, normalized size = 0.71 \begin {gather*} \frac {1}{4} \, x - 11 \, \log \relax (x) + 5 \, \log \left (e^{\left (x + 2\right )} - 5\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((21*x-44)*exp(2+x)-5*x+220)/(4*x*exp(2+x)-20*x),x, algorithm="fricas")

[Out]

1/4*x - 11*log(x) + 5*log(e^(x + 2) - 5)

________________________________________________________________________________________

giac [A]  time = 0.14, size = 17, normalized size = 0.71 \begin {gather*} \frac {1}{4} \, x - 11 \, \log \relax (x) + 5 \, \log \left (e^{\left (x + 2\right )} - 5\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((21*x-44)*exp(2+x)-5*x+220)/(4*x*exp(2+x)-20*x),x, algorithm="giac")

[Out]

1/4*x - 11*log(x) + 5*log(e^(x + 2) - 5)

________________________________________________________________________________________

maple [A]  time = 0.11, size = 18, normalized size = 0.75




method result size



norman \(\frac {x}{4}-11 \ln \relax (x )+5 \ln \left ({\mathrm e}^{2+x}-5\right )\) \(18\)
risch \(\frac {x}{4}-11 \ln \relax (x )-10+5 \ln \left ({\mathrm e}^{2+x}-5\right )\) \(19\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((21*x-44)*exp(2+x)-5*x+220)/(4*x*exp(2+x)-20*x),x,method=_RETURNVERBOSE)

[Out]

1/4*x-11*ln(x)+5*ln(exp(2+x)-5)

________________________________________________________________________________________

maxima [A]  time = 0.37, size = 20, normalized size = 0.83 \begin {gather*} \frac {1}{4} \, x + 5 \, \log \left ({\left (e^{\left (x + 2\right )} - 5\right )} e^{\left (-2\right )}\right ) - 11 \, \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((21*x-44)*exp(2+x)-5*x+220)/(4*x*exp(2+x)-20*x),x, algorithm="maxima")

[Out]

1/4*x + 5*log((e^(x + 2) - 5)*e^(-2)) - 11*log(x)

________________________________________________________________________________________

mupad [B]  time = 0.08, size = 18, normalized size = 0.75 \begin {gather*} \frac {x}{4}+5\,\ln \left ({\mathrm {e}}^2\,{\mathrm {e}}^x-5\right )-11\,\ln \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(exp(x + 2)*(21*x - 44) - 5*x + 220)/(20*x - 4*x*exp(x + 2)),x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.15, size = 17, normalized size = 0.71 \begin {gather*} \frac {x}{4} - 11 \log {\relax (x )} + 5 \log {\left (e^{x + 2} - 5 \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((21*x-44)*exp(2+x)-5*x+220)/(4*x*exp(2+x)-20*x),x)

[Out]

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

________________________________________________________________________________________