Optimal. Leaf size=35 \[ e^x+\frac{e^x}{1-e^{4 x}}-\frac{1}{2} \tan ^{-1}\left (e^x\right )-\frac{1}{2} \tanh ^{-1}\left (e^x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.028648, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.6, Rules used = {2282, 390, 288, 212, 206, 203} \[ e^x+\frac{e^x}{1-e^{4 x}}-\frac{1}{2} \tan ^{-1}\left (e^x\right )-\frac{1}{2} \tanh ^{-1}\left (e^x\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2282
Rule 390
Rule 288
Rule 212
Rule 206
Rule 203
Rubi steps
\begin{align*} \int e^x \coth ^2(2 x) \, dx &=\operatorname{Subst}\left (\int \frac{\left (1+x^4\right )^2}{\left (1-x^4\right )^2} \, dx,x,e^x\right )\\ &=\operatorname{Subst}\left (\int \left (1+\frac{4 x^4}{\left (1-x^4\right )^2}\right ) \, dx,x,e^x\right )\\ &=e^x+4 \operatorname{Subst}\left (\int \frac{x^4}{\left (1-x^4\right )^2} \, dx,x,e^x\right )\\ &=e^x+\frac{e^x}{1-e^{4 x}}-\operatorname{Subst}\left (\int \frac{1}{1-x^4} \, dx,x,e^x\right )\\ &=e^x+\frac{e^x}{1-e^{4 x}}-\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,e^x\right )-\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,e^x\right )\\ &=e^x+\frac{e^x}{1-e^{4 x}}-\frac{1}{2} \tan ^{-1}\left (e^x\right )-\frac{1}{2} \tanh ^{-1}\left (e^x\right )\\ \end{align*}
Mathematica [C] time = 1.46632, size = 113, normalized size = 3.23 \[ \frac{16}{585} e^{5 x} \left (e^{4 x}+1\right )^2 \text{HypergeometricPFQ}\left (\left \{\frac{5}{4},2,2,2\right \},\left \{1,1,\frac{17}{4}\right \},e^{4 x}\right )+\frac{1}{640} e^{-7 x} \left (5 \left (1208 e^{4 x}+102 e^{8 x}-248 e^{12 x}+e^{16 x}+729\right ) \, _2F_1\left (\frac{1}{4},1;\frac{5}{4};e^{4 x}\right )-6769 e^{4 x}-1483 e^{8 x}+681 e^{12 x}-3645\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.072, size = 48, normalized size = 1.4 \begin{align*}{{\rm e}^{x}}-{\frac{{{\rm e}^{x}}}{{{\rm e}^{4\,x}}-1}}+{\frac{i}{4}}\ln \left ({{\rm e}^{x}}-i \right ) -{\frac{i}{4}}\ln \left ({{\rm e}^{x}}+i \right ) +{\frac{\ln \left ({{\rm e}^{x}}-1 \right ) }{4}}-{\frac{\ln \left ({{\rm e}^{x}}+1 \right ) }{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.54437, size = 46, normalized size = 1.31 \begin{align*} -\frac{e^{x}}{e^{\left (4 \, x\right )} - 1} - \frac{1}{2} \, \arctan \left (e^{x}\right ) + e^{x} - \frac{1}{4} \, \log \left (e^{x} + 1\right ) + \frac{1}{4} \, \log \left (e^{x} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.36093, size = 837, normalized size = 23.91 \begin{align*} \frac{4 \, \cosh \left (x\right )^{5} + 40 \, \cosh \left (x\right )^{3} \sinh \left (x\right )^{2} + 40 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{3} + 20 \, \cosh \left (x\right ) \sinh \left (x\right )^{4} + 4 \, \sinh \left (x\right )^{5} - 2 \,{\left (\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right )^{3} \sinh \left (x\right ) + 6 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{2} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} - 1\right )} \arctan \left (\cosh \left (x\right ) + \sinh \left (x\right )\right ) -{\left (\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right )^{3} \sinh \left (x\right ) + 6 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{2} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} - 1\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) +{\left (\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right )^{3} \sinh \left (x\right ) + 6 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{2} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} - 1\right )} \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right ) + 4 \,{\left (5 \, \cosh \left (x\right )^{4} - 2\right )} \sinh \left (x\right ) - 8 \, \cosh \left (x\right )}{4 \,{\left (\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right )^{3} \sinh \left (x\right ) + 6 \, \cosh \left (x\right )^{2} \sinh \left (x\right )^{2} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int e^{x} \coth ^{2}{\left (2 x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.26826, size = 47, normalized size = 1.34 \begin{align*} -\frac{e^{x}}{e^{\left (4 \, x\right )} - 1} - \frac{1}{2} \, \arctan \left (e^{x}\right ) + e^{x} - \frac{1}{4} \, \log \left (e^{x} + 1\right ) + \frac{1}{4} \, \log \left ({\left | e^{x} - 1 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]