Optimal. Leaf size=153 \[ -\frac {2}{9} (e-2 f) \tanh ^{-1}\left (\frac {(1-x)^2}{3 \sqrt {1-x^3}}\right )-\frac {2 \sqrt {2+\sqrt {3}} (1-x) \sqrt {\frac {x^2+x+1}{\left (-x+\sqrt {3}+1\right )^2}} (e+f) F\left (\sin ^{-1}\left (\frac {-x-\sqrt {3}+1}{-x+\sqrt {3}+1}\right )|-7-4 \sqrt {3}\right )}{3 \sqrt [4]{3} \sqrt {\frac {1-x}{\left (-x+\sqrt {3}+1\right )^2}} \sqrt {1-x^3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 153, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {2139, 218, 2138, 206} \[ -\frac {2}{9} (e-2 f) \tanh ^{-1}\left (\frac {(1-x)^2}{3 \sqrt {1-x^3}}\right )-\frac {2 \sqrt {2+\sqrt {3}} (1-x) \sqrt {\frac {x^2+x+1}{\left (-x+\sqrt {3}+1\right )^2}} (e+f) F\left (\sin ^{-1}\left (\frac {-x-\sqrt {3}+1}{-x+\sqrt {3}+1}\right )|-7-4 \sqrt {3}\right )}{3 \sqrt [4]{3} \sqrt {\frac {1-x}{\left (-x+\sqrt {3}+1\right )^2}} \sqrt {1-x^3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 218
Rule 2138
Rule 2139
Rubi steps
\begin {align*} \int \frac {e+f x}{(2+x) \sqrt {1-x^3}} \, dx &=\frac {1}{6} (e-2 f) \int \frac {2-2 x}{(2+x) \sqrt {1-x^3}} \, dx+\frac {1}{3} (e+f) \int \frac {1}{\sqrt {1-x^3}} \, dx\\ &=-\frac {2 \sqrt {2+\sqrt {3}} (e+f) (1-x) \sqrt {\frac {1+x+x^2}{\left (1+\sqrt {3}-x\right )^2}} F\left (\sin ^{-1}\left (\frac {1-\sqrt {3}-x}{1+\sqrt {3}-x}\right )|-7-4 \sqrt {3}\right )}{3 \sqrt [4]{3} \sqrt {\frac {1-x}{\left (1+\sqrt {3}-x\right )^2}} \sqrt {1-x^3}}-\frac {1}{3} (2 (e-2 f)) \operatorname {Subst}\left (\int \frac {1}{9-x^2} \, dx,x,\frac {(1-x)^2}{\sqrt {1-x^3}}\right )\\ &=-\frac {2}{9} (e-2 f) \tanh ^{-1}\left (\frac {(1-x)^2}{3 \sqrt {1-x^3}}\right )-\frac {2 \sqrt {2+\sqrt {3}} (e+f) (1-x) \sqrt {\frac {1+x+x^2}{\left (1+\sqrt {3}-x\right )^2}} F\left (\sin ^{-1}\left (\frac {1-\sqrt {3}-x}{1+\sqrt {3}-x}\right )|-7-4 \sqrt {3}\right )}{3 \sqrt [4]{3} \sqrt {\frac {1-x}{\left (1+\sqrt {3}-x\right )^2}} \sqrt {1-x^3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.29, size = 271, normalized size = 1.77 \[ \frac {2 \sqrt {\frac {2}{3}} \sqrt {\frac {i (x-1)}{\sqrt {3}-3 i}} \left (3 f \sqrt {2 i x+\sqrt {3}+i} \left (i \sqrt {3} x+x+i \sqrt {3}-1\right ) F\left (\sin ^{-1}\left (\frac {\sqrt {-2 i x+\sqrt {3}-i}}{\sqrt {2} \sqrt [4]{3}}\right )|\frac {2 \sqrt {3}}{-3 i+\sqrt {3}}\right )-2 \sqrt {3} \sqrt {-2 i x+\sqrt {3}-i} \sqrt {x^2+x+1} (e-2 f) \Pi \left (\frac {2 \sqrt {3}}{3 i+\sqrt {3}};\sin ^{-1}\left (\frac {\sqrt {-2 i x+\sqrt {3}-i}}{\sqrt {2} \sqrt [4]{3}}\right )|\frac {2 \sqrt {3}}{-3 i+\sqrt {3}}\right )\right )}{\left (\sqrt {3}+3 i\right ) \sqrt {-2 i x+\sqrt {3}-i} \sqrt {1-x^3}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.52, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-\frac {\sqrt {-x^{3} + 1} {\left (f x + e\right )}}{x^{4} + 2 \, x^{3} - x - 2}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {f x + e}{\sqrt {-x^{3} + 1} {\left (x + 2\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 246, normalized size = 1.61 \[ -\frac {2 i \sqrt {3}\, \sqrt {i \left (x +\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}\, \sqrt {\frac {x -1}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \sqrt {-i \left (x +\frac {1}{2}+\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}\, f \EllipticF \left (\frac {\sqrt {3}\, \sqrt {i \left (x +\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}}{3}, \sqrt {\frac {i \sqrt {3}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\right )}{3 \sqrt {-x^{3}+1}}-\frac {2 i \left (e -2 f \right ) \sqrt {3}\, \sqrt {i \left (x +\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}\, \sqrt {\frac {x -1}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \sqrt {-i \left (x +\frac {1}{2}+\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}\, \EllipticPi \left (\frac {\sqrt {3}\, \sqrt {i \left (x +\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}}{3}, \frac {i \sqrt {3}}{\frac {3}{2}+\frac {i \sqrt {3}}{2}}, \sqrt {\frac {i \sqrt {3}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\right )}{3 \sqrt {-x^{3}+1}\, \left (\frac {3}{2}+\frac {i \sqrt {3}}{2}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {f x + e}{\sqrt {-x^{3} + 1} {\left (x + 2\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.19, size = 359, normalized size = 2.35 \[ -\frac {2\,f\,\left (\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\sqrt {x^3-1}\,\sqrt {-\frac {x+\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {\frac {x+\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {-\frac {x-1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\mathrm {F}\left (\mathrm {asin}\left (\sqrt {-\frac {x-1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\right )\middle |-\frac {\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}\right )}{\sqrt {1-x^3}\,\sqrt {x^3+\left (-\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )-1\right )\,x+\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )}}-\frac {2\,\left (\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\sqrt {x^3-1}\,\sqrt {-\frac {x+\frac {1}{2}-\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {\frac {x+\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\left (e-2\,f\right )\,\sqrt {-\frac {x-1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\Pi \left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6};\mathrm {asin}\left (\sqrt {-\frac {x-1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\right )\middle |-\frac {\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}\right )}{3\,\sqrt {1-x^3}\,\sqrt {x^3+\left (-\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )-1\right )\,x+\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {e + f x}{\sqrt {- \left (x - 1\right ) \left (x^{2} + x + 1\right )} \left (x + 2\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________