Optimal. Leaf size=56 \[ \frac{\left (x-\sqrt{a+x^2}\right )^{b+1}}{2 (b+1)}-\frac{a \left (x-\sqrt{a+x^2}\right )^{b-1}}{2 (1-b)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0224871, antiderivative size = 56, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {2117, 14} \[ \frac{\left (x-\sqrt{a+x^2}\right )^{b+1}}{2 (b+1)}-\frac{a \left (x-\sqrt{a+x^2}\right )^{b-1}}{2 (1-b)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2117
Rule 14
Rubi steps
\begin{align*} \int \left (x-\sqrt{a+x^2}\right )^b \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int x^{-2+b} \left (a+x^2\right ) \, dx,x,x-\sqrt{a+x^2}\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \left (a x^{-2+b}+x^b\right ) \, dx,x,x-\sqrt{a+x^2}\right )\\ &=-\frac{a \left (x-\sqrt{a+x^2}\right )^{-1+b}}{2 (1-b)}+\frac{\left (x-\sqrt{a+x^2}\right )^{1+b}}{2 (1+b)}\\ \end{align*}
Mathematica [A] time = 0.0633378, size = 50, normalized size = 0.89 \[ \frac{1}{2} \left (x-\sqrt{a+x^2}\right )^{b-1} \left (\frac{\left (x-\sqrt{a+x^2}\right )^2}{b+1}+\frac{a}{b-1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.023, size = 0, normalized size = 0. \begin{align*} \int \left ( x-\sqrt{{x}^{2}+a} \right ) ^{b}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (x - \sqrt{x^{2} + a}\right )}^{b}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.1555, size = 76, normalized size = 1.36 \begin{align*} -\frac{{\left (\sqrt{x^{2} + a} b + x\right )}{\left (x - \sqrt{x^{2} + a}\right )}^{b}}{b^{2} - 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (x - \sqrt{a + x^{2}}\right )^{b}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (x - \sqrt{x^{2} + a}\right )}^{b}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]