Optimal. Leaf size=37 \[ \log \left (x+\sqrt {x+1}+4\right )-\frac {2 \tan ^{-1}\left (\frac {2 \sqrt {x+1}+1}{\sqrt {11}}\right )}{\sqrt {11}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {634, 618, 204, 628} \[ \log \left (x+\sqrt {x+1}+4\right )-\frac {2 \tan ^{-1}\left (\frac {2 \sqrt {x+1}+1}{\sqrt {11}}\right )}{\sqrt {11}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 204
Rule 618
Rule 628
Rule 634
Rubi steps
\begin {align*} \int \frac {1}{4+x+\sqrt {1+x}} \, dx &=2 \operatorname {Subst}\left (\int \frac {x}{3+x+x^2} \, dx,x,\sqrt {1+x}\right )\\ &=-\operatorname {Subst}\left (\int \frac {1}{3+x+x^2} \, dx,x,\sqrt {1+x}\right )+\operatorname {Subst}\left (\int \frac {1+2 x}{3+x+x^2} \, dx,x,\sqrt {1+x}\right )\\ &=\log \left (4+x+\sqrt {1+x}\right )+2 \operatorname {Subst}\left (\int \frac {1}{-11-x^2} \, dx,x,1+2 \sqrt {1+x}\right )\\ &=-\frac {2 \tan ^{-1}\left (\frac {1+2 \sqrt {1+x}}{\sqrt {11}}\right )}{\sqrt {11}}+\log \left (4+x+\sqrt {1+x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 37, normalized size = 1.00 \[ \log \left (x+\sqrt {x+1}+4\right )-\frac {2 \tan ^{-1}\left (\frac {2 \sqrt {x+1}+1}{\sqrt {11}}\right )}{\sqrt {11}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 32, normalized size = 0.86 \[ -\frac {2}{11} \, \sqrt {11} \arctan \left (\frac {2}{11} \, \sqrt {11} \sqrt {x + 1} + \frac {1}{11} \, \sqrt {11}\right ) + \log \left (x + \sqrt {x + 1} + 4\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.37, size = 30, normalized size = 0.81 \[ -\frac {2}{11} \, \sqrt {11} \arctan \left (\frac {1}{11} \, \sqrt {11} {\left (2 \, \sqrt {x + 1} + 1\right )}\right ) + \log \left (x + \sqrt {x + 1} + 4\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.01, size = 93, normalized size = 2.51 \[ -\frac {\sqrt {11}\, \arctan \left (\frac {\left (1+2 \sqrt {x +1}\right ) \sqrt {11}}{11}\right )}{11}+\frac {\sqrt {11}\, \arctan \left (\frac {\left (2 x +7\right ) \sqrt {11}}{11}\right )}{11}-\frac {\sqrt {11}\, \arctan \left (\frac {\left (2 \sqrt {x +1}-1\right ) \sqrt {11}}{11}\right )}{11}+\frac {\ln \left (x +4+\sqrt {x +1}\right )}{2}-\frac {\ln \left (x +4-\sqrt {x +1}\right )}{2}+\frac {\ln \left (x^{2}+7 x +15\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.73, size = 30, normalized size = 0.81 \[ -\frac {2}{11} \, \sqrt {11} \arctan \left (\frac {1}{11} \, \sqrt {11} {\left (2 \, \sqrt {x + 1} + 1\right )}\right ) + \log \left (x + \sqrt {x + 1} + 4\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 32, normalized size = 0.86 \[ \ln \left (x+\sqrt {x+1}+4\right )-\frac {2\,\sqrt {11}\,\mathrm {atan}\left (\frac {\sqrt {11}}{11}+\frac {2\,\sqrt {11}\,\sqrt {x+1}}{11}\right )}{11} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 2.31, size = 39, normalized size = 1.05 \[ \log {\left (x + \sqrt {x + 1} + 4 \right )} - \frac {2 \sqrt {11} \operatorname {atan}{\left (\frac {2 \sqrt {11} \left (\sqrt {x + 1} + \frac {1}{2}\right )}{11} \right )}}{11} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________