Optimal. Leaf size=63 \[ \frac{(a-c)^2}{8 b \left (\sqrt{a+b x}+\sqrt{b x+c}\right )^4}+\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{b x+c}}\right )}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0985642, antiderivative size = 114, normalized size of antiderivative = 1.81, number of steps used = 7, number of rules used = 5, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.238, Rules used = {6689, 50, 63, 217, 206} \[ \frac{b x^2}{(a-c)^2}-\frac{(a+b x)^{3/2} \sqrt{b x+c}}{b (a-c)^2}+\frac{\sqrt{a+b x} \sqrt{b x+c}}{2 b (a-c)}+\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{b x+c}}\right )}{2 b}+\frac{x (a+c)}{(a-c)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6689
Rule 50
Rule 63
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{\left (\sqrt{a+b x}+\sqrt{c+b x}\right )^2} \, dx &=\frac{\int \left (a \left (1+\frac{c}{a}\right )+2 b x-2 \sqrt{a+b x} \sqrt{c+b x}\right ) \, dx}{(a-c)^2}\\ &=\frac{(a+c) x}{(a-c)^2}+\frac{b x^2}{(a-c)^2}-\frac{2 \int \sqrt{a+b x} \sqrt{c+b x} \, dx}{(a-c)^2}\\ &=\frac{(a+c) x}{(a-c)^2}+\frac{b x^2}{(a-c)^2}-\frac{(a+b x)^{3/2} \sqrt{c+b x}}{b (a-c)^2}+\frac{\int \frac{\sqrt{a+b x}}{\sqrt{c+b x}} \, dx}{2 (a-c)}\\ &=\frac{(a+c) x}{(a-c)^2}+\frac{b x^2}{(a-c)^2}+\frac{\sqrt{a+b x} \sqrt{c+b x}}{2 b (a-c)}-\frac{(a+b x)^{3/2} \sqrt{c+b x}}{b (a-c)^2}+\frac{1}{4} \int \frac{1}{\sqrt{a+b x} \sqrt{c+b x}} \, dx\\ &=\frac{(a+c) x}{(a-c)^2}+\frac{b x^2}{(a-c)^2}+\frac{\sqrt{a+b x} \sqrt{c+b x}}{2 b (a-c)}-\frac{(a+b x)^{3/2} \sqrt{c+b x}}{b (a-c)^2}+\frac{\operatorname{Subst}\left (\int \frac{1}{\sqrt{-a+c+x^2}} \, dx,x,\sqrt{a+b x}\right )}{2 b}\\ &=\frac{(a+c) x}{(a-c)^2}+\frac{b x^2}{(a-c)^2}+\frac{\sqrt{a+b x} \sqrt{c+b x}}{2 b (a-c)}-\frac{(a+b x)^{3/2} \sqrt{c+b x}}{b (a-c)^2}+\frac{\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\frac{\sqrt{a+b x}}{\sqrt{c+b x}}\right )}{2 b}\\ &=\frac{(a+c) x}{(a-c)^2}+\frac{b x^2}{(a-c)^2}+\frac{\sqrt{a+b x} \sqrt{c+b x}}{2 b (a-c)}-\frac{(a+b x)^{3/2} \sqrt{c+b x}}{b (a-c)^2}+\frac{\tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{c+b x}}\right )}{2 b}\\ \end{align*}
Mathematica [B] time = 0.569051, size = 179, normalized size = 2.84 \[ \frac{2 b x \left (b x-\sqrt{a+b x} \sqrt{b x+c}\right )+a \left (2 b x-\sqrt{a+b x} \sqrt{b x+c}\right )+c \left (2 b x-\sqrt{a+b x} \sqrt{b x+c}\right )+\frac{\sqrt{b} (c-a)^3 \sqrt{\frac{b x+c}{c-a}} \sinh ^{-1}\left (\frac{\sqrt{b} \sqrt{a+b x}}{\sqrt{b (c-a)}}\right )}{\sqrt{b (c-a)} \sqrt{b x+c}}+2 c^2}{2 b (a-c)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.006, size = 377, normalized size = 6. \begin{align*}{\frac{ax}{ \left ( a-c \right ) ^{2}}}+{\frac{cx}{ \left ( a-c \right ) ^{2}}}+{\frac{b{x}^{2}}{ \left ( a-c \right ) ^{2}}}-{\frac{1}{ \left ( a-c \right ) ^{2}b}\sqrt{bx+a} \left ( bx+c \right ) ^{{\frac{3}{2}}}}-{\frac{a}{2\, \left ( a-c \right ) ^{2}b}\sqrt{bx+c}\sqrt{bx+a}}+{\frac{c}{2\, \left ( a-c \right ) ^{2}b}\sqrt{bx+c}\sqrt{bx+a}}+{\frac{{a}^{2}}{4\, \left ( a-c \right ) ^{2}}\sqrt{ \left ( bx+c \right ) \left ( bx+a \right ) }\ln \left ({ \left ({\frac{ab}{2}}+{\frac{bc}{2}}+{b}^{2}x \right ){\frac{1}{\sqrt{{b}^{2}}}}}+\sqrt{{b}^{2}{x}^{2}+ \left ( ab+bc \right ) x+ac} \right ){\frac{1}{\sqrt{bx+c}}}{\frac{1}{\sqrt{bx+a}}}{\frac{1}{\sqrt{{b}^{2}}}}}-{\frac{ac}{2\, \left ( a-c \right ) ^{2}}\sqrt{ \left ( bx+c \right ) \left ( bx+a \right ) }\ln \left ({ \left ({\frac{ab}{2}}+{\frac{bc}{2}}+{b}^{2}x \right ){\frac{1}{\sqrt{{b}^{2}}}}}+\sqrt{{b}^{2}{x}^{2}+ \left ( ab+bc \right ) x+ac} \right ){\frac{1}{\sqrt{bx+c}}}{\frac{1}{\sqrt{bx+a}}}{\frac{1}{\sqrt{{b}^{2}}}}}+{\frac{{c}^{2}}{4\, \left ( a-c \right ) ^{2}}\sqrt{ \left ( bx+c \right ) \left ( bx+a \right ) }\ln \left ({ \left ({\frac{ab}{2}}+{\frac{bc}{2}}+{b}^{2}x \right ){\frac{1}{\sqrt{{b}^{2}}}}}+\sqrt{{b}^{2}{x}^{2}+ \left ( ab+bc \right ) x+ac} \right ){\frac{1}{\sqrt{bx+c}}}{\frac{1}{\sqrt{bx+a}}}{\frac{1}{\sqrt{{b}^{2}}}}} \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}{{\left (\sqrt{b x + a} + \sqrt{b x + c}\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.993924, size = 247, normalized size = 3.92 \begin{align*} \frac{4 \, b^{2} x^{2} - 2 \,{\left (2 \, b x + a + c\right )} \sqrt{b x + a} \sqrt{b x + c} + 4 \,{\left (a b + b c\right )} x -{\left (a^{2} - 2 \, a c + c^{2}\right )} \log \left (-2 \, b x + 2 \, \sqrt{b x + a} \sqrt{b x + c} - a - c\right )}{4 \,{\left (a^{2} b - 2 \, a b c + b c^{2}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.992041, size = 318, normalized size = 5.05 \begin{align*} \begin{cases} \frac{a \log{\left (\sqrt{a + b x} + \sqrt{b x + c} \right )}}{2 a b + 4 b^{2} x + 2 b c + 4 b \sqrt{a + b x} \sqrt{b x + c}} + \frac{2 b x \log{\left (\sqrt{a + b x} + \sqrt{b x + c} \right )}}{2 a b + 4 b^{2} x + 2 b c + 4 b \sqrt{a + b x} \sqrt{b x + c}} + \frac{c \log{\left (\sqrt{a + b x} + \sqrt{b x + c} \right )}}{2 a b + 4 b^{2} x + 2 b c + 4 b \sqrt{a + b x} \sqrt{b x + c}} + \frac{2 \sqrt{a + b x} \sqrt{b x + c} \log{\left (\sqrt{a + b x} + \sqrt{b x + c} \right )}}{2 a b + 4 b^{2} x + 2 b c + 4 b \sqrt{a + b x} \sqrt{b x + c}} - \frac{\sqrt{a + b x} \sqrt{b x + c}}{2 a b + 4 b^{2} x + 2 b c + 4 b \sqrt{a + b x} \sqrt{b x + c}} & \text{for}\: b \neq 0 \\\frac{x}{\left (\sqrt{a} + \sqrt{c}\right )^{2}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]