Optimal. Leaf size=11 \[ \log (1+x)-\log (2+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {36, 31}
\begin {gather*} \log (x+1)-\log (x+2) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 36
Rubi steps
\begin {align*} \int \frac {1}{(1+x) (2+x)} \, dx &=\int \frac {1}{1+x} \, dx-\int \frac {1}{2+x} \, dx\\ &=\log (1+x)-\log (2+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 11, normalized size = 1.00 \begin {gather*} \log (1+x)-\log (2+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 12, normalized size = 1.09
method | result | size |
default | \(\ln \left (1+x \right )-\ln \left (2+x \right )\) | \(12\) |
norman | \(\ln \left (1+x \right )-\ln \left (2+x \right )\) | \(12\) |
risch | \(\ln \left (1+x \right )-\ln \left (2+x \right )\) | \(12\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.15, size = 11, normalized size = 1.00 \begin {gather*} -\log \left (x + 2\right ) + \log \left (x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.50, size = 11, normalized size = 1.00 \begin {gather*} -\log \left (x + 2\right ) + \log \left (x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.03, size = 8, normalized size = 0.73 \begin {gather*} \log {\left (x + 1 \right )} - \log {\left (x + 2 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 13, normalized size = 1.18 \begin {gather*} -\log \left ({\left | x + 2 \right |}\right ) + \log \left ({\left | x + 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.07, size = 10, normalized size = 0.91 \begin {gather*} \ln \left (1-\frac {1}{x+2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________