Optimal. Leaf size=33 \[ \frac {2 \sqrt {b+a x^3}}{x}-2 \tanh ^{-1}\left (\frac {x}{\sqrt {b+a x^3}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [F]
time = 0.83, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps
used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {}
\begin {gather*} \int \frac {\left (-2 b+a x^3\right ) \sqrt {b+a x^3}}{x^2 \left (b-x^2+a x^3\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {\left (-2 b+a x^3\right ) \sqrt {b+a x^3}}{x^2 \left (b-x^2+a x^3\right )} \, dx &=\int \left (-\frac {2 \sqrt {b+a x^3}}{x^2}+\frac {(-2+3 a x) \sqrt {b+a x^3}}{b-x^2+a x^3}\right ) \, dx\\ &=-\left (2 \int \frac {\sqrt {b+a x^3}}{x^2} \, dx\right )+\int \frac {(-2+3 a x) \sqrt {b+a x^3}}{b-x^2+a x^3} \, dx\\ &=\frac {2 \sqrt {b+a x^3}}{x}-(3 a) \int \frac {x}{\sqrt {b+a x^3}} \, dx+\int \left (-\frac {2 \sqrt {b+a x^3}}{b-x^2+a x^3}+\frac {3 a x \sqrt {b+a x^3}}{b-x^2+a x^3}\right ) \, dx\\ &=\frac {2 \sqrt {b+a x^3}}{x}-2 \int \frac {\sqrt {b+a x^3}}{b-x^2+a x^3} \, dx-\left (3 a^{2/3}\right ) \int \frac {\left (1-\sqrt {3}\right ) \sqrt [3]{b}+\sqrt [3]{a} x}{\sqrt {b+a x^3}} \, dx+(3 a) \int \frac {x \sqrt {b+a x^3}}{b-x^2+a x^3} \, dx-\left (3 \sqrt {2 \left (2-\sqrt {3}\right )} a^{2/3} \sqrt [3]{b}\right ) \int \frac {1}{\sqrt {b+a x^3}} \, dx\\ &=\frac {2 \sqrt {b+a x^3}}{x}-\frac {6 \sqrt [3]{a} \sqrt {b+a x^3}}{\left (1+\sqrt {3}\right ) \sqrt [3]{b}+\sqrt [3]{a} x}+\frac {3 \sqrt [4]{3} \sqrt {2-\sqrt {3}} \sqrt [3]{a} \sqrt [3]{b} \left (\sqrt [3]{b}+\sqrt [3]{a} x\right ) \sqrt {\frac {b^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3} x^2}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{b}+\sqrt [3]{a} x\right )^2}} E\left (\sin ^{-1}\left (\frac {\left (1-\sqrt {3}\right ) \sqrt [3]{b}+\sqrt [3]{a} x}{\left (1+\sqrt {3}\right ) \sqrt [3]{b}+\sqrt [3]{a} x}\right )|-7-4 \sqrt {3}\right )}{\sqrt {\frac {\sqrt [3]{b} \left (\sqrt [3]{b}+\sqrt [3]{a} x\right )}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{b}+\sqrt [3]{a} x\right )^2}} \sqrt {b+a x^3}}-\frac {2 \sqrt {2} 3^{3/4} \sqrt [3]{a} \sqrt [3]{b} \left (\sqrt [3]{b}+\sqrt [3]{a} x\right ) \sqrt {\frac {b^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+a^{2/3} x^2}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{b}+\sqrt [3]{a} x\right )^2}} F\left (\sin ^{-1}\left (\frac {\left (1-\sqrt {3}\right ) \sqrt [3]{b}+\sqrt [3]{a} x}{\left (1+\sqrt {3}\right ) \sqrt [3]{b}+\sqrt [3]{a} x}\right )|-7-4 \sqrt {3}\right )}{\sqrt {\frac {\sqrt [3]{b} \left (\sqrt [3]{b}+\sqrt [3]{a} x\right )}{\left (\left (1+\sqrt {3}\right ) \sqrt [3]{b}+\sqrt [3]{a} x\right )^2}} \sqrt {b+a x^3}}-2 \int \frac {\sqrt {b+a x^3}}{b-x^2+a x^3} \, dx+(3 a) \int \frac {x \sqrt {b+a x^3}}{b-x^2+a x^3} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.49, size = 33, normalized size = 1.00 \begin {gather*} \frac {2 \sqrt {b+a x^3}}{x}-2 \tanh ^{-1}\left (\frac {x}{\sqrt {b+a x^3}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 2.04, size = 841, normalized size = 25.48
method | result | size |
default | \(\text {Expression too large to display}\) | \(841\) |
risch | \(\text {Expression too large to display}\) | \(841\) |
elliptic | \(\text {Expression too large to display}\) | \(841\) |
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 = 14.71, size = 56, normalized size = 1.70 \begin {gather*} \frac {x \log \left (\frac {a x^{3} + x^{2} - 2 \, \sqrt {a x^{3} + b} x + b}{a x^{3} - x^{2} + b}\right ) + 2 \, \sqrt {a x^{3} + b}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [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]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.92, size = 43, normalized size = 1.30 \begin {gather*} \ln \left (\frac {x-\sqrt {a\,x^3+b}}{x+\sqrt {a\,x^3+b}}\right )+\frac {2\,\sqrt {a\,x^3+b}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________