3.74.47 \(\int \frac {3-2 x^2+12 x^5+5 x^6+e^{2 x} (1-2 x-4 x^2+4 x^5+2 x^6)}{x^2} \, dx\)

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

________________________________________________________________________________________

Rubi [B]  time = 0.20, antiderivative size = 43, normalized size of antiderivative = 2.26, number of steps used = 19, number of rules used = 6, integrand size = 47, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.128, Rules used = {14, 2199, 2194, 2177, 2178, 2176} \begin {gather*} x^5+e^{2 x} x^4+3 x^4-2 x-2 e^{2 x}-\frac {e^{2 x}}{x}-\frac {3}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 33, normalized size = 1.74 \begin {gather*} \frac {-3-2 x^2+3 x^5+x^6+e^{2 x} \left (-1-2 x+x^5\right )}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.63, size = 32, normalized size = 1.68 \begin {gather*} \frac {x^{6} + 3 \, x^{5} - 2 \, x^{2} + {\left (x^{5} - 2 \, x - 1\right )} e^{\left (2 \, x\right )} - 3}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [B]  time = 0.19, size = 40, normalized size = 2.11 \begin {gather*} \frac {x^{6} + x^{5} e^{\left (2 \, x\right )} + 3 \, x^{5} - 2 \, x^{2} - 2 \, x e^{\left (2 \, x\right )} - e^{\left (2 \, x\right )} - 3}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.03, size = 34, normalized size = 1.79




method result size



risch \(x^{5}+3 x^{4}-2 x -\frac {3}{x}+\frac {\left (x^{5}-2 x -1\right ) {\mathrm e}^{2 x}}{x}\) \(34\)
default \(-2 x -\frac {{\mathrm e}^{2 x}}{x}-\frac {3}{x}+3 x^{4}+x^{5}-2 \,{\mathrm e}^{2 x}+{\mathrm e}^{2 x} x^{4}\) \(41\)
norman \(\frac {-3+x^{6}+x^{5} {\mathrm e}^{2 x}-2 x^{2}+3 x^{5}-{\mathrm e}^{2 x}-2 x \,{\mathrm e}^{2 x}}{x}\) \(41\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [C]  time = 0.39, size = 83, normalized size = 4.37 \begin {gather*} x^{5} + 3 \, x^{4} + \frac {1}{2} \, {\left (2 \, x^{4} - 4 \, x^{3} + 6 \, x^{2} - 6 \, x + 3\right )} e^{\left (2 \, x\right )} + \frac {1}{2} \, {\left (4 \, x^{3} - 6 \, x^{2} + 6 \, x - 3\right )} e^{\left (2 \, x\right )} - 2 \, x - \frac {3}{x} - 2 \, {\rm Ei}\left (2 \, x\right ) - 2 \, e^{\left (2 \, x\right )} + 2 \, \Gamma \left (-1, -2 \, x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 4.58, size = 34, normalized size = 1.79 \begin {gather*} x^4\,\left ({\mathrm {e}}^{2\,x}+3\right )-2\,{\mathrm {e}}^{2\,x}-\frac {{\mathrm {e}}^{2\,x}+3}{x}-2\,x+x^5 \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((exp(2*x)*(4*x^5 - 4*x^2 - 2*x + 2*x^6 + 1) - 2*x^2 + 12*x^5 + 5*x^6 + 3)/x^2,x)

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.12, size = 29, normalized size = 1.53 \begin {gather*} x^{5} + 3 x^{4} - 2 x + \frac {\left (x^{5} - 2 x - 1\right ) e^{2 x}}{x} - \frac {3}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________