Optimal. Leaf size=165 \[ -\frac{2 (a+b x)^{3/2} (b x+c)^{3/2}}{3 b^2 (a-c)^2}+\frac{(a+c) (a+b x)^{3/2} \sqrt{b x+c}}{2 b^2 (a-c)^2}-\frac{(a+c) \sqrt{a+b x} \sqrt{b x+c}}{4 b^2 (a-c)}-\frac{(a+c) \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{b x+c}}\right )}{4 b^2}+\frac{2 b x^3}{3 (a-c)^2}+\frac{x^2 (a+c)}{2 (a-c)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.21001, antiderivative size = 165, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.261, Rules used = {6689, 80, 50, 63, 217, 206} \[ -\frac{2 (a+b x)^{3/2} (b x+c)^{3/2}}{3 b^2 (a-c)^2}+\frac{(a+c) (a+b x)^{3/2} \sqrt{b x+c}}{2 b^2 (a-c)^2}-\frac{(a+c) \sqrt{a+b x} \sqrt{b x+c}}{4 b^2 (a-c)}-\frac{(a+c) \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{b x+c}}\right )}{4 b^2}+\frac{2 b x^3}{3 (a-c)^2}+\frac{x^2 (a+c)}{2 (a-c)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6689
Rule 80
Rule 50
Rule 63
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{x}{\left (\sqrt{a+b x}+\sqrt{c+b x}\right )^2} \, dx &=\frac{\int \left (a \left (1+\frac{c}{a}\right ) x+2 b x^2-2 x \sqrt{a+b x} \sqrt{c+b x}\right ) \, dx}{(a-c)^2}\\ &=\frac{(a+c) x^2}{2 (a-c)^2}+\frac{2 b x^3}{3 (a-c)^2}-\frac{2 \int x \sqrt{a+b x} \sqrt{c+b x} \, dx}{(a-c)^2}\\ &=\frac{(a+c) x^2}{2 (a-c)^2}+\frac{2 b x^3}{3 (a-c)^2}-\frac{2 (a+b x)^{3/2} (c+b x)^{3/2}}{3 b^2 (a-c)^2}+\frac{(a+c) \int \sqrt{a+b x} \sqrt{c+b x} \, dx}{b (a-c)^2}\\ &=\frac{(a+c) x^2}{2 (a-c)^2}+\frac{2 b x^3}{3 (a-c)^2}+\frac{(a+c) (a+b x)^{3/2} \sqrt{c+b x}}{2 b^2 (a-c)^2}-\frac{2 (a+b x)^{3/2} (c+b x)^{3/2}}{3 b^2 (a-c)^2}-\frac{(a+c) \int \frac{\sqrt{a+b x}}{\sqrt{c+b x}} \, dx}{4 b (a-c)}\\ &=\frac{(a+c) x^2}{2 (a-c)^2}+\frac{2 b x^3}{3 (a-c)^2}-\frac{(a+c) \sqrt{a+b x} \sqrt{c+b x}}{4 b^2 (a-c)}+\frac{(a+c) (a+b x)^{3/2} \sqrt{c+b x}}{2 b^2 (a-c)^2}-\frac{2 (a+b x)^{3/2} (c+b x)^{3/2}}{3 b^2 (a-c)^2}-\frac{(a+c) \int \frac{1}{\sqrt{a+b x} \sqrt{c+b x}} \, dx}{8 b}\\ &=\frac{(a+c) x^2}{2 (a-c)^2}+\frac{2 b x^3}{3 (a-c)^2}-\frac{(a+c) \sqrt{a+b x} \sqrt{c+b x}}{4 b^2 (a-c)}+\frac{(a+c) (a+b x)^{3/2} \sqrt{c+b x}}{2 b^2 (a-c)^2}-\frac{2 (a+b x)^{3/2} (c+b x)^{3/2}}{3 b^2 (a-c)^2}-\frac{(a+c) \operatorname{Subst}\left (\int \frac{1}{\sqrt{-a+c+x^2}} \, dx,x,\sqrt{a+b x}\right )}{4 b^2}\\ &=\frac{(a+c) x^2}{2 (a-c)^2}+\frac{2 b x^3}{3 (a-c)^2}-\frac{(a+c) \sqrt{a+b x} \sqrt{c+b x}}{4 b^2 (a-c)}+\frac{(a+c) (a+b x)^{3/2} \sqrt{c+b x}}{2 b^2 (a-c)^2}-\frac{2 (a+b x)^{3/2} (c+b x)^{3/2}}{3 b^2 (a-c)^2}-\frac{(a+c) \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\frac{\sqrt{a+b x}}{\sqrt{c+b x}}\right )}{4 b^2}\\ &=\frac{(a+c) x^2}{2 (a-c)^2}+\frac{2 b x^3}{3 (a-c)^2}-\frac{(a+c) \sqrt{a+b x} \sqrt{c+b x}}{4 b^2 (a-c)}+\frac{(a+c) (a+b x)^{3/2} \sqrt{c+b x}}{2 b^2 (a-c)^2}-\frac{2 (a+b x)^{3/2} (c+b x)^{3/2}}{3 b^2 (a-c)^2}-\frac{(a+c) \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{c+b x}}\right )}{4 b^2}\\ \end{align*}
Mathematica [A] time = 0.871075, size = 229, normalized size = 1.39 \[ \frac{3 a^2 \sqrt{a+b x} \sqrt{b x+c}-2 a \left (b x \sqrt{a+b x} \sqrt{b x+c}+c \sqrt{a+b x} \sqrt{b x+c}-3 b^2 x^2\right )+(4 b x+3 c) \left (-2 b x \sqrt{a+b x} \sqrt{b x+c}+c \sqrt{a+b x} \sqrt{b x+c}+2 b^2 x^2\right )}{12 b^2 (a-c)^2}-\frac{(a+c) \sqrt{b (c-a)} \sqrt{-\frac{b x+c}{a-c}} \sinh ^{-1}\left (\frac{\sqrt{b} \sqrt{a+b x}}{\sqrt{b (c-a)}}\right )}{4 b^{5/2} \sqrt{b x+c}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.01, size = 431, normalized size = 2.6 \begin{align*}{\frac{a{x}^{2}}{2\, \left ( a-c \right ) ^{2}}}+{\frac{c{x}^{2}}{2\, \left ( a-c \right ) ^{2}}}+{\frac{2\,b{x}^{3}}{3\, \left ( a-c \right ) ^{2}}}-{\frac{{\it csgn} \left ( b \right ) }{24\, \left ( a-c \right ) ^{2}{b}^{2}}\sqrt{bx+a}\sqrt{bx+c} \left ( 16\,{\it csgn} \left ( b \right ){x}^{2}{b}^{2}\sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}+4\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}xab+4\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}xbc-6\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}{a}^{2}+4\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}ac-6\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}{c}^{2}+3\,\ln \left ( 1/2\, \left ( 2\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}+2\,bx+a+c \right ){\it csgn} \left ( b \right ) \right ){a}^{3}-3\,\ln \left ( 1/2\, \left ( 2\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}+2\,bx+a+c \right ){\it csgn} \left ( b \right ) \right ){a}^{2}c-3\,\ln \left ( 1/2\, \left ( 2\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}+2\,bx+a+c \right ){\it csgn} \left ( b \right ) \right ) a{c}^{2}+3\,\ln \left ( 1/2\, \left ( 2\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}+2\,bx+a+c \right ){\it csgn} \left ( b \right ) \right ){c}^{3} \right ){\frac{1}{\sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}}}} \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{x}{{\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 [A] time = 0.975902, size = 332, normalized size = 2.01 \begin{align*} \frac{16 \, b^{3} x^{3} + 12 \,{\left (a b^{2} + b^{2} c\right )} x^{2} - 2 \,{\left (8 \, b^{2} x^{2} - 3 \, a^{2} + 2 \, a c - 3 \, c^{2} + 2 \,{\left (a b + b c\right )} x\right )} \sqrt{b x + a} \sqrt{b x + c} + 3 \,{\left (a^{3} - a^{2} c - a c^{2} + c^{3}\right )} \log \left (-2 \, b x + 2 \, \sqrt{b x + a} \sqrt{b x + c} - a - c\right )}{24 \,{\left (a^{2} b^{2} - 2 \, a b^{2} c + b^{2} c^{2}\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{x}{\left (\sqrt{a + b x} + \sqrt{b x + c}\right )^{2}}\, dx \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]