Optimal. Leaf size=159 \[ \frac {2 \left (e-2^{2/3} f\right ) \tan ^{-1}\left (\frac {\sqrt {3} \left (1+\sqrt [3]{2} x\right )}{\sqrt {1+x^3}}\right )}{3 \sqrt {3}}+\frac {2 \sqrt {2+\sqrt {3}} \left (\sqrt [3]{2} e+f\right ) (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}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 159, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2164, 224,
2162, 209} \begin {gather*} \frac {2 \sqrt {2+\sqrt {3}} (x+1) \sqrt {\frac {x^2-x+1}{\left (x+\sqrt {3}+1\right )^2}} \left (\sqrt [3]{2} e+f\right ) F\left (\text {ArcSin}\left (\frac {x-\sqrt {3}+1}{x+\sqrt {3}+1}\right )|-7-4 \sqrt {3}\right )}{3 \sqrt [4]{3} \sqrt {\frac {x+1}{\left (x+\sqrt {3}+1\right )^2}} \sqrt {x^3+1}}+\frac {2 \text {ArcTan}\left (\frac {\sqrt {3} \left (\sqrt [3]{2} x+1\right )}{\sqrt {x^3+1}}\right ) \left (e-2^{2/3} f\right )}{3 \sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 224
Rule 2162
Rule 2164
Rubi steps
\begin {align*} \int \frac {e+f x}{\left (2^{2/3}+x\right ) \sqrt {1+x^3}} \, dx &=\frac {1}{6} \left (\sqrt [3]{2} e-2 f\right ) \int \frac {2^{2/3}-2 x}{\left (2^{2/3}+x\right ) \sqrt {1+x^3}} \, dx+\frac {1}{3} \left (\sqrt [3]{2} e+f\right ) \int \frac {1}{\sqrt {1+x^3}} \, dx\\ &=\frac {2 \sqrt {2+\sqrt {3}} \left (\sqrt [3]{2} e+f\right ) (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} \left (2 \left (e-2^{2/3} f\right )\right ) \text {Subst}\left (\int \frac {1}{1+3 x^2} \, dx,x,\frac {1+\sqrt [3]{2} x}{\sqrt {1+x^3}}\right )\\ &=\frac {2 \left (e-2^{2/3} f\right ) \tan ^{-1}\left (\frac {\sqrt {3} \left (1+\sqrt [3]{2} x\right )}{\sqrt {1+x^3}}\right )}{3 \sqrt {3}}+\frac {2 \sqrt {2+\sqrt {3}} \left (\sqrt [3]{2} e+f\right ) (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] Result contains complex when optimal does not.
time = 20.31, size = 340, normalized size = 2.14 \begin {gather*} \frac {2 \sqrt [6]{2} \sqrt {\frac {i (1+x)}{3 i+\sqrt {3}}} \left (f \sqrt {-i+\sqrt {3}+2 i x} \left (-6-3 \sqrt [3]{2}-2 i \sqrt {3}+i \sqrt [3]{2} \sqrt {3}+\left (3 \sqrt [3]{2}+4 i \sqrt {3}+i \sqrt [3]{2} \sqrt {3}\right ) x\right ) F\left (\sin ^{-1}\left (\frac {\sqrt {i+\sqrt {3}-2 i x}}{\sqrt {2} \sqrt [4]{3}}\right )|\frac {2 \sqrt {3}}{3 i+\sqrt {3}}\right )-2 \sqrt {3} \left (\sqrt [3]{2} e-2 f\right ) \sqrt {i+\sqrt {3}-2 i x} \sqrt {1-x+x^2} \Pi \left (\frac {2 \sqrt {3}}{i+2 i 2^{2/3}+\sqrt {3}};\sin ^{-1}\left (\frac {\sqrt {i+\sqrt {3}-2 i x}}{\sqrt {2} \sqrt [4]{3}}\right )|\frac {2 \sqrt {3}}{3 i+\sqrt {3}}\right )\right )}{\sqrt {3} \left (i+2 i 2^{2/3}+\sqrt {3}\right ) \sqrt {i+\sqrt {3}-2 i x} \sqrt {1+x^3}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 263 vs. \(2 (126 ) = 252\).
time = 0.29, size = 264, normalized size = 1.66
method | result | size |
default | \(\frac {2 f \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \EllipticF \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}+\frac {2 \left (e -2^{\frac {2}{3}} f \right ) \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \EllipticPi \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{2^{\frac {2}{3}}-1}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}\, \left (2^{\frac {2}{3}}-1\right )}\) | \(264\) |
elliptic | \(\frac {2 f \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \EllipticF \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}+\frac {2 \left (e -2^{\frac {2}{3}} f \right ) \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \EllipticPi \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{2^{\frac {2}{3}}-1}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}\, \left (2^{\frac {2}{3}}-1\right )}\) | \(264\) |
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 [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.26, size = 949, normalized size = 5.97 \begin {gather*} \left [\frac {1}{18} \, \sqrt {3} \sqrt {2 \cdot 2^{\frac {2}{3}} f e - 2 \cdot 2^{\frac {1}{3}} f^{2} - e^{2}} \log \left (-\frac {4 \, f^{3} x^{18} - 5760 \, f^{3} x^{15} + 69600 \, f^{3} x^{12} + 84224 \, f^{3} x^{9} - 41472 \, f^{3} x^{6} - 61440 \, f^{3} x^{3} - 8192 \, f^{3} + 4 \, \sqrt {3} {\left (252 \, f^{2} x^{14} - 5328 \, f^{2} x^{11} + 9216 \, f^{2} x^{5} + 4608 \, f^{2} x^{2} - {\left (17 \, x^{15} - 1058 \, x^{12} + 2528 \, x^{9} + 5408 \, x^{6} + 2560 \, x^{3} + 512\right )} e^{2} + 2 \, {\left (f x^{16} - 310 \, f x^{13} + 2332 \, f x^{10} + 2656 \, f x^{7} - 256 \, f x^{4} - 512 \, f x\right )} e + 2^{\frac {2}{3}} {\left (2 \, f^{2} x^{16} - 620 \, f^{2} x^{13} + 4664 \, f^{2} x^{10} + 5312 \, f^{2} x^{7} - 512 \, f^{2} x^{4} - 1024 \, f^{2} x + 9 \, {\left (7 \, x^{14} - 148 \, x^{11} + 256 \, x^{5} + 128 \, x^{2}\right )} e^{2} - {\left (17 \, f x^{15} - 1058 \, f x^{12} + 2528 \, f x^{9} + 5408 \, f x^{6} + 2560 \, f x^{3} + 512 \, f\right )} e\right )} - 2^{\frac {1}{3}} {\left (34 \, f^{2} x^{15} - 2116 \, f^{2} x^{12} + 5056 \, f^{2} x^{9} + 10816 \, f^{2} x^{6} + 5120 \, f^{2} x^{3} + 1024 \, f^{2} - {\left (x^{16} - 310 \, x^{13} + 2332 \, x^{10} + 2656 \, x^{7} - 256 \, x^{4} - 512 \, x\right )} e^{2} - 18 \, {\left (7 \, f x^{14} - 148 \, f x^{11} + 256 \, f x^{5} + 128 \, f x^{2}\right )} e\right )}\right )} \sqrt {x^{3} + 1} \sqrt {2 \cdot 2^{\frac {2}{3}} f e - 2 \cdot 2^{\frac {1}{3}} f^{2} - e^{2}} - {\left (x^{18} - 1440 \, x^{15} + 17400 \, x^{12} + 21056 \, x^{9} - 10368 \, x^{6} - 15360 \, x^{3} - 2048\right )} e^{3} - 24 \cdot 2^{\frac {2}{3}} {\left (4 \, f^{3} x^{17} - 484 \, f^{3} x^{14} + 1912 \, f^{3} x^{11} + 4576 \, f^{3} x^{8} + 2432 \, f^{3} x^{5} + 256 \, f^{3} x^{2} - {\left (x^{17} - 121 \, x^{14} + 478 \, x^{11} + 1144 \, x^{8} + 608 \, x^{5} + 64 \, x^{2}\right )} e^{3}\right )} + 48 \cdot 2^{\frac {1}{3}} {\left (20 \, f^{3} x^{16} - 704 \, f^{3} x^{13} + 332 \, f^{3} x^{10} + 2720 \, f^{3} x^{7} + 2176 \, f^{3} x^{4} + 512 \, f^{3} x - {\left (5 \, x^{16} - 176 \, x^{13} + 83 \, x^{10} + 680 \, x^{7} + 544 \, x^{4} + 128 \, x\right )} e^{3}\right )}}{x^{18} + 24 \, x^{15} + 240 \, x^{12} + 1280 \, x^{9} + 3840 \, x^{6} + 6144 \, x^{3} + 4096}\right ) + \frac {2}{3} \, {\left (2^{\frac {1}{3}} e + f\right )} {\rm weierstrassPInverse}\left (0, -4, x\right ), -\frac {1}{9} \, \sqrt {3} \sqrt {-2 \cdot 2^{\frac {2}{3}} f e + 2 \cdot 2^{\frac {1}{3}} f^{2} + e^{2}} \arctan \left (-\frac {\sqrt {3} {\left (4 \, f^{2} x^{5} + 4 \, f^{2} x^{2} - {\left (5 \, x^{3} + 2\right )} e^{2} - 2 \, {\left (7 \, f x^{4} + 4 \, f x\right )} e - 2^{\frac {2}{3}} {\left (14 \, f^{2} x^{4} + 8 \, f^{2} x - {\left (x^{5} + x^{2}\right )} e^{2} + {\left (5 \, f x^{3} + 2 \, f\right )} e\right )} - 2^{\frac {1}{3}} {\left (10 \, f^{2} x^{3} + 4 \, f^{2} + {\left (7 \, x^{4} + 4 \, x\right )} e^{2} - 2 \, {\left (f x^{5} + f x^{2}\right )} e\right )}\right )} \sqrt {x^{3} + 1} \sqrt {-2 \cdot 2^{\frac {2}{3}} f e + 2 \cdot 2^{\frac {1}{3}} f^{2} + e^{2}}}{6 \, {\left (8 \, f^{3} x^{6} + 12 \, f^{3} x^{3} + 4 \, f^{3} - {\left (2 \, x^{6} + 3 \, x^{3} + 1\right )} e^{3}\right )}}\right ) + \frac {2}{3} \, {\left (2^{\frac {1}{3}} e + f\right )} {\rm weierstrassPInverse}\left (0, -4, x\right )\right ] \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 {e + f x}{\sqrt {\left (x + 1\right ) \left (x^{2} - x + 1\right )} \left (x + 2^{\frac {2}{3}}\right )}\, dx \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 [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {e+f\,x}{\sqrt {x^3+1}\,\left (x+2^{2/3}\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________