Optimal. Leaf size=18 \[ \frac {\log (\cosh (x))}{a}-\frac {\log (1+\cosh (x))}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 18, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {2786, 36, 29,
31} \begin {gather*} \frac {\log (\cosh (x))}{a}-\frac {\log (\cosh (x)+1)}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 2786
Rubi steps
\begin {align*} \int \frac {\tanh (x)}{a+a \cosh (x)} \, dx &=\text {Subst}\left (\int \frac {1}{x (a+x)} \, dx,x,a \cosh (x)\right )\\ &=\frac {\text {Subst}\left (\int \frac {1}{x} \, dx,x,a \cosh (x)\right )}{a}-\frac {\text {Subst}\left (\int \frac {1}{a+x} \, dx,x,a \cosh (x)\right )}{a}\\ &=\frac {\log (\cosh (x))}{a}-\frac {\log (1+\cosh (x))}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 12, normalized size = 0.67 \begin {gather*} -\frac {2 \tanh ^{-1}(1+2 \cosh (x))}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.52, size = 16, normalized size = 0.89
method | result | size |
derivativedivides | \(\frac {\ln \left (\cosh \left (x \right )\right )-\ln \left (\cosh \left (x \right )+1\right )}{a}\) | \(16\) |
default | \(\frac {\ln \left (\cosh \left (x \right )\right )-\ln \left (\cosh \left (x \right )+1\right )}{a}\) | \(16\) |
risch | \(-\frac {2 \ln \left ({\mathrm e}^{x}+1\right )}{a}+\frac {\ln \left (1+{\mathrm e}^{2 x}\right )}{a}\) | \(23\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 24, normalized size = 1.33 \begin {gather*} -\frac {2 \, \log \left (e^{\left (-x\right )} + 1\right )}{a} + \frac {\log \left (e^{\left (-2 \, x\right )} + 1\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 28, normalized size = 1.56 \begin {gather*} \frac {\log \left (\frac {2 \, \cosh \left (x\right )}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) - 2 \, \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {\tanh {\left (x \right )}}{\cosh {\left (x \right )} + 1}\, dx}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 22, normalized size = 1.22 \begin {gather*} \frac {\log \left (e^{\left (2 \, x\right )} + 1\right )}{a} - \frac {2 \, \log \left (e^{x} + 1\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.08, size = 26, normalized size = 1.44 \begin {gather*} -\frac {2\,\ln \left (36\,{\mathrm {e}}^x+36\right )-\ln \left (3\,{\mathrm {e}}^{2\,x}+3\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________