Optimal. Leaf size=12 \[ \frac {1}{2} \log (\cosh (a+2 \log (x))) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 12, 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 = {3556}
\begin {gather*} \frac {1}{2} \log (\cosh (a+2 \log (x))) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3556
Rubi steps
\begin {align*} \int \frac {\tanh (a+2 \log (x))}{x} \, dx &=\text {Subst}(\int \tanh (a+2 x) \, dx,x,\log (x))\\ &=\frac {1}{2} \log (\cosh (a+2 \log (x)))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 12, normalized size = 1.00 \begin {gather*} \frac {1}{2} \log (\cosh (a+2 \log (x))) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(25\) vs.
\(2(10)=20\).
time = 0.68, size = 26, normalized size = 2.17
method | result | size |
risch | \(-\ln \left (x \right )+\frac {\ln \left (-{\mathrm e}^{2 a} x^{4}-1\right )}{2}\) | \(20\) |
derivativedivides | \(-\frac {\ln \left (\tanh \left (a +2 \ln \left (x \right )\right )-1\right )}{4}-\frac {\ln \left (\tanh \left (a +2 \ln \left (x \right )\right )+1\right )}{4}\) | \(26\) |
default | \(-\frac {\ln \left (\tanh \left (a +2 \ln \left (x \right )\right )-1\right )}{4}-\frac {\ln \left (\tanh \left (a +2 \ln \left (x \right )\right )+1\right )}{4}\) | \(26\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 10, normalized size = 0.83 \begin {gather*} \frac {1}{2} \, \log \left (\cosh \left (a + 2 \, \log \left (x\right )\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 18, normalized size = 1.50 \begin {gather*} \frac {1}{2} \, \log \left (x^{4} e^{\left (2 \, a\right )} + 1\right ) - \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.09, size = 15, normalized size = 1.25 \begin {gather*} \log {\left (x \right )} - \frac {\log {\left (\tanh {\left (a + 2 \log {\left (x \right )} \right )} + 1 \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 20, normalized size = 1.67 \begin {gather*} \frac {1}{2} \, \log \left (x^{4} e^{\left (2 \, a\right )} + 1\right ) - \frac {1}{4} \, \log \left (x^{4}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.12, size = 15, normalized size = 1.25 \begin {gather*} \ln \left (x\right )-\frac {\ln \left (\mathrm {tanh}\left (a+2\,\ln \left (x\right )\right )+1\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________