Optimal. Leaf size=53 \[ -\frac {1}{3 x^3}-\frac {1}{x^2}+\frac {1}{4} \log \left (x^2+1\right )+\frac {1}{2 (1-x)}-\frac {2}{x}-\frac {5}{2} \log (1-x)+2 \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {2058, 260} \[ -\frac {1}{x^2}-\frac {1}{3 x^3}+\frac {1}{4} \log \left (x^2+1\right )+\frac {1}{2 (1-x)}-\frac {2}{x}-\frac {5}{2} \log (1-x)+2 \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 260
Rule 2058
Rubi steps
\begin {align*} \int \frac {1}{x^4-2 x^5+2 x^6-2 x^7+x^8} \, dx &=\int \left (\frac {1}{2 (-1+x)^2}-\frac {5}{2 (-1+x)}+\frac {1}{x^4}+\frac {2}{x^3}+\frac {2}{x^2}+\frac {2}{x}+\frac {x}{2 \left (1+x^2\right )}\right ) \, dx\\ &=\frac {1}{2 (1-x)}-\frac {1}{3 x^3}-\frac {1}{x^2}-\frac {2}{x}-\frac {5}{2} \log (1-x)+2 \log (x)+\frac {1}{2} \int \frac {x}{1+x^2} \, dx\\ &=\frac {1}{2 (1-x)}-\frac {1}{3 x^3}-\frac {1}{x^2}-\frac {2}{x}-\frac {5}{2} \log (1-x)+2 \log (x)+\frac {1}{4} \log \left (1+x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 51, normalized size = 0.96 \[ -\frac {1}{3 x^3}-\frac {1}{x^2}+\frac {1}{4} \log \left (x^2+1\right )-\frac {1}{2 (x-1)}-\frac {2}{x}-\frac {5}{2} \log (1-x)+2 \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 73, normalized size = 1.38 \[ -\frac {30 \, x^{3} - 12 \, x^{2} - 3 \, {\left (x^{4} - x^{3}\right )} \log \left (x^{2} + 1\right ) + 30 \, {\left (x^{4} - x^{3}\right )} \log \left (x - 1\right ) - 24 \, {\left (x^{4} - x^{3}\right )} \log \relax (x) - 8 \, x - 4}{12 \, {\left (x^{4} - x^{3}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.12, size = 46, normalized size = 0.87 \[ -\frac {15 \, x^{3} - 6 \, x^{2} - 4 \, x - 2}{6 \, {\left (x - 1\right )} x^{3}} + \frac {1}{4} \, \log \left (x^{2} + 1\right ) - \frac {5}{2} \, \log \left ({\left | x - 1 \right |}\right ) + 2 \, \log \left ({\left | x \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 42, normalized size = 0.79 \[ 2 \ln \relax (x )-\frac {5 \ln \left (x -1\right )}{2}+\frac {\ln \left (x^{2}+1\right )}{4}-\frac {2}{x}-\frac {1}{x^{2}}-\frac {1}{3 x^{3}}-\frac {1}{2 \left (x -1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.96, size = 47, normalized size = 0.89 \[ -\frac {15 \, x^{3} - 6 \, x^{2} - 4 \, x - 2}{6 \, {\left (x^{4} - x^{3}\right )}} + \frac {1}{4} \, \log \left (x^{2} + 1\right ) - \frac {5}{2} \, \log \left (x - 1\right ) + 2 \, \log \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.06, size = 45, normalized size = 0.85 \[ \frac {\ln \left (x^2+1\right )}{4}-\frac {5\,\ln \left (x-1\right )}{2}+2\,\ln \relax (x)-\frac {-\frac {5\,x^3}{2}+x^2+\frac {2\,x}{3}+\frac {1}{3}}{x^3-x^4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.18, size = 46, normalized size = 0.87 \[ 2 \log {\relax (x )} - \frac {5 \log {\left (x - 1 \right )}}{2} + \frac {\log {\left (x^{2} + 1 \right )}}{4} + \frac {- 15 x^{3} + 6 x^{2} + 4 x + 2}{6 x^{4} - 6 x^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________