Optimal. Leaf size=605 \[ \frac{\tan ^{-1}\left (\frac{-\sqrt{8 a^2-4 a c+b^2}+4 a x+b}{\sqrt{2} \sqrt{-b \left (b-\sqrt{8 a^2-4 a c+b^2}\right )+4 a^2+2 a c}}\right ) \left (-a \left (A \left (b-\sqrt{8 a^2-4 a c+b^2}\right )-C \sqrt{8 a^2-4 a c+b^2}+b C+2 c D\right )+b D \left (b-\sqrt{8 a^2-4 a c+b^2}\right )+4 a^2 B\right )}{\sqrt{2} a \sqrt{8 a^2-4 a c+b^2} \sqrt{-b \left (b-\sqrt{8 a^2-4 a c+b^2}\right )+4 a^2+2 a c}}-\frac{\tan ^{-1}\left (\frac{\sqrt{8 a^2-4 a c+b^2}+4 a x+b}{\sqrt{2} \sqrt{-b \left (\sqrt{8 a^2-4 a c+b^2}+b\right )+4 a^2+2 a c}}\right ) \left (-a \left (A \left (\sqrt{8 a^2-4 a c+b^2}+b\right )+C \sqrt{8 a^2-4 a c+b^2}+b C+2 c D\right )+b D \left (\sqrt{8 a^2-4 a c+b^2}+b\right )+4 a^2 B\right )}{\sqrt{2} a \sqrt{8 a^2-4 a c+b^2} \sqrt{-b \left (\sqrt{8 a^2-4 a c+b^2}+b\right )+4 a^2+2 a c}}-\frac{\log \left (x \left (b-\sqrt{8 a^2-4 a c+b^2}\right )+2 a x^2+2 a\right ) \left (D \left (b-\sqrt{8 a^2-4 a c+b^2}\right )+2 a (A-C)\right )}{4 a \sqrt{8 a^2-4 a c+b^2}}+\frac{\log \left (x \left (\sqrt{8 a^2-4 a c+b^2}+b\right )+2 a x^2+2 a\right ) \left (D \left (\sqrt{8 a^2-4 a c+b^2}+b\right )+2 a (A-C)\right )}{4 a \sqrt{8 a^2-4 a c+b^2}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 10.6993, antiderivative size = 605, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 5, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.132 \[ \frac{\tan ^{-1}\left (\frac{-\sqrt{8 a^2-4 a c+b^2}+4 a x+b}{\sqrt{2} \sqrt{-b \left (b-\sqrt{8 a^2-4 a c+b^2}\right )+4 a^2+2 a c}}\right ) \left (-a \left (A \left (b-\sqrt{8 a^2-4 a c+b^2}\right )-C \sqrt{8 a^2-4 a c+b^2}+b C+2 c D\right )+b D \left (b-\sqrt{8 a^2-4 a c+b^2}\right )+4 a^2 B\right )}{\sqrt{2} a \sqrt{8 a^2-4 a c+b^2} \sqrt{-b \left (b-\sqrt{8 a^2-4 a c+b^2}\right )+4 a^2+2 a c}}-\frac{\tan ^{-1}\left (\frac{\sqrt{8 a^2-4 a c+b^2}+4 a x+b}{\sqrt{2} \sqrt{-b \left (\sqrt{8 a^2-4 a c+b^2}+b\right )+4 a^2+2 a c}}\right ) \left (-a \left (A \left (\sqrt{8 a^2-4 a c+b^2}+b\right )+C \sqrt{8 a^2-4 a c+b^2}+b C+2 c D\right )+b D \left (\sqrt{8 a^2-4 a c+b^2}+b\right )+4 a^2 B\right )}{\sqrt{2} a \sqrt{8 a^2-4 a c+b^2} \sqrt{-b \left (\sqrt{8 a^2-4 a c+b^2}+b\right )+4 a^2+2 a c}}-\frac{\log \left (x \left (b-\sqrt{8 a^2-4 a c+b^2}\right )+2 a x^2+2 a\right ) \left (D \left (b-\sqrt{8 a^2-4 a c+b^2}\right )+2 a (A-C)\right )}{4 a \sqrt{8 a^2-4 a c+b^2}}+\frac{\log \left (x \left (\sqrt{8 a^2-4 a c+b^2}+b\right )+2 a x^2+2 a\right ) \left (D \left (\sqrt{8 a^2-4 a c+b^2}+b\right )+2 a (A-C)\right )}{4 a \sqrt{8 a^2-4 a c+b^2}} \]
Antiderivative was successfully verified.
[In] Int[(A + B*x + C*x^2 + D*x^3)/(a + b*x + c*x^2 + b*x^3 + a*x^4),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((D*x**3+C*x**2+B*x+A)/(a*x**4+b*x**3+c*x**2+b*x+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 0.117919, size = 98, normalized size = 0.16 \[ \text{RootSum}\left [\text{$\#$1}^4 a+\text{$\#$1}^3 b+\text{$\#$1}^2 c+\text{$\#$1} b+a\&,\frac{\text{$\#$1}^3 D \log (x-\text{$\#$1})+\text{$\#$1}^2 C \log (x-\text{$\#$1})+A \log (x-\text{$\#$1})+\text{$\#$1} B \log (x-\text{$\#$1})}{4 \text{$\#$1}^3 a+3 \text{$\#$1}^2 b+2 \text{$\#$1} c+b}\&\right ] \]
Antiderivative was successfully verified.
[In] Integrate[(A + B*x + C*x^2 + D*x^3)/(a + b*x + c*x^2 + b*x^3 + a*x^4),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.071, size = 2105, normalized size = 3.5 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((D*x^3+C*x^2+B*x+A)/(a*x^4+b*x^3+c*x^2+b*x+a),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{D x^{3} + C x^{2} + B x + A}{a x^{4} + b x^{3} + c x^{2} + b x + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((D*x^3 + C*x^2 + B*x + A)/(a*x^4 + b*x^3 + c*x^2 + b*x + a),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((D*x^3 + C*x^2 + B*x + A)/(a*x^4 + b*x^3 + c*x^2 + b*x + a),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((D*x**3+C*x**2+B*x+A)/(a*x**4+b*x**3+c*x**2+b*x+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{D x^{3} + C x^{2} + B x + A}{a x^{4} + b x^{3} + c x^{2} + b x + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((D*x^3 + C*x^2 + B*x + A)/(a*x^4 + b*x^3 + c*x^2 + b*x + a),x, algorithm="giac")
[Out]