Optimal. Leaf size=30 \[ -\sqrt{x+1}+x \tan ^{-1}\left (\sqrt{x+1}\right )+2 \tan ^{-1}\left (\sqrt{x+1}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0110627, antiderivative size = 30, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {5203, 80, 63, 203} \[ -\sqrt{x+1}+x \tan ^{-1}\left (\sqrt{x+1}\right )+2 \tan ^{-1}\left (\sqrt{x+1}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5203
Rule 80
Rule 63
Rule 203
Rubi steps
\begin{align*} \int \tan ^{-1}\left (\sqrt{1+x}\right ) \, dx &=x \tan ^{-1}\left (\sqrt{1+x}\right )-\int \frac{x}{\sqrt{1+x} (4+2 x)} \, dx\\ &=-\sqrt{1+x}+x \tan ^{-1}\left (\sqrt{1+x}\right )+2 \int \frac{1}{\sqrt{1+x} (4+2 x)} \, dx\\ &=-\sqrt{1+x}+x \tan ^{-1}\left (\sqrt{1+x}\right )+4 \operatorname{Subst}\left (\int \frac{1}{2+2 x^2} \, dx,x,\sqrt{1+x}\right )\\ &=-\sqrt{1+x}+2 \tan ^{-1}\left (\sqrt{1+x}\right )+x \tan ^{-1}\left (\sqrt{1+x}\right )\\ \end{align*}
Mathematica [A] time = 0.009583, size = 22, normalized size = 0.73 \[ (x+2) \tan ^{-1}\left (\sqrt{x+1}\right )-\sqrt{x+1} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.038, size = 25, normalized size = 0.8 \begin{align*} \left ( x+1 \right ) \arctan \left ( \sqrt{x+1} \right ) -\sqrt{x+1}+\arctan \left ( \sqrt{x+1} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.43828, size = 32, normalized size = 1.07 \begin{align*}{\left (x + 1\right )} \arctan \left (\sqrt{x + 1}\right ) - \sqrt{x + 1} + \arctan \left (\sqrt{x + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.39461, size = 58, normalized size = 1.93 \begin{align*}{\left (x + 2\right )} \arctan \left (\sqrt{x + 1}\right ) - \sqrt{x + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.255563, size = 26, normalized size = 0.87 \begin{align*} x \operatorname{atan}{\left (\sqrt{x + 1} \right )} - \sqrt{x + 1} + 2 \operatorname{atan}{\left (\sqrt{x + 1} \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1122, size = 32, normalized size = 1.07 \begin{align*}{\left (x + 1\right )} \arctan \left (\sqrt{x + 1}\right ) - \sqrt{x + 1} + \arctan \left (\sqrt{x + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]