Integrand size = 24, antiderivative size = 47 \[ \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}+2 \sqrt {2} \arctan \left (\frac {\sqrt {2} x}{\sqrt {1-x^2}}\right ) \]
[Out]
Time = 0.02 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {541, 12, 385, 209} \[ \int \frac {5+x^2}{\sqrt {1-x^2} \left (1+x^2\right )^2} \, dx=2 \sqrt {2} \arctan \left (\frac {\sqrt {2} x}{\sqrt {1-x^2}}\right )+\frac {\sqrt {1-x^2} x}{x^2+1} \]
[In]
[Out]
Rule 12
Rule 209
Rule 385
Rule 541
Rubi steps \begin{align*} \text {integral}& = \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 \text {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} \arctan \left (\frac {\sqrt {2} x}{\sqrt {1-x^2}}\right ) \\ \end{align*}
Time = 0.23 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.00 \[ \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}+2 \sqrt {2} \arctan \left (\frac {\sqrt {2} x}{\sqrt {1-x^2}}\right ) \]
[In]
[Out]
Time = 0.62 (sec) , antiderivative size = 50, normalized size of antiderivative = 1.06
method | result | size |
pseudoelliptic | \(\frac {\left (-2 x^{2}-2\right ) \sqrt {2}\, \arctan \left (\frac {\sqrt {2}\, \sqrt {-x^{2}+1}}{2 x}\right )+x \sqrt {-x^{2}+1}}{x^{2}+1}\) | \(50\) |
risch | \(-\frac {x \left (x^{2}-1\right )}{\left (x^{2}+1\right ) \sqrt {-x^{2}+1}}-2 \sqrt {2}\, \arctan \left (\frac {\sqrt {2}\, \sqrt {-x^{2}+1}\, x}{x^{2}-1}\right )\) | \(53\) |
trager | \(\frac {x \sqrt {-x^{2}+1}}{x^{2}+1}-\operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) \ln \left (\frac {3 \operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right ) x^{2}+4 x \sqrt {-x^{2}+1}-\operatorname {RootOf}\left (\textit {\_Z}^{2}+2\right )}{x^{2}+1}\right )\) | \(69\) |
default | \(-2 \sqrt {2}\, \arctan \left (\frac {\sqrt {2}\, \sqrt {-x^{2}+1}\, x}{x^{2}-1}\right )-\frac {\sqrt {-x^{2}+1}\, x}{2 \left (x^{2}-1\right ) \left (\frac {\left (-x^{2}+1\right ) x^{2}}{\left (x^{2}-1\right )^{2}}+\frac {1}{2}\right )}\) | \(70\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 50, normalized size of antiderivative = 1.06 \[ \int \frac {5+x^2}{\sqrt {1-x^2} \left (1+x^2\right )^2} \, dx=-\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} \]
[In]
[Out]
\[ \int \frac {5+x^2}{\sqrt {1-x^2} \left (1+x^2\right )^2} \, dx=\int \frac {x^{2} + 5}{\sqrt {- \left (x - 1\right ) \left (x + 1\right )} \left (x^{2} + 1\right )^{2}}\, dx \]
[In]
[Out]
\[ \int \frac {5+x^2}{\sqrt {1-x^2} \left (1+x^2\right )^2} \, dx=\int { \frac {x^{2} + 5}{{\left (x^{2} + 1\right )}^{2} \sqrt {-x^{2} + 1}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 123 vs. \(2 (39) = 78\).
Time = 0.29 (sec) , antiderivative size = 123, normalized size of antiderivative = 2.62 \[ \int \frac {5+x^2}{\sqrt {1-x^2} \left (1+x^2\right )^2} \, dx=\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} \]
[In]
[Out]
Time = 0.14 (sec) , antiderivative size = 115, normalized size of antiderivative = 2.45 \[ \int \frac {5+x^2}{\sqrt {1-x^2} \left (1+x^2\right )^2} \, dx=\sqrt {2}\,\ln \left (\frac {\frac {\sqrt {2}\,\left (-1+x\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{2}-\sqrt {1-x^2}\,1{}\mathrm {i}}{x-\mathrm {i}}\right )\,1{}\mathrm {i}-\sqrt {2}\,\ln \left (\frac {\frac {\sqrt {2}\,\left (1+x\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{2}+\sqrt {1-x^2}\,1{}\mathrm {i}}{x+1{}\mathrm {i}}\right )\,1{}\mathrm {i}+\frac {\sqrt {1-x^2}}{2\,\left (x-\mathrm {i}\right )}+\frac {\sqrt {1-x^2}}{2\,\left (x+1{}\mathrm {i}\right )} \]
[In]
[Out]