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

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

[Out]

Log[1 - x^2]/2

_______________________________________________________________________________________

Rubi [A]  time = 0.00737657, antiderivative size = 12, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111 \[ \frac{1}{2} \log \left (1-x^2\right ) \]

Antiderivative was successfully verified.

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

[Out]

Log[1 - x^2]/2

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 1.70047, size = 7, normalized size = 0.58 \[ \frac{\log{\left (- x^{2} + 1 \right )}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(x/(x**2-1),x)

[Out]

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

_______________________________________________________________________________________

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

Antiderivative was successfully verified.

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

[Out]

Log[-1 + x^2]/2

_______________________________________________________________________________________

Maple [A]  time = 0.003, size = 14, normalized size = 1.2 \[{\frac{\ln \left ( -1+x \right ) }{2}}+{\frac{\ln \left ( 1+x \right ) }{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(x/(x^2-1),x)

[Out]

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

_______________________________________________________________________________________

Maxima [A]  time = 0.775098, size = 11, normalized size = 0.92 \[ \frac{1}{2} \, \log \left (x^{2} - 1\right ) \]

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)

_______________________________________________________________________________________

Fricas [A]  time = 0.25895, size = 11, normalized size = 0.92 \[ \frac{1}{2} \, \log \left (x^{2} - 1\right ) \]

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)

_______________________________________________________________________________________

Sympy [A]  time = 0.122413, size = 7, normalized size = 0.58 \[ \frac{\log{\left (x^{2} - 1 \right )}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x/(x**2-1),x)

[Out]

log(x**2 - 1)/2

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.259873, size = 12, normalized size = 1. \[ \frac{1}{2} \,{\rm ln}\left ({\left | x^{2} - 1 \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

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

[Out]

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