3.59.65 \(\int \frac {-2 e^{\frac {1}{x^2}}+x^2+3 x^3}{x^3} \, dx\)

Optimal. Leaf size=15 \[ e^{\frac {1}{x^2}}+3 x-\log (5)+\log (x) \]

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 11, normalized size of antiderivative = 0.73, number of steps used = 5, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {14, 2209, 43} \begin {gather*} e^{\frac {1}{x^2}}+3 x+\log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

E^x^(-2) + 3*x + Log[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]]

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 2209

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))*((e_.) + (f_.)*(x_))^(m_.), x_Symbol] :> Simp[((e + f*x)^n*
F^(a + b*(c + d*x)^n))/(b*f*n*(c + d*x)^n*Log[F]), x] /; FreeQ[{F, a, b, c, d, e, f, n}, x] && EqQ[m, n - 1] &
& EqQ[d*e - c*f, 0]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 11, normalized size = 0.73 \begin {gather*} e^{\frac {1}{x^2}}+3 x+\log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

E^x^(-2) + 3*x + Log[x]

________________________________________________________________________________________

fricas [A]  time = 0.62, size = 10, normalized size = 0.67 \begin {gather*} 3 \, x + e^{\left (\frac {1}{x^{2}}\right )} + \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

3*x + e^(x^(-2)) + log(x)

________________________________________________________________________________________

giac [A]  time = 0.21, size = 10, normalized size = 0.67 \begin {gather*} 3 \, x + e^{\left (\frac {1}{x^{2}}\right )} + \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

3*x + e^(x^(-2)) + log(x)

________________________________________________________________________________________

maple [A]  time = 0.08, size = 11, normalized size = 0.73




method result size



risch \(3 x +\ln \relax (x )+{\mathrm e}^{\frac {1}{x^{2}}}\) \(11\)
derivativedivides \(-\ln \left (\frac {1}{x}\right )+3 x +{\mathrm e}^{\frac {1}{x^{2}}}\) \(15\)
default \(-\ln \left (\frac {1}{x}\right )+3 x +{\mathrm e}^{\frac {1}{x^{2}}}\) \(15\)
norman \(\frac {x^{2} {\mathrm e}^{\frac {1}{x^{2}}}+3 x^{3}}{x^{2}}+\ln \relax (x )\) \(22\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

3*x+ln(x)+exp(1/x^2)

________________________________________________________________________________________

maxima [A]  time = 0.55, size = 10, normalized size = 0.67 \begin {gather*} 3 \, x + e^{\left (\frac {1}{x^{2}}\right )} + \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

3*x + e^(x^(-2)) + log(x)

________________________________________________________________________________________

mupad [B]  time = 4.06, size = 10, normalized size = 0.67 \begin {gather*} 3\,x+{\mathrm {e}}^{\frac {1}{x^2}}+\ln \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

3*x + exp(1/x^2) + log(x)

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 12, normalized size = 0.80 \begin {gather*} 3 x + e^{\frac {1}{x^{2}}} + \log {\relax (x )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

3*x + exp(x**(-2)) + log(x)

________________________________________________________________________________________