\(\int \frac {7+x \log (x)}{x+2 x \log (x)+x \log ^2(x)} \, dx\) [7983]

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

Optimal result

Integrand size = 22, antiderivative size = 10 \[ \int \frac {7+x \log (x)}{x+2 x \log (x)+x \log ^2(x)} \, dx=\frac {-7+x}{1+\log (x)} \]

[Out]

(-7+x)/(ln(x)+1)

Rubi [A] (verified)

Time = 0.13 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.70, number of steps used = 12, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {6820, 6874, 2395, 2334, 2336, 2209, 2339, 30} \[ \int \frac {7+x \log (x)}{x+2 x \log (x)+x \log ^2(x)} \, dx=\frac {x}{\log (x)+1}-\frac {7}{\log (x)+1} \]

[In]

Int[(7 + x*Log[x])/(x + 2*x*Log[x] + x*Log[x]^2),x]

[Out]

-7/(1 + Log[x]) + x/(1 + Log[x])

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 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 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 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 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 6820

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

Rule 6874

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

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

Mathematica [A] (verified)

Time = 0.04 (sec) , antiderivative size = 10, normalized size of antiderivative = 1.00 \[ \int \frac {7+x \log (x)}{x+2 x \log (x)+x \log ^2(x)} \, dx=\frac {-7+x}{1+\log (x)} \]

[In]

Integrate[(7 + x*Log[x])/(x + 2*x*Log[x] + x*Log[x]^2),x]

[Out]

(-7 + x)/(1 + Log[x])

Maple [A] (verified)

Time = 0.25 (sec) , antiderivative size = 11, normalized size of antiderivative = 1.10

method result size
norman \(\frac {-7+x}{\ln \left (x \right )+1}\) \(11\)
risch \(\frac {-7+x}{\ln \left (x \right )+1}\) \(11\)
parallelrisch \(\frac {-7+x}{\ln \left (x \right )+1}\) \(11\)
default \(\frac {x}{\ln \left (x \right )+1}-\frac {7}{\ln \left (x \right )+1}\) \(18\)

[In]

int((x*ln(x)+7)/(x*ln(x)^2+2*x*ln(x)+x),x,method=_RETURNVERBOSE)

[Out]

(-7+x)/(ln(x)+1)

Fricas [A] (verification not implemented)

none

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

[In]

integrate((x*log(x)+7)/(x*log(x)^2+2*x*log(x)+x),x, algorithm="fricas")

[Out]

(x - 7)/(log(x) + 1)

Sympy [A] (verification not implemented)

Time = 0.04 (sec) , antiderivative size = 7, normalized size of antiderivative = 0.70 \[ \int \frac {7+x \log (x)}{x+2 x \log (x)+x \log ^2(x)} \, dx=\frac {x - 7}{\log {\left (x \right )} + 1} \]

[In]

integrate((x*ln(x)+7)/(x*ln(x)**2+2*x*ln(x)+x),x)

[Out]

(x - 7)/(log(x) + 1)

Maxima [A] (verification not implemented)

none

Time = 0.21 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.70 \[ \int \frac {7+x \log (x)}{x+2 x \log (x)+x \log ^2(x)} \, dx=\frac {x}{\log \left (x\right ) + 1} - \frac {7}{\log \left (x\right ) + 1} \]

[In]

integrate((x*log(x)+7)/(x*log(x)^2+2*x*log(x)+x),x, algorithm="maxima")

[Out]

x/(log(x) + 1) - 7/(log(x) + 1)

Giac [A] (verification not implemented)

none

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

[In]

integrate((x*log(x)+7)/(x*log(x)^2+2*x*log(x)+x),x, algorithm="giac")

[Out]

(x - 7)/(log(x) + 1)

Mupad [B] (verification not implemented)

Time = 12.46 (sec) , antiderivative size = 10, normalized size of antiderivative = 1.00 \[ \int \frac {7+x \log (x)}{x+2 x \log (x)+x \log ^2(x)} \, dx=\frac {x-7}{\ln \left (x\right )+1} \]

[In]

int((x*log(x) + 7)/(x + x*log(x)^2 + 2*x*log(x)),x)

[Out]

(x - 7)/(log(x) + 1)