Optimal. Leaf size=123 \[ \frac {\sqrt {x} \left (4-4 \sqrt {x+1}\right )}{3 x+\left (6 \sqrt {x+1}-6\right ) \sqrt {x}-3 \sqrt {x+1}+3}-\frac {2}{9} \log \left (-\sqrt {x}+\sqrt {x+1}-1\right )-2 \log \left (\sqrt {x}+\sqrt {x+1}-1\right )+\frac {10}{9} \log \left (x+\left (2 \sqrt {x+1}-2\right ) \sqrt {x}-\sqrt {x+1}+1\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 74, normalized size of antiderivative = 0.60, number of steps used = 8, number of rules used = 7, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.412, Rules used = {6742, 97, 157, 54, 215, 93, 207} \begin {gather*} -\frac {4 \sqrt {x} \sqrt {x+1}}{3 (1-3 x)}+\frac {8}{9 (1-3 x)}+\frac {5}{9} \log (1-3 x)-\frac {8}{9} \sinh ^{-1}\left (\sqrt {x}\right )+\frac {10}{9} \tanh ^{-1}\left (\frac {2 \sqrt {x}}{\sqrt {x+1}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 54
Rule 93
Rule 97
Rule 157
Rule 207
Rule 215
Rule 6742
Rubi steps
\begin {align*} \int \frac {1}{\left (2 \sqrt {x}+\sqrt {1+x}\right )^2} \, dx &=\int \left (\frac {8}{3 (-1+3 x)^2}-\frac {4 \sqrt {x} \sqrt {1+x}}{(-1+3 x)^2}+\frac {5}{3 (-1+3 x)}\right ) \, dx\\ &=\frac {8}{9 (1-3 x)}+\frac {5}{9} \log (1-3 x)-4 \int \frac {\sqrt {x} \sqrt {1+x}}{(-1+3 x)^2} \, dx\\ &=\frac {8}{9 (1-3 x)}-\frac {4 \sqrt {x} \sqrt {1+x}}{3 (1-3 x)}+\frac {5}{9} \log (1-3 x)-\frac {4}{3} \int \frac {\frac {1}{2}+x}{\sqrt {x} \sqrt {1+x} (-1+3 x)} \, dx\\ &=\frac {8}{9 (1-3 x)}-\frac {4 \sqrt {x} \sqrt {1+x}}{3 (1-3 x)}+\frac {5}{9} \log (1-3 x)-\frac {4}{9} \int \frac {1}{\sqrt {x} \sqrt {1+x}} \, dx-\frac {10}{9} \int \frac {1}{\sqrt {x} \sqrt {1+x} (-1+3 x)} \, dx\\ &=\frac {8}{9 (1-3 x)}-\frac {4 \sqrt {x} \sqrt {1+x}}{3 (1-3 x)}+\frac {5}{9} \log (1-3 x)-\frac {8}{9} \operatorname {Subst}\left (\int \frac {1}{\sqrt {1+x^2}} \, dx,x,\sqrt {x}\right )-\frac {20}{9} \operatorname {Subst}\left (\int \frac {1}{-1+4 x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt {1+x}}\right )\\ &=\frac {8}{9 (1-3 x)}-\frac {4 \sqrt {x} \sqrt {1+x}}{3 (1-3 x)}-\frac {8}{9} \sinh ^{-1}\left (\sqrt {x}\right )+\frac {10}{9} \tanh ^{-1}\left (\frac {2 \sqrt {x}}{\sqrt {1+x}}\right )+\frac {5}{9} \log (1-3 x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 126, normalized size = 1.02 \begin {gather*} \frac {12 x^{3/2}+12 \sqrt {x}-8 \sqrt {x+1}+15 \sqrt {x+1} x \log (1-3 x)-5 \sqrt {x+1} \log (1-3 x)+10 \sqrt {-x-1} (3 x-1) \tan ^{-1}\left (\frac {2 \sqrt {x}}{\sqrt {-x-1}}\right )-8 \sqrt {x+1} (3 x-1) \sinh ^{-1}\left (\sqrt {x}\right )}{9 \sqrt {x+1} (3 x-1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.08, size = 78, normalized size = 0.63 \begin {gather*} -\frac {8}{9 (-1+3 x)}+\frac {4 \sqrt {x} \sqrt {1+x}}{3 (-1+3 x)}-\frac {2}{9} \log \left (-\sqrt {x}+\sqrt {1+x}\right )+\frac {10}{9} \log \left (1-x+\sqrt {x} \sqrt {1+x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 105, normalized size = 0.85 \begin {gather*} -\frac {5 \, {\left (3 \, x - 1\right )} \log \left (3 \, \sqrt {x + 1} \sqrt {x} - 3 \, x - 1\right ) - 4 \, {\left (3 \, x - 1\right )} \log \left (2 \, \sqrt {x + 1} \sqrt {x} - 2 \, x - 1\right ) - 5 \, {\left (3 \, x - 1\right )} \log \left (\sqrt {x + 1} \sqrt {x} - x + 1\right ) - 5 \, {\left (3 \, x - 1\right )} \log \left (3 \, x - 1\right ) - 12 \, \sqrt {x + 1} \sqrt {x} - 12 \, x + 12}{9 \, {\left (3 \, x - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: NotImplementedError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 115, normalized size = 0.93
method | result | size |
default | \(-\frac {8}{9 \left (-1+3 x \right )}+\frac {5 \ln \left (-1+3 x \right )}{9}-\frac {\sqrt {x}\, \sqrt {1+x}\, \left (12 \ln \left (\frac {1}{2}+x +\sqrt {x \left (1+x \right )}\right ) x -15 \arctanh \left (\frac {5 x +1}{4 \sqrt {x \left (1+x \right )}}\right ) x -4 \ln \left (\frac {1}{2}+x +\sqrt {x \left (1+x \right )}\right )+5 \arctanh \left (\frac {5 x +1}{4 \sqrt {x \left (1+x \right )}}\right )-12 \sqrt {x \left (1+x \right )}\right )}{9 \sqrt {x \left (1+x \right )}\, \left (-1+3 x \right )}\) | \(115\) |
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*} \int \frac {1}{{\left (\sqrt {x + 1} + 2 \, \sqrt {x}\right )}^{2}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.19, size = 82, normalized size = 0.67 \begin {gather*} \frac {10\,\mathrm {atanh}\left (\frac {2662400\,\sqrt {x}}{81\,\left (\frac {665600\,x}{81\,{\left (\sqrt {x+1}-1\right )}^2}+\frac {665600}{81}\right )\,\left (\sqrt {x+1}-1\right )}\right )}{9}+\frac {5\,\ln \left (x-\frac {1}{3}\right )}{9}-\frac {16\,\mathrm {atanh}\left (\frac {\sqrt {x}}{\sqrt {x+1}-1}\right )}{9}-\frac {8}{27\,\left (x-\frac {1}{3}\right )}+\frac {4\,\sqrt {x}\,\sqrt {x+1}}{3\,\left (3\,x-1\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 (2 \sqrt {x} + \sqrt {x + 1}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________