Optimal. Leaf size=14 \[ x+2 \log (1-x)-\log (x) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0319346, antiderivative size = 14, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133 \[ x+2 \log (1-x)-\log (x) \]
Antiderivative was successfully verified.
[In] Int[(1 + x^2)/(-x + x^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 2.18017, size = 10, normalized size = 0.71 \[ x - \log{\left (x \right )} + 2 \log{\left (- x + 1 \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((x**2+1)/(x**2-x),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.00492774, size = 14, normalized size = 1. \[ x+2 \log (1-x)-\log (x) \]
Antiderivative was successfully verified.
[In] Integrate[(1 + x^2)/(-x + x^2),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.009, size = 13, normalized size = 0.9 \[ x-\ln \left ( x \right ) +2\,\ln \left ( -1+x \right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((x^2+1)/(x^2-x),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.35165, size = 16, normalized size = 1.14 \[ x + 2 \, \log \left (x - 1\right ) - \log \left (x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^2 + 1)/(x^2 - x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.195945, size = 16, normalized size = 1.14 \[ x + 2 \, \log \left (x - 1\right ) - \log \left (x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^2 + 1)/(x^2 - x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.095633, size = 10, normalized size = 0.71 \[ x - \log{\left (x \right )} + 2 \log{\left (x - 1 \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x**2+1)/(x**2-x),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.205721, size = 19, normalized size = 1.36 \[ x + 2 \,{\rm ln}\left ({\left | x - 1 \right |}\right ) -{\rm ln}\left ({\left | x \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^2 + 1)/(x^2 - x),x, algorithm="giac")
[Out]