Optimal. Leaf size=149 \[ \frac {4 \left (b+a x^3\right ) \left (b x+a x^4\right )^{3/4}}{21 b^2 x^6}-\frac {2^{3/4} \left (a^{7/4}+a^{3/4} b\right ) \text {ArcTan}\left (\frac {\sqrt [4]{2} \sqrt [4]{a} \left (b x+a x^4\right )^{3/4}}{b+a x^3}\right )}{3 b^2}-\frac {2^{3/4} \left (a^{7/4}+a^{3/4} b\right ) \tanh ^{-1}\left (\frac {\sqrt [4]{2} \sqrt [4]{a} \left (b x+a x^4\right )^{3/4}}{b+a x^3}\right )}{3 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.77, antiderivative size = 253, normalized size of antiderivative = 1.70, number of steps
used = 14, number of rules used = 11, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.314, Rules used = {2081, 6857,
277, 270, 477, 476, 508, 472, 218, 212, 209} \begin {gather*} -\frac {2^{3/4} a^{3/4} \sqrt [4]{x} (a+b) \sqrt [4]{a x^3+b} \text {ArcTan}\left (\frac {\sqrt [4]{2} \sqrt [4]{a} x^{3/4}}{\sqrt [4]{a x^3+b}}\right )}{3 b^2 \sqrt [4]{a x^4+b x}}-\frac {2^{3/4} a^{3/4} \sqrt [4]{x} (a+b) \sqrt [4]{a x^3+b} \tanh ^{-1}\left (\frac {\sqrt [4]{2} \sqrt [4]{a} x^{3/4}}{\sqrt [4]{a x^3+b}}\right )}{3 b^2 \sqrt [4]{a x^4+b x}}+\frac {4 (a+b) \left (a x^3+b\right )^2}{21 a b^2 x^5 \sqrt [4]{a x^4+b x}}-\frac {4 \left (a x^3+b\right )}{21 a x^5 \sqrt [4]{a x^4+b x}}-\frac {4 \left (a x^3+b\right )}{21 b x^2 \sqrt [4]{a x^4+b x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 218
Rule 270
Rule 277
Rule 472
Rule 476
Rule 477
Rule 508
Rule 2081
Rule 6857
Rubi steps
\begin {align*} \int \frac {b+a x^6}{x^6 \left (-b+a x^3\right ) \sqrt [4]{b x+a x^4}} \, dx &=\frac {\left (\sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \int \frac {b+a x^6}{x^{25/4} \left (-b+a x^3\right ) \sqrt [4]{b+a x^3}} \, dx}{\sqrt [4]{b x+a x^4}}\\ &=\frac {\left (\sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \int \left (\frac {b}{a x^{25/4} \sqrt [4]{b+a x^3}}+\frac {1}{x^{13/4} \sqrt [4]{b+a x^3}}+\frac {a b+b^2}{a x^{25/4} \left (-b+a x^3\right ) \sqrt [4]{b+a x^3}}\right ) \, dx}{\sqrt [4]{b x+a x^4}}\\ &=\frac {\left (\sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \int \frac {1}{x^{13/4} \sqrt [4]{b+a x^3}} \, dx}{\sqrt [4]{b x+a x^4}}+\frac {\left (b \sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \int \frac {1}{x^{25/4} \sqrt [4]{b+a x^3}} \, dx}{a \sqrt [4]{b x+a x^4}}+\frac {\left (b (a+b) \sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \int \frac {1}{x^{25/4} \left (-b+a x^3\right ) \sqrt [4]{b+a x^3}} \, dx}{a \sqrt [4]{b x+a x^4}}\\ &=-\frac {4 \left (b+a x^3\right )}{21 a x^5 \sqrt [4]{b x+a x^4}}-\frac {4 \left (b+a x^3\right )}{9 b x^2 \sqrt [4]{b x+a x^4}}-\frac {\left (4 \sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \int \frac {1}{x^{13/4} \sqrt [4]{b+a x^3}} \, dx}{7 \sqrt [4]{b x+a x^4}}+\frac {\left (4 b (a+b) \sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \text {Subst}\left (\int \frac {1}{x^{22} \left (-b+a x^{12}\right ) \sqrt [4]{b+a x^{12}}} \, dx,x,\sqrt [4]{x}\right )}{a \sqrt [4]{b x+a x^4}}\\ &=-\frac {4 \left (b+a x^3\right )}{21 a x^5 \sqrt [4]{b x+a x^4}}-\frac {4 \left (b+a x^3\right )}{21 b x^2 \sqrt [4]{b x+a x^4}}+\frac {\left (4 b (a+b) \sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \text {Subst}\left (\int \frac {1}{x^8 \left (-b+a x^4\right ) \sqrt [4]{b+a x^4}} \, dx,x,x^{3/4}\right )}{3 a \sqrt [4]{b x+a x^4}}\\ &=-\frac {4 \left (b+a x^3\right )}{21 a x^5 \sqrt [4]{b x+a x^4}}-\frac {4 \left (b+a x^3\right )}{21 b x^2 \sqrt [4]{b x+a x^4}}+\frac {\left (4 (a+b) \sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \text {Subst}\left (\int \frac {\left (1-a x^4\right )^2}{x^8 \left (-b+2 a b x^4\right )} \, dx,x,\frac {x^{3/4}}{\sqrt [4]{b+a x^3}}\right )}{3 a b \sqrt [4]{b x+a x^4}}\\ &=-\frac {4 \left (b+a x^3\right )}{21 a x^5 \sqrt [4]{b x+a x^4}}-\frac {4 \left (b+a x^3\right )}{21 b x^2 \sqrt [4]{b x+a x^4}}+\frac {\left (4 (a+b) \sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \text {Subst}\left (\int \left (-\frac {1}{b x^8}+\frac {a^2}{b \left (-1+2 a x^4\right )}\right ) \, dx,x,\frac {x^{3/4}}{\sqrt [4]{b+a x^3}}\right )}{3 a b \sqrt [4]{b x+a x^4}}\\ &=-\frac {4 \left (b+a x^3\right )}{21 a x^5 \sqrt [4]{b x+a x^4}}-\frac {4 \left (b+a x^3\right )}{21 b x^2 \sqrt [4]{b x+a x^4}}+\frac {4 (a+b) \left (b+a x^3\right )^2}{21 a b^2 x^5 \sqrt [4]{b x+a x^4}}+\frac {\left (4 a (a+b) \sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \text {Subst}\left (\int \frac {1}{-1+2 a x^4} \, dx,x,\frac {x^{3/4}}{\sqrt [4]{b+a x^3}}\right )}{3 b^2 \sqrt [4]{b x+a x^4}}\\ &=-\frac {4 \left (b+a x^3\right )}{21 a x^5 \sqrt [4]{b x+a x^4}}-\frac {4 \left (b+a x^3\right )}{21 b x^2 \sqrt [4]{b x+a x^4}}+\frac {4 (a+b) \left (b+a x^3\right )^2}{21 a b^2 x^5 \sqrt [4]{b x+a x^4}}-\frac {\left (2 a (a+b) \sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \text {Subst}\left (\int \frac {1}{1-\sqrt {2} \sqrt {a} x^2} \, dx,x,\frac {x^{3/4}}{\sqrt [4]{b+a x^3}}\right )}{3 b^2 \sqrt [4]{b x+a x^4}}-\frac {\left (2 a (a+b) \sqrt [4]{x} \sqrt [4]{b+a x^3}\right ) \text {Subst}\left (\int \frac {1}{1+\sqrt {2} \sqrt {a} x^2} \, dx,x,\frac {x^{3/4}}{\sqrt [4]{b+a x^3}}\right )}{3 b^2 \sqrt [4]{b x+a x^4}}\\ &=-\frac {4 \left (b+a x^3\right )}{21 a x^5 \sqrt [4]{b x+a x^4}}-\frac {4 \left (b+a x^3\right )}{21 b x^2 \sqrt [4]{b x+a x^4}}+\frac {4 (a+b) \left (b+a x^3\right )^2}{21 a b^2 x^5 \sqrt [4]{b x+a x^4}}-\frac {2^{3/4} a^{3/4} (a+b) \sqrt [4]{x} \sqrt [4]{b+a x^3} \tan ^{-1}\left (\frac {\sqrt [4]{2} \sqrt [4]{a} x^{3/4}}{\sqrt [4]{b+a x^3}}\right )}{3 b^2 \sqrt [4]{b x+a x^4}}-\frac {2^{3/4} a^{3/4} (a+b) \sqrt [4]{x} \sqrt [4]{b+a x^3} \tanh ^{-1}\left (\frac {\sqrt [4]{2} \sqrt [4]{a} x^{3/4}}{\sqrt [4]{b+a x^3}}\right )}{3 b^2 \sqrt [4]{b x+a x^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 15.16, size = 97, normalized size = 0.65 \begin {gather*} \frac {4 \left (\left (b+a x^3\right )^2-\frac {7 a (a+b) x^6 \sqrt [4]{1+\frac {a x^3}{b}} \, _2F_1\left (\frac {1}{4},\frac {1}{4};\frac {5}{4};-\frac {2 a x^3}{b-a x^3}\right )}{\sqrt [4]{1-\frac {a x^3}{b}}}\right )}{21 b^2 x^5 \sqrt [4]{x \left (b+a x^3\right )}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {a \,x^{6}+b}{x^{6} \left (a \,x^{3}-b \right ) \left (a \,x^{4}+b x \right )^{\frac {1}{4}}}\, dx\]
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 [F(-1)] Timed out
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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a x^{6} + b}{x^{6} \sqrt [4]{x \left (a x^{3} + b\right )} \left (a x^{3} - b\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 272 vs.
\(2 (117) = 234\).
time = 0.41, size = 272, normalized size = 1.83 \begin {gather*} -\frac {\sqrt {2} {\left (2^{\frac {3}{4}} \left (-a\right )^{\frac {3}{4}} a + 2^{\frac {3}{4}} \left (-a\right )^{\frac {3}{4}} b\right )} \arctan \left (\frac {2^{\frac {1}{4}} {\left (2^{\frac {3}{4}} \left (-a\right )^{\frac {1}{4}} + 2 \, {\left (a + \frac {b}{x^{3}}\right )}^{\frac {1}{4}}\right )}}{2 \, \left (-a\right )^{\frac {1}{4}}}\right )}{6 \, b^{2}} - \frac {\sqrt {2} {\left (2^{\frac {3}{4}} \left (-a\right )^{\frac {3}{4}} a + 2^{\frac {3}{4}} \left (-a\right )^{\frac {3}{4}} b\right )} \arctan \left (-\frac {2^{\frac {1}{4}} {\left (2^{\frac {3}{4}} \left (-a\right )^{\frac {1}{4}} - 2 \, {\left (a + \frac {b}{x^{3}}\right )}^{\frac {1}{4}}\right )}}{2 \, \left (-a\right )^{\frac {1}{4}}}\right )}{6 \, b^{2}} + \frac {\sqrt {2} {\left (2^{\frac {3}{4}} \left (-a\right )^{\frac {3}{4}} a + 2^{\frac {3}{4}} \left (-a\right )^{\frac {3}{4}} b\right )} \log \left (2^{\frac {3}{4}} \left (-a\right )^{\frac {1}{4}} {\left (a + \frac {b}{x^{3}}\right )}^{\frac {1}{4}} + \sqrt {2} \sqrt {-a} + \sqrt {a + \frac {b}{x^{3}}}\right )}{12 \, b^{2}} - \frac {\sqrt {2} {\left (2^{\frac {3}{4}} \left (-a\right )^{\frac {3}{4}} a + 2^{\frac {3}{4}} \left (-a\right )^{\frac {3}{4}} b\right )} \log \left (-2^{\frac {3}{4}} \left (-a\right )^{\frac {1}{4}} {\left (a + \frac {b}{x^{3}}\right )}^{\frac {1}{4}} + \sqrt {2} \sqrt {-a} + \sqrt {a + \frac {b}{x^{3}}}\right )}{12 \, b^{2}} + \frac {4 \, {\left (a + \frac {b}{x^{3}}\right )}^{\frac {7}{4}}}{21 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} -\int \frac {a\,x^6+b}{x^6\,{\left (a\,x^4+b\,x\right )}^{1/4}\,\left (b-a\,x^3\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________