3.48.51 \(\int \frac {2}{x} \, dx\)

Optimal. Leaf size=6 \[ \log \left (36 x^2\right ) \]

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 4, normalized size of antiderivative = 0.67, number of steps used = 2, number of rules used = 2, integrand size = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {12, 29} \begin {gather*} 2 \log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[2/x,x]

[Out]

2*Log[x]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rubi steps

\begin {gather*} \begin {aligned} \text {integral} &=2 \int \frac {1}{x} \, dx\\ &=2 \log (x)\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 4, normalized size = 0.67 \begin {gather*} 2 \log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[2/x,x]

[Out]

2*Log[x]

________________________________________________________________________________________

fricas [A]  time = 0.57, size = 4, normalized size = 0.67 \begin {gather*} 2 \, \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2/x,x, algorithm="fricas")

[Out]

2*log(x)

________________________________________________________________________________________

giac [A]  time = 0.19, size = 5, normalized size = 0.83 \begin {gather*} 2 \, \log \left ({\left | x \right |}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2/x,x, algorithm="giac")

[Out]

2*log(abs(x))

________________________________________________________________________________________

maple [A]  time = 0.01, size = 5, normalized size = 0.83




method result size



default \(2 \ln \relax (x )\) \(5\)
norman \(2 \ln \relax (x )\) \(5\)
risch \(2 \ln \relax (x )\) \(5\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(2/x,x,method=_RETURNVERBOSE)

[Out]

2*ln(x)

________________________________________________________________________________________

maxima [A]  time = 0.35, size = 4, normalized size = 0.67 \begin {gather*} 2 \, \log \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2/x,x, algorithm="maxima")

[Out]

2*log(x)

________________________________________________________________________________________

mupad [B]  time = 0.01, size = 4, normalized size = 0.67 \begin {gather*} 2\,\ln \relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(2/x,x)

[Out]

2*log(x)

________________________________________________________________________________________

sympy [A]  time = 0.05, size = 3, normalized size = 0.50 \begin {gather*} 2 \log {\relax (x )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(2/x,x)

[Out]

2*log(x)

________________________________________________________________________________________