Optimal. Leaf size=164 \[ -\frac {2 a \sqrt {a+b x}}{(b-c)^3 x^2}-\frac {(2 b+3 c) \sqrt {a+b x}}{(b-c)^3 x}+\frac {2 a \sqrt {a+c x}}{(b-c)^3 x^2}+\frac {(3 b+2 c) \sqrt {a+c x}}{(b-c)^3 x}-\frac {3 b c \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3}+\frac {3 b c \tanh ^{-1}\left (\frac {\sqrt {a+c x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 275, normalized size of antiderivative = 1.68, number of steps
used = 16, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {6822, 43, 44,
65, 214} \begin {gather*} \frac {b^2 \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3}-\frac {c^2 \tanh ^{-1}\left (\frac {\sqrt {a+c x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3}-\frac {2 a \sqrt {a+b x}}{x^2 (b-c)^3}+\frac {2 a \sqrt {a+c x}}{x^2 (b-c)^3}-\frac {b \sqrt {a+b x}}{x (b-c)^3}-\frac {(b+3 c) \sqrt {a+b x}}{x (b-c)^3}+\frac {c \sqrt {a+c x}}{x (b-c)^3}+\frac {(3 b+c) \sqrt {a+c x}}{x (b-c)^3}-\frac {b (b+3 c) \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3}+\frac {c (3 b+c) \tanh ^{-1}\left (\frac {\sqrt {a+c x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 44
Rule 65
Rule 214
Rule 6822
Rubi steps
\begin {align*} \int \frac {1}{\left (\sqrt {a+b x}+\sqrt {a+c x}\right )^3} \, dx &=\frac {\int \left (\frac {4 a \sqrt {a+b x}}{x^3}+\frac {b \left (1+\frac {3 c}{b}\right ) \sqrt {a+b x}}{x^2}-\frac {4 a \sqrt {a+c x}}{x^3}-\frac {3 b \left (1+\frac {c}{3 b}\right ) \sqrt {a+c x}}{x^2}\right ) \, dx}{(b-c)^3}\\ &=\frac {(4 a) \int \frac {\sqrt {a+b x}}{x^3} \, dx}{(b-c)^3}-\frac {(4 a) \int \frac {\sqrt {a+c x}}{x^3} \, dx}{(b-c)^3}-\frac {(3 b+c) \int \frac {\sqrt {a+c x}}{x^2} \, dx}{(b-c)^3}+\frac {(b+3 c) \int \frac {\sqrt {a+b x}}{x^2} \, dx}{(b-c)^3}\\ &=-\frac {2 a \sqrt {a+b x}}{(b-c)^3 x^2}-\frac {(b+3 c) \sqrt {a+b x}}{(b-c)^3 x}+\frac {2 a \sqrt {a+c x}}{(b-c)^3 x^2}+\frac {(3 b+c) \sqrt {a+c x}}{(b-c)^3 x}+\frac {(a b) \int \frac {1}{x^2 \sqrt {a+b x}} \, dx}{(b-c)^3}-\frac {(a c) \int \frac {1}{x^2 \sqrt {a+c x}} \, dx}{(b-c)^3}-\frac {(c (3 b+c)) \int \frac {1}{x \sqrt {a+c x}} \, dx}{2 (b-c)^3}+\frac {(b (b+3 c)) \int \frac {1}{x \sqrt {a+b x}} \, dx}{2 (b-c)^3}\\ &=-\frac {2 a \sqrt {a+b x}}{(b-c)^3 x^2}-\frac {b \sqrt {a+b x}}{(b-c)^3 x}-\frac {(b+3 c) \sqrt {a+b x}}{(b-c)^3 x}+\frac {2 a \sqrt {a+c x}}{(b-c)^3 x^2}+\frac {c \sqrt {a+c x}}{(b-c)^3 x}+\frac {(3 b+c) \sqrt {a+c x}}{(b-c)^3 x}-\frac {b^2 \int \frac {1}{x \sqrt {a+b x}} \, dx}{2 (b-c)^3}+\frac {c^2 \int \frac {1}{x \sqrt {a+c x}} \, dx}{2 (b-c)^3}-\frac {(3 b+c) \text {Subst}\left (\int \frac {1}{-\frac {a}{c}+\frac {x^2}{c}} \, dx,x,\sqrt {a+c x}\right )}{(b-c)^3}+\frac {(b+3 c) \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x}\right )}{(b-c)^3}\\ &=-\frac {2 a \sqrt {a+b x}}{(b-c)^3 x^2}-\frac {b \sqrt {a+b x}}{(b-c)^3 x}-\frac {(b+3 c) \sqrt {a+b x}}{(b-c)^3 x}+\frac {2 a \sqrt {a+c x}}{(b-c)^3 x^2}+\frac {c \sqrt {a+c x}}{(b-c)^3 x}+\frac {(3 b+c) \sqrt {a+c x}}{(b-c)^3 x}-\frac {b (b+3 c) \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3}+\frac {c (3 b+c) \tanh ^{-1}\left (\frac {\sqrt {a+c x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3}-\frac {b \text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x}\right )}{(b-c)^3}+\frac {c \text {Subst}\left (\int \frac {1}{-\frac {a}{c}+\frac {x^2}{c}} \, dx,x,\sqrt {a+c x}\right )}{(b-c)^3}\\ &=-\frac {2 a \sqrt {a+b x}}{(b-c)^3 x^2}-\frac {b \sqrt {a+b x}}{(b-c)^3 x}-\frac {(b+3 c) \sqrt {a+b x}}{(b-c)^3 x}+\frac {2 a \sqrt {a+c x}}{(b-c)^3 x^2}+\frac {c \sqrt {a+c x}}{(b-c)^3 x}+\frac {(3 b+c) \sqrt {a+c x}}{(b-c)^3 x}+\frac {b^2 \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3}-\frac {b (b+3 c) \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3}-\frac {c^2 \tanh ^{-1}\left (\frac {\sqrt {a+c x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3}+\frac {c (3 b+c) \tanh ^{-1}\left (\frac {\sqrt {a+c x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 10.16, size = 146, normalized size = 0.89 \begin {gather*} \frac {\sqrt {a} \left (-2 a \sqrt {a+b x}-2 b x \sqrt {a+b x}-3 c x \sqrt {a+b x}+2 a \sqrt {a+c x}+3 b x \sqrt {a+c x}+2 c x \sqrt {a+c x}\right )-3 b c x^2 \tanh ^{-1}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )+3 b c x^2 \tanh ^{-1}\left (\frac {\sqrt {a+c x}}{\sqrt {a}}\right )}{\sqrt {a} (b-c)^3 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(299\) vs.
\(2(144)=288\).
time = 0.02, size = 300, normalized size = 1.83
method | result | size |
default | \(\frac {2 b^{2} \left (-\frac {\sqrt {b x +a}}{2 x b}-\frac {\arctanh \left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{2 \sqrt {a}}\right )}{\left (b -c \right )^{3}}+\frac {8 a \,b^{2} \left (\frac {-\frac {\left (b x +a \right )^{\frac {3}{2}}}{8 a}-\frac {\sqrt {b x +a}}{8}}{x^{2} b^{2}}+\frac {\arctanh \left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{8 a^{\frac {3}{2}}}\right )}{\left (b -c \right )^{3}}-\frac {8 a \,c^{2} \left (\frac {-\frac {\left (c x +a \right )^{\frac {3}{2}}}{8 a}-\frac {\sqrt {c x +a}}{8}}{x^{2} c^{2}}+\frac {\arctanh \left (\frac {\sqrt {c x +a}}{\sqrt {a}}\right )}{8 a^{\frac {3}{2}}}\right )}{\left (b -c \right )^{3}}+\frac {6 c b \left (-\frac {\sqrt {b x +a}}{2 x b}-\frac {\arctanh \left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )}{2 \sqrt {a}}\right )}{\left (b -c \right )^{3}}-\frac {6 b c \left (-\frac {\sqrt {c x +a}}{2 x c}-\frac {\arctanh \left (\frac {\sqrt {c x +a}}{\sqrt {a}}\right )}{2 \sqrt {a}}\right )}{\left (b -c \right )^{3}}-\frac {2 c^{2} \left (-\frac {\sqrt {c x +a}}{2 x c}-\frac {\arctanh \left (\frac {\sqrt {c x +a}}{\sqrt {a}}\right )}{2 \sqrt {a}}\right )}{\left (b -c \right )^{3}}\) | \(300\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 297, normalized size = 1.81 \begin {gather*} \left [-\frac {3 \, \sqrt {a} b c x^{2} \log \left (\frac {b x + 2 \, \sqrt {b x + a} \sqrt {a} + 2 \, a}{x}\right ) + 3 \, \sqrt {a} b c x^{2} \log \left (\frac {c x - 2 \, \sqrt {c x + a} \sqrt {a} + 2 \, a}{x}\right ) + 2 \, {\left (2 \, a^{2} + {\left (2 \, a b + 3 \, a c\right )} x\right )} \sqrt {b x + a} - 2 \, {\left (2 \, a^{2} + {\left (3 \, a b + 2 \, a c\right )} x\right )} \sqrt {c x + a}}{2 \, {\left (a b^{3} - 3 \, a b^{2} c + 3 \, a b c^{2} - a c^{3}\right )} x^{2}}, \frac {3 \, \sqrt {-a} b c x^{2} \arctan \left (\frac {\sqrt {b x + a} \sqrt {-a}}{a}\right ) - 3 \, \sqrt {-a} b c x^{2} \arctan \left (\frac {\sqrt {c x + a} \sqrt {-a}}{a}\right ) - {\left (2 \, a^{2} + {\left (2 \, a b + 3 \, a c\right )} x\right )} \sqrt {b x + a} + {\left (2 \, a^{2} + {\left (3 \, a b + 2 \, a c\right )} x\right )} \sqrt {c x + a}}{{\left (a b^{3} - 3 \, a b^{2} c + 3 \, a b c^{2} - a c^{3}\right )} x^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (\sqrt {a + b x} + \sqrt {a + c x}\right )^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 2766 vs.
\(2 (144) = 288\).
time = 55.11, size = 2766, normalized size = 16.87 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 5.74, size = 287, normalized size = 1.75 \begin {gather*} \frac {c^2\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^2}{4\,\sqrt {a}\,{\left (b-c\right )}^3\,{\left (\sqrt {a+c\,x}-\sqrt {a}\right )}^2}-\frac {\left (\frac {\sqrt {a}\,b^2}{4\,\left (a\,b^3-3\,a\,b^2\,c+3\,a\,b\,c^2-a\,c^3\right )}-\frac {\sqrt {a}\,\left (b^2+c\,b\right )\,\left (\sqrt {a+b\,x}-\sqrt {a}\right )}{\left (\sqrt {a+c\,x}-\sqrt {a}\right )\,\left (a\,b^3-3\,a\,b^2\,c+3\,a\,b\,c^2-a\,c^3\right )}\right )\,{\left (\sqrt {a+c\,x}-\sqrt {a}\right )}^2}{{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^2}+\frac {3\,b\,c\,\ln \left (\frac {\sqrt {a+b\,x}-\sqrt {a}}{\sqrt {a+c\,x}-\sqrt {a}}\right )}{\sqrt {a}\,\left (b^3-3\,b^2\,c+3\,b\,c^2-c^3\right )}-\frac {c\,\left (b+c\right )\,\left (\sqrt {a+b\,x}-\sqrt {a}\right )}{\sqrt {a}\,{\left (b-c\right )}^3\,\left (\sqrt {a+c\,x}-\sqrt {a}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________