3.5.50 \(\int \frac {x}{-1+x^2} \, dx\)

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

________________________________________________________________________________________

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 = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {260} \begin {gather*} \frac {1}{2} \log \left (1-x^2\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x/(-1 + x^2),x]

[Out]

Log[1 - x^2]/2

Rule 260

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Simp[Log[RemoveContent[a + b*x^n, x]]/(b*n), x] /; FreeQ
[{a, b, m, n}, x] && EqQ[m, n - 1]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 10, normalized size = 0.83 \begin {gather*} \frac {1}{2} \log \left (x^2-1\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x/(-1 + x^2),x]

[Out]

Log[-1 + x^2]/2

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x}{-1+x^2} \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[x/(-1 + x^2),x]

[Out]

IntegrateAlgebraic[x/(-1 + x^2), x]

________________________________________________________________________________________

fricas [A]  time = 1.39, size = 8, normalized size = 0.67 \begin {gather*} \frac {1}{2} \, \log \left (x^{2} - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.27, size = 9, normalized size = 0.75 \begin {gather*} \frac {1}{2} \, \log \left ({\left | x^{2} - 1 \right |}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.00, size = 14, normalized size = 1.17 \begin {gather*} \frac {\ln \left (x -1\right )}{2}+\frac {\ln \left (x +1\right )}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/(x^2-1),x)

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.44, size = 8, normalized size = 0.67 \begin {gather*} \frac {1}{2} \, \log \left (x^{2} - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.04, size = 8, normalized size = 0.67 \begin {gather*} \frac {\ln \left (x^2-1\right )}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/(x^2 - 1),x)

[Out]

log(x^2 - 1)/2

________________________________________________________________________________________

sympy [A]  time = 0.08, size = 7, normalized size = 0.58 \begin {gather*} \frac {\log {\left (x^{2} - 1 \right )}}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

log(x**2 - 1)/2

________________________________________________________________________________________