Optimal. Leaf size=42 \[ 2 \sqrt{x}-\log \left (x+\sqrt{x}+1\right )-\frac{2 \tan ^{-1}\left (\frac{2 \sqrt{x}+1}{\sqrt{3}}\right )}{\sqrt{3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0287223, antiderivative size = 42, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.375, Rules used = {1357, 703, 634, 618, 204, 628} \[ 2 \sqrt{x}-\log \left (x+\sqrt{x}+1\right )-\frac{2 \tan ^{-1}\left (\frac{2 \sqrt{x}+1}{\sqrt{3}}\right )}{\sqrt{3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1357
Rule 703
Rule 634
Rule 618
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{\sqrt{x}}{1+\sqrt{x}+x} \, dx &=2 \operatorname{Subst}\left (\int \frac{x^2}{1+x+x^2} \, dx,x,\sqrt{x}\right )\\ &=2 \sqrt{x}+2 \operatorname{Subst}\left (\int \frac{-1-x}{1+x+x^2} \, dx,x,\sqrt{x}\right )\\ &=2 \sqrt{x}-\operatorname{Subst}\left (\int \frac{1}{1+x+x^2} \, dx,x,\sqrt{x}\right )-\operatorname{Subst}\left (\int \frac{1+2 x}{1+x+x^2} \, dx,x,\sqrt{x}\right )\\ &=2 \sqrt{x}-\log \left (1+\sqrt{x}+x\right )+2 \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1+2 \sqrt{x}\right )\\ &=2 \sqrt{x}-\frac{2 \tan ^{-1}\left (\frac{1+2 \sqrt{x}}{\sqrt{3}}\right )}{\sqrt{3}}-\log \left (1+\sqrt{x}+x\right )\\ \end{align*}
Mathematica [A] time = 0.0141231, size = 42, normalized size = 1. \[ 2 \sqrt{x}-\log \left (x+\sqrt{x}+1\right )-\frac{2 \tan ^{-1}\left (\frac{2 \sqrt{x}+1}{\sqrt{3}}\right )}{\sqrt{3}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 34, normalized size = 0.8 \begin{align*} -\ln \left ( 1+x+\sqrt{x} \right ) -{\frac{2\,\sqrt{3}}{3}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 1+2\,\sqrt{x} \right ) } \right ) }+2\,\sqrt{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.69182, size = 45, normalized size = 1.07 \begin{align*} -\frac{2}{3} \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, \sqrt{x} + 1\right )}\right ) + 2 \, \sqrt{x} - \log \left (x + \sqrt{x} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.45813, size = 123, normalized size = 2.93 \begin{align*} -\frac{2}{3} \, \sqrt{3} \arctan \left (\frac{2}{3} \, \sqrt{3} \sqrt{x} + \frac{1}{3} \, \sqrt{3}\right ) + 2 \, \sqrt{x} - \log \left (x + \sqrt{x} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.247189, size = 49, normalized size = 1.17 \begin{align*} 2 \sqrt{x} - \log{\left (4 \sqrt{x} + 4 x + 4 \right )} - \frac{2 \sqrt{3} \operatorname{atan}{\left (\frac{2 \sqrt{3} \sqrt{x}}{3} + \frac{\sqrt{3}}{3} \right )}}{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12951, size = 45, normalized size = 1.07 \begin{align*} -\frac{2}{3} \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left (2 \, \sqrt{x} + 1\right )}\right ) + 2 \, \sqrt{x} - \log \left (x + \sqrt{x} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]