Optimal. Leaf size=58 \[ \frac {1}{12} \sqrt {-x+x^4} \left (-a x+4 b x+2 a x^4\right )+\frac {1}{12} (-a-4 b) \tanh ^{-1}\left (\frac {x^2}{\sqrt {-x+x^4}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 96, normalized size of antiderivative = 1.66, number of steps
used = 9, number of rules used = 6, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.316, Rules used = {2078, 2029,
2054, 212, 2046, 2049} \begin {gather*} \frac {1}{6} a \sqrt {x^4-x} x^4-\frac {1}{12} a \sqrt {x^4-x} x-\frac {1}{12} a \tanh ^{-1}\left (\frac {x^2}{\sqrt {x^4-x}}\right )+\frac {1}{3} b \sqrt {x^4-x} x-\frac {1}{3} b \tanh ^{-1}\left (\frac {x^2}{\sqrt {x^4-x}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 2029
Rule 2046
Rule 2049
Rule 2054
Rule 2078
Rubi steps
\begin {align*} \int \left (b+a x^3\right ) \sqrt {-x+x^4} \, dx &=\int \left (b \sqrt {-x+x^4}+a x^3 \sqrt {-x+x^4}\right ) \, dx\\ &=a \int x^3 \sqrt {-x+x^4} \, dx+b \int \sqrt {-x+x^4} \, dx\\ &=\frac {1}{3} b x \sqrt {-x+x^4}+\frac {1}{6} a x^4 \sqrt {-x+x^4}-\frac {1}{4} a \int \frac {x^4}{\sqrt {-x+x^4}} \, dx-\frac {1}{2} b \int \frac {x}{\sqrt {-x+x^4}} \, dx\\ &=-\frac {1}{12} a x \sqrt {-x+x^4}+\frac {1}{3} b x \sqrt {-x+x^4}+\frac {1}{6} a x^4 \sqrt {-x+x^4}-\frac {1}{8} a \int \frac {x}{\sqrt {-x+x^4}} \, dx-\frac {1}{3} b \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x^2}{\sqrt {-x+x^4}}\right )\\ &=-\frac {1}{12} a x \sqrt {-x+x^4}+\frac {1}{3} b x \sqrt {-x+x^4}+\frac {1}{6} a x^4 \sqrt {-x+x^4}-\frac {1}{3} b \tanh ^{-1}\left (\frac {x^2}{\sqrt {-x+x^4}}\right )-\frac {1}{12} a \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x^2}{\sqrt {-x+x^4}}\right )\\ &=-\frac {1}{12} a x \sqrt {-x+x^4}+\frac {1}{3} b x \sqrt {-x+x^4}+\frac {1}{6} a x^4 \sqrt {-x+x^4}-\frac {1}{12} a \tanh ^{-1}\left (\frac {x^2}{\sqrt {-x+x^4}}\right )-\frac {1}{3} b \tanh ^{-1}\left (\frac {x^2}{\sqrt {-x+x^4}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 75, normalized size = 1.29 \begin {gather*} \frac {x^2 \left (-1+x^3\right ) \left (4 b+a \left (-1+2 x^3\right )\right )-(a+4 b) \sqrt {x} \sqrt {-1+x^3} \tanh ^{-1}\left (\frac {\sqrt {-1+x^3}}{x^{3/2}}\right )}{12 \sqrt {x \left (-1+x^3\right )}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 1.03, size = 620, normalized size = 10.69 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 54, normalized size = 0.93 \begin {gather*} \frac {1}{24} \, {\left (a + 4 \, b\right )} \log \left (2 \, x^{3} - 2 \, \sqrt {x^{4} - x} x - 1\right ) + \frac {1}{12} \, {\left (2 \, a x^{4} - {\left (a - 4 \, b\right )} x\right )} \sqrt {x^{4} - x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {x \left (x - 1\right ) \left (x^{2} + x + 1\right )} \left (a x^{3} + b\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 61, normalized size = 1.05 \begin {gather*} \frac {1}{12} \, {\left (2 \, a x^{3} - a + 4 \, b\right )} \sqrt {x^{4} - x} x - \frac {1}{24} \, {\left (a + 4 \, b\right )} {\left (\log \left (\sqrt {-\frac {1}{x^{3}} + 1} + 1\right ) - \log \left ({\left | \sqrt {-\frac {1}{x^{3}} + 1} - 1 \right |}\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \sqrt {x^4-x}\,\left (a\,x^3+b\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________