Optimal. Leaf size=38 \[ -\frac {1}{6} \log \left (x^2+5\right )+\frac {1}{3} \log (1-x)+\frac {1}{3} \sqrt {5} \tan ^{-1}\left (\frac {x}{\sqrt {5}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {12, 801, 635, 203, 260} \[ -\frac {1}{6} \log \left (x^2+5\right )+\frac {1}{3} \log (1-x)+\frac {1}{3} \sqrt {5} \tan ^{-1}\left (\frac {x}{\sqrt {5}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 203
Rule 260
Rule 635
Rule 801
Rubi steps
\begin {align*} \int \frac {2 x}{(-1+x) \left (5+x^2\right )} \, dx &=2 \int \frac {x}{(-1+x) \left (5+x^2\right )} \, dx\\ &=2 \int \left (\frac {1}{6 (-1+x)}+\frac {5-x}{6 \left (5+x^2\right )}\right ) \, dx\\ &=\frac {1}{3} \log (1-x)+\frac {1}{3} \int \frac {5-x}{5+x^2} \, dx\\ &=\frac {1}{3} \log (1-x)-\frac {1}{3} \int \frac {x}{5+x^2} \, dx+\frac {5}{3} \int \frac {1}{5+x^2} \, dx\\ &=\frac {1}{3} \sqrt {5} \tan ^{-1}\left (\frac {x}{\sqrt {5}}\right )+\frac {1}{3} \log (1-x)-\frac {1}{6} \log \left (5+x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 40, normalized size = 1.05 \[ 2 \left (-\frac {1}{12} \log \left (x^2+5\right )+\frac {1}{6} \log (1-x)+\frac {1}{6} \sqrt {5} \tan ^{-1}\left (\frac {x}{\sqrt {5}}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.66, size = 27, normalized size = 0.71 \[ \frac {1}{3} \, \sqrt {5} \arctan \left (\frac {1}{5} \, \sqrt {5} x\right ) - \frac {1}{6} \, \log \left (x^{2} + 5\right ) + \frac {1}{3} \, \log \left (x - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.39, size = 28, normalized size = 0.74 \[ \frac {1}{3} \, \sqrt {5} \arctan \left (\frac {1}{5} \, \sqrt {5} x\right ) - \frac {1}{6} \, \log \left (x^{2} + 5\right ) + \frac {1}{3} \, \log \left ({\left | x - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 28, normalized size = 0.74 \[ \frac {\sqrt {5}\, \arctan \left (\frac {\sqrt {5}\, x}{5}\right )}{3}+\frac {\ln \left (x -1\right )}{3}-\frac {\ln \left (x^{2}+5\right )}{6} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.97, size = 27, normalized size = 0.71 \[ \frac {1}{3} \, \sqrt {5} \arctan \left (\frac {1}{5} \, \sqrt {5} x\right ) - \frac {1}{6} \, \log \left (x^{2} + 5\right ) + \frac {1}{3} \, \log \left (x - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.16, size = 44, normalized size = 1.16 \[ \frac {\ln \left (x-1\right )}{3}-\ln \left (x-\sqrt {5}\,1{}\mathrm {i}\right )\,\left (\frac {1}{6}+\frac {\sqrt {5}\,1{}\mathrm {i}}{6}\right )+\ln \left (x+\sqrt {5}\,1{}\mathrm {i}\right )\,\left (-\frac {1}{6}+\frac {\sqrt {5}\,1{}\mathrm {i}}{6}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.14, size = 31, normalized size = 0.82 \[ \frac {\log {\left (x - 1 \right )}}{3} - \frac {\log {\left (x^{2} + 5 \right )}}{6} + \frac {\sqrt {5} \operatorname {atan}{\left (\frac {\sqrt {5} x}{5} \right )}}{3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________