3.1.22 \(\int \frac {1}{x (1-\log (x))} \, dx\) [22]

Optimal. Leaf size=9 \[ -\log (1-\log (x)) \]

[Out]

-ln(1-ln(x))

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2339, 29} \begin {gather*} -\log (1-\log (x)) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/(x*(1 - Log[x])),x]

[Out]

-Log[1 - Log[x]]

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], 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]

Rubi steps

\begin {align*} \int \frac {1}{x (1-\log (x))} \, dx &=-\text {Subst}\left (\int \frac {1}{x} \, dx,x,1-\log (x)\right )\\ &=-\log (1-\log (x))\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 7, normalized size = 0.78 \begin {gather*} -\log (-1+\log (x)) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/(x*(1 - Log[x])),x]

[Out]

-Log[-1 + Log[x]]

________________________________________________________________________________________

Maple [A]
time = 0.01, size = 10, normalized size = 1.11

method result size
norman \(-\ln \left (-1+\ln \left (x \right )\right )\) \(8\)
risch \(-\ln \left (-1+\ln \left (x \right )\right )\) \(8\)
derivativedivides \(-\ln \left (1-\ln \left (x \right )\right )\) \(10\)
default \(-\ln \left (1-\ln \left (x \right )\right )\) \(10\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x/(1-ln(x)),x,method=_RETURNVERBOSE)

[Out]

-ln(1-ln(x))

________________________________________________________________________________________

Maxima [A]
time = 2.13, size = 7, normalized size = 0.78 \begin {gather*} -\log \left (\log \left (x\right ) - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(1-log(x)),x, algorithm="maxima")

[Out]

-log(log(x) - 1)

________________________________________________________________________________________

Fricas [A]
time = 0.62, size = 7, normalized size = 0.78 \begin {gather*} -\log \left (\log \left (x\right ) - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(1-log(x)),x, algorithm="fricas")

[Out]

-log(log(x) - 1)

________________________________________________________________________________________

Sympy [A]
time = 0.03, size = 7, normalized size = 0.78 \begin {gather*} - \log {\left (\log {\left (x \right )} - 1 \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(1-ln(x)),x)

[Out]

-log(log(x) - 1)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 22 vs. \(2 (9) = 18\).
time = 0.87, size = 22, normalized size = 2.44 \begin {gather*} -\frac {1}{2} \, \log \left (\frac {1}{4} \, \pi ^{2} {\left (\mathrm {sgn}\left (x\right ) - 1\right )}^{2} + {\left (\log \left ({\left | x \right |}\right ) - 1\right )}^{2}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(1-log(x)),x, algorithm="giac")

[Out]

-1/2*log(1/4*pi^2*(sgn(x) - 1)^2 + (log(abs(x)) - 1)^2)

________________________________________________________________________________________

Mupad [B]
time = 0.21, size = 7, normalized size = 0.78 \begin {gather*} -\ln \left (\ln \left (x\right )-1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-1/(x*(log(x) - 1)),x)

[Out]

-log(log(x) - 1)

________________________________________________________________________________________