Optimal. Leaf size=97 \[ \frac{2 \sqrt{a+b x}}{a-c}-\frac{2 \sqrt{b x+c}}{a-c}-\frac{2 \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{a}}\right )}{a-c}+\frac{2 \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{b x+c}}{\sqrt{c}}\right )}{a-c} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.197203, antiderivative size = 97, 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{2 \sqrt{a+b x}}{a-c}-\frac{2 \sqrt{b x+c}}{a-c}-\frac{2 \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{a}}\right )}{a-c}+\frac{2 \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{b x+c}}{\sqrt{c}}\right )}{a-c} \]
Antiderivative was successfully verified.
[In] Int[1/(x*(Sqrt[a + b*x] + Sqrt[c + b*x])),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 18.0611, size = 76, normalized size = 0.78 \[ - \frac{2 \sqrt{a} \operatorname{atanh}{\left (\frac{\sqrt{a + b x}}{\sqrt{a}} \right )}}{a - c} + \frac{2 \sqrt{c} \operatorname{atanh}{\left (\frac{\sqrt{b x + c}}{\sqrt{c}} \right )}}{a - c} + \frac{2 \sqrt{a + b x}}{a - c} - \frac{2 \sqrt{b x + c}}{a - c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(1/x/((b*x+a)**(1/2)+(b*x+c)**(1/2)),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0769796, size = 75, normalized size = 0.77 \[ \frac{2 \left (\sqrt{a+b x}-\sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{a}}\right )-\sqrt{b x+c}+\sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{b x+c}}{\sqrt{c}}\right )\right )}{a-c} \]
Antiderivative was successfully verified.
[In] Integrate[1/(x*(Sqrt[a + b*x] + Sqrt[c + b*x])),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.008, size = 73, normalized size = 0.8 \[{\frac{1}{a-c} \left ( 2\,\sqrt{bx+a}-2\,\sqrt{a}{\it Artanh} \left ({\frac{\sqrt{bx+a}}{\sqrt{a}}} \right ) \right ) }-{\frac{1}{a-c} \left ( 2\,\sqrt{bx+c}-2\,\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/((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{\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*(sqrt(b*x + a) + sqrt(b*x + c))),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.342296, size = 1, normalized size = 0.01 \[ \left [-\frac{\sqrt{a} \log \left (\frac{b x + 2 \, \sqrt{b x + a} \sqrt{a} + 2 \, a}{x}\right ) + \sqrt{c} \log \left (\frac{b x - 2 \, \sqrt{b x + c} \sqrt{c} + 2 \, c}{x}\right ) - 2 \, \sqrt{b x + a} + 2 \, \sqrt{b x + c}}{a - c}, \frac{2 \, \sqrt{-c} \arctan \left (\frac{\sqrt{b x + c}}{\sqrt{-c}}\right ) - \sqrt{a} \log \left (\frac{b x + 2 \, \sqrt{b x + a} \sqrt{a} + 2 \, a}{x}\right ) + 2 \, \sqrt{b x + a} - 2 \, \sqrt{b x + c}}{a - c}, -\frac{2 \, \sqrt{-a} \arctan \left (\frac{\sqrt{b x + a}}{\sqrt{-a}}\right ) + \sqrt{c} \log \left (\frac{b x - 2 \, \sqrt{b x + c} \sqrt{c} + 2 \, c}{x}\right ) - 2 \, \sqrt{b x + a} + 2 \, \sqrt{b x + c}}{a - c}, -\frac{2 \,{\left (\sqrt{-a} \arctan \left (\frac{\sqrt{b x + a}}{\sqrt{-a}}\right ) - \sqrt{-c} \arctan \left (\frac{\sqrt{b x + c}}{\sqrt{-c}}\right ) - \sqrt{b x + a} + \sqrt{b x + c}\right )}}{a - c}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x*(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 \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/((b*x+a)**(1/2)+(b*x+c)**(1/2)),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F(-2)] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(1/(x*(sqrt(b*x + a) + sqrt(b*x + c))),x, algorithm="giac")
[Out]