Optimal. Leaf size=47 \[ \frac{\sqrt{1-x^2} x}{x^2+1}+2 \sqrt{2} \tan ^{-1}\left (\frac{\sqrt{2} x}{\sqrt{1-x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.020665, antiderivative size = 47, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {527, 12, 377, 203} \[ \frac{\sqrt{1-x^2} x}{x^2+1}+2 \sqrt{2} \tan ^{-1}\left (\frac{\sqrt{2} x}{\sqrt{1-x^2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 527
Rule 12
Rule 377
Rule 203
Rubi steps
\begin{align*} \int \frac{5+x^2}{\sqrt{1-x^2} \left (1+x^2\right )^2} \, dx &=\frac{x \sqrt{1-x^2}}{1+x^2}-\frac{1}{4} \int -\frac{16}{\sqrt{1-x^2} \left (1+x^2\right )} \, dx\\ &=\frac{x \sqrt{1-x^2}}{1+x^2}+4 \int \frac{1}{\sqrt{1-x^2} \left (1+x^2\right )} \, dx\\ &=\frac{x \sqrt{1-x^2}}{1+x^2}+4 \operatorname{Subst}\left (\int \frac{1}{1+2 x^2} \, dx,x,\frac{x}{\sqrt{1-x^2}}\right )\\ &=\frac{x \sqrt{1-x^2}}{1+x^2}+2 \sqrt{2} \tan ^{-1}\left (\frac{\sqrt{2} x}{\sqrt{1-x^2}}\right )\\ \end{align*}
Mathematica [A] time = 0.148822, size = 85, normalized size = 1.81 \[ \frac{\sqrt{1-x^2} x}{x^2+1}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} x}{\sqrt{1-x^2}}\right )}{\sqrt{2}}+\frac{3 x \tanh ^{-1}\left (\sqrt{2} \sqrt{\frac{x^2}{x^2-1}}\right )}{\sqrt{2} \sqrt{-x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.026, size = 70, normalized size = 1.5 \begin{align*} -2\,\sqrt{2}\arctan \left ({\frac{\sqrt{2}\sqrt{-{x}^{2}+1}x}{{x}^{2}-1}} \right ) -{\frac{x}{2\,{x}^{2}-2}\sqrt{-{x}^{2}+1} \left ({\frac{ \left ( -{x}^{2}+1 \right ){x}^{2}}{ \left ({x}^{2}-1 \right ) ^{2}}}+{\frac{1}{2}} \right ) ^{-1}} \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^{2} + 5}{{\left (x^{2} + 1\right )}^{2} \sqrt{-x^{2} + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.85211, size = 122, normalized size = 2.6 \begin{align*} -\frac{2 \, \sqrt{2}{\left (x^{2} + 1\right )} \arctan \left (\frac{\sqrt{2} \sqrt{-x^{2} + 1}}{2 \, x}\right ) - \sqrt{-x^{2} + 1} x}{x^{2} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.08738, size = 166, normalized size = 3.53 \begin{align*} \sqrt{2}{\left (\pi \mathrm{sgn}\left (x\right ) + 2 \, \arctan \left (-\frac{\sqrt{2} x{\left (\frac{{\left (\sqrt{-x^{2} + 1} - 1\right )}^{2}}{x^{2}} - 1\right )}}{4 \,{\left (\sqrt{-x^{2} + 1} - 1\right )}}\right )\right )} - \frac{2 \,{\left (\frac{x}{\sqrt{-x^{2} + 1} - 1} - \frac{\sqrt{-x^{2} + 1} - 1}{x}\right )}}{{\left (\frac{x}{\sqrt{-x^{2} + 1} - 1} - \frac{\sqrt{-x^{2} + 1} - 1}{x}\right )}^{2} + 8} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]