3.11.45 \(\int \frac {-x-x^2+e^{25 x^2} (-5+250 x^2)}{x^2} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.08, antiderivative size = 20, normalized size of antiderivative = 0.80, number of steps used = 5, number of rules used = 3, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.107, Rules used = {14, 43, 2288} \begin {gather*} \frac {5 e^{25 x^2}}{x}-x-\log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-x - x^2 + E^(25*x^2)*(-5 + 250*x^2))/x^2,x]

[Out]

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

Int[(y_.)*(F_)^(u_)*((v_) + (w_)), x_Symbol] :> With[{z = (v*y)/(Log[F]*D[u, x])}, Simp[F^u*z, x] /; EqQ[D[z,
x], w*y]] /; FreeQ[F, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 20, normalized size = 0.80 \begin {gather*} \frac {5 e^{25 x^2}}{x}-x-\log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-x - x^2 + E^(25*x^2)*(-5 + 250*x^2))/x^2,x]

[Out]

(5*E^(25*x^2))/x - x - Log[x]

________________________________________________________________________________________

fricas [A]  time = 0.76, size = 21, normalized size = 0.84 \begin {gather*} -\frac {x^{2} + x \log \relax (x) - 5 \, e^{\left (25 \, x^{2}\right )}}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((250*x^2-5)*exp(25*x^2)-x^2-x)/x^2,x, algorithm="fricas")

[Out]

-(x^2 + x*log(x) - 5*e^(25*x^2))/x

________________________________________________________________________________________

giac [A]  time = 0.35, size = 21, normalized size = 0.84 \begin {gather*} -\frac {x^{2} + x \log \relax (x) - 5 \, e^{\left (25 \, x^{2}\right )}}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((250*x^2-5)*exp(25*x^2)-x^2-x)/x^2,x, algorithm="giac")

[Out]

-(x^2 + x*log(x) - 5*e^(25*x^2))/x

________________________________________________________________________________________

maple [A]  time = 0.03, size = 20, normalized size = 0.80




method result size



default \(-x -\ln \relax (x )+\frac {5 \,{\mathrm e}^{25 x^{2}}}{x}\) \(20\)
risch \(-x -\ln \relax (x )+\frac {5 \,{\mathrm e}^{25 x^{2}}}{x}\) \(20\)
norman \(\frac {-x^{2}+5 \,{\mathrm e}^{25 x^{2}}}{x}-\ln \relax (x )\) \(24\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((250*x^2-5)*exp(25*x^2)-x^2-x)/x^2,x,method=_RETURNVERBOSE)

[Out]

-x-ln(x)+5*exp(x^2)^25/x

________________________________________________________________________________________

maxima [C]  time = 0.64, size = 36, normalized size = 1.44 \begin {gather*} -25 i \, \sqrt {\pi } \operatorname {erf}\left (5 i \, x\right ) - x + \frac {25 \, \sqrt {-x^{2}} \Gamma \left (-\frac {1}{2}, -25 \, x^{2}\right )}{2 \, x} - \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((250*x^2-5)*exp(25*x^2)-x^2-x)/x^2,x, algorithm="maxima")

[Out]

-25*I*sqrt(pi)*erf(5*I*x) - x + 25/2*sqrt(-x^2)*gamma(-1/2, -25*x^2)/x - log(x)

________________________________________________________________________________________

mupad [B]  time = 0.07, size = 23, normalized size = 0.92 \begin {gather*} \frac {5\,{\mathrm {e}}^{25\,x^2}-x^2}{x}-\ln \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(x - exp(25*x^2)*(250*x^2 - 5) + x^2)/x^2,x)

[Out]

(5*exp(25*x^2) - x^2)/x - log(x)

________________________________________________________________________________________

sympy [A]  time = 0.10, size = 14, normalized size = 0.56 \begin {gather*} - x - \log {\relax (x )} + \frac {5 e^{25 x^{2}}}{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(((250*x**2-5)*exp(25*x**2)-x**2-x)/x**2,x)

[Out]

-x - log(x) + 5*exp(25*x**2)/x

________________________________________________________________________________________