\(\int \frac {e^x (-10+5 e^{-x^2})+5 x+e^x (-10 x+e^{-x^2} (5 x-10 x^2)) \log (x)}{x} \, dx\) [4451]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [F]
   Giac [A] (verification not implemented)
   Mupad [F(-1)]

Optimal result

Integrand size = 50, antiderivative size = 22 \[ \int \frac {e^x \left (-10+5 e^{-x^2}\right )+5 x+e^x \left (-10 x+e^{-x^2} \left (5 x-10 x^2\right )\right ) \log (x)}{x} \, dx=5 \left (x-e^x \left (2-e^{-x^2}\right ) \log (x)\right ) \]

[Out]

5*x-5*(2-exp(-x^2))*exp(x)*ln(x)

Rubi [A] (verified)

Time = 0.09 (sec) , antiderivative size = 44, normalized size of antiderivative = 2.00, number of steps used = 6, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.040, Rules used = {14, 2326} \[ \int \frac {e^x \left (-10+5 e^{-x^2}\right )+5 x+e^x \left (-10 x+e^{-x^2} \left (5 x-10 x^2\right )\right ) \log (x)}{x} \, dx=\frac {5 e^{x-x^2} \left (x \log (x)-2 x^2 \log (x)\right )}{(1-2 x) x}+5 x-10 e^x \log (x) \]

[In]

Int[(E^x*(-10 + 5/E^x^2) + 5*x + E^x*(-10*x + (5*x - 10*x^2)/E^x^2)*Log[x])/x,x]

[Out]

5*x - 10*E^x*Log[x] + (5*E^(x - x^2)*(x*Log[x] - 2*x^2*Log[x]))/((1 - 2*x)*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 2326

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{align*} \text {integral}& = \int \left (-\frac {5 \left (2 e^x-x+2 e^x x \log (x)\right )}{x}-\frac {5 e^{x-x^2} \left (-1-x \log (x)+2 x^2 \log (x)\right )}{x}\right ) \, dx \\ & = -\left (5 \int \frac {2 e^x-x+2 e^x x \log (x)}{x} \, dx\right )-5 \int \frac {e^{x-x^2} \left (-1-x \log (x)+2 x^2 \log (x)\right )}{x} \, dx \\ & = \frac {5 e^{x-x^2} \left (x \log (x)-2 x^2 \log (x)\right )}{(1-2 x) x}-5 \int \left (-1+\frac {2 e^x (1+x \log (x))}{x}\right ) \, dx \\ & = 5 x+\frac {5 e^{x-x^2} \left (x \log (x)-2 x^2 \log (x)\right )}{(1-2 x) x}-10 \int \frac {e^x (1+x \log (x))}{x} \, dx \\ & = 5 x-10 e^x \log (x)+\frac {5 e^{x-x^2} \left (x \log (x)-2 x^2 \log (x)\right )}{(1-2 x) x} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.34 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.86 \[ \int \frac {e^x \left (-10+5 e^{-x^2}\right )+5 x+e^x \left (-10 x+e^{-x^2} \left (5 x-10 x^2\right )\right ) \log (x)}{x} \, dx=5 \left (x+e^x \left (-2+e^{-x^2}\right ) \log (x)\right ) \]

[In]

Integrate[(E^x*(-10 + 5/E^x^2) + 5*x + E^x*(-10*x + (5*x - 10*x^2)/E^x^2)*Log[x])/x,x]

[Out]

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

Maple [A] (verified)

Time = 0.10 (sec) , antiderivative size = 22, normalized size of antiderivative = 1.00

method result size
risch \(\left (5 \,{\mathrm e}^{-x \left (-1+x \right )}-10 \,{\mathrm e}^{x}\right ) \ln \left (x \right )+5 x\) \(22\)
parallelrisch \(5 \,{\mathrm e}^{-x^{2}} \ln \left (x \right ) {\mathrm e}^{x}-10 \,{\mathrm e}^{x} \ln \left (x \right )+5 x\) \(23\)

[In]

int((((-10*x^2+5*x)*exp(-x^2)-10*x)*exp(x)*ln(x)+(5*exp(-x^2)-10)*exp(x)+5*x)/x,x,method=_RETURNVERBOSE)

[Out]

(5*exp(-x*(-1+x))-10*exp(x))*ln(x)+5*x

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.82 \[ \int \frac {e^x \left (-10+5 e^{-x^2}\right )+5 x+e^x \left (-10 x+e^{-x^2} \left (5 x-10 x^2\right )\right ) \log (x)}{x} \, dx=5 \, {\left (e^{\left (-x^{2}\right )} - 2\right )} e^{x} \log \left (x\right ) + 5 \, x \]

[In]

integrate((((-10*x^2+5*x)*exp(-x^2)-10*x)*exp(x)*log(x)+(5*exp(-x^2)-10)*exp(x)+5*x)/x,x, algorithm="fricas")

[Out]

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

Sympy [A] (verification not implemented)

Time = 4.75 (sec) , antiderivative size = 24, normalized size of antiderivative = 1.09 \[ \int \frac {e^x \left (-10+5 e^{-x^2}\right )+5 x+e^x \left (-10 x+e^{-x^2} \left (5 x-10 x^2\right )\right ) \log (x)}{x} \, dx=5 x - 10 e^{x} \log {\left (x \right )} + 5 e^{x} e^{- x^{2}} \log {\left (x \right )} \]

[In]

integrate((((-10*x**2+5*x)*exp(-x**2)-10*x)*exp(x)*ln(x)+(5*exp(-x**2)-10)*exp(x)+5*x)/x,x)

[Out]

5*x - 10*exp(x)*log(x) + 5*exp(x)*exp(-x**2)*log(x)

Maxima [F]

\[ \int \frac {e^x \left (-10+5 e^{-x^2}\right )+5 x+e^x \left (-10 x+e^{-x^2} \left (5 x-10 x^2\right )\right ) \log (x)}{x} \, dx=\int { -\frac {5 \, {\left ({\left ({\left (2 \, x^{2} - x\right )} e^{\left (-x^{2}\right )} + 2 \, x\right )} e^{x} \log \left (x\right ) - {\left (e^{\left (-x^{2}\right )} - 2\right )} e^{x} - x\right )}}{x} \,d x } \]

[In]

integrate((((-10*x^2+5*x)*exp(-x^2)-10*x)*exp(x)*log(x)+(5*exp(-x^2)-10)*exp(x)+5*x)/x,x, algorithm="maxima")

[Out]

5*e^(-x^2 + x)*log(x) - 10*e^x*log(x) + 5*x - 10*Ei(x) + 10*integrate(e^x/x, x)

Giac [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 22, normalized size of antiderivative = 1.00 \[ \int \frac {e^x \left (-10+5 e^{-x^2}\right )+5 x+e^x \left (-10 x+e^{-x^2} \left (5 x-10 x^2\right )\right ) \log (x)}{x} \, dx=5 \, e^{\left (-x^{2} + x\right )} \log \left (x\right ) - 10 \, e^{x} \log \left (x\right ) + 5 \, x \]

[In]

integrate((((-10*x^2+5*x)*exp(-x^2)-10*x)*exp(x)*log(x)+(5*exp(-x^2)-10)*exp(x)+5*x)/x,x, algorithm="giac")

[Out]

5*e^(-x^2 + x)*log(x) - 10*e^x*log(x) + 5*x

Mupad [F(-1)]

Timed out. \[ \int \frac {e^x \left (-10+5 e^{-x^2}\right )+5 x+e^x \left (-10 x+e^{-x^2} \left (5 x-10 x^2\right )\right ) \log (x)}{x} \, dx=\int \frac {5\,x+{\mathrm {e}}^x\,\left (5\,{\mathrm {e}}^{-x^2}-10\right )-{\mathrm {e}}^x\,\ln \left (x\right )\,\left (10\,x-{\mathrm {e}}^{-x^2}\,\left (5\,x-10\,x^2\right )\right )}{x} \,d x \]

[In]

int((5*x + exp(x)*(5*exp(-x^2) - 10) - exp(x)*log(x)*(10*x - exp(-x^2)*(5*x - 10*x^2)))/x,x)

[Out]

int((5*x + exp(x)*(5*exp(-x^2) - 10) - exp(x)*log(x)*(10*x - exp(-x^2)*(5*x - 10*x^2)))/x, x)