Optimal. Leaf size=569 \[ \frac {2 x \left (a x^2-2 b^2\right )}{\left (a x^2-b^2\right ) \sqrt {\sqrt {a x^2+b^2}+b}}-\frac {2 \sqrt {2} \sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {2} \sqrt {b} \sqrt {\sqrt {a x^2+b^2}+b}}-\frac {\sqrt {\sqrt {a x^2+b^2}+b}}{\sqrt {2} \sqrt {b}}\right )}{\sqrt {a}}-\frac {\sqrt {\frac {1}{2} \left (\sqrt {2}-1\right )} \sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {2 \left (\sqrt {2}-1\right )} \sqrt {b} \sqrt {\sqrt {a x^2+b^2}+b}}-\frac {\sqrt {\sqrt {a x^2+b^2}+b}}{\sqrt {2 \left (\sqrt {2}-1\right )} \sqrt {b}}\right )}{\sqrt {a}}-\frac {\sqrt {\frac {1}{2} \left (\sqrt {2}-1\right )} \sqrt {b} \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {2 \left (1+\sqrt {2}\right )} \sqrt {b} \sqrt {\sqrt {a x^2+b^2}+b}}-\frac {\sqrt {\sqrt {a x^2+b^2}+b}}{\sqrt {2 \left (1+\sqrt {2}\right )} \sqrt {b}}\right )}{\sqrt {a}}-\frac {\sqrt {\sqrt {2}-1} \left (2+\sqrt {2}\right ) \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {\sqrt {a x^2+b^2}+b}-\frac {a x}{\sqrt {\sqrt {a x^2+b^2}+b}}}{\sqrt {2 \left (\sqrt {2}-1\right )} \sqrt {a} \sqrt {b}}\right )}{2 \sqrt {a}}+\frac {\sqrt {\sqrt {2}-1} \left (2+\sqrt {2}\right ) \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {\sqrt {a x^2+b^2}+b}-\frac {a x}{\sqrt {\sqrt {a x^2+b^2}+b}}}{\sqrt {2 \left (1+\sqrt {2}\right )} \sqrt {a} \sqrt {b}}\right )}{2 \sqrt {a}} \]
________________________________________________________________________________________
Rubi [F] time = 2.33, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {\left (b^2+a x^2\right )^2}{\left (-b^2+a x^2\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {\left (b^2+a x^2\right )^2}{\left (-b^2+a x^2\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}} \, dx &=\int \left (\frac {1}{\sqrt {b+\sqrt {b^2+a x^2}}}+\frac {4 b^4}{\left (b^2-a x^2\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}}-\frac {4 b^2}{\left (b^2-a x^2\right ) \sqrt {b+\sqrt {b^2+a x^2}}}\right ) \, dx\\ &=-\left (\left (4 b^2\right ) \int \frac {1}{\left (b^2-a x^2\right ) \sqrt {b+\sqrt {b^2+a x^2}}} \, dx\right )+\left (4 b^4\right ) \int \frac {1}{\left (b^2-a x^2\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}} \, dx+\int \frac {1}{\sqrt {b+\sqrt {b^2+a x^2}}} \, dx\\ &=-\left (\left (4 b^2\right ) \int \left (\frac {1}{2 b \left (b-\sqrt {a} x\right ) \sqrt {b+\sqrt {b^2+a x^2}}}+\frac {1}{2 b \left (b+\sqrt {a} x\right ) \sqrt {b+\sqrt {b^2+a x^2}}}\right ) \, dx\right )+\left (4 b^4\right ) \int \left (\frac {a}{4 b^2 \left (\sqrt {a} b-a x\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}}+\frac {a}{4 b^2 \left (\sqrt {a} b+a x\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}}+\frac {a}{2 b^2 \left (a b^2-a^2 x^2\right ) \sqrt {b+\sqrt {b^2+a x^2}}}\right ) \, dx+\int \frac {1}{\sqrt {b+\sqrt {b^2+a x^2}}} \, dx\\ &=-\left ((2 b) \int \frac {1}{\left (b-\sqrt {a} x\right ) \sqrt {b+\sqrt {b^2+a x^2}}} \, dx\right )-(2 b) \int \frac {1}{\left (b+\sqrt {a} x\right ) \sqrt {b+\sqrt {b^2+a x^2}}} \, dx+\left (a b^2\right ) \int \frac {1}{\left (\sqrt {a} b-a x\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}} \, dx+\left (a b^2\right ) \int \frac {1}{\left (\sqrt {a} b+a x\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}} \, dx+\left (2 a b^2\right ) \int \frac {1}{\left (a b^2-a^2 x^2\right ) \sqrt {b+\sqrt {b^2+a x^2}}} \, dx+\int \frac {1}{\sqrt {b+\sqrt {b^2+a x^2}}} \, dx\\ &=-\left ((2 b) \int \frac {1}{\left (b-\sqrt {a} x\right ) \sqrt {b+\sqrt {b^2+a x^2}}} \, dx\right )-(2 b) \int \frac {1}{\left (b+\sqrt {a} x\right ) \sqrt {b+\sqrt {b^2+a x^2}}} \, dx+\left (a b^2\right ) \int \frac {1}{\left (\sqrt {a} b-a x\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}} \, dx+\left (a b^2\right ) \int \frac {1}{\left (\sqrt {a} b+a x\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}} \, dx+\left (2 a b^2\right ) \int \left (\frac {1}{2 a b \left (b-\sqrt {a} x\right ) \sqrt {b+\sqrt {b^2+a x^2}}}+\frac {1}{2 a b \left (b+\sqrt {a} x\right ) \sqrt {b+\sqrt {b^2+a x^2}}}\right ) \, dx+\int \frac {1}{\sqrt {b+\sqrt {b^2+a x^2}}} \, dx\\ &=b \int \frac {1}{\left (b-\sqrt {a} x\right ) \sqrt {b+\sqrt {b^2+a x^2}}} \, dx+b \int \frac {1}{\left (b+\sqrt {a} x\right ) \sqrt {b+\sqrt {b^2+a x^2}}} \, dx-(2 b) \int \frac {1}{\left (b-\sqrt {a} x\right ) \sqrt {b+\sqrt {b^2+a x^2}}} \, dx-(2 b) \int \frac {1}{\left (b+\sqrt {a} x\right ) \sqrt {b+\sqrt {b^2+a x^2}}} \, dx+\left (a b^2\right ) \int \frac {1}{\left (\sqrt {a} b-a x\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}} \, dx+\left (a b^2\right ) \int \frac {1}{\left (\sqrt {a} b+a x\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}} \, dx+\int \frac {1}{\sqrt {b+\sqrt {b^2+a x^2}}} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 0.72, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (b^2+a x^2\right )^2}{\left (-b^2+a x^2\right )^2 \sqrt {b+\sqrt {b^2+a x^2}}} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 1.53, size = 241, normalized size = 0.42 \begin {gather*} \frac {2 \left (2 b^2 x-a x^3\right )}{\left (b^2-a x^2\right ) \sqrt {b+\sqrt {b^2+a x^2}}}+\frac {\sqrt {2} \sqrt {b} \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {b} \sqrt {b+\sqrt {b^2+a x^2}}}{\sqrt {a} x}\right )}{\sqrt {a}}+\frac {\sqrt {-\frac {1}{2}+\frac {1}{\sqrt {2}}} \sqrt {b} \tan ^{-1}\left (\frac {\sqrt {1+\sqrt {2}} \sqrt {b} \sqrt {b+\sqrt {b^2+a x^2}}}{\sqrt {a} x}\right )}{\sqrt {a}}-\frac {\sqrt {\frac {1}{2}+\frac {1}{\sqrt {2}}} \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {-1+\sqrt {2}} \sqrt {b} \sqrt {b+\sqrt {b^2+a x^2}}}{\sqrt {a} x}\right )}{\sqrt {a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] 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*} \int \frac {{\left (a x^{2} + b^{2}\right )}^{2}}{{\left (a x^{2} - b^{2}\right )}^{2} \sqrt {b + \sqrt {a x^{2} + b^{2}}}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (a \,x^{2}+b^{2}\right )^{2}}{\left (a \,x^{2}-b^{2}\right )^{2} \sqrt {b +\sqrt {a \,x^{2}+b^{2}}}}\, 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*} \int \frac {{\left (a x^{2} + b^{2}\right )}^{2}}{{\left (a x^{2} - b^{2}\right )}^{2} \sqrt {b + \sqrt {a x^{2} + b^{2}}}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (b^2+a\,x^2\right )}^2}{{\left (a\,x^2-b^2\right )}^2\,\sqrt {b+\sqrt {b^2+a\,x^2}}} \,d x \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 {\left (a x^{2} + b^{2}\right )^{2}}{\sqrt {b + \sqrt {a x^{2} + b^{2}}} \left (a x^{2} - b^{2}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________