3.7.47 \(\int \frac {-30-3 x^3+e (10+x^3)}{x^3} \, dx\) [647]

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

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 19, normalized size of antiderivative = 1.58, number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {14} \begin {gather*} \frac {5 (3-e)}{x^2}-(3-e) x \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-30 - 3*x^3 + E*(10 + x^3))/x^3,x]

[Out]

(5*(3 - E))/x^2 - (3 - E)*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]]

Rubi steps

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

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

Integrate[(-30 - 3*x^3 + E*(10 + x^3))/x^3,x]

[Out]

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

________________________________________________________________________________________

Maple [A]
time = 0.05, size = 13, normalized size = 1.08

method result size
default \(\left ({\mathrm e}-3\right ) \left (x -\frac {5}{x^{2}}\right )\) \(13\)
gosper \(\frac {\left ({\mathrm e}-3\right ) \left (x^{3}-5\right )}{x^{2}}\) \(14\)
norman \(\frac {\left ({\mathrm e}-3\right ) x^{3}-5 \,{\mathrm e}+15}{x^{2}}\) \(19\)
risch \(x \,{\mathrm e}-3 x -\frac {5 \,{\mathrm e}}{x^{2}}+\frac {15}{x^{2}}\) \(21\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((x^3+10)*exp(1)-3*x^3-30)/x^3,x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

Maxima [A]
time = 0.27, size = 16, normalized size = 1.33 \begin {gather*} x {\left (e - 3\right )} - \frac {5 \, {\left (e - 3\right )}}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((x^3+10)*exp(1)-3*x^3-30)/x^3,x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.35, size = 21, normalized size = 1.75 \begin {gather*} -\frac {3 \, x^{3} - {\left (x^{3} - 5\right )} e - 15}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((x^3+10)*exp(1)-3*x^3-30)/x^3,x, algorithm="fricas")

[Out]

-(3*x^3 - (x^3 - 5)*e - 15)/x^2

________________________________________________________________________________________

Sympy [A]
time = 0.05, size = 17, normalized size = 1.42 \begin {gather*} - x \left (3 - e\right ) - \frac {-15 + 5 e}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((x**3+10)*exp(1)-3*x**3-30)/x**3,x)

[Out]

-x*(3 - E) - (-15 + 5*E)/x**2

________________________________________________________________________________________

Giac [A]
time = 0.42, size = 17, normalized size = 1.42 \begin {gather*} x e - 3 \, x - \frac {5 \, {\left (e - 3\right )}}{x^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((x^3+10)*exp(1)-3*x^3-30)/x^3,x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 0.05, size = 13, normalized size = 1.08 \begin {gather*} \frac {\left (x^3-5\right )\,\left (\mathrm {e}-3\right )}{x^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(3*x^3 - exp(1)*(x^3 + 10) + 30)/x^3,x)

[Out]

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

________________________________________________________________________________________