Optimal. Leaf size=32 \[ -\frac {1}{2 (1+x)}+\frac {1}{4} \log (1-x)-\log (x)+\frac {3}{4} \log (1+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {84}
\begin {gather*} -\frac {1}{2 (x+1)}+\frac {1}{4} \log (1-x)-\log (x)+\frac {3}{4} \log (x+1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 84
Rubi steps
\begin {align*} \int \frac {1}{(-1+x) x (1+x)^2} \, dx &=\int \left (\frac {1}{4 (-1+x)}-\frac {1}{x}+\frac {1}{2 (1+x)^2}+\frac {3}{4 (1+x)}\right ) \, dx\\ &=-\frac {1}{2 (1+x)}+\frac {1}{4} \log (1-x)-\log (x)+\frac {3}{4} \log (1+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 28, normalized size = 0.88 \begin {gather*} \frac {1}{4} \left (-\frac {2}{1+x}+\log (1-x)-4 \log (x)+3 \log (1+x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 25, normalized size = 0.78
method | result | size |
default | \(-\ln \left (x \right )+\frac {\ln \left (-1+x \right )}{4}-\frac {1}{2 \left (1+x \right )}+\frac {3 \ln \left (1+x \right )}{4}\) | \(25\) |
norman | \(-\ln \left (x \right )+\frac {\ln \left (-1+x \right )}{4}-\frac {1}{2 \left (1+x \right )}+\frac {3 \ln \left (1+x \right )}{4}\) | \(25\) |
risch | \(-\ln \left (x \right )+\frac {\ln \left (-1+x \right )}{4}-\frac {1}{2 \left (1+x \right )}+\frac {3 \ln \left (1+x \right )}{4}\) | \(25\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 3.20, size = 24, normalized size = 0.75 \begin {gather*} -\frac {1}{2 \, {\left (x + 1\right )}} + \frac {3}{4} \, \log \left (x + 1\right ) + \frac {1}{4} \, \log \left (x - 1\right ) - \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.67, size = 33, normalized size = 1.03 \begin {gather*} \frac {3 \, {\left (x + 1\right )} \log \left (x + 1\right ) + {\left (x + 1\right )} \log \left (x - 1\right ) - 4 \, {\left (x + 1\right )} \log \left (x\right ) - 2}{4 \, {\left (x + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 24, normalized size = 0.75 \begin {gather*} - \log {\left (x \right )} + \frac {\log {\left (x - 1 \right )}}{4} + \frac {3 \log {\left (x + 1 \right )}}{4} - \frac {1}{2 x + 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.51, size = 34, normalized size = 1.06 \begin {gather*} -\frac {1}{2 \, {\left (x + 1\right )}} - \log \left ({\left | -\frac {1}{x + 1} + 1 \right |}\right ) + \frac {1}{4} \, \log \left ({\left | -\frac {2}{x + 1} + 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.03, size = 26, normalized size = 0.81 \begin {gather*} \frac {\ln \left (x-1\right )}{4}+\frac {3\,\ln \left (x+1\right )}{4}-\ln \left (x\right )-\frac {1}{2\,\left (x+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________