Optimal. Leaf size=17 \[ \frac {\coth ^2(x)}{2}-\frac {\coth ^3(x)}{3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {3597, 862, 45}
\begin {gather*} \frac {\coth ^2(x)}{2}-\frac {\coth ^3(x)}{3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 862
Rule 3597
Rubi steps
\begin {align*} \int \frac {\text {csch}^4(x)}{1+\tanh (x)} \, dx &=-\text {Subst}\left (\int \frac {-1+x^2}{x^4 (1+x)} \, dx,x,\tanh (x)\right )\\ &=-\text {Subst}\left (\int \frac {-1+x}{x^4} \, dx,x,\tanh (x)\right )\\ &=-\text {Subst}\left (\int \left (-\frac {1}{x^4}+\frac {1}{x^3}\right ) \, dx,x,\tanh (x)\right )\\ &=\frac {\coth ^2(x)}{2}-\frac {\coth ^3(x)}{3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 20, normalized size = 1.18 \begin {gather*} -\frac {1}{6} \text {csch}(x) (2 \cosh (x)+(-3+2 \coth (x)) \text {csch}(x)) \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(13)=26\).
time = 0.61, size = 48, normalized size = 2.82
method | result | size |
risch | \(-\frac {2 \left (3 \,{\mathrm e}^{2 x}+1\right )}{3 \left ({\mathrm e}^{2 x}-1\right )^{3}}\) | \(19\) |
default | \(-\frac {\left (\tanh ^{3}\left (\frac {x}{2}\right )\right )}{24}+\frac {\left (\tanh ^{2}\left (\frac {x}{2}\right )\right )}{8}-\frac {\tanh \left (\frac {x}{2}\right )}{8}+\frac {1}{8 \tanh \left (\frac {x}{2}\right )^{2}}-\frac {1}{8 \tanh \left (\frac {x}{2}\right )}-\frac {1}{24 \tanh \left (\frac {x}{2}\right )^{3}}\) | \(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. 75 vs.
\(2 (13) = 26\).
time = 0.26, size = 75, normalized size = 4.41 \begin {gather*} -\frac {2 \, e^{\left (-2 \, x\right )}}{3 \, e^{\left (-2 \, x\right )} - 3 \, e^{\left (-4 \, x\right )} + e^{\left (-6 \, x\right )} - 1} + \frac {4 \, e^{\left (-4 \, x\right )}}{3 \, e^{\left (-2 \, x\right )} - 3 \, e^{\left (-4 \, x\right )} + e^{\left (-6 \, x\right )} - 1} + \frac {2}{3 \, {\left (3 \, e^{\left (-2 \, x\right )} - 3 \, e^{\left (-4 \, x\right )} + e^{\left (-6 \, x\right )} - 1\right )}} \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. 84 vs.
\(2 (13) = 26\).
time = 0.38, size = 84, normalized size = 4.94 \begin {gather*} -\frac {4 \, {\left (2 \, \cosh \left (x\right ) + \sinh \left (x\right )\right )}}{3 \, {\left (\cosh \left (x\right )^{5} + 5 \, \cosh \left (x\right ) \sinh \left (x\right )^{4} + \sinh \left (x\right )^{5} + {\left (10 \, \cosh \left (x\right )^{2} - 3\right )} \sinh \left (x\right )^{3} - 3 \, \cosh \left (x\right )^{3} + {\left (10 \, \cosh \left (x\right )^{3} - 9 \, \cosh \left (x\right )\right )} \sinh \left (x\right )^{2} + {\left (5 \, \cosh \left (x\right )^{4} - 9 \, \cosh \left (x\right )^{2} + 4\right )} \sinh \left (x\right ) + 2 \, \cosh \left (x\right )\right )}} \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*} \int \frac {\operatorname {csch}^{4}{\left (x \right )}}{\tanh {\left (x \right )} + 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 18, normalized size = 1.06 \begin {gather*} -\frac {2 \, {\left (3 \, e^{\left (2 \, x\right )} + 1\right )}}{3 \, {\left (e^{\left (2 \, x\right )} - 1\right )}^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.06, size = 18, normalized size = 1.06 \begin {gather*} -\frac {2\,\left (3\,{\mathrm {e}}^{2\,x}+1\right )}{3\,{\left ({\mathrm {e}}^{2\,x}-1\right )}^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________