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.01, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, 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 63
Rule 80
Rule 203
Rule 5203
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.01, size = 22, normalized size = 0.73 \[ (x+2) \tan ^{-1}\left (\sqrt {x+1}\right )-\sqrt {x+1} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.65, size = 18, normalized size = 0.60 \[ {\left (x + 2\right )} \arctan \left (\sqrt {x + 1}\right ) - \sqrt {x + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 24, normalized size = 0.80 \[ {\left (x + 1\right )} \arctan \left (\sqrt {x + 1}\right ) - \sqrt {x + 1} + \arctan \left (\sqrt {x + 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 25, normalized size = 0.83 \[ \left (x +1\right ) \arctan \left (\sqrt {x +1}\right )-\sqrt {x +1}+\arctan \left (\sqrt {x +1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.41, size = 24, normalized size = 0.80 \[ {\left (x + 1\right )} \arctan \left (\sqrt {x + 1}\right ) - \sqrt {x + 1} + \arctan \left (\sqrt {x + 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.08, size = 24, normalized size = 0.80 \[ \mathrm {atan}\left (\sqrt {x+1}\right )-\sqrt {x+1}+\mathrm {atan}\left (\sqrt {x+1}\right )\,\left (x+1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.21, size = 26, normalized size = 0.87 \[ x \operatorname {atan}{\left (\sqrt {x + 1} \right )} - \sqrt {x + 1} + 2 \operatorname {atan}{\left (\sqrt {x + 1} \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________