Optimal. Leaf size=176 \[ -\frac{a^5 \left (x-\sqrt{a+x^2}\right )^{n-5}}{32 (5-n)}-\frac{5 a^4 \left (x-\sqrt{a+x^2}\right )^{n-3}}{32 (3-n)}-\frac{5 a^3 \left (x-\sqrt{a+x^2}\right )^{n-1}}{16 (1-n)}+\frac{5 a^2 \left (x-\sqrt{a+x^2}\right )^{n+1}}{16 (n+1)}+\frac{5 a \left (x-\sqrt{a+x^2}\right )^{n+3}}{32 (n+3)}+\frac{\left (x-\sqrt{a+x^2}\right )^{n+5}}{32 (n+5)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.203304, antiderivative size = 176, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.087 \[ -\frac{a^5 \left (x-\sqrt{a+x^2}\right )^{n-5}}{32 (5-n)}-\frac{5 a^4 \left (x-\sqrt{a+x^2}\right )^{n-3}}{32 (3-n)}-\frac{5 a^3 \left (x-\sqrt{a+x^2}\right )^{n-1}}{16 (1-n)}+\frac{5 a^2 \left (x-\sqrt{a+x^2}\right )^{n+1}}{16 (n+1)}+\frac{5 a \left (x-\sqrt{a+x^2}\right )^{n+3}}{32 (n+3)}+\frac{\left (x-\sqrt{a+x^2}\right )^{n+5}}{32 (n+5)} \]
Antiderivative was successfully verified.
[In] Int[(a + x^2)^2*(x - Sqrt[a + x^2])^n,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \frac{\int ^{x - \sqrt{a + x^{2}}} \frac{x^{n} \left (a + x^{2}\right )^{5}}{x^{6}}\, dx}{32} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((x**2+a)**2*(x-(x**2+a)**(1/2))**n,x)
[Out]
_______________________________________________________________________________________
Mathematica [B] time = 3.11133, size = 361, normalized size = 2.05 \[ \frac{1}{2} \left (x-\sqrt{a+x^2}\right )^n \left (-\frac{2 a^2 \left (n \sqrt{a+x^2}+x\right )}{n^2-1}+\frac{4 a \sqrt{a+x^2} \left (2 a^3 n+a^2 (n-3) n x \left (2 \sqrt{a+x^2}+(n-3) x\right )-a \left (n^2-4 n+3\right ) x^3 \left ((3 n+1) \sqrt{a+x^2}-(5 n+3) x\right )-4 \left (n^3-3 n^2-n+3\right ) x^5 \left (\sqrt{a+x^2}-x\right )\right )}{(n-3) (n-1) (n+1) (n+3) \left (x-\sqrt{a+x^2}\right )^2 \left (x \left (\sqrt{a+x^2}-x\right )-a\right )}+\frac{1}{16} \left (\frac{a^5}{(n-5) \left (x-\sqrt{a+x^2}\right )^5}+\frac{3 a^4}{(n-3) \left (\sqrt{a+x^2}-x\right )^3}+\frac{2 a^3}{(n-1) \left (x-\sqrt{a+x^2}\right )}+\frac{2 a^2 \left (x-\sqrt{a+x^2}\right )}{n+1}+\frac{3 a \left (\sqrt{a+x^2}-x\right )^3}{n+3}+\frac{\left (x-\sqrt{a+x^2}\right )^5}{n+5}\right )\right ) \]
Antiderivative was successfully verified.
[In] Integrate[(a + x^2)^2*(x - Sqrt[a + x^2])^n,x]
[Out]
_______________________________________________________________________________________
Maple [F] time = 0.047, size = 0, normalized size = 0. \[ \int \left ({x}^{2}+a \right ) ^{2} \left ( x-\sqrt{{x}^{2}+a} \right ) ^{n}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((x^2+a)^2*(x-(x^2+a)^(1/2))^n,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int{\left (x^{2} + a\right )}^{2}{\left (x - \sqrt{x^{2} + a}\right )}^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^2 + a)^2*(x - sqrt(x^2 + a))^n,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.31672, size = 215, normalized size = 1.22 \[ -\frac{{\left (5 \,{\left (n^{4} - 10 \, n^{2} + 9\right )} x^{5} + 10 \,{\left (a n^{4} - 16 \, a n^{2} + 15 \, a\right )} x^{3} + 5 \,{\left (a^{2} n^{4} - 22 \, a^{2} n^{2} + 45 \, a^{2}\right )} x +{\left (a^{2} n^{5} - 30 \, a^{2} n^{3} +{\left (n^{5} - 10 \, n^{3} + 9 \, n\right )} x^{4} + 149 \, a^{2} n + 2 \,{\left (a n^{5} - 20 \, a n^{3} + 19 \, a n\right )} x^{2}\right )} \sqrt{x^{2} + a}\right )}{\left (x - \sqrt{x^{2} + a}\right )}^{n}}{n^{6} - 35 \, n^{4} + 259 \, n^{2} - 225} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^2 + a)^2*(x - sqrt(x^2 + a))^n,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x**2+a)**2*(x-(x**2+a)**(1/2))**n,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int{\left (x^{2} + a\right )}^{2}{\left (x - \sqrt{x^{2} + a}\right )}^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x^2 + a)^2*(x - sqrt(x^2 + a))^n,x, algorithm="giac")
[Out]