Optimal. Leaf size=193 \[ -\frac {1}{2} \sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )} \text {ArcTan}\left (\frac {\sqrt {-\frac {1}{2}+\frac {\sqrt {5}}{2}} x}{\sqrt [4]{-1+x^4}}\right )+\frac {1}{2} \sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )} \text {ArcTan}\left (\frac {\sqrt {\frac {1}{2}+\frac {\sqrt {5}}{2}} x}{\sqrt [4]{-1+x^4}}\right )-\frac {1}{2} \sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )} \tanh ^{-1}\left (\frac {\sqrt {-\frac {1}{2}+\frac {\sqrt {5}}{2}} x}{\sqrt [4]{-1+x^4}}\right )+\frac {1}{2} \sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )} \tanh ^{-1}\left (\frac {\sqrt {\frac {1}{2}+\frac {\sqrt {5}}{2}} x}{\sqrt [4]{-1+x^4}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 189, normalized size of antiderivative = 0.98, number of steps
used = 10, number of rules used = 5, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.172, Rules used = {6860, 385,
218, 212, 209} \begin {gather*} -\frac {1}{2} \sqrt [4]{\frac {1}{2} \left (3-\sqrt {5}\right )} \text {ArcTan}\left (\frac {\sqrt [4]{\frac {2}{3+\sqrt {5}}} x}{\sqrt [4]{x^4-1}}\right )+\frac {1}{2} \sqrt [4]{\frac {1}{2} \left (3+\sqrt {5}\right )} \text {ArcTan}\left (\frac {\sqrt [4]{\frac {1}{2} \left (3+\sqrt {5}\right )} x}{\sqrt [4]{x^4-1}}\right )-\frac {1}{2} \sqrt [4]{\frac {1}{2} \left (3-\sqrt {5}\right )} \tanh ^{-1}\left (\frac {\sqrt [4]{\frac {2}{3+\sqrt {5}}} x}{\sqrt [4]{x^4-1}}\right )+\frac {1}{2} \sqrt [4]{\frac {1}{2} \left (3+\sqrt {5}\right )} \tanh ^{-1}\left (\frac {\sqrt [4]{\frac {1}{2} \left (3+\sqrt {5}\right )} x}{\sqrt [4]{x^4-1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 218
Rule 385
Rule 6860
Rubi steps
\begin {align*} \int \frac {-1+2 x^4}{\sqrt [4]{-1+x^4} \left (-1-x^4+x^8\right )} \, dx &=\int \left (\frac {2}{\sqrt [4]{-1+x^4} \left (-1-\sqrt {5}+2 x^4\right )}+\frac {2}{\sqrt [4]{-1+x^4} \left (-1+\sqrt {5}+2 x^4\right )}\right ) \, dx\\ &=2 \int \frac {1}{\sqrt [4]{-1+x^4} \left (-1-\sqrt {5}+2 x^4\right )} \, dx+2 \int \frac {1}{\sqrt [4]{-1+x^4} \left (-1+\sqrt {5}+2 x^4\right )} \, dx\\ &=2 \text {Subst}\left (\int \frac {1}{-1-\sqrt {5}-\left (1-\sqrt {5}\right ) x^4} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )+2 \text {Subst}\left (\int \frac {1}{-1+\sqrt {5}-\left (1+\sqrt {5}\right ) x^4} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )\\ &=\frac {\text {Subst}\left (\int \frac {1}{\sqrt {3-\sqrt {5}}-\sqrt {2} x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )}{\sqrt {2}}-\frac {\text {Subst}\left (\int \frac {1}{\sqrt {3+\sqrt {5}}-\sqrt {2} x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )}{\sqrt {2}}+\frac {\text {Subst}\left (\int \frac {1}{\sqrt {3-\sqrt {5}}+\sqrt {2} x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )}{\sqrt {2}}-\frac {\text {Subst}\left (\int \frac {1}{\sqrt {3+\sqrt {5}}+\sqrt {2} x^2} \, dx,x,\frac {x}{\sqrt [4]{-1+x^4}}\right )}{\sqrt {2}}\\ &=-\frac {\tan ^{-1}\left (\frac {\sqrt [4]{\frac {2}{3+\sqrt {5}}} x}{\sqrt [4]{-1+x^4}}\right )}{2^{3/4} \sqrt [4]{3+\sqrt {5}}}+\frac {1}{2} \sqrt [4]{\frac {1}{2} \left (3+\sqrt {5}\right )} \tan ^{-1}\left (\frac {\sqrt [4]{\frac {1}{2} \left (3+\sqrt {5}\right )} x}{\sqrt [4]{-1+x^4}}\right )-\frac {\tanh ^{-1}\left (\frac {\sqrt [4]{\frac {2}{3+\sqrt {5}}} x}{\sqrt [4]{-1+x^4}}\right )}{2^{3/4} \sqrt [4]{3+\sqrt {5}}}+\frac {1}{2} \sqrt [4]{\frac {1}{2} \left (3+\sqrt {5}\right )} \tanh ^{-1}\left (\frac {\sqrt [4]{\frac {1}{2} \left (3+\sqrt {5}\right )} x}{\sqrt [4]{-1+x^4}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.50, size = 168, normalized size = 0.87 \begin {gather*} \frac {-\sqrt {-1+\sqrt {5}} \text {ArcTan}\left (\frac {\sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )} x}{\sqrt [4]{-1+x^4}}\right )+\sqrt {1+\sqrt {5}} \text {ArcTan}\left (\frac {\sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )} x}{\sqrt [4]{-1+x^4}}\right )-\sqrt {-1+\sqrt {5}} \tanh ^{-1}\left (\frac {\sqrt {\frac {1}{2} \left (-1+\sqrt {5}\right )} x}{\sqrt [4]{-1+x^4}}\right )+\sqrt {1+\sqrt {5}} \tanh ^{-1}\left (\frac {\sqrt {\frac {1}{2} \left (1+\sqrt {5}\right )} x}{\sqrt [4]{-1+x^4}}\right )}{2 \sqrt {2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 10.28, size = 1623, normalized size = 8.41
method | result | size |
trager | \(\text {Expression too large to display}\) | \(1623\) |
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 990 vs.
\(2 (125) = 250\).
time = 15.73, size = 990, normalized size = 5.13 \begin {gather*} -\frac {1}{4} \, \sqrt {2} \sqrt {\sqrt {5} + 1} \arctan \left (-\frac {{\left (\sqrt {5} \sqrt {2} {\left (x^{8} + x^{4} - 1\right )} - \sqrt {2} {\left (5 \, x^{8} - 3 \, x^{4} - 1\right )} - 2 \, {\left (\sqrt {5} \sqrt {2} x^{6} - \sqrt {2} {\left (x^{6} + 2 \, x^{2}\right )}\right )} \sqrt {x^{4} - 1}\right )} \sqrt {2 \, \sqrt {5} + 2} \sqrt {\sqrt {5} + 1} - 4 \, {\left ({\left (\sqrt {5} \sqrt {2} x^{5} - \sqrt {2} {\left (x^{5} + 2 \, x\right )}\right )} {\left (x^{4} - 1\right )}^{\frac {3}{4}} - {\left (\sqrt {5} \sqrt {2} x^{3} - \sqrt {2} {\left (2 \, x^{7} - x^{3}\right )}\right )} {\left (x^{4} - 1\right )}^{\frac {1}{4}}\right )} \sqrt {\sqrt {5} + 1}}{8 \, {\left (x^{8} - x^{4} - 1\right )}}\right ) + \frac {1}{4} \, \sqrt {2} \sqrt {\sqrt {5} - 1} \arctan \left (\frac {{\left (\sqrt {5} \sqrt {2} {\left (x^{8} + x^{4} - 1\right )} + \sqrt {2} {\left (5 \, x^{8} - 3 \, x^{4} - 1\right )} + 2 \, {\left (\sqrt {5} \sqrt {2} x^{6} + \sqrt {2} {\left (x^{6} + 2 \, x^{2}\right )}\right )} \sqrt {x^{4} - 1}\right )} \sqrt {2 \, \sqrt {5} - 2} \sqrt {\sqrt {5} - 1} - 4 \, {\left ({\left (\sqrt {5} \sqrt {2} x^{5} + \sqrt {2} {\left (x^{5} + 2 \, x\right )}\right )} {\left (x^{4} - 1\right )}^{\frac {3}{4}} + {\left (\sqrt {5} \sqrt {2} x^{3} + \sqrt {2} {\left (2 \, x^{7} - x^{3}\right )}\right )} {\left (x^{4} - 1\right )}^{\frac {1}{4}}\right )} \sqrt {\sqrt {5} - 1}}{8 \, {\left (x^{8} - x^{4} - 1\right )}}\right ) - \frac {1}{16} \, \sqrt {2} \sqrt {\sqrt {5} - 1} \log \left (\frac {2 \, {\left (2 \, x^{5} + \sqrt {5} x - x\right )} {\left (x^{4} - 1\right )}^{\frac {3}{4}} + {\left (\sqrt {5} \sqrt {2} {\left (x^{8} - x^{4}\right )} + \sqrt {2} {\left (2 \, x^{4} - 1\right )} + \sqrt {x^{4} - 1} {\left (\sqrt {5} \sqrt {2} x^{2} + \sqrt {2} {\left (2 \, x^{6} - x^{2}\right )}\right )}\right )} \sqrt {\sqrt {5} - 1} - 2 \, {\left (x^{7} - 3 \, x^{3} - \sqrt {5} {\left (x^{7} - x^{3}\right )}\right )} {\left (x^{4} - 1\right )}^{\frac {1}{4}}}{x^{8} - x^{4} - 1}\right ) + \frac {1}{16} \, \sqrt {2} \sqrt {\sqrt {5} - 1} \log \left (\frac {2 \, {\left (2 \, x^{5} + \sqrt {5} x - x\right )} {\left (x^{4} - 1\right )}^{\frac {3}{4}} - {\left (\sqrt {5} \sqrt {2} {\left (x^{8} - x^{4}\right )} + \sqrt {2} {\left (2 \, x^{4} - 1\right )} + \sqrt {x^{4} - 1} {\left (\sqrt {5} \sqrt {2} x^{2} + \sqrt {2} {\left (2 \, x^{6} - x^{2}\right )}\right )}\right )} \sqrt {\sqrt {5} - 1} - 2 \, {\left (x^{7} - 3 \, x^{3} - \sqrt {5} {\left (x^{7} - x^{3}\right )}\right )} {\left (x^{4} - 1\right )}^{\frac {1}{4}}}{x^{8} - x^{4} - 1}\right ) + \frac {1}{16} \, \sqrt {2} \sqrt {\sqrt {5} + 1} \log \left (\frac {2 \, {\left (2 \, x^{5} - \sqrt {5} x - x\right )} {\left (x^{4} - 1\right )}^{\frac {3}{4}} + {\left (\sqrt {5} \sqrt {2} {\left (x^{8} - x^{4}\right )} - \sqrt {2} {\left (2 \, x^{4} - 1\right )} - \sqrt {x^{4} - 1} {\left (\sqrt {5} \sqrt {2} x^{2} - \sqrt {2} {\left (2 \, x^{6} - x^{2}\right )}\right )}\right )} \sqrt {\sqrt {5} + 1} + 2 \, {\left (x^{7} - 3 \, x^{3} + \sqrt {5} {\left (x^{7} - x^{3}\right )}\right )} {\left (x^{4} - 1\right )}^{\frac {1}{4}}}{x^{8} - x^{4} - 1}\right ) - \frac {1}{16} \, \sqrt {2} \sqrt {\sqrt {5} + 1} \log \left (\frac {2 \, {\left (2 \, x^{5} - \sqrt {5} x - x\right )} {\left (x^{4} - 1\right )}^{\frac {3}{4}} - {\left (\sqrt {5} \sqrt {2} {\left (x^{8} - x^{4}\right )} - \sqrt {2} {\left (2 \, x^{4} - 1\right )} - \sqrt {x^{4} - 1} {\left (\sqrt {5} \sqrt {2} x^{2} - \sqrt {2} {\left (2 \, x^{6} - x^{2}\right )}\right )}\right )} \sqrt {\sqrt {5} + 1} + 2 \, {\left (x^{7} - 3 \, x^{3} + \sqrt {5} {\left (x^{7} - x^{3}\right )}\right )} {\left (x^{4} - 1\right )}^{\frac {1}{4}}}{x^{8} - x^{4} - 1}\right ) \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 [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} -\int \frac {2\,x^4-1}{{\left (x^4-1\right )}^{1/4}\,\left (-x^8+x^4+1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________