Optimal. Leaf size=31 \[ -\frac{1}{26} \log \left (x^2+4\right )+\frac{1}{13} \log (3-x)-\frac{3}{26} \tan ^{-1}\left (\frac{x}{2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0120286, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.385, Rules used = {706, 31, 635, 203, 260} \[ -\frac{1}{26} \log \left (x^2+4\right )+\frac{1}{13} \log (3-x)-\frac{3}{26} \tan ^{-1}\left (\frac{x}{2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 706
Rule 31
Rule 635
Rule 203
Rule 260
Rubi steps
\begin{align*} \int \frac{1}{(-3+x) \left (4+x^2\right )} \, dx &=\frac{1}{13} \int \frac{1}{-3+x} \, dx+\frac{1}{13} \int \frac{-3-x}{4+x^2} \, dx\\ &=\frac{1}{13} \log (3-x)-\frac{1}{13} \int \frac{x}{4+x^2} \, dx-\frac{3}{13} \int \frac{1}{4+x^2} \, dx\\ &=-\frac{3}{26} \tan ^{-1}\left (\frac{x}{2}\right )+\frac{1}{13} \log (3-x)-\frac{1}{26} \log \left (4+x^2\right )\\ \end{align*}
Mathematica [A] time = 0.0051457, size = 36, normalized size = 1.16 \[ -\frac{1}{26} \log \left ((x-3)^2+6 (x-3)+13\right )+\frac{1}{13} \log (x-3)-\frac{3}{26} \tan ^{-1}\left (\frac{x}{2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 22, normalized size = 0.7 \begin{align*}{\frac{\ln \left ( -3+x \right ) }{13}}-{\frac{\ln \left ({x}^{2}+4 \right ) }{26}}-{\frac{3}{26}\arctan \left ({\frac{x}{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.47843, size = 28, normalized size = 0.9 \begin{align*} -\frac{3}{26} \, \arctan \left (\frac{1}{2} \, x\right ) - \frac{1}{26} \, \log \left (x^{2} + 4\right ) + \frac{1}{13} \, \log \left (x - 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.00476, size = 80, normalized size = 2.58 \begin{align*} -\frac{3}{26} \, \arctan \left (\frac{1}{2} \, x\right ) - \frac{1}{26} \, \log \left (x^{2} + 4\right ) + \frac{1}{13} \, \log \left (x - 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.137788, size = 22, normalized size = 0.71 \begin{align*} \frac{\log{\left (x - 3 \right )}}{13} - \frac{\log{\left (x^{2} + 4 \right )}}{26} - \frac{3 \operatorname{atan}{\left (\frac{x}{2} \right )}}{26} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11134, size = 30, normalized size = 0.97 \begin{align*} -\frac{3}{26} \, \arctan \left (\frac{1}{2} \, x\right ) - \frac{1}{26} \, \log \left (x^{2} + 4\right ) + \frac{1}{13} \, \log \left ({\left | x - 3 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]