3.100.64 \(\int \frac {e^{2 x} (-16-24 x-12 x^2+4 x^3)}{128+128 x+8 x^2-20 x^3-2 x^4+x^5} \, dx\)

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

________________________________________________________________________________________

Rubi [B]  time = 0.50, antiderivative size = 45, normalized size of antiderivative = 2.05, number of steps used = 13, number of rules used = 5, integrand size = 46, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.109, Rules used = {6688, 12, 6742, 2177, 2178} \begin {gather*} -\frac {2 e^{2 x}}{9 (x+2)}+\frac {2 e^{2 x}}{3 (x+2)^2}-\frac {2 e^{2 x}}{9 (4-x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(E^(2*x)*(-16 - 24*x - 12*x^2 + 4*x^3))/(128 + 128*x + 8*x^2 - 20*x^3 - 2*x^4 + x^5),x]

[Out]

(-2*E^(2*x))/(9*(4 - x)) + (2*E^(2*x))/(3*(2 + x)^2) - (2*E^(2*x))/(9*(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 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 6688

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

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 {4 e^{2 x} \left (-4-6 x-3 x^2+x^3\right )}{(4-x)^2 (2+x)^3} \, dx\\ &=4 \int \frac {e^{2 x} \left (-4-6 x-3 x^2+x^3\right )}{(4-x)^2 (2+x)^3} \, dx\\ &=4 \int \left (-\frac {e^{2 x}}{18 (-4+x)^2}+\frac {e^{2 x}}{9 (-4+x)}-\frac {e^{2 x}}{3 (2+x)^3}+\frac {7 e^{2 x}}{18 (2+x)^2}-\frac {e^{2 x}}{9 (2+x)}\right ) \, dx\\ &=-\left (\frac {2}{9} \int \frac {e^{2 x}}{(-4+x)^2} \, dx\right )+\frac {4}{9} \int \frac {e^{2 x}}{-4+x} \, dx-\frac {4}{9} \int \frac {e^{2 x}}{2+x} \, dx-\frac {4}{3} \int \frac {e^{2 x}}{(2+x)^3} \, dx+\frac {14}{9} \int \frac {e^{2 x}}{(2+x)^2} \, dx\\ &=-\frac {2 e^{2 x}}{9 (4-x)}+\frac {2 e^{2 x}}{3 (2+x)^2}-\frac {14 e^{2 x}}{9 (2+x)}+\frac {4}{9} e^8 \text {Ei}(-2 (4-x))-\frac {4 \text {Ei}(2 (2+x))}{9 e^4}-\frac {4}{9} \int \frac {e^{2 x}}{-4+x} \, dx-\frac {4}{3} \int \frac {e^{2 x}}{(2+x)^2} \, dx+\frac {28}{9} \int \frac {e^{2 x}}{2+x} \, dx\\ &=-\frac {2 e^{2 x}}{9 (4-x)}+\frac {2 e^{2 x}}{3 (2+x)^2}-\frac {2 e^{2 x}}{9 (2+x)}+\frac {8 \text {Ei}(2 (2+x))}{3 e^4}-\frac {8}{3} \int \frac {e^{2 x}}{2+x} \, dx\\ &=-\frac {2 e^{2 x}}{9 (4-x)}+\frac {2 e^{2 x}}{3 (2+x)^2}-\frac {2 e^{2 x}}{9 (2+x)}\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.09, size = 18, normalized size = 0.82 \begin {gather*} \frac {2 e^{2 x} x}{(-4+x) (2+x)^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(E^(2*x)*(-16 - 24*x - 12*x^2 + 4*x^3))/(128 + 128*x + 8*x^2 - 20*x^3 - 2*x^4 + x^5),x]

[Out]

(2*E^(2*x)*x)/((-4 + x)*(2 + x)^2)

________________________________________________________________________________________

fricas [A]  time = 0.69, size = 17, normalized size = 0.77 \begin {gather*} \frac {2 \, x e^{\left (2 \, x\right )}}{x^{3} - 12 \, x - 16} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x^3-12*x^2-24*x-16)*exp(x)^2/(x^5-2*x^4-20*x^3+8*x^2+128*x+128),x, algorithm="fricas")

[Out]

2*x*e^(2*x)/(x^3 - 12*x - 16)

________________________________________________________________________________________

giac [A]  time = 0.13, size = 17, normalized size = 0.77 \begin {gather*} \frac {2 \, x e^{\left (2 \, x\right )}}{x^{3} - 12 \, x - 16} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x^3-12*x^2-24*x-16)*exp(x)^2/(x^5-2*x^4-20*x^3+8*x^2+128*x+128),x, algorithm="giac")

[Out]

2*x*e^(2*x)/(x^3 - 12*x - 16)

________________________________________________________________________________________

maple [A]  time = 0.06, size = 18, normalized size = 0.82




method result size



gosper \(\frac {2 \,{\mathrm e}^{2 x} x}{x^{3}-12 x -16}\) \(18\)
norman \(\frac {2 x \,{\mathrm e}^{2 x}}{\left (x -4\right ) \left (2+x \right )^{2}}\) \(18\)
risch \(\frac {2 x \,{\mathrm e}^{2 x}}{\left (x -4\right ) \left (2+x \right )^{2}}\) \(18\)
default \(-\frac {2 \,{\mathrm e}^{2 x}}{9 \left (2+x \right )}+\frac {2 \,{\mathrm e}^{2 x}}{9 \left (x -4\right )}+\frac {2 \,{\mathrm e}^{2 x}}{3 \left (2+x \right )^{2}}\) \(35\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int((4*x^3-12*x^2-24*x-16)*exp(x)^2/(x^5-2*x^4-20*x^3+8*x^2+128*x+128),x,method=_RETURNVERBOSE)

[Out]

2*exp(x)^2*x/(x^3-12*x-16)

________________________________________________________________________________________

maxima [A]  time = 0.39, size = 17, normalized size = 0.77 \begin {gather*} \frac {2 \, x e^{\left (2 \, x\right )}}{x^{3} - 12 \, x - 16} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x^3-12*x^2-24*x-16)*exp(x)^2/(x^5-2*x^4-20*x^3+8*x^2+128*x+128),x, algorithm="maxima")

[Out]

2*x*e^(2*x)/(x^3 - 12*x - 16)

________________________________________________________________________________________

mupad [B]  time = 8.23, size = 17, normalized size = 0.77 \begin {gather*} \frac {2\,x\,{\mathrm {e}}^{2\,x}}{{\left (x+2\right )}^2\,\left (x-4\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(exp(2*x)*(24*x + 12*x^2 - 4*x^3 + 16))/(128*x + 8*x^2 - 20*x^3 - 2*x^4 + x^5 + 128),x)

[Out]

(2*x*exp(2*x))/((x + 2)^2*(x - 4))

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 15, normalized size = 0.68 \begin {gather*} \frac {2 x e^{2 x}}{x^{3} - 12 x - 16} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((4*x**3-12*x**2-24*x-16)*exp(x)**2/(x**5-2*x**4-20*x**3+8*x**2+128*x+128),x)

[Out]

2*x*exp(2*x)/(x**3 - 12*x - 16)

________________________________________________________________________________________