Optimal. Leaf size=32 \[ -\frac{1}{2 (x+1)}+\frac{1}{4} \log (1-x)-\log (x)+\frac{3}{4} \log (x+1) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0326283, antiderivative size = 32, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.071 \[ -\frac{1}{2 (x+1)}+\frac{1}{4} \log (1-x)-\log (x)+\frac{3}{4} \log (x+1) \]
Antiderivative was successfully verified.
[In] Int[1/((-1 + x)*x*(1 + x)^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 2.0632, size = 24, normalized size = 0.75 \[ - \log{\left (x \right )} + \frac{\log{\left (- x + 1 \right )}}{4} + \frac{3 \log{\left (x + 1 \right )}}{4} - \frac{1}{2 \left (x + 1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(1/(-1+x)/x/(1+x)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0249273, size = 28, normalized size = 0.88 \[ \frac{1}{4} \left (-\frac{2}{x+1}+\log (1-x)-4 \log (x)+3 \log (x+1)\right ) \]
Antiderivative was successfully verified.
[In] Integrate[1/((-1 + x)*x*(1 + x)^2),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.008, size = 25, normalized size = 0.8 \[ -\ln \left ( x \right ) -{\frac{1}{2+2\,x}}+{\frac{3\,\ln \left ( 1+x \right ) }{4}}+{\frac{\ln \left ( -1+x \right ) }{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(1/(-1+x)/x/(1+x)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.37561, size = 32, normalized size = 1. \[ -\frac{1}{2 \,{\left (x + 1\right )}} + \frac{3}{4} \, \log \left (x + 1\right ) + \frac{1}{4} \, \log \left (x - 1\right ) - \log \left (x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/((x + 1)^2*(x - 1)*x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.209791, size = 45, normalized size = 1.41 \[ \frac{3 \,{\left (x + 1\right )} \log \left (x + 1\right ) +{\left (x + 1\right )} \log \left (x - 1\right ) - 4 \,{\left (x + 1\right )} \log \left (x\right ) - 2}{4 \,{\left (x + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/((x + 1)^2*(x - 1)*x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.154346, size = 24, normalized size = 0.75 \[ - \log{\left (x \right )} + \frac{\log{\left (x - 1 \right )}}{4} + \frac{3 \log{\left (x + 1 \right )}}{4} - \frac{1}{2 x + 2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(-1+x)/x/(1+x)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.213504, size = 46, normalized size = 1.44 \[ -\frac{1}{2 \,{\left (x + 1\right )}} -{\rm ln}\left ({\left | -\frac{1}{x + 1} + 1 \right |}\right ) + \frac{1}{4} \,{\rm ln}\left ({\left | -\frac{2}{x + 1} + 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/((x + 1)^2*(x - 1)*x),x, algorithm="giac")
[Out]