Optimal. Leaf size=6 \[ \log \left (-1+x^2\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 8, normalized size of antiderivative = 1.33, number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {12, 1584, 260} \begin {gather*} \log \left (1-x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 260
Rule 1584
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=2 \int \frac {x^2}{-x+x^3} \, dx\\ &=2 \int \frac {x}{-1+x^2} \, dx\\ &=\log \left (1-x^2\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 6, normalized size = 1.00 \begin {gather*} \log \left (-1+x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.75, size = 6, normalized size = 1.00 \begin {gather*} \log \left (x^{2} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 11, normalized size = 1.83 \begin {gather*} \log \left ({\left | x + 1 \right |}\right ) + \log \left ({\left | x - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.11, size = 10, normalized size = 1.67
method | result | size |
norman | \(\ln \left (x -1\right )+\ln \left (x +1\right )\) | \(10\) |
default | \(\ln \left (x^{2} {\mathrm e}^{x +\ln \left (x^{2} {\mathrm e}^{-x}\right )-2 \ln \relax (x )}-1\right )\) | \(24\) |
risch | \(\ln \left ({\mathrm e}^{x}\right )+\frac {i \pi \,\mathrm {csgn}\left (i x^{2}\right ) \left (-\mathrm {csgn}\left (i x^{2}\right )+\mathrm {csgn}\left (i x \right )\right )^{2}}{2}+\frac {i \pi \,\mathrm {csgn}\left (i x^{2} {\mathrm e}^{-x}\right ) \left (-\mathrm {csgn}\left (i x^{2} {\mathrm e}^{-x}\right )+\mathrm {csgn}\left (i x^{2}\right )\right ) \left (-\mathrm {csgn}\left (i x^{2} {\mathrm e}^{-x}\right )+\mathrm {csgn}\left (i {\mathrm e}^{-x}\right )\right )}{2}-x +\ln \left (x^{2} {\mathrm e}^{-\frac {i \pi \left (\mathrm {csgn}\left (i x^{2}\right )^{3}-2 \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x^{2}\right )^{2}+\mathrm {csgn}\left (i x^{2}\right ) \mathrm {csgn}\left (i x \right )^{2}-\mathrm {csgn}\left (i x^{2}\right ) \mathrm {csgn}\left (i x^{2} {\mathrm e}^{-x}\right )^{2}+\mathrm {csgn}\left (i x^{2}\right ) \mathrm {csgn}\left (i x^{2} {\mathrm e}^{-x}\right ) \mathrm {csgn}\left (i {\mathrm e}^{-x}\right )+\mathrm {csgn}\left (i x^{2} {\mathrm e}^{-x}\right )^{3}-\mathrm {csgn}\left (i x^{2} {\mathrm e}^{-x}\right )^{2} \mathrm {csgn}\left (i {\mathrm e}^{-x}\right )\right )}{2}}-1\right )\) | \(232\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.37, size = 9, normalized size = 1.50 \begin {gather*} \log \left (x + 1\right ) + \log \left (x - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.09, size = 9, normalized size = 1.50 \begin {gather*} \ln \left (x-1\right )+\ln \left (x+1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.08, size = 5, normalized size = 0.83 \begin {gather*} \log {\left (x^{2} - 1 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________