Optimal. Leaf size=138 \[ \frac {1}{5} \left (a^2 b^5+b^5\right ) \text {RootSum}\left [-\text {$\#$1}^{10}+5 \text {$\#$1}^8 a-10 \text {$\#$1}^6 a^2+10 \text {$\#$1}^4 a^3-5 \text {$\#$1}^2 a^4+a^5-a b^6\& ,\frac {\log \left (\sqrt {a+b x}-\text {$\#$1}\right )}{\text {$\#$1}^9-4 \text {$\#$1}^7 a+6 \text {$\#$1}^5 a^2-4 \text {$\#$1}^3 a^3+\text {$\#$1} a^4}\& \right ]-\frac {2 a \sqrt {a+b x}}{b} \]
________________________________________________________________________________________
Rubi [B] time = 1.27, antiderivative size = 417, normalized size of antiderivative = 3.02, number of steps used = 14, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {6740, 6739, 12, 208, 206} \begin {gather*} -\frac {2 \left (a^2+1\right ) \sqrt [5]{b} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}-b^{6/5}}}\right )}{5 a^{9/10} \sqrt {a^{4/5}-b^{6/5}}}+\frac {2 \sqrt [5]{-1} \left (a^2+1\right ) \sqrt [5]{b} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}+\sqrt [5]{-1} b^{6/5}}}\right )}{5 a^{9/10} \sqrt {a^{4/5}+\sqrt [5]{-1} b^{6/5}}}-\frac {2 (-1)^{2/5} \left (a^2+1\right ) \sqrt [5]{b} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}-(-1)^{2/5} b^{6/5}}}\right )}{5 a^{9/10} \sqrt {a^{4/5}-(-1)^{2/5} b^{6/5}}}+\frac {2 (-1)^{3/5} \left (a^2+1\right ) \sqrt [5]{b} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}+(-1)^{3/5} b^{6/5}}}\right )}{5 a^{9/10} \sqrt {a^{4/5}+(-1)^{3/5} b^{6/5}}}-\frac {2 (-1)^{4/5} \left (a^2+1\right ) \sqrt [5]{b} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}-(-1)^{4/5} b^{6/5}}}\right )}{5 a^{9/10} \sqrt {a^{4/5}-(-1)^{4/5} b^{6/5}}}-\frac {2 a \sqrt {a+b x}}{b} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
Rule 12
Rule 206
Rule 208
Rule 6739
Rule 6740
Rubi steps
\begin {align*} \int \frac {b-a x^5}{\sqrt {a+b x} \left (a b+x^5\right )} \, dx &=\frac {2 \operatorname {Subst}\left (\int \frac {b^6+a \left (a-x^2\right )^5}{a b-\frac {\left (a-x^2\right )^5}{b^5}} \, dx,x,\sqrt {a+b x}\right )}{b^6}\\ &=\frac {2 \operatorname {Subst}\left (\int \left (-a b^5-\frac {b^5 \left (-b-a^2 b\right )}{a b-\frac {\left (a-x^2\right )^5}{b^5}}\right ) \, dx,x,\sqrt {a+b x}\right )}{b^6}\\ &=-\frac {2 a \sqrt {a+b x}}{b}+\left (2 \left (1+a^2\right )\right ) \operatorname {Subst}\left (\int \frac {1}{a b-\frac {\left (a-x^2\right )^5}{b^5}} \, dx,x,\sqrt {a+b x}\right )\\ &=-\frac {2 a \sqrt {a+b x}}{b}-\frac {\left (2 \left (1+a^2\right )\right ) \operatorname {Subst}\left (\int \frac {\sqrt [5]{a} b^{6/5}}{a-\sqrt [5]{a} b^{6/5}-x^2} \, dx,x,\sqrt {a+b x}\right )}{5 a b}+\frac {\left (2 \left (1+a^2\right )\right ) \operatorname {Subst}\left (\int \frac {\sqrt [5]{a} b^{6/5}}{\sqrt [5]{-1} a+\sqrt [5]{a} b^{6/5}-\sqrt [5]{-1} x^2} \, dx,x,\sqrt {a+b x}\right )}{5 a b}-\frac {\left (2 \left (1+a^2\right )\right ) \operatorname {Subst}\left (\int \frac {\sqrt [5]{a} b^{6/5}}{(-1)^{2/5} a-\sqrt [5]{a} b^{6/5}-(-1)^{2/5} x^2} \, dx,x,\sqrt {a+b x}\right )}{5 a b}+\frac {\left (2 \left (1+a^2\right )\right ) \operatorname {Subst}\left (\int \frac {\sqrt [5]{a} b^{6/5}}{(-1)^{3/5} a+\sqrt [5]{a} b^{6/5}-(-1)^{3/5} x^2} \, dx,x,\sqrt {a+b x}\right )}{5 a b}-\frac {\left (2 \left (1+a^2\right )\right ) \operatorname {Subst}\left (\int \frac {\sqrt [5]{a} b^{6/5}}{(-1)^{4/5} a-\sqrt [5]{a} b^{6/5}-(-1)^{4/5} x^2} \, dx,x,\sqrt {a+b x}\right )}{5 a b}\\ &=-\frac {2 a \sqrt {a+b x}}{b}-\frac {\left (2 \left (1+a^2\right ) \sqrt [5]{b}\right ) \operatorname {Subst}\left (\int \frac {1}{a-\sqrt [5]{a} b^{6/5}-x^2} \, dx,x,\sqrt {a+b x}\right )}{5 a^{4/5}}+\frac {\left (2 \left (1+a^2\right ) \sqrt [5]{b}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt [5]{-1} a+\sqrt [5]{a} b^{6/5}-\sqrt [5]{-1} x^2} \, dx,x,\sqrt {a+b x}\right )}{5 a^{4/5}}-\frac {\left (2 \left (1+a^2\right ) \sqrt [5]{b}\right ) \operatorname {Subst}\left (\int \frac {1}{(-1)^{2/5} a-\sqrt [5]{a} b^{6/5}-(-1)^{2/5} x^2} \, dx,x,\sqrt {a+b x}\right )}{5 a^{4/5}}+\frac {\left (2 \left (1+a^2\right ) \sqrt [5]{b}\right ) \operatorname {Subst}\left (\int \frac {1}{(-1)^{3/5} a+\sqrt [5]{a} b^{6/5}-(-1)^{3/5} x^2} \, dx,x,\sqrt {a+b x}\right )}{5 a^{4/5}}-\frac {\left (2 \left (1+a^2\right ) \sqrt [5]{b}\right ) \operatorname {Subst}\left (\int \frac {1}{(-1)^{4/5} a-\sqrt [5]{a} b^{6/5}-(-1)^{4/5} x^2} \, dx,x,\sqrt {a+b x}\right )}{5 a^{4/5}}\\ &=-\frac {2 a \sqrt {a+b x}}{b}-\frac {2 \left (1+a^2\right ) \sqrt [5]{b} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}-b^{6/5}}}\right )}{5 a^{9/10} \sqrt {a^{4/5}-b^{6/5}}}+\frac {2 \sqrt [5]{-1} \left (1+a^2\right ) \sqrt [5]{b} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}+\sqrt [5]{-1} b^{6/5}}}\right )}{5 a^{9/10} \sqrt {a^{4/5}+\sqrt [5]{-1} b^{6/5}}}-\frac {2 (-1)^{2/5} \left (1+a^2\right ) \sqrt [5]{b} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}-(-1)^{2/5} b^{6/5}}}\right )}{5 a^{9/10} \sqrt {a^{4/5}-(-1)^{2/5} b^{6/5}}}+\frac {2 (-1)^{3/5} \left (1+a^2\right ) \sqrt [5]{b} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}+(-1)^{3/5} b^{6/5}}}\right )}{5 a^{9/10} \sqrt {a^{4/5}+(-1)^{3/5} b^{6/5}}}-\frac {2 (-1)^{4/5} \left (1+a^2\right ) \sqrt [5]{b} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}-(-1)^{4/5} b^{6/5}}}\right )}{5 a^{9/10} \sqrt {a^{4/5}-(-1)^{4/5} b^{6/5}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 1.64, size = 393, normalized size = 2.85 \begin {gather*} \frac {2 \left (-5 a^{19/10} \sqrt {a+b x}-\frac {\left (a^2+1\right ) b^{6/5} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}-b^{6/5}}}\right )}{\sqrt {a^{4/5}-b^{6/5}}}+\frac {\sqrt [5]{-1} \left (a^2+1\right ) b^{6/5} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}+\sqrt [5]{-1} b^{6/5}}}\right )}{\sqrt {a^{4/5}+\sqrt [5]{-1} b^{6/5}}}-\frac {(-1)^{2/5} \left (a^2+1\right ) b^{6/5} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}-(-1)^{2/5} b^{6/5}}}\right )}{\sqrt {a^{4/5}-(-1)^{2/5} b^{6/5}}}+\frac {(-1)^{3/5} \left (a^2+1\right ) b^{6/5} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}+(-1)^{3/5} b^{6/5}}}\right )}{\sqrt {a^{4/5}+(-1)^{3/5} b^{6/5}}}-\frac {(-1)^{4/5} \left (a^2+1\right ) b^{6/5} \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt [10]{a} \sqrt {a^{4/5}-(-1)^{4/5} b^{6/5}}}\right )}{\sqrt {a^{4/5}-(-1)^{4/5} b^{6/5}}}\right )}{5 a^{9/10} b} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.11, size = 138, normalized size = 1.00 \begin {gather*} -\frac {2 a \sqrt {a+b x}}{b}+\frac {1}{5} \left (b^5+a^2 b^5\right ) \text {RootSum}\left [a^5-a b^6-5 a^4 \text {$\#$1}^2+10 a^3 \text {$\#$1}^4-10 a^2 \text {$\#$1}^6+5 a \text {$\#$1}^8-\text {$\#$1}^{10}\&,\frac {\log \left (\sqrt {a+b x}-\text {$\#$1}\right )}{a^4 \text {$\#$1}-4 a^3 \text {$\#$1}^3+6 a^2 \text {$\#$1}^5-4 a \text {$\#$1}^7+\text {$\#$1}^9}\&\right ] \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.95, size = 123, normalized size = 0.89
method | result | size |
derivativedivides | \(-\frac {2 \left (a \sqrt {b x +a}+\frac {b^{6} \left (a^{2}+1\right ) \left (\munderset {\textit {\_R} =\RootOf \left (\textit {\_Z}^{10}-5 a \,\textit {\_Z}^{8}+10 a^{2} \textit {\_Z}^{6}-10 a^{3} \textit {\_Z}^{4}+a \,b^{6}+5 a^{4} \textit {\_Z}^{2}-a^{5}\right )}{\sum }\frac {\ln \left (\sqrt {b x +a}-\textit {\_R} \right )}{-\textit {\_R}^{9}+4 \textit {\_R}^{7} a -6 \textit {\_R}^{5} a^{2}+4 \textit {\_R}^{3} a^{3}-\textit {\_R} \,a^{4}}\right )}{10}\right )}{b}\) | \(123\) |
default | \(-\frac {2 \left (a \sqrt {b x +a}+\frac {b^{6} \left (a^{2}+1\right ) \left (\munderset {\textit {\_R} =\RootOf \left (\textit {\_Z}^{10}-5 a \,\textit {\_Z}^{8}+10 a^{2} \textit {\_Z}^{6}-10 a^{3} \textit {\_Z}^{4}+a \,b^{6}+5 a^{4} \textit {\_Z}^{2}-a^{5}\right )}{\sum }\frac {\ln \left (\sqrt {b x +a}-\textit {\_R} \right )}{-\textit {\_R}^{9}+4 \textit {\_R}^{7} a -6 \textit {\_R}^{5} a^{2}+4 \textit {\_R}^{3} a^{3}-\textit {\_R} \,a^{4}}\right )}{10}\right )}{b}\) | \(123\) |
risch | \(-\frac {2 a \sqrt {b x +a}}{b}+\frac {\left (\munderset {\textit {\_R} =\RootOf \left (\textit {\_Z}^{10}-5 a \,\textit {\_Z}^{8}+10 a^{2} \textit {\_Z}^{6}-10 a^{3} \textit {\_Z}^{4}+a \,b^{6}+5 a^{4} \textit {\_Z}^{2}-a^{5}\right )}{\sum }\frac {\ln \left (\sqrt {b x +a}-\textit {\_R} \right )}{\textit {\_R}^{9}-4 \textit {\_R}^{7} a +6 \textit {\_R}^{5} a^{2}-4 \textit {\_R}^{3} a^{3}+\textit {\_R} \,a^{4}}\right ) a^{2} b^{5}}{5}+\frac {b^{5} \left (\munderset {\textit {\_R} =\RootOf \left (\textit {\_Z}^{10}-5 a \,\textit {\_Z}^{8}+10 a^{2} \textit {\_Z}^{6}-10 a^{3} \textit {\_Z}^{4}+a \,b^{6}+5 a^{4} \textit {\_Z}^{2}-a^{5}\right )}{\sum }\frac {\ln \left (\sqrt {b x +a}-\textit {\_R} \right )}{\textit {\_R}^{9}-4 \textit {\_R}^{7} a +6 \textit {\_R}^{5} a^{2}-4 \textit {\_R}^{3} a^{3}+\textit {\_R} \,a^{4}}\right )}{5}\) | \(216\) |
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*} -\int \frac {a x^{5} - b}{{\left (x^{5} + a b\right )} \sqrt {b x + a}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.83, size = 1622, normalized size = 11.75
result too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________