Optimal. Leaf size=11 \[ \log (x)-2 \log (1+a x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {6261, 78}
\begin {gather*} \log (x)-2 \log (a x+1) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 6261
Rubi steps
\begin {align*} \int \frac {e^{-2 \tanh ^{-1}(a x)}}{x} \, dx &=\int \frac {1-a x}{x (1+a x)} \, dx\\ &=\int \left (\frac {1}{x}-\frac {2 a}{1+a x}\right ) \, dx\\ &=\log (x)-2 \log (1+a x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 11, normalized size = 1.00 \begin {gather*} \log (x)-2 \log (1+a x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.50, size = 12, normalized size = 1.09
method | result | size |
default | \(\ln \left (x \right )-2 \ln \left (a x +1\right )\) | \(12\) |
norman | \(\ln \left (x \right )-2 \ln \left (a x +1\right )\) | \(12\) |
risch | \(\ln \left (-x \right )-2 \ln \left (a x +1\right )\) | \(14\) |
meijerg | \(\frac {a x}{a x +1}-2 \ln \left (a x +1\right )-\frac {2 a x}{2 a x +2}+1+\ln \left (x \right )+\ln \left (a \right )\) | \(37\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 11, normalized size = 1.00 \begin {gather*} -2 \, \log \left (a 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.33, size = 11, normalized size = 1.00 \begin {gather*} -2 \, \log \left (a x + 1\right ) + \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 10, normalized size = 0.91 \begin {gather*} \log {\left (x \right )} - 2 \log {\left (x + \frac {1}{a} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 43 vs.
\(2 (11) = 22\).
time = 0.41, size = 43, normalized size = 3.91 \begin {gather*} a {\left (\frac {\log \left (\frac {{\left | a x + 1 \right |}}{{\left (a x + 1\right )}^{2} {\left | a \right |}}\right )}{a} + \frac {\log \left ({\left | -\frac {1}{a x + 1} + 1 \right |}\right )}{a}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.79, size = 12, normalized size = 1.09 \begin {gather*} \ln \left (x\right )-2\,\ln \left (3\,a\,x+3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________