Optimal. Leaf size=101 \[ \frac {2 x^4 \sqrt {1+x^4}+x^2 \left (3+2 x^4\right )}{8 x \sqrt {x^2+\sqrt {1+x^4}}}-\frac {11 \tanh ^{-1}\left (\frac {\sqrt {2} x \sqrt {x^2+\sqrt {1+x^4}}}{1+x^2+\sqrt {1+x^4}}\right )}{4 \sqrt {2}} \]
[Out]
________________________________________________________________________________________
Rubi [C] Result contains complex when optimal does not.
time = 0.30, antiderivative size = 161, normalized size of antiderivative = 1.59, number of steps
used = 11, number of rules used = 7, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.219, Rules used = {6874, 2157,
212, 2158, 327, 222, 221} \begin {gather*} \frac {3 i \text {ArcSin}\left (\sqrt [4]{-1} x\right )}{8 \sqrt {2}}+\left (\frac {3}{16}-\frac {3 i}{16}\right ) \sqrt {1-i x^2} x+\left (\frac {3}{16}+\frac {3 i}{16}\right ) \sqrt {1+i x^2} x-\frac {\tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {\sqrt {x^4+1}+x^2}}\right )}{\sqrt {2}}+\left (\frac {1}{8}+\frac {i}{8}\right ) \sqrt {1-i x^2} x^3+\left (\frac {1}{8}-\frac {i}{8}\right ) \sqrt {1+i x^2} x^3-\frac {3 \sinh ^{-1}\left (\sqrt [4]{-1} x\right )}{8 \sqrt {2}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
Rule 212
Rule 221
Rule 222
Rule 327
Rule 2157
Rule 2158
Rule 6874
Rubi steps
\begin {align*} \int \frac {\left (-1+x^4\right ) \sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4}} \, dx &=\int \left (-\frac {\sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4}}+\frac {x^4 \sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4}}\right ) \, dx\\ &=-\int \frac {\sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4}} \, dx+\int \frac {x^4 \sqrt {x^2+\sqrt {1+x^4}}}{\sqrt {1+x^4}} \, dx\\ &=\left (\frac {1}{2}-\frac {i}{2}\right ) \int \frac {x^4}{\sqrt {1-i x^2}} \, dx+\left (\frac {1}{2}+\frac {i}{2}\right ) \int \frac {x^4}{\sqrt {1+i x^2}} \, dx-\text {Subst}\left (\int \frac {1}{1-2 x^2} \, dx,x,\frac {x}{\sqrt {x^2+\sqrt {1+x^4}}}\right )\\ &=\left (\frac {1}{8}+\frac {i}{8}\right ) x^3 \sqrt {1-i x^2}+\left (\frac {1}{8}-\frac {i}{8}\right ) x^3 \sqrt {1+i x^2}-\frac {\tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {x^2+\sqrt {1+x^4}}}\right )}{\sqrt {2}}+\left (-\frac {3}{8}-\frac {3 i}{8}\right ) \int \frac {x^2}{\sqrt {1-i x^2}} \, dx+\left (-\frac {3}{8}+\frac {3 i}{8}\right ) \int \frac {x^2}{\sqrt {1+i x^2}} \, dx\\ &=\left (\frac {3}{16}-\frac {3 i}{16}\right ) x \sqrt {1-i x^2}+\left (\frac {1}{8}+\frac {i}{8}\right ) x^3 \sqrt {1-i x^2}+\left (\frac {3}{16}+\frac {3 i}{16}\right ) x \sqrt {1+i x^2}+\left (\frac {1}{8}-\frac {i}{8}\right ) x^3 \sqrt {1+i x^2}-\frac {\tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {x^2+\sqrt {1+x^4}}}\right )}{\sqrt {2}}+\left (-\frac {3}{16}-\frac {3 i}{16}\right ) \int \frac {1}{\sqrt {1+i x^2}} \, dx+\left (-\frac {3}{16}+\frac {3 i}{16}\right ) \int \frac {1}{\sqrt {1-i x^2}} \, dx\\ &=\left (\frac {3}{16}-\frac {3 i}{16}\right ) x \sqrt {1-i x^2}+\left (\frac {1}{8}+\frac {i}{8}\right ) x^3 \sqrt {1-i x^2}+\left (\frac {3}{16}+\frac {3 i}{16}\right ) x \sqrt {1+i x^2}+\left (\frac {1}{8}-\frac {i}{8}\right ) x^3 \sqrt {1+i x^2}+\frac {3 i \sin ^{-1}\left (\sqrt [4]{-1} x\right )}{8 \sqrt {2}}-\frac {3 \sinh ^{-1}\left (\sqrt [4]{-1} x\right )}{8 \sqrt {2}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {2} x}{\sqrt {x^2+\sqrt {1+x^4}}}\right )}{\sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 109, normalized size = 1.08 \begin {gather*} \frac {3 x+2 x^5+2 x^3 \sqrt {1+x^4}-11 \sqrt {2} \sqrt {x^2+\sqrt {1+x^4}} \tanh ^{-1}\left (\frac {-1+x^2+\sqrt {1+x^4}}{\sqrt {2} x \sqrt {x^2+\sqrt {1+x^4}}}\right )}{8 \sqrt {x^2+\sqrt {1+x^4}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (x^{4}-1\right ) \sqrt {x^{2}+\sqrt {x^{4}+1}}}{\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 [A]
time = 0.63, size = 90, normalized size = 0.89 \begin {gather*} -\frac {1}{8} \, {\left (x^{3} - 3 \, \sqrt {x^{4} + 1} x\right )} \sqrt {x^{2} + \sqrt {x^{4} + 1}} + \frac {11}{32} \, \sqrt {2} \log \left (4 \, x^{4} + 4 \, \sqrt {x^{4} + 1} x^{2} - 2 \, {\left (\sqrt {2} x^{3} + \sqrt {2} \sqrt {x^{4} + 1} x\right )} \sqrt {x^{2} + \sqrt {x^{4} + 1}} + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 21.51, size = 32, normalized size = 0.32 \begin {gather*} - \frac {{G_{3, 3}^{2, 2}\left (\begin {matrix} 1, 1 & \frac {1}{2} \\\frac {1}{4}, \frac {3}{4} & 0 \end {matrix} \middle | {x^{4}} \right )}}{4 \sqrt {\pi }} + \frac {{G_{3, 3}^{2, 2}\left (\begin {matrix} 2, 1 & \frac {3}{2} \\\frac {5}{4}, \frac {7}{4} & 0 \end {matrix} \middle | {x^{4}} \right )}}{4 \sqrt {\pi }} \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 {\left (x^4-1\right )\,\sqrt {\sqrt {x^4+1}+x^2}}{\sqrt {x^4+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________