3.344 \(\int \frac{\left (x-\sqrt{a+x^2}\right )^n}{\left (a+x^2\right )^{3/2}} \, dx\)

Optimal. Leaf size=63 \[ -\frac{4 \left (x-\sqrt{a+x^2}\right )^{n+2} \, _2F_1\left (2,\frac{n+2}{2};\frac{n+4}{2};-\frac{\left (x-\sqrt{x^2+a}\right )^2}{a}\right )}{a^2 (n+2)} \]

[Out]

(-4*(x - Sqrt[a + x^2])^(2 + n)*Hypergeometric2F1[2, (2 + n)/2, (4 + n)/2, -((x
- Sqrt[a + x^2])^2/a)])/(a^2*(2 + n))

_______________________________________________________________________________________

Rubi [A]  time = 0.125568, antiderivative size = 63, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.08 \[ -\frac{4 \left (x-\sqrt{a+x^2}\right )^{n+2} \, _2F_1\left (2,\frac{n+2}{2};\frac{n+4}{2};-\frac{\left (x-\sqrt{x^2+a}\right )^2}{a}\right )}{a^2 (n+2)} \]

Antiderivative was successfully verified.

[In]  Int[(x - Sqrt[a + x^2])^n/(a + x^2)^(3/2),x]

[Out]

(-4*(x - Sqrt[a + x^2])^(2 + n)*Hypergeometric2F1[2, (2 + n)/2, (4 + n)/2, -((x
- Sqrt[a + x^2])^2/a)])/(a^2*(2 + n))

_______________________________________________________________________________________

Rubi in Sympy [F]  time = 0., size = 0, normalized size = 0. \[ - 4 \int ^{x - \sqrt{a + x^{2}}} \frac{x x^{n}}{\left (a + x^{2}\right )^{2}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((x-(x**2+a)**(1/2))**n/(x**2+a)**(3/2),x)

[Out]

-4*Integral(x*x**n/(a + x**2)**2, (x, x - sqrt(a + x**2)))

_______________________________________________________________________________________

Mathematica [A]  time = 0.0507669, size = 0, normalized size = 0. \[ \int \frac{\left (x-\sqrt{a+x^2}\right )^n}{\left (a+x^2\right )^{3/2}} \, dx \]

Verification is Not applicable to the result.

[In]  Integrate[(x - Sqrt[a + x^2])^n/(a + x^2)^(3/2),x]

[Out]

Integrate[(x - Sqrt[a + x^2])^n/(a + x^2)^(3/2), x]

_______________________________________________________________________________________

Maple [F]  time = 0.039, size = 0, normalized size = 0. \[ \int{1 \left ( x-\sqrt{{x}^{2}+a} \right ) ^{n} \left ({x}^{2}+a \right ) ^{-{\frac{3}{2}}}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((x-(x^2+a)^(1/2))^n/(x^2+a)^(3/2),x)

[Out]

int((x-(x^2+a)^(1/2))^n/(x^2+a)^(3/2),x)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (x - \sqrt{x^{2} + a}\right )}^{n}}{{\left (x^{2} + a\right )}^{\frac{3}{2}}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x - sqrt(x^2 + a))^n/(x^2 + a)^(3/2),x, algorithm="maxima")

[Out]

integrate((x - sqrt(x^2 + a))^n/(x^2 + a)^(3/2), x)

_______________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{{\left (x - \sqrt{x^{2} + a}\right )}^{n}}{{\left (x^{2} + a\right )}^{\frac{3}{2}}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x - sqrt(x^2 + a))^n/(x^2 + a)^(3/2),x, algorithm="fricas")

[Out]

integral((x - sqrt(x^2 + a))^n/(x^2 + a)^(3/2), x)

_______________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{\left (x - \sqrt{a + x^{2}}\right )^{n}}{\left (a + x^{2}\right )^{\frac{3}{2}}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x-(x**2+a)**(1/2))**n/(x**2+a)**(3/2),x)

[Out]

Integral((x - sqrt(a + x**2))**n/(a + x**2)**(3/2), x)

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (x - \sqrt{x^{2} + a}\right )}^{n}}{{\left (x^{2} + a\right )}^{\frac{3}{2}}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((x - sqrt(x^2 + a))^n/(x^2 + a)^(3/2),x, algorithm="giac")

[Out]

integrate((x - sqrt(x^2 + a))^n/(x^2 + a)^(3/2), x)