3.321 \(\int \log (\frac {x}{2}) \, dx\)

Optimal. Leaf size=12 \[ x \log \left (\frac {x}{2}\right )-x \]

[Out]

-x+x*ln(1/2*x)

________________________________________________________________________________________

Rubi [A]  time = 0.00, antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2295} \[ x \log \left (\frac {x}{2}\right )-x \]

Antiderivative was successfully verified.

[In]

Int[Log[x/2],x]

[Out]

-x + x*Log[x/2]

Rule 2295

Int[Log[(c_.)*(x_)^(n_.)], x_Symbol] :> Simp[x*Log[c*x^n], x] - Simp[n*x, x] /; FreeQ[{c, n}, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 12, normalized size = 1.00 \[ x \log \left (\frac {x}{2}\right )-x \]

Antiderivative was successfully verified.

[In]

Integrate[Log[x/2],x]

[Out]

-x + x*Log[x/2]

________________________________________________________________________________________

fricas [A]  time = 0.44, size = 10, normalized size = 0.83 \[ x \log \left (\frac {1}{2} \, x\right ) - x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x*log(1/2*x) - x

________________________________________________________________________________________

giac [A]  time = 1.01, size = 10, normalized size = 0.83 \[ x \log \left (\frac {1}{2} \, x\right ) - x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x*log(1/2*x) - x

________________________________________________________________________________________

maple [A]  time = 0.00, size = 11, normalized size = 0.92 \[ x \ln \left (\frac {x}{2}\right )-x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(1/2*x),x)

[Out]

-x+x*ln(1/2*x)

________________________________________________________________________________________

maxima [A]  time = 0.53, size = 10, normalized size = 0.83 \[ x \log \left (\frac {1}{2} \, x\right ) - x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x*log(1/2*x) - x

________________________________________________________________________________________

mupad [B]  time = 0.18, size = 8, normalized size = 0.67 \[ x\,\left (\ln \left (\frac {x}{2}\right )-1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(log(x/2),x)

[Out]

x*(log(x/2) - 1)

________________________________________________________________________________________

sympy [A]  time = 0.09, size = 7, normalized size = 0.58 \[ x \log {\left (\frac {x}{2} \right )} - x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(1/2*x),x)

[Out]

x*log(x/2) - x

________________________________________________________________________________________