Optimal. Leaf size=228 \[ -\frac{x (a+b x)^{3/2} (b x+c)^{3/2}}{2 b^2 (a-c)^2}+\frac{5 (a+c) (a+b x)^{3/2} (b x+c)^{3/2}}{12 b^3 (a-c)^2}+\frac{\left (4 a c-5 (a+c)^2\right ) (a+b x)^{3/2} \sqrt{b x+c}}{16 b^3 (a-c)^2}-\frac{\left (4 a c-5 (a+c)^2\right ) \sqrt{a+b x} \sqrt{b x+c}}{32 b^3 (a-c)}-\frac{\left (4 a c-5 (a+c)^2\right ) \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{b x+c}}\right )}{32 b^3}+\frac{b x^4}{2 (a-c)^2}+\frac{x^3 (a+c)}{3 (a-c)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.373396, antiderivative size = 228, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 7, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.28, Rules used = {6689, 90, 80, 50, 63, 217, 206} \[ -\frac{x (a+b x)^{3/2} (b x+c)^{3/2}}{2 b^2 (a-c)^2}+\frac{5 (a+c) (a+b x)^{3/2} (b x+c)^{3/2}}{12 b^3 (a-c)^2}+\frac{\left (4 a c-5 (a+c)^2\right ) (a+b x)^{3/2} \sqrt{b x+c}}{16 b^3 (a-c)^2}-\frac{\left (4 a c-5 (a+c)^2\right ) \sqrt{a+b x} \sqrt{b x+c}}{32 b^3 (a-c)}-\frac{\left (4 a c-5 (a+c)^2\right ) \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{b x+c}}\right )}{32 b^3}+\frac{b x^4}{2 (a-c)^2}+\frac{x^3 (a+c)}{3 (a-c)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6689
Rule 90
Rule 80
Rule 50
Rule 63
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \frac{x^2}{\left (\sqrt{a+b x}+\sqrt{c+b x}\right )^2} \, dx &=\frac{\int \left (a \left (1+\frac{c}{a}\right ) x^2+2 b x^3-2 x^2 \sqrt{a+b x} \sqrt{c+b x}\right ) \, dx}{(a-c)^2}\\ &=\frac{(a+c) x^3}{3 (a-c)^2}+\frac{b x^4}{2 (a-c)^2}-\frac{2 \int x^2 \sqrt{a+b x} \sqrt{c+b x} \, dx}{(a-c)^2}\\ &=\frac{(a+c) x^3}{3 (a-c)^2}+\frac{b x^4}{2 (a-c)^2}-\frac{x (a+b x)^{3/2} (c+b x)^{3/2}}{2 b^2 (a-c)^2}-\frac{\int \sqrt{a+b x} \sqrt{c+b x} \left (-a c-\frac{5}{2} b (a+c) x\right ) \, dx}{2 b^2 (a-c)^2}\\ &=\frac{(a+c) x^3}{3 (a-c)^2}+\frac{b x^4}{2 (a-c)^2}+\frac{5 (a+c) (a+b x)^{3/2} (c+b x)^{3/2}}{12 b^3 (a-c)^2}-\frac{x (a+b x)^{3/2} (c+b x)^{3/2}}{2 b^2 (a-c)^2}+\frac{\left (4 a c-5 (a+c)^2\right ) \int \sqrt{a+b x} \sqrt{c+b x} \, dx}{8 b^2 (a-c)^2}\\ &=\frac{(a+c) x^3}{3 (a-c)^2}+\frac{b x^4}{2 (a-c)^2}+\frac{\left (4 a c-5 (a+c)^2\right ) (a+b x)^{3/2} \sqrt{c+b x}}{16 b^3 (a-c)^2}+\frac{5 (a+c) (a+b x)^{3/2} (c+b x)^{3/2}}{12 b^3 (a-c)^2}-\frac{x (a+b x)^{3/2} (c+b x)^{3/2}}{2 b^2 (a-c)^2}+\frac{\left (5 a^2+6 a c+5 c^2\right ) \int \frac{\sqrt{a+b x}}{\sqrt{c+b x}} \, dx}{32 b^2 (a-c)}\\ &=\frac{(a+c) x^3}{3 (a-c)^2}+\frac{b x^4}{2 (a-c)^2}+\frac{\left (5 a^2+6 a c+5 c^2\right ) \sqrt{a+b x} \sqrt{c+b x}}{32 b^3 (a-c)}+\frac{\left (4 a c-5 (a+c)^2\right ) (a+b x)^{3/2} \sqrt{c+b x}}{16 b^3 (a-c)^2}+\frac{5 (a+c) (a+b x)^{3/2} (c+b x)^{3/2}}{12 b^3 (a-c)^2}-\frac{x (a+b x)^{3/2} (c+b x)^{3/2}}{2 b^2 (a-c)^2}+\frac{\left (5 a^2+6 a c+5 c^2\right ) \int \frac{1}{\sqrt{a+b x} \sqrt{c+b x}} \, dx}{64 b^2}\\ &=\frac{(a+c) x^3}{3 (a-c)^2}+\frac{b x^4}{2 (a-c)^2}+\frac{\left (5 a^2+6 a c+5 c^2\right ) \sqrt{a+b x} \sqrt{c+b x}}{32 b^3 (a-c)}+\frac{\left (4 a c-5 (a+c)^2\right ) (a+b x)^{3/2} \sqrt{c+b x}}{16 b^3 (a-c)^2}+\frac{5 (a+c) (a+b x)^{3/2} (c+b x)^{3/2}}{12 b^3 (a-c)^2}-\frac{x (a+b x)^{3/2} (c+b x)^{3/2}}{2 b^2 (a-c)^2}+\frac{\left (5 a^2+6 a c+5 c^2\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{-a+c+x^2}} \, dx,x,\sqrt{a+b x}\right )}{32 b^3}\\ &=\frac{(a+c) x^3}{3 (a-c)^2}+\frac{b x^4}{2 (a-c)^2}+\frac{\left (5 a^2+6 a c+5 c^2\right ) \sqrt{a+b x} \sqrt{c+b x}}{32 b^3 (a-c)}+\frac{\left (4 a c-5 (a+c)^2\right ) (a+b x)^{3/2} \sqrt{c+b x}}{16 b^3 (a-c)^2}+\frac{5 (a+c) (a+b x)^{3/2} (c+b x)^{3/2}}{12 b^3 (a-c)^2}-\frac{x (a+b x)^{3/2} (c+b x)^{3/2}}{2 b^2 (a-c)^2}+\frac{\left (5 a^2+6 a c+5 c^2\right ) \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\frac{\sqrt{a+b x}}{\sqrt{c+b x}}\right )}{32 b^3}\\ &=\frac{(a+c) x^3}{3 (a-c)^2}+\frac{b x^4}{2 (a-c)^2}+\frac{\left (5 a^2+6 a c+5 c^2\right ) \sqrt{a+b x} \sqrt{c+b x}}{32 b^3 (a-c)}+\frac{\left (4 a c-5 (a+c)^2\right ) (a+b x)^{3/2} \sqrt{c+b x}}{16 b^3 (a-c)^2}+\frac{5 (a+c) (a+b x)^{3/2} (c+b x)^{3/2}}{12 b^3 (a-c)^2}-\frac{x (a+b x)^{3/2} (c+b x)^{3/2}}{2 b^2 (a-c)^2}+\frac{\left (5 a^2+6 a c+5 c^2\right ) \tanh ^{-1}\left (\frac{\sqrt{a+b x}}{\sqrt{c+b x}}\right )}{32 b^3}\\ \end{align*}
Mathematica [A] time = 1.36713, size = 361, normalized size = 1.58 \[ \frac{\frac{3 \sqrt{b} (c-a)^3 \left (5 a^2+6 a c+5 c^2\right ) \sqrt{-\frac{b x+c}{a-c}} \sinh ^{-1}\left (\frac{\sqrt{b} \sqrt{a+b x}}{\sqrt{b (c-a)}}\right )}{\sqrt{b (c-a)} \sqrt{b x+c}}+a^2 \sqrt{a+b x} \sqrt{b x+c} (10 b x+7 c)-15 a^3 \sqrt{a+b x} \sqrt{b x+c}-a \left (8 b^2 x^2 \sqrt{a+b x} \sqrt{b x+c}-7 c^2 \sqrt{a+b x} \sqrt{b x+c}+4 b c x \sqrt{a+b x} \sqrt{b x+c}-32 b^3 x^3\right )-16 b^3 x^3 \left (3 \sqrt{a+b x} \sqrt{b x+c}-2 c\right )-8 b^2 c x^2 \sqrt{a+b x} \sqrt{b x+c}+10 b c^2 x \sqrt{a+b x} \sqrt{b x+c}-15 c^3 \sqrt{a+b x} \sqrt{b x+c}+48 b^4 x^4}{96 b^3 (a-c)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.019, size = 604, normalized size = 2.7 \begin{align*}{\frac{a{x}^{3}}{3\, \left ( a-c \right ) ^{2}}}+{\frac{c{x}^{3}}{3\, \left ( a-c \right ) ^{2}}}+{\frac{b{x}^{4}}{2\, \left ( a-c \right ) ^{2}}}-{\frac{{\it csgn} \left ( b \right ) }{192\, \left ( a-c \right ) ^{2}{b}^{3}}\sqrt{bx+a}\sqrt{bx+c} \left ( 96\,{\it csgn} \left ( b \right ){x}^{3}{b}^{3}\sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}+16\,{\it csgn} \left ( b \right ){x}^{2}a{b}^{2}\sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}+16\,{\it csgn} \left ( b \right ){x}^{2}{b}^{2}c\sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}-20\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}x{a}^{2}b+8\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}xabc-20\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}xb{c}^{2}+30\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}{a}^{3}-14\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}{a}^{2}c-14\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}a{c}^{2}+30\,{\it csgn} \left ( b \right ) \sqrt{{b}^{2}{x}^{2}+abx+bcx+ac}{c}^{3}-15\,\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}^{4}+12\,\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}c+6\,\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}^{2}+12\,\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}^{3}-15\,\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}^{4} \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^{2}}{{\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 = 1.01601, size = 437, normalized size = 1.92 \begin{align*} \frac{96 \, b^{4} x^{4} + 64 \,{\left (a b^{3} + b^{3} c\right )} x^{3} - 2 \,{\left (48 \, b^{3} x^{3} + 15 \, a^{3} - 7 \, a^{2} c - 7 \, a c^{2} + 15 \, c^{3} + 8 \,{\left (a b^{2} + b^{2} c\right )} x^{2} - 2 \,{\left (5 \, a^{2} b - 2 \, a b c + 5 \, b c^{2}\right )} x\right )} \sqrt{b x + a} \sqrt{b x + c} - 3 \,{\left (5 \, a^{4} - 4 \, a^{3} c - 2 \, a^{2} c^{2} - 4 \, a c^{3} + 5 \, c^{4}\right )} \log \left (-2 \, b x + 2 \, \sqrt{b x + a} \sqrt{b x + c} - a - c\right )}{192 \,{\left (a^{2} b^{3} - 2 \, a b^{3} c + b^{3} 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^{2}}{\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]