Optimal. Leaf size=11 \[ 2 \log (x)-\log (1+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {645}
\begin {gather*} 2 \log (x)-\log (x+1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 645
Rubi steps
\begin {align*} \int \frac {2+x}{x+x^2} \, dx &=\int \left (\frac {1}{-1-x}+\frac {2}{x}\right ) \, dx\\ &=2 \log (x)-\log (1+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 11, normalized size = 1.00 \begin {gather*} 2 \log (x)-\log (1+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [A]
time = 1.65, size = 11, normalized size = 1.00 \begin {gather*} -\text {Log}\left [1+x\right ]+2 \text {Log}\left [x\right ] \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 12, normalized size = 1.09
method | result | size |
default | \(2 \ln \left (x \right )-\ln \left (1+x \right )\) | \(12\) |
norman | \(2 \ln \left (x \right )-\ln \left (1+x \right )\) | \(12\) |
meijerg | \(2 \ln \left (x \right )-\ln \left (1+x \right )\) | \(12\) |
risch | \(2 \ln \left (x \right )-\ln \left (1+x \right )\) | \(12\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 11, normalized size = 1.00 \begin {gather*} -\log \left (x + 1\right ) + 2 \, \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 11, normalized size = 1.00 \begin {gather*} -\log \left (x + 1\right ) + 2 \, \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.05, size = 8, normalized size = 0.73 \begin {gather*} 2 \log {\left (x \right )} - \log {\left (x + 1 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.00, size = 12, normalized size = 1.09 \begin {gather*} 2 \ln \left |x\right |-\ln \left |x+1\right | \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.10, size = 11, normalized size = 1.00 \begin {gather*} 2\,\ln \left (x\right )-\ln \left (x+1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________