Optimal. Leaf size=96 \[ \sqrt{\sqrt{\frac{1}{x}+1}+\frac{1}{x}} x+\frac{1}{4} \tan ^{-1}\left (\frac{\sqrt{\frac{1}{x}+1}+3}{2 \sqrt{\sqrt{\frac{1}{x}+1}+\frac{1}{x}}}\right )-\frac{3}{4} \tanh ^{-1}\left (\frac{1-3 \sqrt{\frac{1}{x}+1}}{2 \sqrt{\sqrt{\frac{1}{x}+1}+\frac{1}{x}}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0838966, antiderivative size = 96, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.294, Rules used = {1014, 1033, 724, 206, 204} \[ \sqrt{\sqrt{\frac{1}{x}+1}+\frac{1}{x}} x+\frac{1}{4} \tan ^{-1}\left (\frac{\sqrt{\frac{1}{x}+1}+3}{2 \sqrt{\sqrt{\frac{1}{x}+1}+\frac{1}{x}}}\right )-\frac{3}{4} \tanh ^{-1}\left (\frac{1-3 \sqrt{\frac{1}{x}+1}}{2 \sqrt{\sqrt{\frac{1}{x}+1}+\frac{1}{x}}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1014
Rule 1033
Rule 724
Rule 206
Rule 204
Rubi steps
\begin{align*} \int \sqrt{\sqrt{1+\frac{1}{x}}+\frac{1}{x}} \, dx &=-\left (2 \operatorname{Subst}\left (\int \frac{x \sqrt{-1+x+x^2}}{\left (-1+x^2\right )^2} \, dx,x,\sqrt{1+\frac{1}{x}}\right )\right )\\ &=\sqrt{\sqrt{1+\frac{1}{x}}+\frac{1}{x}} x-\operatorname{Subst}\left (\int \frac{\frac{1}{2}+x}{\left (-1+x^2\right ) \sqrt{-1+x+x^2}} \, dx,x,\sqrt{1+\frac{1}{x}}\right )\\ &=\sqrt{\sqrt{1+\frac{1}{x}}+\frac{1}{x}} x-\frac{1}{4} \operatorname{Subst}\left (\int \frac{1}{(1+x) \sqrt{-1+x+x^2}} \, dx,x,\sqrt{1+\frac{1}{x}}\right )-\frac{3}{4} \operatorname{Subst}\left (\int \frac{1}{(-1+x) \sqrt{-1+x+x^2}} \, dx,x,\sqrt{1+\frac{1}{x}}\right )\\ &=\sqrt{\sqrt{1+\frac{1}{x}}+\frac{1}{x}} x+\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{-4-x^2} \, dx,x,\frac{-3-\sqrt{1+\frac{1}{x}}}{\sqrt{\sqrt{1+\frac{1}{x}}+\frac{1}{x}}}\right )+\frac{3}{2} \operatorname{Subst}\left (\int \frac{1}{4-x^2} \, dx,x,\frac{-1+3 \sqrt{1+\frac{1}{x}}}{\sqrt{\sqrt{1+\frac{1}{x}}+\frac{1}{x}}}\right )\\ &=\sqrt{\sqrt{1+\frac{1}{x}}+\frac{1}{x}} x+\frac{1}{4} \tan ^{-1}\left (\frac{3+\sqrt{1+\frac{1}{x}}}{2 \sqrt{\sqrt{1+\frac{1}{x}}+\frac{1}{x}}}\right )-\frac{3}{4} \tanh ^{-1}\left (\frac{1-3 \sqrt{1+\frac{1}{x}}}{2 \sqrt{\sqrt{1+\frac{1}{x}}+\frac{1}{x}}}\right )\\ \end{align*}
Mathematica [A] time = 0.168488, size = 98, normalized size = 1.02 \[ \sqrt{\sqrt{\frac{1}{x}+1}+\frac{1}{x}} x-\frac{1}{4} \tan ^{-1}\left (\frac{-\sqrt{\frac{1}{x}+1}-3}{2 \sqrt{\sqrt{\frac{1}{x}+1}+\frac{1}{x}}}\right )+\frac{3}{4} \tanh ^{-1}\left (\frac{3 \sqrt{\frac{1}{x}+1}-1}{2 \sqrt{\sqrt{\frac{1}{x}+1}+\frac{1}{x}}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.028, size = 0, normalized size = 0. \begin{align*} \int \sqrt{{x}^{-1}+\sqrt{1+{x}^{-1}}}\, dx \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 \sqrt{\sqrt{\frac{1}{x} + 1} + \frac{1}{x}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 29.3198, size = 297, normalized size = 3.09 \begin{align*} x \sqrt{\frac{x \sqrt{\frac{x + 1}{x}} + 1}{x}} + \frac{1}{4} \, \arctan \left (\frac{2 \,{\left (x \sqrt{\frac{x + 1}{x}} - 3 \, x\right )} \sqrt{\frac{x \sqrt{\frac{x + 1}{x}} + 1}{x}}}{8 \, x - 1}\right ) + \frac{3}{4} \, \log \left (2 \,{\left (x \sqrt{\frac{x + 1}{x}} + x\right )} \sqrt{\frac{x \sqrt{\frac{x + 1}{x}} + 1}{x}} + 2 \, x \sqrt{\frac{x + 1}{x}} + 2 \, x + 3\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 \sqrt{\sqrt{1 + \frac{1}{x}} + \frac{1}{x}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{\sqrt{\frac{1}{x} + 1} + \frac{1}{x}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]