Optimal. Leaf size=53 \[ -\frac {e^{5 x}}{\left (1-e^{4 x}\right )^2}+\frac {e^x}{4 \left (1-e^{4 x}\right )}-\frac {\text {ArcTan}\left (e^x\right )}{8}-\frac {1}{8} \tanh ^{-1}\left (e^x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {2320, 12, 468,
294, 218, 212, 209} \begin {gather*} -\frac {1}{8} \text {ArcTan}\left (e^x\right )+\frac {e^x}{4 \left (1-e^{4 x}\right )}-\frac {e^{5 x}}{\left (1-e^{4 x}\right )^2}-\frac {1}{8} \tanh ^{-1}\left (e^x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 209
Rule 212
Rule 218
Rule 294
Rule 468
Rule 2320
Rubi steps
\begin {align*} \int e^x \coth (2 x) \text {csch}^2(2 x) \, dx &=\text {Subst}\left (\int \frac {4 x^4 \left (-1-x^4\right )}{\left (1-x^4\right )^3} \, dx,x,e^x\right )\\ &=4 \text {Subst}\left (\int \frac {x^4 \left (-1-x^4\right )}{\left (1-x^4\right )^3} \, dx,x,e^x\right )\\ &=-\frac {e^{5 x}}{\left (1-e^{4 x}\right )^2}+\text {Subst}\left (\int \frac {x^4}{\left (1-x^4\right )^2} \, dx,x,e^x\right )\\ &=-\frac {e^{5 x}}{\left (1-e^{4 x}\right )^2}+\frac {e^x}{4 \left (1-e^{4 x}\right )}-\frac {1}{4} \text {Subst}\left (\int \frac {1}{1-x^4} \, dx,x,e^x\right )\\ &=-\frac {e^{5 x}}{\left (1-e^{4 x}\right )^2}+\frac {e^x}{4 \left (1-e^{4 x}\right )}-\frac {1}{8} \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,e^x\right )-\frac {1}{8} \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,e^x\right )\\ &=-\frac {e^{5 x}}{\left (1-e^{4 x}\right )^2}+\frac {e^x}{4 \left (1-e^{4 x}\right )}-\frac {1}{8} \tan ^{-1}\left (e^x\right )-\frac {1}{8} \tanh ^{-1}\left (e^x\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 54, normalized size = 1.02 \begin {gather*} -\frac {-2 e^x+10 e^{5 x}+\left (-1+e^{4 x}\right )^2 \text {ArcTan}\left (e^x\right )+\left (-1+e^{4 x}\right )^2 \tanh ^{-1}\left (e^x\right )}{8 \left (-1+e^{4 x}\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 1.62, size = 54, normalized size = 1.02
method | result | size |
risch | \(-\frac {{\mathrm e}^{x} \left (5 \,{\mathrm e}^{4 x}-1\right )}{4 \left ({\mathrm e}^{4 x}-1\right )^{2}}+\frac {i \ln \left ({\mathrm e}^{x}-i\right )}{16}-\frac {i \ln \left ({\mathrm e}^{x}+i\right )}{16}+\frac {\ln \left ({\mathrm e}^{x}-1\right )}{16}-\frac {\ln \left ({\mathrm e}^{x}+1\right )}{16}\) | \(54\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.47, size = 47, normalized size = 0.89 \begin {gather*} -\frac {5 \, e^{\left (5 \, x\right )} - e^{x}}{4 \, {\left (e^{\left (8 \, x\right )} - 2 \, e^{\left (4 \, x\right )} + 1\right )}} - \frac {1}{8} \, \arctan \left (e^{x}\right ) - \frac {1}{16} \, \log \left (e^{x} + 1\right ) + \frac {1}{16} \, \log \left (e^{x} - 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. 522 vs.
\(2 (37) = 74\).
time = 0.37, size = 522, normalized size = 9.85 \begin {gather*} -\frac {20 \, \cosh \left (x\right )^{5} + 200 \, \cosh \left (x\right )^{3} \sinh \left (x\right )^{2} + 200 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{3} + 100 \, \cosh \left (x\right ) \sinh \left (x\right )^{4} + 20 \, \sinh \left (x\right )^{5} + 2 \, {\left (\cosh \left (x\right )^{8} + 56 \, \cosh \left (x\right )^{3} \sinh \left (x\right )^{5} + 28 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{6} + 8 \, \cosh \left (x\right ) \sinh \left (x\right )^{7} + \sinh \left (x\right )^{8} + 2 \, {\left (35 \, \cosh \left (x\right )^{4} - 1\right )} \sinh \left (x\right )^{4} - 2 \, \cosh \left (x\right )^{4} + 8 \, {\left (7 \, \cosh \left (x\right )^{5} - \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 4 \, {\left (7 \, \cosh \left (x\right )^{6} - 3 \, \cosh \left (x\right )^{2}\right )} \sinh \left (x\right )^{2} + 8 \, {\left (\cosh \left (x\right )^{7} - \cosh \left (x\right )^{3}\right )} \sinh \left (x\right ) + 1\right )} \arctan \left (\cosh \left (x\right ) + \sinh \left (x\right )\right ) + {\left (\cosh \left (x\right )^{8} + 56 \, \cosh \left (x\right )^{3} \sinh \left (x\right )^{5} + 28 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{6} + 8 \, \cosh \left (x\right ) \sinh \left (x\right )^{7} + \sinh \left (x\right )^{8} + 2 \, {\left (35 \, \cosh \left (x\right )^{4} - 1\right )} \sinh \left (x\right )^{4} - 2 \, \cosh \left (x\right )^{4} + 8 \, {\left (7 \, \cosh \left (x\right )^{5} - \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 4 \, {\left (7 \, \cosh \left (x\right )^{6} - 3 \, \cosh \left (x\right )^{2}\right )} \sinh \left (x\right )^{2} + 8 \, {\left (\cosh \left (x\right )^{7} - \cosh \left (x\right )^{3}\right )} \sinh \left (x\right ) + 1\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) - {\left (\cosh \left (x\right )^{8} + 56 \, \cosh \left (x\right )^{3} \sinh \left (x\right )^{5} + 28 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{6} + 8 \, \cosh \left (x\right ) \sinh \left (x\right )^{7} + \sinh \left (x\right )^{8} + 2 \, {\left (35 \, \cosh \left (x\right )^{4} - 1\right )} \sinh \left (x\right )^{4} - 2 \, \cosh \left (x\right )^{4} + 8 \, {\left (7 \, \cosh \left (x\right )^{5} - \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 4 \, {\left (7 \, \cosh \left (x\right )^{6} - 3 \, \cosh \left (x\right )^{2}\right )} \sinh \left (x\right )^{2} + 8 \, {\left (\cosh \left (x\right )^{7} - \cosh \left (x\right )^{3}\right )} \sinh \left (x\right ) + 1\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right ) + 4 \, {\left (25 \, \cosh \left (x\right )^{4} - 1\right )} \sinh \left (x\right ) - 4 \, \cosh \left (x\right )}{16 \, {\left (\cosh \left (x\right )^{8} + 56 \, \cosh \left (x\right )^{3} \sinh \left (x\right )^{5} + 28 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{6} + 8 \, \cosh \left (x\right ) \sinh \left (x\right )^{7} + \sinh \left (x\right )^{8} + 2 \, {\left (35 \, \cosh \left (x\right )^{4} - 1\right )} \sinh \left (x\right )^{4} - 2 \, \cosh \left (x\right )^{4} + 8 \, {\left (7 \, \cosh \left (x\right )^{5} - \cosh \left (x\right )\right )} \sinh \left (x\right )^{3} + 4 \, {\left (7 \, \cosh \left (x\right )^{6} - 3 \, \cosh \left (x\right )^{2}\right )} \sinh \left (x\right )^{2} + 8 \, {\left (\cosh \left (x\right )^{7} - \cosh \left (x\right )^{3}\right )} \sinh \left (x\right ) + 1\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 e^{x} \coth {\left (2 x \right )} \operatorname {csch}^{2}{\left (2 x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 42, normalized size = 0.79 \begin {gather*} -\frac {5 \, e^{\left (5 \, x\right )} - e^{x}}{4 \, {\left (e^{\left (4 \, x\right )} - 1\right )}^{2}} - \frac {1}{8} \, \arctan \left (e^{x}\right ) - \frac {1}{16} \, \log \left (e^{x} + 1\right ) + \frac {1}{16} \, \log \left ({\left | e^{x} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.00, size = 80, normalized size = 1.51 \begin {gather*} \frac {\ln \left (\frac {1}{4}-\frac {{\mathrm {e}}^x}{4}\right )}{16}-\frac {\ln \left (\frac {{\mathrm {e}}^x}{4}+\frac {1}{4}\right )}{16}-\frac {\mathrm {atan}\left ({\mathrm {e}}^x\right )}{8}-\frac {{\mathrm {e}}^{5\,x}}{2\,\left ({\mathrm {e}}^{8\,x}-2\,{\mathrm {e}}^{4\,x}+1\right )}-\frac {3\,{\mathrm {e}}^x}{4\,\left ({\mathrm {e}}^{4\,x}-1\right )}-\frac {{\mathrm {e}}^x}{2\,\left ({\mathrm {e}}^{8\,x}-2\,{\mathrm {e}}^{4\,x}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________