Optimal. Leaf size=53 \[ \frac{\tan ^{-1}\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}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0307952, antiderivative size = 53, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {1010, 377, 203, 444, 63, 207} \[ \frac{\tan ^{-1}\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}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1010
Rule 377
Rule 203
Rule 444
Rule 63
Rule 207
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} \operatorname{Subst}\left (\int \frac{1}{(4+x) \sqrt{9+x}} \, dx,x,x^2\right )+\operatorname{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}}+\operatorname{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 [C] time = 0.0455921, size = 64, normalized size = 1.21 \[ -\frac{(2+i) \tanh ^{-1}\left (\frac{9-2 i x}{\sqrt{5} \sqrt{x^2+9}}\right )+(2-i) \tanh ^{-1}\left (\frac{9+2 i x}{\sqrt{5} \sqrt{x^2+9}}\right )}{4 \sqrt{5}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.013, size = 39, normalized size = 0.7 \begin{align*}{\frac{\sqrt{5}}{10}\arctan \left ({\frac{x\sqrt{5}}{2}{\frac{1}{\sqrt{{x}^{2}+9}}}} \right ) }-{\frac{\sqrt{5}}{5}{\it Artanh} \left ({\frac{\sqrt{5}}{5}\sqrt{{x}^{2}+9}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x + 1}{\sqrt{x^{2} + 9}{\left (x^{2} + 4\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.7695, size = 574, normalized size = 10.83 \begin{align*} \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x + 1}{\left (x^{2} + 4\right ) \sqrt{x^{2} + 9}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.25997, size = 528, normalized size = 9.96 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]