Optimal. Leaf size=39 \[ \frac{x+3}{2 \left (1-x^2\right )}-\frac{3}{4} \log (1-x)+2 \log (x)-\frac{5}{4} \log (x+1) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0671782, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105 \[ \frac{x+3}{2 \left (1-x^2\right )}-\frac{3}{4} \log (1-x)+2 \log (x)-\frac{5}{4} \log (x+1) \]
Antiderivative was successfully verified.
[In] Int[(2 + x^2 + x^3)/(x*(-1 + x^2)^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 6.45137, size = 31, normalized size = 0.79 \[ \frac{x \left (1 + \frac{3}{x}\right )}{2 \left (- x^{2} + 1\right )} - \log{\left (x \right )} + \frac{3 \log{\left (- x + 1 \right )}}{4} + \frac{\log{\left (x + 1 \right )}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((x**3+x**2+2)/x/(x**2-1)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0280024, size = 47, normalized size = 1.21 \[ \frac{1}{4} \left (-\frac{4}{x^2-1}-4 \log \left (1-x^2\right )-\frac{2}{x-1}+\log (1-x)+8 \log (x)-\log (x+1)\right ) \]
Antiderivative was successfully verified.
[In] Integrate[(2 + x^2 + x^3)/(x*(-1 + x^2)^2),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.016, size = 32, normalized size = 0.8 \[{\frac{1}{2\,x+2}}-{\frac{5\,\ln \left ( 1+x \right ) }{4}}+2\,\ln \left ( x \right ) - \left ( -1+x \right ) ^{-1}-{\frac{3\,\ln \left ( -1+x \right ) }{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((x^3+x^2+2)/x/(x^2-1)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.3695, size = 39, normalized size = 1. \[ -\frac{x + 3}{2 \,{\left (x^{2} - 1\right )}} - \frac{5}{4} \, \log \left (x + 1\right ) - \frac{3}{4} \, \log \left (x - 1\right ) + 2 \, \log \left (x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^3 + x^2 + 2)/((x^2 - 1)^2*x),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.202227, size = 61, normalized size = 1.56 \[ -\frac{5 \,{\left (x^{2} - 1\right )} \log \left (x + 1\right ) + 3 \,{\left (x^{2} - 1\right )} \log \left (x - 1\right ) - 8 \,{\left (x^{2} - 1\right )} \log \left (x\right ) + 2 \, x + 6}{4 \,{\left (x^{2} - 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^3 + x^2 + 2)/((x^2 - 1)^2*x),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.172215, size = 31, normalized size = 0.79 \[ - \frac{x + 3}{2 x^{2} - 2} + 2 \log{\left (x \right )} - \frac{3 \log{\left (x - 1 \right )}}{4} - \frac{5 \log{\left (x + 1 \right )}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x**3+x**2+2)/x/(x**2-1)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.19948, size = 47, normalized size = 1.21 \[ -\frac{x + 3}{2 \,{\left (x + 1\right )}{\left (x - 1\right )}} - \frac{5}{4} \,{\rm ln}\left ({\left | x + 1 \right |}\right ) - \frac{3}{4} \,{\rm ln}\left ({\left | x - 1 \right |}\right ) + 2 \,{\rm ln}\left ({\left | x \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^3 + x^2 + 2)/((x^2 - 1)^2*x),x, algorithm="giac")
[Out]