Optimal. Leaf size=23 \[ \log \left (\frac {\log ^2\left (e^{2 x}\right )}{x \left (2+x-x^2\right )^2}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 17, normalized size of antiderivative = 0.74, number of steps used = 3, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {1594, 1628} \begin {gather*} -2 \log (2-x)+\log (x)-2 \log (x+1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1594
Rule 1628
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-2+x-3 x^2}{x \left (-2-x+x^2\right )} \, dx\\ &=\int \left (-\frac {2}{-2+x}+\frac {1}{x}-\frac {2}{1+x}\right ) \, dx\\ &=-2 \log (2-x)+\log (x)-2 \log (1+x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 14, normalized size = 0.61 \begin {gather*} \log (x)-2 \log \left (2+x-x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.22, size = 14, normalized size = 0.61 \begin {gather*} -2 \, \log \left (x^{2} - x - 2\right ) + \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 18, normalized size = 0.78 \begin {gather*} -2 \, \log \left ({\left | x + 1 \right |}\right ) - 2 \, \log \left ({\left | x - 2 \right |}\right ) + \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 15, normalized size = 0.65
method | result | size |
risch | \(\ln \relax (x )-2 \ln \left (x^{2}-x -2\right )\) | \(15\) |
default | \(\ln \relax (x )-2 \ln \left (x -2\right )-2 \ln \left (x +1\right )\) | \(16\) |
norman | \(\ln \relax (x )-2 \ln \left (x -2\right )-2 \ln \left (x +1\right )\) | \(16\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.35, size = 15, normalized size = 0.65 \begin {gather*} -2 \, \log \left (x + 1\right ) - 2 \, \log \left (x - 2\right ) + \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 14, normalized size = 0.61 \begin {gather*} \ln \relax (x)-2\,\ln \left (x^2-x-2\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.11, size = 12, normalized size = 0.52 \begin {gather*} \log {\relax (x )} - 2 \log {\left (x^{2} - x - 2 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________