Optimal. Leaf size=37 \[ -\frac {2 \tan ^{-1}\left (\frac {1+2 \sqrt {1+x}}{\sqrt {11}}\right )}{\sqrt {11}}+\log \left (4+x+\sqrt {1+x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, 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 = {648, 632, 210,
642} \begin {gather*} \log \left (x+\sqrt {x+1}+4\right )-\frac {2 \text {ArcTan}\left (\frac {2 \sqrt {x+1}+1}{\sqrt {11}}\right )}{\sqrt {11}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 632
Rule 642
Rule 648
Rubi steps
\begin {align*} \int \frac {1}{4+x+\sqrt {1+x}} \, dx &=2 \text {Subst}\left (\int \frac {x}{3+x+x^2} \, dx,x,\sqrt {1+x}\right )\\ &=-\text {Subst}\left (\int \frac {1}{3+x+x^2} \, dx,x,\sqrt {1+x}\right )+\text {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 \text {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.03, size = 37, normalized size = 1.00 \begin {gather*} -\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 {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(92\) vs.
\(2(30)=60\).
time = 0.15, size = 93, normalized size = 2.51
method | result | size |
derivativedivides | \(\ln \left (4+x +\sqrt {1+x}\right )-\frac {2 \arctan \left (\frac {\left (1+2 \sqrt {1+x}\right ) \sqrt {11}}{11}\right ) \sqrt {11}}{11}\) | \(31\) |
default | \(\frac {\ln \left (4+x +\sqrt {1+x}\right )}{2}-\frac {\arctan \left (\frac {\left (1+2 \sqrt {1+x}\right ) \sqrt {11}}{11}\right ) \sqrt {11}}{11}-\frac {\ln \left (x +4-\sqrt {1+x}\right )}{2}-\frac {\sqrt {11}\, \arctan \left (\frac {\left (2 \sqrt {1+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 {\ln \left (x^{2}+7 x +15\right )}{2}\) | \(93\) |
trager | \(\RootOf \left (11 \textit {\_Z}^{2}-22 \textit {\_Z} +12\right ) \ln \left (4+x +\sqrt {1+x}\right )-\ln \left (-847 \RootOf \left (11 \textit {\_Z}^{2}-22 \textit {\_Z} +12\right )^{2} x +1760 \RootOf \left (11 \textit {\_Z}^{2}-22 \textit {\_Z} +12\right ) \sqrt {1+x}+1749 \RootOf \left (11 \textit {\_Z}^{2}-22 \textit {\_Z} +12\right ) x +770 \RootOf \left (11 \textit {\_Z}^{2}-22 \textit {\_Z} +12\right )-1660 \sqrt {1+x}-824 x -1030\right ) \RootOf \left (11 \textit {\_Z}^{2}-22 \textit {\_Z} +12\right )+\ln \left (-847 \RootOf \left (11 \textit {\_Z}^{2}-22 \textit {\_Z} +12\right )^{2} x +1760 \RootOf \left (11 \textit {\_Z}^{2}-22 \textit {\_Z} +12\right ) \sqrt {1+x}+1749 \RootOf \left (11 \textit {\_Z}^{2}-22 \textit {\_Z} +12\right ) x +770 \RootOf \left (11 \textit {\_Z}^{2}-22 \textit {\_Z} +12\right )-1660 \sqrt {1+x}-824 x -1030\right )\) | \(184\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 30, normalized size = 0.81 \begin {gather*} -\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 ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 32, normalized size = 0.86 \begin {gather*} -\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 ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.98, size = 39, normalized size = 1.05 \begin {gather*} \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} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.89, size = 30, normalized size = 0.81 \begin {gather*} -\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 ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.07, size = 32, normalized size = 0.86 \begin {gather*} \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} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________