3.2.29 \(\int \frac {1}{x (3+\log (x))} \, dx\) [129]

Optimal. Leaf size=5 \[ \log (3+\log (x)) \]

[Out]

ln(3+ln(x))

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 5, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2339, 29} \begin {gather*} \log (\log (x)+3) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/(x*(3 + Log[x])),x]

[Out]

Log[3 + 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 (3+\log (x))} \, dx &=\text {Subst}\left (\int \frac {1}{x} \, dx,x,3+\log (x)\right )\\ &=\log (3+\log (x))\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 5, normalized size = 1.00 \begin {gather*} \log (3+\log (x)) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/(x*(3 + Log[x])),x]

[Out]

Log[3 + Log[x]]

________________________________________________________________________________________

Maple [A]
time = 0.01, size = 6, normalized size = 1.20

method result size
derivativedivides \(\ln \left (3+\ln \left (x \right )\right )\) \(6\)
default \(\ln \left (3+\ln \left (x \right )\right )\) \(6\)
norman \(\ln \left (3+\ln \left (x \right )\right )\) \(6\)
risch \(\ln \left (3+\ln \left (x \right )\right )\) \(6\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/x/(3+ln(x)),x,method=_RETURNVERBOSE)

[Out]

ln(3+ln(x))

________________________________________________________________________________________

Maxima [A]
time = 0.27, size = 5, normalized size = 1.00 \begin {gather*} \log \left (\log \left (x\right ) + 3\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

log(log(x) + 3)

________________________________________________________________________________________

Fricas [A]
time = 0.35, size = 5, normalized size = 1.00 \begin {gather*} \log \left (\log \left (x\right ) + 3\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

log(log(x) + 3)

________________________________________________________________________________________

Sympy [A]
time = 0.03, size = 5, normalized size = 1.00 \begin {gather*} \log {\left (\log {\left (x \right )} + 3 \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/x/(3+ln(x)),x)

[Out]

log(log(x) + 3)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 22 vs. \(2 (5) = 10\).
time = 3.73, size = 22, normalized size = 4.40 \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 ) + 3\right )}^{2}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 0.42, size = 5, normalized size = 1.00 \begin {gather*} \ln \left (\ln \left (x\right )+3\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(x*(log(x) + 3)),x)

[Out]

log(log(x) + 3)

________________________________________________________________________________________