Optimal. Leaf size=22 \[ \tan ^{-1}\left (\frac {x}{\sqrt {-x^2+\sqrt {1+x^4}}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.074, Rules used = {2153, 209}
\begin {gather*} \text {ArcTan}\left (\frac {x}{\sqrt {\sqrt {x^4+1}-x^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 2153
Rubi steps
\begin {align*} \int \frac {1}{\left (1+x^4\right ) \sqrt {-x^2+\sqrt {1+x^4}}} \, dx &=\text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {x}{\sqrt {-x^2+\sqrt {1+x^4}}}\right )\\ &=\tan ^{-1}\left (\frac {x}{\sqrt {-x^2+\sqrt {1+x^4}}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.21, size = 96, normalized size = 4.36 \begin {gather*} i \tanh ^{-1}\left (\sqrt {2}+\sqrt {2} x^4-i x^3 \sqrt {-x^2+\sqrt {1+x^4}}+\frac {\sqrt {1+x^4} \left (-2 x^2+i \sqrt {2} x \sqrt {-x^2+\sqrt {1+x^4}}\right )}{\sqrt {2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.06, size = 0, normalized size = 0.00 \[\int \frac {1}{\left (x^{4}+1\right ) \sqrt {-x^{2}+\sqrt {x^{4}+1}}}\, 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 [B] Leaf count of result is larger than twice the leaf count of optimal. 62 vs.
\(2 (18) = 36\).
time = 0.77, size = 62, normalized size = 2.82 \begin {gather*} -\frac {1}{4} \, \arctan \left (\frac {4 \, {\left (10 \, x^{7} - 6 \, x^{3} + {\left (7 \, x^{5} - x\right )} \sqrt {x^{4} + 1}\right )} \sqrt {-x^{2} + \sqrt {x^{4} + 1}}}{17 \, x^{8} - 46 \, x^{4} + 1}\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 {1}{\sqrt {- x^{2} + \sqrt {x^{4} + 1}} \left (x^{4} + 1\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.05 \begin {gather*} \int \frac {1}{\sqrt {\sqrt {x^4+1}-x^2}\,\left (x^4+1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________