\(\int \frac {75 e^x-75 x+(e^x (30-75 x)+45 x) \log (x)+(-62 x+e^x (-13+75 x)) \log ^2(x)+(-23 x+23 e^x x) \log ^3(x)+(-x+e^x x) \log ^4(x)}{25 x \log ^2(x)+10 x \log ^3(x)+x \log ^4(x)} \, dx\) [6694]

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

Optimal result

Integrand size = 96, antiderivative size = 31 \[ \int \frac {75 e^x-75 x+\left (e^x (30-75 x)+45 x\right ) \log (x)+\left (-62 x+e^x (-13+75 x)\right ) \log ^2(x)+\left (-23 x+23 e^x x\right ) \log ^3(x)+\left (-x+e^x x\right ) \log ^4(x)}{25 x \log ^2(x)+10 x \log ^3(x)+x \log ^4(x)} \, dx=\frac {\left (-e^x+x\right ) \left (-x+\frac {3 x}{\log (x)}-\frac {16 x}{5+\log (x)}\right )}{x} \]

[Out]

(x-exp(x))*(3*x/ln(x)-x-16*x/(5+ln(x)))/x

Rubi [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(65\) vs. \(2(31)=62\).

Time = 1.08 (sec) , antiderivative size = 65, normalized size of antiderivative = 2.10, number of steps used = 39, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {6873, 6874, 2334, 2336, 2209, 2407, 2335, 2326} \[ \int \frac {75 e^x-75 x+\left (e^x (30-75 x)+45 x\right ) \log (x)+\left (-62 x+e^x (-13+75 x)\right ) \log ^2(x)+\left (-23 x+23 e^x x\right ) \log ^3(x)+\left (-x+e^x x\right ) \log ^4(x)}{25 x \log ^2(x)+10 x \log ^3(x)+x \log ^4(x)} \, dx=-x-\frac {e^x \left (-x \log ^4(x)-23 x \log ^3(x)-75 x \log ^2(x)+75 x \log (x)\right )}{x \log ^2(x) (\log (x)+5)^2}+\frac {3 x}{\log (x)}-\frac {16 x}{\log (x)+5} \]

[In]

Int[(75*E^x - 75*x + (E^x*(30 - 75*x) + 45*x)*Log[x] + (-62*x + E^x*(-13 + 75*x))*Log[x]^2 + (-23*x + 23*E^x*x
)*Log[x]^3 + (-x + E^x*x)*Log[x]^4)/(25*x*Log[x]^2 + 10*x*Log[x]^3 + x*Log[x]^4),x]

[Out]

-x + (3*x)/Log[x] - (16*x)/(5 + Log[x]) - (E^x*(75*x*Log[x] - 75*x*Log[x]^2 - 23*x*Log[x]^3 - x*Log[x]^4))/(x*
Log[x]^2*(5 + Log[x])^2)

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 2334

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

Rule 2335

Int[Log[(c_.)*(x_)]^(-1), x_Symbol] :> Simp[LogIntegral[c*x]/c, x] /; FreeQ[c, x]

Rule 2336

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

Rule 2407

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*(Log[(c_.)*(x_)^(n_.)]*(e_.) + (d_))^(q_.), x_Symbol] :> Int[E
xpandIntegrand[(a + b*Log[c*x^n])^p*(d + e*Log[c*x^n])^q, x], x] /; FreeQ[{a, b, c, d, e, n}, x] && IntegerQ[p
] && IntegerQ[q]

Rule 6873

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

Rule 6874

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

Rubi steps \begin{align*} \text {integral}& = \int \frac {75 e^x-75 x+\left (e^x (30-75 x)+45 x\right ) \log (x)+\left (-62 x+e^x (-13+75 x)\right ) \log ^2(x)+\left (-23 x+23 e^x x\right ) \log ^3(x)+\left (-x+e^x x\right ) \log ^4(x)}{x \log ^2(x) (5+\log (x))^2} \, dx \\ & = \int \left (-\frac {62}{(5+\log (x))^2}-\frac {75}{\log ^2(x) (5+\log (x))^2}+\frac {45}{\log (x) (5+\log (x))^2}-\frac {23 \log (x)}{(5+\log (x))^2}-\frac {\log ^2(x)}{(5+\log (x))^2}+\frac {e^x \left (75+30 \log (x)-75 x \log (x)-13 \log ^2(x)+75 x \log ^2(x)+23 x \log ^3(x)+x \log ^4(x)\right )}{x \log ^2(x) (5+\log (x))^2}\right ) \, dx \\ & = -\left (23 \int \frac {\log (x)}{(5+\log (x))^2} \, dx\right )+45 \int \frac {1}{\log (x) (5+\log (x))^2} \, dx-62 \int \frac {1}{(5+\log (x))^2} \, dx-75 \int \frac {1}{\log ^2(x) (5+\log (x))^2} \, dx-\int \frac {\log ^2(x)}{(5+\log (x))^2} \, dx+\int \frac {e^x \left (75+30 \log (x)-75 x \log (x)-13 \log ^2(x)+75 x \log ^2(x)+23 x \log ^3(x)+x \log ^4(x)\right )}{x \log ^2(x) (5+\log (x))^2} \, dx \\ & = \frac {62 x}{5+\log (x)}-\frac {e^x \left (75 x \log (x)-75 x \log ^2(x)-23 x \log ^3(x)-x \log ^4(x)\right )}{x \log ^2(x) (5+\log (x))^2}-23 \int \left (-\frac {5}{(5+\log (x))^2}+\frac {1}{5+\log (x)}\right ) \, dx+45 \int \left (\frac {1}{25 \log (x)}-\frac {1}{5 (5+\log (x))^2}-\frac {1}{25 (5+\log (x))}\right ) \, dx-62 \int \frac {1}{5+\log (x)} \, dx-75 \int \left (\frac {1}{25 \log ^2(x)}-\frac {2}{125 \log (x)}+\frac {1}{25 (5+\log (x))^2}+\frac {2}{125 (5+\log (x))}\right ) \, dx-\int \left (1+\frac {25}{(5+\log (x))^2}-\frac {10}{5+\log (x)}\right ) \, dx \\ & = -x+\frac {62 x}{5+\log (x)}-\frac {e^x \left (75 x \log (x)-75 x \log ^2(x)-23 x \log ^3(x)-x \log ^4(x)\right )}{x \log ^2(x) (5+\log (x))^2}+\frac {6}{5} \int \frac {1}{\log (x)} \, dx-\frac {6}{5} \int \frac {1}{5+\log (x)} \, dx+\frac {9}{5} \int \frac {1}{\log (x)} \, dx-\frac {9}{5} \int \frac {1}{5+\log (x)} \, dx-3 \int \frac {1}{\log ^2(x)} \, dx-3 \int \frac {1}{(5+\log (x))^2} \, dx-9 \int \frac {1}{(5+\log (x))^2} \, dx+10 \int \frac {1}{5+\log (x)} \, dx-23 \int \frac {1}{5+\log (x)} \, dx-25 \int \frac {1}{(5+\log (x))^2} \, dx-62 \text {Subst}\left (\int \frac {e^x}{5+x} \, dx,x,\log (x)\right )+115 \int \frac {1}{(5+\log (x))^2} \, dx \\ & = -x-\frac {62 \text {Ei}(5+\log (x))}{e^5}+\frac {3 x}{\log (x)}-\frac {16 x}{5+\log (x)}-\frac {e^x \left (75 x \log (x)-75 x \log ^2(x)-23 x \log ^3(x)-x \log ^4(x)\right )}{x \log ^2(x) (5+\log (x))^2}+3 \text {li}(x)-\frac {6}{5} \text {Subst}\left (\int \frac {e^x}{5+x} \, dx,x,\log (x)\right )-\frac {9}{5} \text {Subst}\left (\int \frac {e^x}{5+x} \, dx,x,\log (x)\right )-3 \int \frac {1}{\log (x)} \, dx-3 \int \frac {1}{5+\log (x)} \, dx-9 \int \frac {1}{5+\log (x)} \, dx+10 \text {Subst}\left (\int \frac {e^x}{5+x} \, dx,x,\log (x)\right )-23 \text {Subst}\left (\int \frac {e^x}{5+x} \, dx,x,\log (x)\right )-25 \int \frac {1}{5+\log (x)} \, dx+115 \int \frac {1}{5+\log (x)} \, dx \\ & = -x-\frac {78 \text {Ei}(5+\log (x))}{e^5}+\frac {3 x}{\log (x)}-\frac {16 x}{5+\log (x)}-\frac {e^x \left (75 x \log (x)-75 x \log ^2(x)-23 x \log ^3(x)-x \log ^4(x)\right )}{x \log ^2(x) (5+\log (x))^2}-3 \text {Subst}\left (\int \frac {e^x}{5+x} \, dx,x,\log (x)\right )-9 \text {Subst}\left (\int \frac {e^x}{5+x} \, dx,x,\log (x)\right )-25 \text {Subst}\left (\int \frac {e^x}{5+x} \, dx,x,\log (x)\right )+115 \text {Subst}\left (\int \frac {e^x}{5+x} \, dx,x,\log (x)\right ) \\ & = -x+\frac {3 x}{\log (x)}-\frac {16 x}{5+\log (x)}-\frac {e^x \left (75 x \log (x)-75 x \log ^2(x)-23 x \log ^3(x)-x \log ^4(x)\right )}{x \log ^2(x) (5+\log (x))^2} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.06 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.90 \[ \int \frac {75 e^x-75 x+\left (e^x (30-75 x)+45 x\right ) \log (x)+\left (-62 x+e^x (-13+75 x)\right ) \log ^2(x)+\left (-23 x+23 e^x x\right ) \log ^3(x)+\left (-x+e^x x\right ) \log ^4(x)}{25 x \log ^2(x)+10 x \log ^3(x)+x \log ^4(x)} \, dx=\frac {\left (e^x-x\right ) \left (-15+18 \log (x)+\log ^2(x)\right )}{\log (x) (5+\log (x))} \]

[In]

Integrate[(75*E^x - 75*x + (E^x*(30 - 75*x) + 45*x)*Log[x] + (-62*x + E^x*(-13 + 75*x))*Log[x]^2 + (-23*x + 23
*E^x*x)*Log[x]^3 + (-x + E^x*x)*Log[x]^4)/(25*x*Log[x]^2 + 10*x*Log[x]^3 + x*Log[x]^4),x]

[Out]

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

Maple [A] (verified)

Time = 0.58 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.00

method result size
risch \({\mathrm e}^{x}-x -\frac {\left (x -{\mathrm e}^{x}\right ) \left (13 \ln \left (x \right )-15\right )}{\left (5+\ln \left (x \right )\right ) \ln \left (x \right )}\) \(31\)
norman \(\frac {{\mathrm e}^{x} \ln \left (x \right )^{2}+15 x -18 x \ln \left (x \right )-x \ln \left (x \right )^{2}+18 \,{\mathrm e}^{x} \ln \left (x \right )-15 \,{\mathrm e}^{x}}{\ln \left (x \right ) \left (5+\ln \left (x \right )\right )}\) \(45\)
parallelrisch \(-\frac {x \ln \left (x \right )^{2}-{\mathrm e}^{x} \ln \left (x \right )^{2}+18 x \ln \left (x \right )-18 \,{\mathrm e}^{x} \ln \left (x \right )-15 x +15 \,{\mathrm e}^{x}}{\ln \left (x \right ) \left (5+\ln \left (x \right )\right )}\) \(46\)
default \(-\frac {x \left (\ln \left (x \right )^{2}+18 \ln \left (x \right )-15\right )}{\left (5+\ln \left (x \right )\right ) \ln \left (x \right )}+\frac {{\mathrm e}^{x} \ln \left (x \right )^{2}+18 \,{\mathrm e}^{x} \ln \left (x \right )-15 \,{\mathrm e}^{x}}{\ln \left (x \right ) \left (5+\ln \left (x \right )\right )}\) \(54\)
parts \(-\frac {x \left (\ln \left (x \right )^{2}+18 \ln \left (x \right )-15\right )}{\left (5+\ln \left (x \right )\right ) \ln \left (x \right )}+\frac {{\mathrm e}^{x} \ln \left (x \right )^{2}+18 \,{\mathrm e}^{x} \ln \left (x \right )-15 \,{\mathrm e}^{x}}{\ln \left (x \right ) \left (5+\ln \left (x \right )\right )}\) \(54\)

[In]

int(((exp(x)*x-x)*ln(x)^4+(23*exp(x)*x-23*x)*ln(x)^3+((75*x-13)*exp(x)-62*x)*ln(x)^2+((-75*x+30)*exp(x)+45*x)*
ln(x)+75*exp(x)-75*x)/(x*ln(x)^4+10*x*ln(x)^3+25*x*ln(x)^2),x,method=_RETURNVERBOSE)

[Out]

exp(x)-x-(x-exp(x))*(13*ln(x)-15)/(5+ln(x))/ln(x)

Fricas [A] (verification not implemented)

none

Time = 0.35 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.35 \[ \int \frac {75 e^x-75 x+\left (e^x (30-75 x)+45 x\right ) \log (x)+\left (-62 x+e^x (-13+75 x)\right ) \log ^2(x)+\left (-23 x+23 e^x x\right ) \log ^3(x)+\left (-x+e^x x\right ) \log ^4(x)}{25 x \log ^2(x)+10 x \log ^3(x)+x \log ^4(x)} \, dx=-\frac {{\left (x - e^{x}\right )} \log \left (x\right )^{2} + 18 \, {\left (x - e^{x}\right )} \log \left (x\right ) - 15 \, x + 15 \, e^{x}}{\log \left (x\right )^{2} + 5 \, \log \left (x\right )} \]

[In]

integrate(((exp(x)*x-x)*log(x)^4+(23*exp(x)*x-23*x)*log(x)^3+((75*x-13)*exp(x)-62*x)*log(x)^2+((-75*x+30)*exp(
x)+45*x)*log(x)+75*exp(x)-75*x)/(x*log(x)^4+10*x*log(x)^3+25*x*log(x)^2),x, algorithm="fricas")

[Out]

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

Sympy [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 46 vs. \(2 (22) = 44\).

Time = 0.15 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.48 \[ \int \frac {75 e^x-75 x+\left (e^x (30-75 x)+45 x\right ) \log (x)+\left (-62 x+e^x (-13+75 x)\right ) \log ^2(x)+\left (-23 x+23 e^x x\right ) \log ^3(x)+\left (-x+e^x x\right ) \log ^4(x)}{25 x \log ^2(x)+10 x \log ^3(x)+x \log ^4(x)} \, dx=- x + \frac {- 13 x \log {\left (x \right )} + 15 x}{\log {\left (x \right )}^{2} + 5 \log {\left (x \right )}} + \frac {\left (\log {\left (x \right )}^{2} + 18 \log {\left (x \right )} - 15\right ) e^{x}}{\log {\left (x \right )}^{2} + 5 \log {\left (x \right )}} \]

[In]

integrate(((exp(x)*x-x)*ln(x)**4+(23*exp(x)*x-23*x)*ln(x)**3+((75*x-13)*exp(x)-62*x)*ln(x)**2+((-75*x+30)*exp(
x)+45*x)*ln(x)+75*exp(x)-75*x)/(x*ln(x)**4+10*x*ln(x)**3+25*x*ln(x)**2),x)

[Out]

-x + (-13*x*log(x) + 15*x)/(log(x)**2 + 5*log(x)) + (log(x)**2 + 18*log(x) - 15)*exp(x)/(log(x)**2 + 5*log(x))

Maxima [A] (verification not implemented)

none

Time = 0.23 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.35 \[ \int \frac {75 e^x-75 x+\left (e^x (30-75 x)+45 x\right ) \log (x)+\left (-62 x+e^x (-13+75 x)\right ) \log ^2(x)+\left (-23 x+23 e^x x\right ) \log ^3(x)+\left (-x+e^x x\right ) \log ^4(x)}{25 x \log ^2(x)+10 x \log ^3(x)+x \log ^4(x)} \, dx=-\frac {x \log \left (x\right )^{2} - {\left (\log \left (x\right )^{2} + 18 \, \log \left (x\right ) - 15\right )} e^{x} + 18 \, x \log \left (x\right ) - 15 \, x}{\log \left (x\right )^{2} + 5 \, \log \left (x\right )} \]

[In]

integrate(((exp(x)*x-x)*log(x)^4+(23*exp(x)*x-23*x)*log(x)^3+((75*x-13)*exp(x)-62*x)*log(x)^2+((-75*x+30)*exp(
x)+45*x)*log(x)+75*exp(x)-75*x)/(x*log(x)^4+10*x*log(x)^3+25*x*log(x)^2),x, algorithm="maxima")

[Out]

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

Giac [A] (verification not implemented)

none

Time = 0.30 (sec) , antiderivative size = 46, normalized size of antiderivative = 1.48 \[ \int \frac {75 e^x-75 x+\left (e^x (30-75 x)+45 x\right ) \log (x)+\left (-62 x+e^x (-13+75 x)\right ) \log ^2(x)+\left (-23 x+23 e^x x\right ) \log ^3(x)+\left (-x+e^x x\right ) \log ^4(x)}{25 x \log ^2(x)+10 x \log ^3(x)+x \log ^4(x)} \, dx=-\frac {x \log \left (x\right )^{2} - e^{x} \log \left (x\right )^{2} + 18 \, x \log \left (x\right ) - 18 \, e^{x} \log \left (x\right ) - 15 \, x + 15 \, e^{x}}{\log \left (x\right )^{2} + 5 \, \log \left (x\right )} \]

[In]

integrate(((exp(x)*x-x)*log(x)^4+(23*exp(x)*x-23*x)*log(x)^3+((75*x-13)*exp(x)-62*x)*log(x)^2+((-75*x+30)*exp(
x)+45*x)*log(x)+75*exp(x)-75*x)/(x*log(x)^4+10*x*log(x)^3+25*x*log(x)^2),x, algorithm="giac")

[Out]

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

Mupad [B] (verification not implemented)

Time = 11.52 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.90 \[ \int \frac {75 e^x-75 x+\left (e^x (30-75 x)+45 x\right ) \log (x)+\left (-62 x+e^x (-13+75 x)\right ) \log ^2(x)+\left (-23 x+23 e^x x\right ) \log ^3(x)+\left (-x+e^x x\right ) \log ^4(x)}{25 x \log ^2(x)+10 x \log ^3(x)+x \log ^4(x)} \, dx=-\frac {\left (x-{\mathrm {e}}^x\right )\,\left ({\ln \left (x\right )}^2+18\,\ln \left (x\right )-15\right )}{\ln \left (x\right )\,\left (\ln \left (x\right )+5\right )} \]

[In]

int(-(75*x - 75*exp(x) + log(x)^4*(x - x*exp(x)) + log(x)^2*(62*x - exp(x)*(75*x - 13)) + log(x)^3*(23*x - 23*
x*exp(x)) - log(x)*(45*x - exp(x)*(75*x - 30)))/(25*x*log(x)^2 + 10*x*log(x)^3 + x*log(x)^4),x)

[Out]

-((x - exp(x))*(18*log(x) + log(x)^2 - 15))/(log(x)*(log(x) + 5))