Optimal. Leaf size=26 \[ \frac{x^2}{2}+\frac{1}{7} \log (3-x)-\frac{1}{7} \log (x+4) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0249968, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.15 \[ \frac{x^2}{2}+\frac{1}{7} \log (3-x)-\frac{1}{7} \log (x+4) \]
Antiderivative was successfully verified.
[In] Int[(1 - 12*x + x^2 + x^3)/(-12 + x + x^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \frac{\log{\left (- x + 3 \right )}}{7} - \frac{\log{\left (x + 4 \right )}}{7} + \int x\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((x**3+x**2-12*x+1)/(x**2+x-12),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.00847475, size = 26, normalized size = 1. \[ \frac{x^2}{2}+\frac{1}{7} \log (3-x)-\frac{1}{7} \log (x+4) \]
Antiderivative was successfully verified.
[In] Integrate[(1 - 12*x + x^2 + x^3)/(-12 + x + x^2),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.009, size = 19, normalized size = 0.7 \[{\frac{{x}^{2}}{2}}+{\frac{\ln \left ( -3+x \right ) }{7}}-{\frac{\ln \left ( 4+x \right ) }{7}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((x^3+x^2-12*x+1)/(x^2+x-12),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.42766, size = 24, normalized size = 0.92 \[ \frac{1}{2} \, x^{2} - \frac{1}{7} \, \log \left (x + 4\right ) + \frac{1}{7} \, \log \left (x - 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^3 + x^2 - 12*x + 1)/(x^2 + x - 12),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.202811, size = 24, normalized size = 0.92 \[ \frac{1}{2} \, x^{2} - \frac{1}{7} \, \log \left (x + 4\right ) + \frac{1}{7} \, \log \left (x - 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^3 + x^2 - 12*x + 1)/(x^2 + x - 12),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 0.089927, size = 17, normalized size = 0.65 \[ \frac{x^{2}}{2} + \frac{\log{\left (x - 3 \right )}}{7} - \frac{\log{\left (x + 4 \right )}}{7} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x**3+x**2-12*x+1)/(x**2+x-12),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.213389, size = 27, normalized size = 1.04 \[ \frac{1}{2} \, x^{2} - \frac{1}{7} \,{\rm ln}\left ({\left | x + 4 \right |}\right ) + \frac{1}{7} \,{\rm ln}\left ({\left | x - 3 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^3 + x^2 - 12*x + 1)/(x^2 + x - 12),x, algorithm="giac")
[Out]