Optimal. Leaf size=69 \[ \frac{1}{6} \tan ^{-1}\left (\frac{\sinh (x)}{\sqrt{\sinh (2 x)}}\right )+\frac{\cosh (x)}{\sqrt{\sinh (2 x)}}+\sqrt{2} \tan ^{-1}\left (\text{sech}(x) \sqrt{\sinh (x) \cosh (x)}\right )-\frac{1}{3} \sqrt{2} \tanh ^{-1}\left (\text{sech}(x) \sqrt{\sinh (x) \cosh (x)}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.973021, antiderivative size = 102, normalized size of antiderivative = 1.48, number of steps used = 8, number of rules used = 4, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.129, Rules used = {4390, 6725, 207, 203} \[ -\frac{2 \sinh (x) \tanh ^{-1}\left (\sqrt{\tanh (x)}\right )}{3 \sqrt{\sinh (2 x)} \sqrt{\tanh (x)}}+\frac{\cosh (x)}{\sqrt{\sinh (2 x)}}+\frac{2 \sinh (x) \tan ^{-1}\left (\sqrt{\tanh (x)}\right )}{\sqrt{\sinh (2 x)} \sqrt{\tanh (x)}}+\frac{\sinh (x) \tan ^{-1}\left (\frac{\sqrt{\tanh (x)}}{\sqrt{2}}\right )}{3 \sqrt{2} \sqrt{\sinh (2 x)} \sqrt{\tanh (x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4390
Rule 6725
Rule 207
Rule 203
Rubi steps
\begin{align*} \int \frac{\cosh (x) (-\cosh (2 x)+\tanh (x))}{\sqrt{\sinh (2 x)} \left (\sinh ^2(x)+\sinh (2 x)\right )} \, dx &=\frac{\sinh (x) \int \frac{-\cosh (2 x)+\tanh (x)}{\left (\sinh ^2(x)+\sinh (2 x)\right ) \sqrt{\tanh (x)}} \, dx}{\sqrt{\sinh (2 x)} \sqrt{\tanh (x)}}\\ &=\frac{\sinh (x) \operatorname{Subst}\left (\int \frac{-1+x-x^2-x^3}{x^{3/2} (2+x) \left (1-x^2\right )} \, dx,x,\tanh (x)\right )}{\sqrt{\sinh (2 x)} \sqrt{\tanh (x)}}\\ &=\frac{(2 \sinh (x)) \operatorname{Subst}\left (\int \frac{1-x^2+x^4+x^6}{x^2 \left (2+x^2\right ) \left (-1+x^4\right )} \, dx,x,\sqrt{\tanh (x)}\right )}{\sqrt{\sinh (2 x)} \sqrt{\tanh (x)}}\\ &=\frac{(2 \sinh (x)) \operatorname{Subst}\left (\int \left (-\frac{1}{2 x^2}+\frac{1}{3 \left (-1+x^2\right )}+\frac{1}{1+x^2}+\frac{1}{6 \left (2+x^2\right )}\right ) \, dx,x,\sqrt{\tanh (x)}\right )}{\sqrt{\sinh (2 x)} \sqrt{\tanh (x)}}\\ &=\frac{\cosh (x)}{\sqrt{\sinh (2 x)}}+\frac{\sinh (x) \operatorname{Subst}\left (\int \frac{1}{2+x^2} \, dx,x,\sqrt{\tanh (x)}\right )}{3 \sqrt{\sinh (2 x)} \sqrt{\tanh (x)}}+\frac{(2 \sinh (x)) \operatorname{Subst}\left (\int \frac{1}{-1+x^2} \, dx,x,\sqrt{\tanh (x)}\right )}{3 \sqrt{\sinh (2 x)} \sqrt{\tanh (x)}}+\frac{(2 \sinh (x)) \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sqrt{\tanh (x)}\right )}{\sqrt{\sinh (2 x)} \sqrt{\tanh (x)}}\\ &=\frac{\cosh (x)}{\sqrt{\sinh (2 x)}}+\frac{2 \tan ^{-1}\left (\sqrt{\tanh (x)}\right ) \sinh (x)}{\sqrt{\sinh (2 x)} \sqrt{\tanh (x)}}+\frac{\tan ^{-1}\left (\frac{\sqrt{\tanh (x)}}{\sqrt{2}}\right ) \sinh (x)}{3 \sqrt{2} \sqrt{\sinh (2 x)} \sqrt{\tanh (x)}}-\frac{2 \tanh ^{-1}\left (\sqrt{\tanh (x)}\right ) \sinh (x)}{3 \sqrt{\sinh (2 x)} \sqrt{\tanh (x)}}\\ \end{align*}
Mathematica [C] time = 29.6156, size = 392, normalized size = 5.68 \[ \frac{\sqrt{\sinh (2 x)} (\tanh (x)-\cosh (2 x)) \left (-3 \coth (x)+\frac{\sqrt [4]{-1} \cosh (x) \sqrt{\tanh ^3\left (\frac{x}{2}\right )+\tanh \left (\frac{x}{2}\right )} \left (\frac{8 \sqrt [6]{-1} \left (2 \left (\sqrt [3]{-1}-1\right ) \Pi \left (i;\left .\sin ^{-1}\left ((-1)^{3/4} \sqrt{\tanh \left (\frac{x}{2}\right )}\right )\right |-1\right )+\left (3-3 i \sqrt{3}\right ) \Pi \left (-i;\left .i \sinh ^{-1}\left (\sqrt [4]{-1} \sqrt{\tanh \left (\frac{x}{2}\right )}\right )\right |-1\right )+i \left (\sqrt{3}+i\right ) \Pi \left (-\sqrt [6]{-1};\left .i \sinh ^{-1}\left (\sqrt [4]{-1} \sqrt{\tanh \left (\frac{x}{2}\right )}\right )\right |-1\right )+2 \left (\sqrt [3]{-1}-1\right ) \Pi \left (-(-1)^{5/6};\left .i \sinh ^{-1}\left (\sqrt [4]{-1} \sqrt{\tanh \left (\frac{x}{2}\right )}\right )\right |-1\right )\right )}{\left (\sqrt{3}-i\right ) \sqrt{\tanh ^2\left (\frac{x}{2}\right )+1}}-\frac{9 \coth \left (\frac{x}{2}\right ) \left (\text{EllipticF}\left (i \sinh ^{-1}\left (\frac{\sqrt [4]{-1}}{\sqrt{\tanh \left (\frac{x}{2}\right )}}\right ),-1\right )-\Pi \left (-\sqrt [6]{-1};\left .i \sinh ^{-1}\left (\frac{\sqrt [4]{-1}}{\sqrt{\tanh \left (\frac{x}{2}\right )}}\right )\right |-1\right )-\Pi \left (-(-1)^{5/6};\left .i \sinh ^{-1}\left (\frac{\sqrt [4]{-1}}{\sqrt{\tanh \left (\frac{x}{2}\right )}}\right )\right |-1\right )\right )}{\sqrt{\coth ^2\left (\frac{x}{2}\right )+1}}\right )}{(\cosh (x)+1) \sqrt{\tanh \left (\frac{x}{2}\right )} \sqrt{\frac{\sinh (2 x)}{(\cosh (x)+1)^2}}}\right )}{3 (-2 \sinh (x)+\cosh (x)+\cosh (3 x))} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.217, size = 609, normalized size = 8.8 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\int \frac{{\left (\cosh \left (2 \, x\right ) - \tanh \left (x\right )\right )} \cosh \left (x\right )}{{\left (\sinh \left (x\right )^{2} + \sinh \left (2 \, x\right )\right )} \sqrt{\sinh \left (2 \, x\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.47632, size = 1337, normalized size = 19.38 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -\frac{{\left (\cosh \left (2 \, x\right ) - \tanh \left (x\right )\right )} \cosh \left (x\right )}{{\left (\sinh \left (x\right )^{2} + \sinh \left (2 \, x\right )\right )} \sqrt{\sinh \left (2 \, x\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]