Optimal. Leaf size=17 \[ \frac{\cosh ^3(x)}{3}-\frac{\sinh ^3(x)}{3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.110752, antiderivative size = 17, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.667, Rules used = {3518, 3108, 3107, 2565, 30, 2564} \[ \frac{\cosh ^3(x)}{3}-\frac{\sinh ^3(x)}{3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3518
Rule 3108
Rule 3107
Rule 2565
Rule 30
Rule 2564
Rubi steps
\begin{align*} \int \frac{\sinh (x)}{1+\tanh (x)} \, dx &=\int \frac{\cosh (x) \sinh (x)}{\cosh (x)+\sinh (x)} \, dx\\ &=i \int \cosh (x) (-i \cosh (x)+i \sinh (x)) \sinh (x) \, dx\\ &=\int \left (\cosh ^2(x) \sinh (x)-\cosh (x) \sinh ^2(x)\right ) \, dx\\ &=\int \cosh ^2(x) \sinh (x) \, dx-\int \cosh (x) \sinh ^2(x) \, dx\\ &=-\left (i \operatorname{Subst}\left (\int x^2 \, dx,x,i \sinh (x)\right )\right )+\operatorname{Subst}\left (\int x^2 \, dx,x,\cosh (x)\right )\\ &=\frac{\cosh ^3(x)}{3}-\frac{\sinh ^3(x)}{3}\\ \end{align*}
Mathematica [A] time = 0.0162827, size = 19, normalized size = 1.12 \[ \frac{1}{12} \left (-4 \sinh ^3(x)+3 \cosh (x)+\cosh (3 x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.023, size = 42, normalized size = 2.5 \begin{align*}{\frac{2}{3} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-3}}- \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}+{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{\frac{1}{2} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.15552, size = 15, normalized size = 0.88 \begin{align*} \frac{1}{12} \, e^{\left (-3 \, x\right )} + \frac{1}{4} \, e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.4385, size = 90, normalized size = 5.29 \begin{align*} \frac{\cosh \left (x\right )^{2} + \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2}}{3 \,{\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.436478, size = 48, normalized size = 2.82 \begin{align*} \frac{\sinh{\left (x \right )} \tanh{\left (x \right )}}{3 \tanh{\left (x \right )} + 3} - \frac{\sinh{\left (x \right )}}{3 \tanh{\left (x \right )} + 3} + \frac{2 \cosh{\left (x \right )} \tanh{\left (x \right )}}{3 \tanh{\left (x \right )} + 3} + \frac{\cosh{\left (x \right )}}{3 \tanh{\left (x \right )} + 3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18694, size = 15, normalized size = 0.88 \begin{align*} \frac{1}{12} \, e^{\left (-3 \, x\right )} + \frac{1}{4} \, e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]