Optimal. Leaf size=35 \[ \frac{x^2}{2}-2 x+\frac{13}{3} \log (4-x)-\frac{22}{3} \log (x+2)+20 \log (x+3) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0735875, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.033 \[ \frac{x^2}{2}-2 x+\frac{13}{3} \log (4-x)-\frac{22}{3} \log (x+2)+20 \log (x+3) \]
Antiderivative was successfully verified.
[In] Int[(2 - 7*x + x^2 - x^3 + x^4)/(-24 - 14*x + x^2 + x^3),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((x**4-x**3+x**2-7*x+2)/(x**3+x**2-14*x-24),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0128668, size = 35, normalized size = 1. \[ \frac{x^2}{2}-2 x+\frac{13}{3} \log (4-x)-\frac{22}{3} \log (x+2)+20 \log (x+3) \]
Antiderivative was successfully verified.
[In] Integrate[(2 - 7*x + x^2 - x^3 + x^4)/(-24 - 14*x + x^2 + x^3),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.013, size = 28, normalized size = 0.8 \[{\frac{{x}^{2}}{2}}-2\,x-{\frac{22\,\ln \left ( 2+x \right ) }{3}}+{\frac{13\,\ln \left ( x-4 \right ) }{3}}+20\,\ln \left ( 3+x \right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((x^4-x^3+x^2-7*x+2)/(x^3+x^2-14*x-24),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.79717, size = 36, normalized size = 1.03 \[ \frac{1}{2} \, x^{2} - 2 \, x + 20 \, \log \left (x + 3\right ) - \frac{22}{3} \, \log \left (x + 2\right ) + \frac{13}{3} \, \log \left (x - 4\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^4 - x^3 + x^2 - 7*x + 2)/(x^3 + x^2 - 14*x - 24),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.255236, size = 36, normalized size = 1.03 \[ \frac{1}{2} \, x^{2} - 2 \, x + 20 \, \log \left (x + 3\right ) - \frac{22}{3} \, \log \left (x + 2\right ) + \frac{13}{3} \, \log \left (x - 4\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^4 - x^3 + x^2 - 7*x + 2)/(x^3 + x^2 - 14*x - 24),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.323575, size = 31, normalized size = 0.89 \[ \frac{x^{2}}{2} - 2 x + \frac{13 \log{\left (x - 4 \right )}}{3} - \frac{22 \log{\left (x + 2 \right )}}{3} + 20 \log{\left (x + 3 \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x**4-x**3+x**2-7*x+2)/(x**3+x**2-14*x-24),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.261888, size = 41, normalized size = 1.17 \[ \frac{1}{2} \, x^{2} - 2 \, x + 20 \,{\rm ln}\left ({\left | x + 3 \right |}\right ) - \frac{22}{3} \,{\rm ln}\left ({\left | x + 2 \right |}\right ) + \frac{13}{3} \,{\rm ln}\left ({\left | x - 4 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^4 - x^3 + x^2 - 7*x + 2)/(x^3 + x^2 - 14*x - 24),x, algorithm="giac")
[Out]