Optimal. Leaf size=20 \[ -\frac{\left (x-\sqrt{a+x^2}\right )^b}{b} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0922341, antiderivative size = 20, 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{\left (x-\sqrt{a+x^2}\right )^b}{b} \]
Antiderivative was successfully verified.
[In] Int[(x - Sqrt[a + x^2])^b/Sqrt[a + x^2],x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 4.36387, size = 14, normalized size = 0.7 \[ - \frac{\left (x - \sqrt{a + x^{2}}\right )^{b}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((x-(x**2+a)**(1/2))**b/(x**2+a)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0279361, size = 20, normalized size = 1. \[ -\frac{\left (x-\sqrt{a+x^2}\right )^b}{b} \]
Antiderivative was successfully verified.
[In] Integrate[(x - Sqrt[a + x^2])^b/Sqrt[a + x^2],x]
[Out]
_______________________________________________________________________________________
Maple [F] time = 0.045, size = 0, normalized size = 0. \[ \int{1 \left ( x-\sqrt{{x}^{2}+a} \right ) ^{b}{\frac{1}{\sqrt{{x}^{2}+a}}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((x-(x^2+a)^(1/2))^b/(x^2+a)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.39686, size = 24, normalized size = 1.2 \[ -\frac{{\left (x - \sqrt{x^{2} + a}\right )}^{b}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x - sqrt(x^2 + a))^b/sqrt(x^2 + a),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.232349, size = 24, normalized size = 1.2 \[ -\frac{{\left (x - \sqrt{x^{2} + a}\right )}^{b}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x - sqrt(x^2 + a))^b/sqrt(x^2 + a),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 3.55928, size = 36, normalized size = 1.8 \[ \begin{cases} - \frac{\left (x - \sqrt{a + x^{2}}\right )^{b}}{b} & \text{for}\: b \neq 0 \\\begin{cases} \operatorname{asinh}{\left (x \sqrt{\frac{1}{a}} \right )} & \text{for}\: a > 0 \\\operatorname{acosh}{\left (x \sqrt{- \frac{1}{a}} \right )} & \text{for}\: a < 0 \end{cases} & \text{otherwise} \end{cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x-(x**2+a)**(1/2))**b/(x**2+a)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (x - \sqrt{x^{2} + a}\right )}^{b}}{\sqrt{x^{2} + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x - sqrt(x^2 + a))^b/sqrt(x^2 + a),x, algorithm="giac")
[Out]