Optimal. Leaf size=103 \[ -\frac{\sqrt{a+b x}}{x (a-c)}+\frac{\sqrt{b x+c}}{x (a-c)}-\frac{b \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{a}}\right )}{\sqrt{a} (a-c)}+\frac{b \tanh ^{-1}\left (\frac{\sqrt{b x+c}}{\sqrt{c}}\right )}{\sqrt{c} (a-c)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.199084, antiderivative size = 103, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 4, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.16 \[ -\frac{\sqrt{a+b x}}{x (a-c)}+\frac{\sqrt{b x+c}}{x (a-c)}-\frac{b \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{a}}\right )}{\sqrt{a} (a-c)}+\frac{b \tanh ^{-1}\left (\frac{\sqrt{b x+c}}{\sqrt{c}}\right )}{\sqrt{c} (a-c)} \]
Antiderivative was successfully verified.
[In] Int[1/(x^2*(Sqrt[a + b*x] + Sqrt[c + b*x])),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 18.6214, size = 76, normalized size = 0.74 \[ \frac{b \operatorname{atanh}{\left (\frac{\sqrt{b x + c}}{\sqrt{c}} \right )}}{\sqrt{c} \left (a - c\right )} - \frac{\sqrt{a + b x}}{x \left (a - c\right )} + \frac{\sqrt{b x + c}}{x \left (a - c\right )} - \frac{b \operatorname{atanh}{\left (\frac{\sqrt{a + b x}}{\sqrt{a}} \right )}}{\sqrt{a} \left (a - c\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(1/x**2/((b*x+a)**(1/2)+(b*x+c)**(1/2)),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.18027, size = 81, normalized size = 0.79 \[ \frac{-\sqrt{a+b x}-\frac{b x \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{a}}\right )}{\sqrt{a}}+\sqrt{b x+c}+\frac{b x \tanh ^{-1}\left (\frac{\sqrt{b x+c}}{\sqrt{c}}\right )}{\sqrt{c}}}{a x-c x} \]
Antiderivative was successfully verified.
[In] Integrate[1/(x^2*(Sqrt[a + b*x] + Sqrt[c + b*x])),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.02, size = 88, normalized size = 0.9 \[ 2\,{\frac{b}{a-c} \left ( -1/2\,{\frac{\sqrt{bx+a}}{bx}}-1/2\,{\frac{1}{\sqrt{a}}{\it Artanh} \left ({\frac{\sqrt{bx+a}}{\sqrt{a}}} \right ) } \right ) }-2\,{\frac{b}{a-c} \left ( -1/2\,{\frac{\sqrt{bx+c}}{bx}}-1/2\,{\frac{1}{\sqrt{c}}{\it Artanh} \left ({\frac{\sqrt{bx+c}}{\sqrt{c}}} \right ) } \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(1/x^2/((b*x+a)^(1/2)+(b*x+c)^(1/2)),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{1}{x^{2}{\left (\sqrt{b x + a} + \sqrt{b x + c}\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x^2*(sqrt(b*x + a) + sqrt(b*x + c))),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.313997, size = 1, normalized size = 0.01 \[ \left [-\frac{b \sqrt{c} x \log \left (\frac{{\left (b x + 2 \, a\right )} \sqrt{a} + 2 \, \sqrt{b x + a} a}{x}\right ) + \sqrt{a} b x \log \left (\frac{{\left (b x + 2 \, c\right )} \sqrt{c} - 2 \, \sqrt{b x + c} c}{x}\right ) + 2 \, \sqrt{b x + a} \sqrt{a} \sqrt{c} - 2 \, \sqrt{b x + c} \sqrt{a} \sqrt{c}}{2 \,{\left (a - c\right )} \sqrt{a} \sqrt{c} x}, -\frac{2 \, \sqrt{a} b x \arctan \left (\frac{c}{\sqrt{b x + c} \sqrt{-c}}\right ) + b \sqrt{-c} x \log \left (\frac{{\left (b x + 2 \, a\right )} \sqrt{a} + 2 \, \sqrt{b x + a} a}{x}\right ) + 2 \, \sqrt{b x + a} \sqrt{a} \sqrt{-c} - 2 \, \sqrt{b x + c} \sqrt{a} \sqrt{-c}}{2 \,{\left (a - c\right )} \sqrt{a} \sqrt{-c} x}, \frac{2 \, b \sqrt{c} x \arctan \left (\frac{a}{\sqrt{b x + a} \sqrt{-a}}\right ) - \sqrt{-a} b x \log \left (\frac{{\left (b x + 2 \, c\right )} \sqrt{c} - 2 \, \sqrt{b x + c} c}{x}\right ) - 2 \, \sqrt{b x + a} \sqrt{-a} \sqrt{c} + 2 \, \sqrt{b x + c} \sqrt{-a} \sqrt{c}}{2 \, \sqrt{-a}{\left (a - c\right )} \sqrt{c} x}, \frac{b \sqrt{-c} x \arctan \left (\frac{a}{\sqrt{b x + a} \sqrt{-a}}\right ) - \sqrt{-a} b x \arctan \left (\frac{c}{\sqrt{b x + c} \sqrt{-c}}\right ) - \sqrt{b x + a} \sqrt{-a} \sqrt{-c} + \sqrt{b x + c} \sqrt{-a} \sqrt{-c}}{\sqrt{-a}{\left (a - c\right )} \sqrt{-c} x}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x^2*(sqrt(b*x + a) + sqrt(b*x + c))),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{1}{x^{2} \left (\sqrt{a + b x} + \sqrt{b x + c}\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/x**2/((b*x+a)**(1/2)+(b*x+c)**(1/2)),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x^2*(sqrt(b*x + a) + sqrt(b*x + c))),x, algorithm="giac")
[Out]