Optimal. Leaf size=36 \[ \frac {\tanh ^{-1}\left (\frac {\tanh (x)}{\sqrt {2}}\right )}{6 \sqrt {2}}+\frac {\coth (x)}{6}-\frac {1}{3} \cot ^{-1}(\cosh (x)) \text {csch}^3(x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.600, Rules used = {2686, 30, 5316,
12, 464, 212} \begin {gather*} \frac {\tanh ^{-1}\left (\frac {\tanh (x)}{\sqrt {2}}\right )}{6 \sqrt {2}}+\frac {\coth (x)}{6}-\frac {1}{3} \text {csch}^3(x) \cot ^{-1}(\cosh (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 30
Rule 212
Rule 464
Rule 2686
Rule 5316
Rubi steps
\begin {align*} \int \cot ^{-1}(\cosh (x)) \coth (x) \text {csch}^3(x) \, dx &=-\frac {1}{3} \cot ^{-1}(\cosh (x)) \text {csch}^3(x)+\int \frac {2 \text {csch}^2(x)}{3 (-3-\cosh (2 x))} \, dx\\ &=-\frac {1}{3} \cot ^{-1}(\cosh (x)) \text {csch}^3(x)+\frac {2}{3} \int \frac {\text {csch}^2(x)}{-3-\cosh (2 x)} \, dx\\ &=-\frac {1}{3} \cot ^{-1}(\cosh (x)) \text {csch}^3(x)-\frac {2}{3} \text {Subst}\left (\int \frac {1-x^2}{2 x^2 \left (2-x^2\right )} \, dx,x,\tanh (x)\right )\\ &=-\frac {1}{3} \cot ^{-1}(\cosh (x)) \text {csch}^3(x)-\frac {1}{3} \text {Subst}\left (\int \frac {1-x^2}{x^2 \left (2-x^2\right )} \, dx,x,\tanh (x)\right )\\ &=\frac {\coth (x)}{6}-\frac {1}{3} \cot ^{-1}(\cosh (x)) \text {csch}^3(x)+\frac {1}{6} \text {Subst}\left (\int \frac {1}{2-x^2} \, dx,x,\tanh (x)\right )\\ &=\frac {\tanh ^{-1}\left (\frac {\tanh (x)}{\sqrt {2}}\right )}{6 \sqrt {2}}+\frac {\coth (x)}{6}-\frac {1}{3} \cot ^{-1}(\cosh (x)) \text {csch}^3(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 40, normalized size = 1.11 \begin {gather*} \frac {1}{24} \left (2 \sqrt {2} \tanh ^{-1}\left (\frac {\tanh (x)}{\sqrt {2}}\right )+\left (-8 \cot ^{-1}(\cosh (x))-\cosh (x)+\cosh (3 x)\right ) \text {csch}^3(x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.52, size = 854, normalized size = 23.72
method | result | size |
risch | \(\text {Expression too large to display}\) | \(854\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 2.14, size = 54, normalized size = 1.50 \begin {gather*} -\frac {1}{24} \, \sqrt {2} \log \left (-\frac {2 \, \sqrt {2} - e^{\left (-2 \, x\right )} - 3}{2 \, \sqrt {2} + e^{\left (-2 \, x\right )} + 3}\right ) - \frac {1}{3 \, {\left (e^{\left (-2 \, x\right )} - 1\right )}} - \frac {\operatorname {arccot}\left (\cosh \left (x\right )\right )}{3 \, \sinh \left (x\right )^{3}} \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. 423 vs.
\(2 (27) = 54\).
time = 0.60, size = 423, normalized size = 11.75 \begin {gather*} \frac {8 \, \cosh \left (x\right )^{4} + 32 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + 8 \, \sinh \left (x\right )^{4} + 16 \, {\left (3 \, \cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{2} - 64 \, {\left (\cosh \left (x\right )^{3} + 3 \, \cosh \left (x\right )^{2} \sinh \left (x\right ) + 3 \, \cosh \left (x\right ) \sinh \left (x\right )^{2} + \sinh \left (x\right )^{3}\right )} \arctan \left (\frac {2 \, {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )}}{\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2} + 1}\right ) - 16 \, \cosh \left (x\right )^{2} + {\left (\sqrt {2} \cosh \left (x\right )^{6} + 6 \, \sqrt {2} \cosh \left (x\right ) \sinh \left (x\right )^{5} + \sqrt {2} \sinh \left (x\right )^{6} + 3 \, {\left (5 \, \sqrt {2} \cosh \left (x\right )^{2} - \sqrt {2}\right )} \sinh \left (x\right )^{4} - 3 \, \sqrt {2} \cosh \left (x\right )^{4} + 4 \, {\left (5 \, \sqrt {2} \cosh \left (x\right )^{3} - 3 \, \sqrt {2} \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 3 \, {\left (5 \, \sqrt {2} \cosh \left (x\right )^{4} - 6 \, \sqrt {2} \cosh \left (x\right )^{2} + \sqrt {2}\right )} \sinh \left (x\right )^{2} + 3 \, \sqrt {2} \cosh \left (x\right )^{2} + 6 \, {\left (\sqrt {2} \cosh \left (x\right )^{5} - 2 \, \sqrt {2} \cosh \left (x\right )^{3} + \sqrt {2} \cosh \left (x\right )\right )} \sinh \left (x\right ) - \sqrt {2}\right )} \log \left (-\frac {3 \, {\left (2 \, \sqrt {2} - 3\right )} \cosh \left (x\right )^{2} - 4 \, {\left (3 \, \sqrt {2} - 4\right )} \cosh \left (x\right ) \sinh \left (x\right ) + 3 \, {\left (2 \, \sqrt {2} - 3\right )} \sinh \left (x\right )^{2} + 2 \, \sqrt {2} - 3}{\cosh \left (x\right )^{2} + \sinh \left (x\right )^{2} + 3}\right ) + 32 \, {\left (\cosh \left (x\right )^{3} - \cosh \left (x\right )\right )} \sinh \left (x\right ) + 8}{24 \, {\left (\cosh \left (x\right )^{6} + 6 \, \cosh \left (x\right ) \sinh \left (x\right )^{5} + \sinh \left (x\right )^{6} + 3 \, {\left (5 \, \cosh \left (x\right )^{2} - 1\right )} \sinh \left (x\right )^{4} - 3 \, \cosh \left (x\right )^{4} + 4 \, {\left (5 \, \cosh \left (x\right )^{3} - 3 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 3 \, {\left (5 \, \cosh \left (x\right )^{4} - 6 \, \cosh \left (x\right )^{2} + 1\right )} \sinh \left (x\right )^{2} + 3 \, \cosh \left (x\right )^{2} + 6 \, {\left (\cosh \left (x\right )^{5} - 2 \, \cosh \left (x\right )^{3} + \cosh \left (x\right )\right )} \sinh \left (x\right ) - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 214 vs.
\(2 (34) = 68\).
time = 76.67, size = 214, normalized size = 5.94 \begin {gather*} - \frac {\sqrt {2} \log {\left (4 \tanh ^{2}{\left (\frac {x}{2} \right )} - 4 \sqrt {2} \tanh {\left (\frac {x}{2} \right )} + 4 \right )}}{24} + \frac {\sqrt {2} \log {\left (4 \tanh ^{2}{\left (\frac {x}{2} \right )} + 4 \sqrt {2} \tanh {\left (\frac {x}{2} \right )} + 4 \right )}}{24} - \frac {\tanh ^{3}{\left (\frac {x}{2} \right )} \operatorname {acot}{\left (\frac {\tanh ^{2}{\left (\frac {x}{2} \right )}}{\tanh ^{2}{\left (\frac {x}{2} \right )} - 1} + \frac {1}{\tanh ^{2}{\left (\frac {x}{2} \right )} - 1} \right )}}{24} + \frac {\tanh {\left (\frac {x}{2} \right )} \operatorname {acot}{\left (\frac {\tanh ^{2}{\left (\frac {x}{2} \right )}}{\tanh ^{2}{\left (\frac {x}{2} \right )} - 1} + \frac {1}{\tanh ^{2}{\left (\frac {x}{2} \right )} - 1} \right )}}{8} + \frac {\tanh {\left (\frac {x}{2} \right )}}{12} - \frac {\operatorname {acot}{\left (\frac {\tanh ^{2}{\left (\frac {x}{2} \right )}}{\tanh ^{2}{\left (\frac {x}{2} \right )} - 1} + \frac {1}{\tanh ^{2}{\left (\frac {x}{2} \right )} - 1} \right )}}{8 \tanh {\left (\frac {x}{2} \right )}} + \frac {1}{12 \tanh {\left (\frac {x}{2} \right )}} + \frac {\operatorname {acot}{\left (\frac {\tanh ^{2}{\left (\frac {x}{2} \right )}}{\tanh ^{2}{\left (\frac {x}{2} \right )} - 1} + \frac {1}{\tanh ^{2}{\left (\frac {x}{2} \right )} - 1} \right )}}{24 \tanh ^{3}{\left (\frac {x}{2} \right )}} \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. 70 vs.
\(2 (27) = 54\).
time = 0.98, size = 70, normalized size = 1.94 \begin {gather*} \frac {1}{24} \, \sqrt {2} \log \left (-\frac {2 \, \sqrt {2} - e^{\left (2 \, x\right )} - 3}{2 \, \sqrt {2} + e^{\left (2 \, x\right )} + 3}\right ) + \frac {1}{3 \, {\left (e^{\left (2 \, x\right )} - 1\right )}} + \frac {8 \, \arctan \left (\frac {2}{e^{\left (-x\right )} + e^{x}}\right )}{3 \, {\left (e^{\left (-x\right )} - e^{x}\right )}^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.54, size = 103, normalized size = 2.86 \begin {gather*} \frac {\sqrt {2}\,\ln \left (-\frac {2\,{\mathrm {e}}^{2\,x}}{3}-\frac {\sqrt {2}\,\left (12\,{\mathrm {e}}^{2\,x}+4\right )}{24}\right )}{24}-\frac {\sqrt {2}\,\ln \left (\frac {\sqrt {2}\,\left (12\,{\mathrm {e}}^{2\,x}+4\right )}{24}-\frac {2\,{\mathrm {e}}^{2\,x}}{3}\right )}{24}+\frac {1}{3\,\left ({\mathrm {e}}^{2\,x}-1\right )}-\frac {8\,{\mathrm {e}}^{3\,x}\,\mathrm {acot}\left (\frac {{\mathrm {e}}^{-x}}{2}+\frac {{\mathrm {e}}^x}{2}\right )}{3\,\left (3\,{\mathrm {e}}^{2\,x}-3\,{\mathrm {e}}^{4\,x}+{\mathrm {e}}^{6\,x}-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________