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

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

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 30, normalized size of antiderivative = 1.36, number of steps used = 2, number of rules used = 1, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.032, Rules used = {14} \begin {gather*} -\frac {1}{x^4}-2 x^2+\frac {2 e^5}{x^2}+2 e^5 x-\frac {2}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 32, normalized size = 1.45 \begin {gather*} 2 \left (-\frac {1}{2 x^4}+\frac {e^5}{x^2}-\frac {1}{x}+e^5 x-x^2\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.15, size = 30, normalized size = 1.36 \begin {gather*} -2 \, x^{2} + 2 \, x e^{5} - \frac {2 \, x^{3} - 2 \, x^{2} e^{5} + 1}{x^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.04, size = 29, normalized size = 1.32




method result size



default \(2 x \,{\mathrm e}^{5}-2 x^{2}-\frac {1}{x^{4}}+\frac {2 \,{\mathrm e}^{5}}{x^{2}}-\frac {2}{x}\) \(29\)
risch \(2 x \,{\mathrm e}^{5}-2 x^{2}+\frac {2 x^{2} {\mathrm e}^{5}-2 x^{3}-1}{x^{4}}\) \(30\)
gosper \(\frac {2 x^{5} {\mathrm e}^{5}-2 x^{6}+2 x^{2} {\mathrm e}^{5}-2 x^{3}-1}{x^{4}}\) \(31\)
norman \(\frac {2 x^{5} {\mathrm e}^{5}-2 x^{6}+2 x^{2} {\mathrm e}^{5}-2 x^{3}-1}{x^{4}}\) \(31\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.38, size = 30, normalized size = 1.36 \begin {gather*} -2 \, x^{2} + 2 \, x e^{5} - \frac {2 \, x^{3} - 2 \, x^{2} e^{5} + 1}{x^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 4.84, size = 30, normalized size = 1.36 \begin {gather*} 2\,x\,{\mathrm {e}}^5-\frac {2\,x^3-2\,{\mathrm {e}}^5\,x^2+1}{x^4}-2\,x^2 \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [A]  time = 0.18, size = 29, normalized size = 1.32 \begin {gather*} - 2 x^{2} + 2 x e^{5} - \frac {2 x^{3} - 2 x^{2} e^{5} + 1}{x^{4}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________