Optimal. Leaf size=53 \[ \frac {\tan ^{-1}\left (\frac {\sqrt {5} x}{2 \sqrt {9+x^2}}\right )}{2 \sqrt {5}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {9+x^2}}{\sqrt {5}}\right )}{\sqrt {5}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {1024, 385, 209,
455, 65, 213} \begin {gather*} \frac {\text {ArcTan}\left (\frac {\sqrt {5} x}{2 \sqrt {x^2+9}}\right )}{2 \sqrt {5}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {x^2+9}}{\sqrt {5}}\right )}{\sqrt {5}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 209
Rule 213
Rule 385
Rule 455
Rule 1024
Rubi steps
\begin {align*} \int \frac {1+x}{\left (4+x^2\right ) \sqrt {9+x^2}} \, dx &=\int \frac {1}{\left (4+x^2\right ) \sqrt {9+x^2}} \, dx+\int \frac {x}{\left (4+x^2\right ) \sqrt {9+x^2}} \, dx\\ &=\frac {1}{2} \text {Subst}\left (\int \frac {1}{(4+x) \sqrt {9+x}} \, dx,x,x^2\right )+\text {Subst}\left (\int \frac {1}{4+5 x^2} \, dx,x,\frac {x}{\sqrt {9+x^2}}\right )\\ &=\frac {\tan ^{-1}\left (\frac {\sqrt {5} x}{2 \sqrt {9+x^2}}\right )}{2 \sqrt {5}}+\text {Subst}\left (\int \frac {1}{-5+x^2} \, dx,x,\sqrt {9+x^2}\right )\\ &=\frac {\tan ^{-1}\left (\frac {\sqrt {5} x}{2 \sqrt {9+x^2}}\right )}{2 \sqrt {5}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {9+x^2}}{\sqrt {5}}\right )}{\sqrt {5}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.34, size = 55, normalized size = 1.04 \begin {gather*} -\frac {\tan ^{-1}\left (\frac {4+x^2-x \sqrt {9+x^2}}{2 \sqrt {5}}\right )+2 \tanh ^{-1}\left (\frac {\sqrt {9+x^2}}{\sqrt {5}}\right )}{2 \sqrt {5}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.72, size = 39, normalized size = 0.74
method | result | size |
default | \(\frac {\arctan \left (\frac {x \sqrt {5}}{2 \sqrt {x^{2}+9}}\right ) \sqrt {5}}{10}-\frac {\arctanh \left (\frac {\sqrt {x^{2}+9}\, \sqrt {5}}{5}\right ) \sqrt {5}}{5}\) | \(39\) |
trager | \(16 \ln \left (\frac {6400 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{5} x -1120 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{3} x +1440 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{3}+33 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right ) x -198 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )-10 \sqrt {x^{2}+9}}{80 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{2} x -3 x +8}\right ) \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{3}-\frac {6 \ln \left (\frac {6400 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{5} x -1120 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{3} x +1440 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{3}+33 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right ) x -198 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )-10 \sqrt {x^{2}+9}}{80 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{2} x -3 x +8}\right ) \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )}{5}+\RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right ) \ln \left (\frac {6400 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{5} x -1120 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{3} x -1440 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{3}+33 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right ) x +198 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )-10 \sqrt {x^{2}+9}}{80 \RootOf \left (1280 \textit {\_Z}^{4}-96 \textit {\_Z}^{2}+5\right )^{2} x -3 x -8}\right )\) | \(411\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 182 vs.
\(2 (38) = 76\).
time = 0.35, size = 182, normalized size = 3.43 \begin {gather*} \frac {1}{5} \, \sqrt {5} \arctan \left (\frac {1}{2} \, \sqrt {2} \sqrt {x^{2} - \sqrt {x^{2} + 9} {\left (x + \sqrt {5}\right )} + \sqrt {5} x + 9} + \frac {1}{2} \, x + \frac {1}{2} \, \sqrt {5} - \frac {1}{2} \, \sqrt {x^{2} + 9}\right ) - \frac {1}{5} \, \sqrt {5} \arctan \left (\frac {1}{2} \, \sqrt {2} \sqrt {x^{2} - \sqrt {x^{2} + 9} {\left (x - \sqrt {5}\right )} - \sqrt {5} x + 9} + \frac {1}{2} \, x - \frac {1}{2} \, \sqrt {5} - \frac {1}{2} \, \sqrt {x^{2} + 9}\right ) + \frac {1}{10} \, \sqrt {5} \log \left (50 \, x^{2} - 50 \, \sqrt {x^{2} + 9} {\left (x + \sqrt {5}\right )} + 50 \, \sqrt {5} x + 450\right ) - \frac {1}{10} \, \sqrt {5} \log \left (50 \, x^{2} - 50 \, \sqrt {x^{2} + 9} {\left (x - \sqrt {5}\right )} - 50 \, \sqrt {5} x + 450\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x + 1}{\left (x^{2} + 4\right ) \sqrt {x^{2} + 9}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 123 vs.
\(2 (38) = 76\).
time = 4.11, size = 123, normalized size = 2.32 \begin {gather*} -\frac {1}{10} \, \sqrt {5} \arctan \left (\frac {1}{2} \, x - \frac {1}{2} \, \sqrt {5} - \frac {1}{2} \, \sqrt {x^{2} + 9}\right ) - \frac {1}{10} \, \sqrt {5} \arctan \left (-\frac {1}{2} \, x - \frac {1}{2} \, \sqrt {5} + \frac {1}{2} \, \sqrt {x^{2} + 9}\right ) + \frac {1}{10} \, \sqrt {5} \log \left ({\left (x - \sqrt {x^{2} + 9}\right )}^{2} + 2 \, \sqrt {5} {\left (x - \sqrt {x^{2} + 9}\right )} + 9\right ) - \frac {1}{10} \, \sqrt {5} \log \left ({\left (x - \sqrt {x^{2} + 9}\right )}^{2} - 2 \, \sqrt {5} {\left (x - \sqrt {x^{2} + 9}\right )} + 9\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.59, size = 67, normalized size = 1.26 \begin {gather*} \sqrt {5}\,\left (\ln \left (x-2{}\mathrm {i}\right )-\ln \left (\sqrt {5}\,\sqrt {x^2+9}+9+x\,2{}\mathrm {i}\right )\right )\,\left (\frac {1}{10}-\frac {1}{20}{}\mathrm {i}\right )+\sqrt {5}\,\left (\ln \left (x+2{}\mathrm {i}\right )-\ln \left (\sqrt {5}\,\sqrt {x^2+9}+9-x\,2{}\mathrm {i}\right )\right )\,\left (\frac {1}{10}+\frac {1}{20}{}\mathrm {i}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________