\(\int \frac {100-20 x+e^x (-10+2 x)+(100+e^x (-10+10 x-2 x^2)) \log (25 x)}{x^2 \log ^2(25 x)} \, dx\) [8465]

   Optimal result
   Rubi [B] (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 [B] (verification not implemented)

Optimal result

Integrand size = 45, antiderivative size = 21 \[ \int \frac {100-20 x+e^x (-10+2 x)+\left (100+e^x \left (-10+10 x-2 x^2\right )\right ) \log (25 x)}{x^2 \log ^2(25 x)} \, dx=\frac {2 \left (-10+e^x\right ) (5-x)}{x \log (25 x)} \]

[Out]

2*(5-x)/x/ln(25*x)*(exp(x)-10)

Rubi [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(51\) vs. \(2(21)=42\).

Time = 0.54 (sec) , antiderivative size = 51, normalized size of antiderivative = 2.43, number of steps used = 14, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.178, Rules used = {6874, 2395, 2343, 2346, 2209, 2339, 30, 2326} \[ \int \frac {100-20 x+e^x (-10+2 x)+\left (100+e^x \left (-10+10 x-2 x^2\right )\right ) \log (25 x)}{x^2 \log ^2(25 x)} \, dx=\frac {2 e^x \left (5 x \log (25 x)-x^2 \log (25 x)\right )}{x^2 \log ^2(25 x)}-\frac {100}{x \log (25 x)}+\frac {20}{\log (25 x)} \]

[In]

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

[Out]

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

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 2209

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - c*(f/d)))/d)*ExpInteg
ralEi[f*g*(c + d*x)*(Log[F]/d)], x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !TrueQ[$UseGamma]

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]

Rule 2339

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/(x_), x_Symbol] :> Dist[1/(b*n), Subst[Int[x^p, x], x, a + b*L
og[c*x^n]], x] /; FreeQ[{a, b, c, n, p}, x]

Rule 2343

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 1)*((a + b*Log
[c*x^n])^(p + 1)/(b*d*n*(p + 1))), x] - Dist[(m + 1)/(b*n*(p + 1)), Int[(d*x)^m*(a + b*Log[c*x^n])^(p + 1), x]
, x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1] && LtQ[p, -1]

Rule 2346

Int[((a_.) + Log[(c_.)*(x_)]*(b_.))^(p_)*(x_)^(m_.), x_Symbol] :> Dist[1/c^(m + 1), Subst[Int[E^((m + 1)*x)*(a
 + b*x)^p, x], x, Log[c*x]], x] /; FreeQ[{a, b, c, p}, x] && IntegerQ[m]

Rule 2395

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol]
:> With[{u = ExpandIntegrand[(a + b*Log[c*x^n])^p, (f*x)^m*(d + e*x^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[
{a, b, c, d, e, f, m, n, p, q, r}, x] && IntegerQ[q] && (GtQ[q, 0] || (IGtQ[p, 0] && IntegerQ[m] && IntegerQ[r
]))

Rule 6874

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps \begin{align*} \text {integral}& = \int \left (-\frac {20 (-5+x-5 \log (25 x))}{x^2 \log ^2(25 x)}-\frac {2 e^x \left (5-x+5 \log (25 x)-5 x \log (25 x)+x^2 \log (25 x)\right )}{x^2 \log ^2(25 x)}\right ) \, dx \\ & = -\left (2 \int \frac {e^x \left (5-x+5 \log (25 x)-5 x \log (25 x)+x^2 \log (25 x)\right )}{x^2 \log ^2(25 x)} \, dx\right )-20 \int \frac {-5+x-5 \log (25 x)}{x^2 \log ^2(25 x)} \, dx \\ & = \frac {2 e^x \left (5 x \log (25 x)-x^2 \log (25 x)\right )}{x^2 \log ^2(25 x)}-20 \int \left (\frac {-5+x}{x^2 \log ^2(25 x)}-\frac {5}{x^2 \log (25 x)}\right ) \, dx \\ & = \frac {2 e^x \left (5 x \log (25 x)-x^2 \log (25 x)\right )}{x^2 \log ^2(25 x)}-20 \int \frac {-5+x}{x^2 \log ^2(25 x)} \, dx+100 \int \frac {1}{x^2 \log (25 x)} \, dx \\ & = \frac {2 e^x \left (5 x \log (25 x)-x^2 \log (25 x)\right )}{x^2 \log ^2(25 x)}-20 \int \left (-\frac {5}{x^2 \log ^2(25 x)}+\frac {1}{x \log ^2(25 x)}\right ) \, dx+2500 \text {Subst}\left (\int \frac {e^{-x}}{x} \, dx,x,\log (25 x)\right ) \\ & = 2500 \operatorname {ExpIntegralEi}(-\log (25 x))+\frac {2 e^x \left (5 x \log (25 x)-x^2 \log (25 x)\right )}{x^2 \log ^2(25 x)}-20 \int \frac {1}{x \log ^2(25 x)} \, dx+100 \int \frac {1}{x^2 \log ^2(25 x)} \, dx \\ & = 2500 \operatorname {ExpIntegralEi}(-\log (25 x))-\frac {100}{x \log (25 x)}+\frac {2 e^x \left (5 x \log (25 x)-x^2 \log (25 x)\right )}{x^2 \log ^2(25 x)}-20 \text {Subst}\left (\int \frac {1}{x^2} \, dx,x,\log (25 x)\right )-100 \int \frac {1}{x^2 \log (25 x)} \, dx \\ & = 2500 \operatorname {ExpIntegralEi}(-\log (25 x))+\frac {20}{\log (25 x)}-\frac {100}{x \log (25 x)}+\frac {2 e^x \left (5 x \log (25 x)-x^2 \log (25 x)\right )}{x^2 \log ^2(25 x)}-2500 \text {Subst}\left (\int \frac {e^{-x}}{x} \, dx,x,\log (25 x)\right ) \\ & = \frac {20}{\log (25 x)}-\frac {100}{x \log (25 x)}+\frac {2 e^x \left (5 x \log (25 x)-x^2 \log (25 x)\right )}{x^2 \log ^2(25 x)} \\ \end{align*}

Mathematica [A] (verified)

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

[In]

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

[Out]

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

Maple [A] (verified)

Time = 0.09 (sec) , antiderivative size = 25, normalized size of antiderivative = 1.19

method result size
norman \(\frac {-100+20 x -2 \,{\mathrm e}^{x} x +10 \,{\mathrm e}^{x}}{x \ln \left (25 x \right )}\) \(25\)
risch \(-\frac {2 \left ({\mathrm e}^{x} x -10 x -5 \,{\mathrm e}^{x}+50\right )}{x \ln \left (25 x \right )}\) \(25\)
parallelrisch \(-\frac {100+2 \,{\mathrm e}^{x} x -20 x -10 \,{\mathrm e}^{x}}{x \ln \left (25 x \right )}\) \(26\)
default \(\frac {-2 \,{\mathrm e}^{x} x +10 \,{\mathrm e}^{x}}{\ln \left (25 x \right ) x}-\frac {100}{x \ln \left (25 x \right )}+\frac {20}{\ln \left (25 x \right )}\) \(41\)
parts \(\frac {-2 \,{\mathrm e}^{x} x +10 \,{\mathrm e}^{x}}{\ln \left (25 x \right ) x}-\frac {100}{x \ln \left (25 x \right )}+\frac {20}{\ln \left (25 x \right )}\) \(41\)

[In]

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

[Out]

(-100+20*x-2*exp(x)*x+10*exp(x))/x/ln(25*x)

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 22, normalized size of antiderivative = 1.05 \[ \int \frac {100-20 x+e^x (-10+2 x)+\left (100+e^x \left (-10+10 x-2 x^2\right )\right ) \log (25 x)}{x^2 \log ^2(25 x)} \, dx=-\frac {2 \, {\left ({\left (x - 5\right )} e^{x} - 10 \, x + 50\right )}}{x \log \left (25 \, x\right )} \]

[In]

integrate((((-2*x^2+10*x-10)*exp(x)+100)*log(25*x)+(2*x-10)*exp(x)-20*x+100)/x^2/log(25*x)^2,x, algorithm="fri
cas")

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.09 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.24 \[ \int \frac {100-20 x+e^x (-10+2 x)+\left (100+e^x \left (-10+10 x-2 x^2\right )\right ) \log (25 x)}{x^2 \log ^2(25 x)} \, dx=\frac {\left (10 - 2 x\right ) e^{x}}{x \log {\left (25 x \right )}} + \frac {20 x - 100}{x \log {\left (25 x \right )}} \]

[In]

integrate((((-2*x**2+10*x-10)*exp(x)+100)*ln(25*x)+(2*x-10)*exp(x)-20*x+100)/x**2/ln(25*x)**2,x)

[Out]

(10 - 2*x)*exp(x)/(x*log(25*x)) + (20*x - 100)/(x*log(25*x))

Maxima [F]

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

[In]

integrate((((-2*x^2+10*x-10)*exp(x)+100)*log(25*x)+(2*x-10)*exp(x)-20*x+100)/x^2/log(25*x)^2,x, algorithm="max
ima")

[Out]

-2*(x - 5)*e^x/(2*x*log(5) + x*log(x)) + 20/log(25*x) - 2500*gamma(-1, log(25*x)) + 100*integrate(1/(2*x^2*log
(5) + x^2*log(x)), x)

Giac [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 24, normalized size of antiderivative = 1.14 \[ \int \frac {100-20 x+e^x (-10+2 x)+\left (100+e^x \left (-10+10 x-2 x^2\right )\right ) \log (25 x)}{x^2 \log ^2(25 x)} \, dx=-\frac {2 \, {\left (x e^{x} - 10 \, x - 5 \, e^{x} + 50\right )}}{x \log \left (25 \, x\right )} \]

[In]

integrate((((-2*x^2+10*x-10)*exp(x)+100)*log(25*x)+(2*x-10)*exp(x)-20*x+100)/x^2/log(25*x)^2,x, algorithm="gia
c")

[Out]

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

Mupad [B] (verification not implemented)

Time = 13.80 (sec) , antiderivative size = 18, normalized size of antiderivative = 0.86 \[ \int \frac {100-20 x+e^x (-10+2 x)+\left (100+e^x \left (-10+10 x-2 x^2\right )\right ) \log (25 x)}{x^2 \log ^2(25 x)} \, dx=-\frac {2\,\left ({\mathrm {e}}^x-10\right )\,\left (x-5\right )}{x\,\ln \left (25\,x\right )} \]

[In]

int(-(20*x - exp(x)*(2*x - 10) + log(25*x)*(exp(x)*(2*x^2 - 10*x + 10) - 100) - 100)/(x^2*log(25*x)^2),x)

[Out]

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