Optimal. Leaf size=63 \[ \frac {4 b x}{3 \sqrt {b+\sqrt {b^2+a x^2}}}+\frac {2 x \sqrt {b^2+a x^2}}{3 \sqrt {b+\sqrt {b^2+a x^2}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 51, normalized size of antiderivative = 0.81, number of steps
used = 1, number of rules used = 1, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {2154}
\begin {gather*} \frac {2 b x}{\sqrt {\sqrt {a x^2+b^2}+b}}+\frac {2 a x^3}{3 \left (\sqrt {a x^2+b^2}+b\right )^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2154
Rubi steps
\begin {align*} \int \sqrt {b+\sqrt {b^2+a x^2}} \, dx &=\frac {2 a x^3}{3 \left (b+\sqrt {b^2+a x^2}\right )^{3/2}}+\frac {2 b x}{\sqrt {b+\sqrt {b^2+a x^2}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 41, normalized size = 0.65 \begin {gather*} \frac {2 x \left (2 b+\sqrt {b^2+a x^2}\right )}{3 \sqrt {b+\sqrt {b^2+a x^2}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 3 vs. order
2.
time = 0.06, size = 118, normalized size = 1.87
method | result | size |
meijerg | \(-\frac {\left (b^{2}\right )^{\frac {1}{4}} \left (-\frac {32 \sqrt {\pi }\, \sqrt {2}\, x^{3} \sqrt {\frac {a}{b^{2}}}\, a \cosh \left (\frac {3 \arcsinh \left (\frac {x \sqrt {a}}{b}\right )}{2}\right )}{3 b^{2}}-\frac {8 \sqrt {\pi }\, \sqrt {2}\, \sqrt {\frac {a}{b^{2}}}\, \left (-\frac {4 x^{4} a^{2}}{3 b^{4}}-\frac {2 x^{2} a}{3 b^{2}}+\frac {2}{3}\right ) \sinh \left (\frac {3 \arcsinh \left (\frac {x \sqrt {a}}{b}\right )}{2}\right ) b}{\sqrt {a}\, \sqrt {\frac {x^{2} a}{b^{2}}+1}}\right )}{8 \sqrt {\pi }\, \sqrt {\frac {a}{b^{2}}}}\) | \(118\) |
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.40, size = 47, normalized size = 0.75 \begin {gather*} \frac {2 \, {\left (a x^{2} - b^{2} + \sqrt {a x^{2} + b^{2}} b\right )} \sqrt {b + \sqrt {a x^{2} + b^{2}}}}{3 \, a x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 286 vs.
\(2 (56) = 112\).
time = 0.67, size = 286, normalized size = 4.54 \begin {gather*} - \frac {\sqrt {2} a \sqrt {b} x^{3} \Gamma \left (- \frac {1}{4}\right ) \Gamma \left (\frac {1}{4}\right )}{12 \pi b^{2} \sqrt {\frac {a x^{2}}{b^{2}} + 1} \sqrt {\sqrt {\frac {a x^{2}}{b^{2}} + 1} + 1} + 12 \pi b^{2} \sqrt {\sqrt {\frac {a x^{2}}{b^{2}} + 1} + 1}} - \frac {3 \sqrt {2} b^{\frac {5}{2}} x \sqrt {\frac {a x^{2}}{b^{2}} + 1} \Gamma \left (- \frac {1}{4}\right ) \Gamma \left (\frac {1}{4}\right )}{12 \pi b^{2} \sqrt {\frac {a x^{2}}{b^{2}} + 1} \sqrt {\sqrt {\frac {a x^{2}}{b^{2}} + 1} + 1} + 12 \pi b^{2} \sqrt {\sqrt {\frac {a x^{2}}{b^{2}} + 1} + 1}} - \frac {3 \sqrt {2} b^{\frac {5}{2}} x \Gamma \left (- \frac {1}{4}\right ) \Gamma \left (\frac {1}{4}\right )}{12 \pi b^{2} \sqrt {\frac {a x^{2}}{b^{2}} + 1} \sqrt {\sqrt {\frac {a x^{2}}{b^{2}} + 1} + 1} + 12 \pi b^{2} \sqrt {\sqrt {\frac {a x^{2}}{b^{2}} + 1} + 1}} \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.02 \begin {gather*} \int \sqrt {b+\sqrt {b^2+a\,x^2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________