Optimal. Leaf size=12 \[ \frac{4}{1-x}+\tanh ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0207068, antiderivative size = 12, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {2074, 206} \[ \frac{4}{1-x}+\tanh ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2074
Rule 206
Rubi steps
\begin{align*} \int \frac{5+3 x}{1-x-x^2+x^3} \, dx &=\int \left (\frac{4}{(-1+x)^2}+\frac{1}{1-x^2}\right ) \, dx\\ &=\frac{4}{1-x}+\int \frac{1}{1-x^2} \, dx\\ &=\frac{4}{1-x}+\tanh ^{-1}(x)\\ \end{align*}
Mathematica [A] time = 0.0107631, size = 24, normalized size = 2. \[ -\frac{4}{x-1}-\frac{1}{2} \log (x-1)+\frac{1}{2} \log (x+1) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 21, normalized size = 1.8 \begin{align*} -4\, \left ( x-1 \right ) ^{-1}-{\frac{\ln \left ( x-1 \right ) }{2}}+{\frac{\ln \left ( 1+x \right ) }{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.98613, size = 27, normalized size = 2.25 \begin{align*} -\frac{4}{x - 1} + \frac{1}{2} \, \log \left (x + 1\right ) - \frac{1}{2} \, \log \left (x - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.22273, size = 80, normalized size = 6.67 \begin{align*} \frac{{\left (x - 1\right )} \log \left (x + 1\right ) -{\left (x - 1\right )} \log \left (x - 1\right ) - 8}{2 \,{\left (x - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.09273, size = 17, normalized size = 1.42 \begin{align*} - \frac{\log{\left (x - 1 \right )}}{2} + \frac{\log{\left (x + 1 \right )}}{2} - \frac{4}{x - 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.11756, size = 30, normalized size = 2.5 \begin{align*} -\frac{4}{x - 1} + \frac{1}{2} \, \log \left ({\left | x + 1 \right |}\right ) - \frac{1}{2} \, \log \left ({\left | x - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]