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.103954, 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, Rules used = {2104, 50, 63, 208} \[ \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]
[Out]
Rule 2104
Rule 50
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{1}{x \left (\sqrt{a+b x}+\sqrt{c+b x}\right )} \, dx &=-\frac{b \int \frac{\sqrt{a+b x}}{x} \, dx}{-a b+b c}+\frac{b \int \frac{\sqrt{c+b x}}{x} \, dx}{-a b+b c}\\ &=\frac{2 \sqrt{a+b x}}{a-c}-\frac{2 \sqrt{c+b x}}{a-c}+\frac{a \int \frac{1}{x \sqrt{a+b x}} \, dx}{a-c}-\frac{c \int \frac{1}{x \sqrt{c+b x}} \, dx}{a-c}\\ &=\frac{2 \sqrt{a+b x}}{a-c}-\frac{2 \sqrt{c+b x}}{a-c}+\frac{(2 a) \operatorname{Subst}\left (\int \frac{1}{-\frac{a}{b}+\frac{x^2}{b}} \, dx,x,\sqrt{a+b x}\right )}{b (a-c)}-\frac{(2 c) \operatorname{Subst}\left (\int \frac{1}{-\frac{c}{b}+\frac{x^2}{b}} \, dx,x,\sqrt{c+b x}\right )}{b (a-c)}\\ &=\frac{2 \sqrt{a+b x}}{a-c}-\frac{2 \sqrt{c+b x}}{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{c+b x}}{\sqrt{c}}\right )}{a-c}\\ \end{align*}
Mathematica [A] time = 0.0721256, 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]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 73, normalized size = 0.8 \begin{align*}{\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 ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{x{\left (\sqrt{b x + a} + \sqrt{b x + c}\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.02143, size = 794, normalized size = 8.19 \begin{align*} \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}}{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}}{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}}{a}\right ) - \sqrt{-c} \arctan \left (\frac{\sqrt{b x + c} \sqrt{-c}}{c}\right ) + \sqrt{b x + a} - \sqrt{b x + c}\right )}}{a - c}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{x \left (\sqrt{a + b x} + \sqrt{b x + c}\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]