Optimal. Leaf size=14 \[ \frac {\log (\cosh (x))}{a}+\frac {\text {sech}(x)}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 14, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3964, 45}
\begin {gather*} \frac {\text {sech}(x)}{a}+\frac {\log (\cosh (x))}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 3964
Rubi steps
\begin {align*} \int \frac {\tanh ^3(x)}{a+a \text {sech}(x)} \, dx &=-\frac {\text {Subst}\left (\int \frac {a-a x}{x^2} \, dx,x,\cosh (x)\right )}{a^2}\\ &=-\frac {\text {Subst}\left (\int \left (\frac {a}{x^2}-\frac {a}{x}\right ) \, dx,x,\cosh (x)\right )}{a^2}\\ &=\frac {\log (\cosh (x))}{a}+\frac {\text {sech}(x)}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 10, normalized size = 0.71 \begin {gather*} \frac {\log (\cosh (x))+\text {sech}(x)}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(47\) vs.
\(2(14)=28\).
time = 0.66, size = 48, normalized size = 3.43
method | result | size |
risch | \(-\frac {x}{a}+\frac {2 \,{\mathrm e}^{x}}{a \left (1+{\mathrm e}^{2 x}\right )}+\frac {\ln \left (1+{\mathrm e}^{2 x}\right )}{a}\) | \(34\) |
default | \(\frac {-\ln \left (\tanh \left (\frac {x}{2}\right )-1\right )-\ln \left (\tanh \left (\frac {x}{2}\right )+1\right )+\ln \left (\tanh ^{2}\left (\frac {x}{2}\right )+1\right )+\frac {8}{4 \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )+4}}{a}\) | \(48\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 33 vs.
\(2 (14) = 28\).
time = 0.46, size = 33, normalized size = 2.36 \begin {gather*} \frac {x}{a} + \frac {2 \, e^{\left (-x\right )}}{a e^{\left (-2 \, x\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 [B] Leaf count of result is larger than twice the leaf count of optimal. 85 vs.
\(2 (14) = 28\).
time = 0.37, size = 85, normalized size = 6.07 \begin {gather*} -\frac {x \cosh \left (x\right )^{2} + x \sinh \left (x\right )^{2} - {\left (\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2} + 1\right )} \log \left (\frac {2 \, \cosh \left (x\right )}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) + 2 \, {\left (x \cosh \left (x\right ) - 1\right )} \sinh \left (x\right ) + x - 2 \, \cosh \left (x\right )}{a \cosh \left (x\right )^{2} + 2 \, a \cosh \left (x\right ) \sinh \left (x\right ) + a \sinh \left (x\right )^{2} + 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 ^{3}{\left (x \right )}}{\operatorname {sech}{\left (x \right )} + 1}\, dx}{a} \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. 35 vs.
\(2 (14) = 28\).
time = 0.39, size = 35, normalized size = 2.50 \begin {gather*} \frac {\log \left (e^{\left (-x\right )} + e^{x}\right )}{a} - \frac {e^{\left (-x\right )} + e^{x} - 2}{a {\left (e^{\left (-x\right )} + e^{x}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.36, size = 33, normalized size = 2.36 \begin {gather*} \frac {\ln \left ({\mathrm {e}}^{2\,x}+1\right )}{a}-\frac {x}{a}+\frac {2\,{\mathrm {e}}^x}{a\,\left ({\mathrm {e}}^{2\,x}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________