Optimal. Leaf size=61 \[ \frac {3 (1-x)}{128 \left (-x^2+2 x+3\right )}+\frac {1-x}{16 \left (-x^2+2 x+3\right )^2}+\frac {3}{512} \log (3-x)-\frac {3}{512} \log (x+1) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {614, 616, 31} \[ \frac {3 (1-x)}{128 \left (-x^2+2 x+3\right )}+\frac {1-x}{16 \left (-x^2+2 x+3\right )^2}+\frac {3}{512} \log (3-x)-\frac {3}{512} \log (x+1) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 614
Rule 616
Rubi steps
\begin {align*} \int \frac {1}{\left (-3-2 x+x^2\right )^3} \, dx &=\frac {1-x}{16 \left (3+2 x-x^2\right )^2}-\frac {3}{16} \int \frac {1}{\left (-3-2 x+x^2\right )^2} \, dx\\ &=\frac {1-x}{16 \left (3+2 x-x^2\right )^2}+\frac {3 (1-x)}{128 \left (3+2 x-x^2\right )}+\frac {3}{128} \int \frac {1}{-3-2 x+x^2} \, dx\\ &=\frac {1-x}{16 \left (3+2 x-x^2\right )^2}+\frac {3 (1-x)}{128 \left (3+2 x-x^2\right )}+\frac {3}{512} \int \frac {1}{-3+x} \, dx-\frac {3}{512} \int \frac {1}{1+x} \, dx\\ &=\frac {1-x}{16 \left (3+2 x-x^2\right )^2}+\frac {3 (1-x)}{128 \left (3+2 x-x^2\right )}+\frac {3}{512} \log (3-x)-\frac {3}{512} \log (1+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 46, normalized size = 0.75 \[ \frac {1}{512} \left (\frac {4 \left (3 x^3-9 x^2-11 x+17\right )}{\left (x^2-2 x-3\right )^2}+3 \log (3-x)-3 \log (x+1)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.03, size = 44, normalized size = 0.72 \[ \frac {3 x^3-9 x^2-11 x+17}{128 \left (x^2-2 x-3\right )^2}+\frac {3}{256} \tanh ^{-1}\left (\frac {1}{2}-\frac {x}{2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.19, size = 85, normalized size = 1.39 \[ \frac {12 \, x^{3} - 36 \, x^{2} - 3 \, {\left (x^{4} - 4 \, x^{3} - 2 \, x^{2} + 12 \, x + 9\right )} \log \left (x + 1\right ) + 3 \, {\left (x^{4} - 4 \, x^{3} - 2 \, x^{2} + 12 \, x + 9\right )} \log \left (x - 3\right ) - 44 \, x + 68}{512 \, {\left (x^{4} - 4 \, x^{3} - 2 \, x^{2} + 12 \, x + 9\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.95, size = 42, normalized size = 0.69 \[ \frac {3 \, x^{3} - 9 \, x^{2} - 11 \, x + 17}{128 \, {\left (x^{2} - 2 \, x - 3\right )}^{2}} - \frac {3}{512} \, \log \left ({\left | x + 1 \right |}\right ) + \frac {3}{512} \, \log \left ({\left | x - 3 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.29, size = 40, normalized size = 0.66
method | result | size |
norman | \(\frac {\frac {3}{128} x^{3}-\frac {9}{128} x^{2}-\frac {11}{128} x +\frac {17}{128}}{\left (x^{2}-2 x -3\right )^{2}}+\frac {3 \ln \left (-3+x \right )}{512}-\frac {3 \ln \left (1+x \right )}{512}\) | \(40\) |
risch | \(\frac {\frac {3}{128} x^{3}-\frac {9}{128} x^{2}-\frac {11}{128} x +\frac {17}{128}}{\left (x^{2}-2 x -3\right )^{2}}+\frac {3 \ln \left (-3+x \right )}{512}-\frac {3 \ln \left (1+x \right )}{512}\) | \(40\) |
default | \(-\frac {1}{128 \left (-3+x \right )^{2}}+\frac {3}{256 \left (-3+x \right )}+\frac {3 \ln \left (-3+x \right )}{512}+\frac {1}{128 \left (1+x \right )^{2}}+\frac {3}{256 \left (1+x \right )}-\frac {3 \ln \left (1+x \right )}{512}\) | \(42\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 50, normalized size = 0.82 \[ \frac {3 \, x^{3} - 9 \, x^{2} - 11 \, x + 17}{128 \, {\left (x^{4} - 4 \, x^{3} - 2 \, x^{2} + 12 \, x + 9\right )}} - \frac {3}{512} \, \log \left (x + 1\right ) + \frac {3}{512} \, \log \left (x - 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.12, size = 45, normalized size = 0.74 \[ -\frac {3\,\ln \left (\frac {x+1}{x-3}\right )}{512}-6\,\left (\frac {1}{256\,\left (-x^2+2\,x+3\right )}+\frac {1}{96\,{\left (-x^2+2\,x+3\right )}^2}\right )\,\left (x-1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.16, size = 51, normalized size = 0.84 \[ \frac {3 x^{3} - 9 x^{2} - 11 x + 17}{128 x^{4} - 512 x^{3} - 256 x^{2} + 1536 x + 1152} + \frac {3 \log {\left (x - 3 \right )}}{512} - \frac {3 \log {\left (x + 1 \right )}}{512} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________