Optimal. Leaf size=12 \[ \frac {4}{1-x}+\tanh ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 12, normalized size of antiderivative = 1.00, 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 206
Rule 2074
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.01, size = 24, normalized size = 2.00 \[ -\frac {4}{x-1}-\frac {1}{2} \log (x-1)+\frac {1}{2} \log (x+1) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.73, size = 26, normalized size = 2.17 \[ \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 )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.30, size = 22, normalized size = 1.83 \[ -\frac {4}{x - 1} + \frac {1}{2} \, \log \left ({\left | x + 1 \right |}\right ) - \frac {1}{2} \, \log \left ({\left | x - 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 21, normalized size = 1.75 \[ -\frac {\ln \left (x -1\right )}{2}+\frac {\ln \left (x +1\right )}{2}-\frac {4}{x -1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.08, size = 20, normalized size = 1.67 \[ -\frac {4}{x - 1} + \frac {1}{2} \, \log \left (x + 1\right ) - \frac {1}{2} \, \log \left (x - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 10, normalized size = 0.83 \[ \mathrm {atanh}\relax (x)-\frac {4}{x-1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.10, size = 17, normalized size = 1.42 \[ - \frac {\log {\left (x - 1 \right )}}{2} + \frac {\log {\left (x + 1 \right )}}{2} - \frac {4}{x - 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________