Optimal. Leaf size=75 \[ -\frac{a^2 \left (\sqrt{a+x^2}+x\right )^{n-2}}{4 (2-n)}+\frac{a \left (\sqrt{a+x^2}+x\right )^n}{2 n}+\frac{\left (\sqrt{a+x^2}+x\right )^{n+2}}{4 (n+2)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.133209, antiderivative size = 75, 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^2 \left (\sqrt{a+x^2}+x\right )^{n-2}}{4 (2-n)}+\frac{a \left (\sqrt{a+x^2}+x\right )^n}{2 n}+\frac{\left (\sqrt{a+x^2}+x\right )^{n+2}}{4 (n+2)} \]
Antiderivative was successfully verified.
[In] Int[Sqrt[a + x^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 )^{2}}{x^{3}}\, dx}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((x**2+a)**(1/2)*(x+(x**2+a)**(1/2))**n,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.762825, size = 104, normalized size = 1.39 \[ \frac{\left (a+x^2\right ) \left (\sqrt{a+x^2}+x\right )^n \left (a^2 \left (n^2-2\right )+a (n-2) x \left (2 (n+1) \sqrt{a+x^2}+(3 n+2) x\right )+2 (n-2) n x^3 \left (\sqrt{a+x^2}+x\right )\right )}{n \left (n^2-4\right ) \left (x \left (\sqrt{a+x^2}+x\right )+a\right )^2} \]
Antiderivative was successfully verified.
[In] Integrate[Sqrt[a + x^2]*(x + Sqrt[a + x^2])^n,x]
[Out]
_______________________________________________________________________________________
Maple [F] time = 0.024, size = 0, normalized size = 0. \[ \int \sqrt{{x}^{2}+a} \left ( x+\sqrt{{x}^{2}+a} \right ) ^{n}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((x^2+a)^(1/2)*(x+(x^2+a)^(1/2))^n,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int \sqrt{x^{2} + a}{\left (x + \sqrt{x^{2} + a}\right )}^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(x^2 + a)*(x + sqrt(x^2 + a))^n,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.302129, size = 65, normalized size = 0.87 \[ \frac{{\left (n^{2} x^{2} + a n^{2} - 2 \, \sqrt{x^{2} + a} n x - 2 \, a\right )}{\left (x + \sqrt{x^{2} + a}\right )}^{n}}{n^{3} - 4 \, n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(x^2 + a)*(x + sqrt(x^2 + a))^n,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \sqrt{a + x^{2}} \left (x + \sqrt{a + x^{2}}\right )^{n}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x**2+a)**(1/2)*(x+(x**2+a)**(1/2))**n,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \sqrt{x^{2} + a}{\left (x + \sqrt{x^{2} + a}\right )}^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(x^2 + a)*(x + sqrt(x^2 + a))^n,x, algorithm="giac")
[Out]