Integrand size = 8, antiderivative size = 85 \[ \int e^x \coth (3 x) \, dx=e^x+\frac {\arctan \left (\frac {1-2 e^x}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {\arctan \left (\frac {1+2 e^x}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {2 \text {arctanh}\left (e^x\right )}{3}+\frac {1}{6} \log \left (1-e^x+e^{2 x}\right )-\frac {1}{6} \log \left (1+e^x+e^{2 x}\right ) \]
[Out]
Time = 0.10 (sec) , antiderivative size = 85, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 1.000, Rules used = {2320, 396, 216, 648, 632, 210, 642, 212} \[ \int e^x \coth (3 x) \, dx=\frac {\arctan \left (\frac {1-2 e^x}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {\arctan \left (\frac {2 e^x+1}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {2 \text {arctanh}\left (e^x\right )}{3}+e^x+\frac {1}{6} \log \left (-e^x+e^{2 x}+1\right )-\frac {1}{6} \log \left (e^x+e^{2 x}+1\right ) \]
[In]
[Out]
Rule 210
Rule 212
Rule 216
Rule 396
Rule 632
Rule 642
Rule 648
Rule 2320
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {-1-x^6}{1-x^6} \, dx,x,e^x\right ) \\ & = e^x-2 \text {Subst}\left (\int \frac {1}{1-x^6} \, dx,x,e^x\right ) \\ & = e^x-\frac {2}{3} \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,e^x\right )-\frac {2}{3} \text {Subst}\left (\int \frac {1-\frac {x}{2}}{1-x+x^2} \, dx,x,e^x\right )-\frac {2}{3} \text {Subst}\left (\int \frac {1+\frac {x}{2}}{1+x+x^2} \, dx,x,e^x\right ) \\ & = e^x-\frac {2 \text {arctanh}\left (e^x\right )}{3}+\frac {1}{6} \text {Subst}\left (\int \frac {-1+2 x}{1-x+x^2} \, dx,x,e^x\right )-\frac {1}{6} \text {Subst}\left (\int \frac {1+2 x}{1+x+x^2} \, dx,x,e^x\right )-\frac {1}{2} \text {Subst}\left (\int \frac {1}{1-x+x^2} \, dx,x,e^x\right )-\frac {1}{2} \text {Subst}\left (\int \frac {1}{1+x+x^2} \, dx,x,e^x\right ) \\ & = e^x-\frac {2 \text {arctanh}\left (e^x\right )}{3}+\frac {1}{6} \log \left (1-e^x+e^{2 x}\right )-\frac {1}{6} \log \left (1+e^x+e^{2 x}\right )+\text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,-1+2 e^x\right )+\text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+2 e^x\right ) \\ & = e^x-\frac {\arctan \left (\frac {-1+2 e^x}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {\arctan \left (\frac {1+2 e^x}{\sqrt {3}}\right )}{\sqrt {3}}-\frac {2 \text {arctanh}\left (e^x\right )}{3}+\frac {1}{6} \log \left (1-e^x+e^{2 x}\right )-\frac {1}{6} \log \left (1+e^x+e^{2 x}\right ) \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.02 (sec) , antiderivative size = 22, normalized size of antiderivative = 0.26 \[ \int e^x \coth (3 x) \, dx=e^x-2 e^x \operatorname {Hypergeometric2F1}\left (\frac {1}{6},1,\frac {7}{6},e^{6 x}\right ) \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.16 (sec) , antiderivative size = 138, normalized size of antiderivative = 1.62
method | result | size |
risch | \({\mathrm e}^{x}+\frac {\ln \left ({\mathrm e}^{x}-1\right )}{3}+\frac {\ln \left ({\mathrm e}^{x}-\frac {1}{2}-\frac {i \sqrt {3}}{2}\right )}{6}+\frac {i \ln \left ({\mathrm e}^{x}-\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}{6}+\frac {\ln \left ({\mathrm e}^{x}-\frac {1}{2}+\frac {i \sqrt {3}}{2}\right )}{6}-\frac {i \ln \left ({\mathrm e}^{x}-\frac {1}{2}+\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}{6}-\frac {\ln \left ({\mathrm e}^{x}+\frac {1}{2}-\frac {i \sqrt {3}}{2}\right )}{6}+\frac {i \ln \left ({\mathrm e}^{x}+\frac {1}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}{6}-\frac {\ln \left ({\mathrm e}^{x}+\frac {1}{2}+\frac {i \sqrt {3}}{2}\right )}{6}-\frac {i \ln \left ({\mathrm e}^{x}+\frac {1}{2}+\frac {i \sqrt {3}}{2}\right ) \sqrt {3}}{6}-\frac {\ln \left ({\mathrm e}^{x}+1\right )}{3}\) | \(138\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 113, normalized size of antiderivative = 1.33 \[ \int e^x \coth (3 x) \, dx=-\frac {1}{3} \, \sqrt {3} \arctan \left (\frac {2}{3} \, \sqrt {3} \cosh \left (x\right ) + \frac {2}{3} \, \sqrt {3} \sinh \left (x\right ) + \frac {1}{3} \, \sqrt {3}\right ) - \frac {1}{3} \, \sqrt {3} \arctan \left (\frac {2}{3} \, \sqrt {3} \cosh \left (x\right ) + \frac {2}{3} \, \sqrt {3} \sinh \left (x\right ) - \frac {1}{3} \, \sqrt {3}\right ) + \cosh \left (x\right ) - \frac {1}{6} \, \log \left (\frac {2 \, \cosh \left (x\right ) + 1}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) + \frac {1}{6} \, \log \left (\frac {2 \, \cosh \left (x\right ) - 1}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) - \frac {1}{3} \, \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) + \frac {1}{3} \, \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right ) + \sinh \left (x\right ) \]
[In]
[Out]
\[ \int e^x \coth (3 x) \, dx=\int e^{x} \coth {\left (3 x \right )}\, dx \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.88 \[ \int e^x \coth (3 x) \, dx=-\frac {1}{3} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, e^{x} + 1\right )}\right ) - \frac {1}{3} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, e^{x} - 1\right )}\right ) + e^{x} - \frac {1}{6} \, \log \left (e^{\left (2 \, x\right )} + e^{x} + 1\right ) + \frac {1}{6} \, \log \left (e^{\left (2 \, x\right )} - e^{x} + 1\right ) - \frac {1}{3} \, \log \left (e^{x} + 1\right ) + \frac {1}{3} \, \log \left (e^{x} - 1\right ) \]
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 76, normalized size of antiderivative = 0.89 \[ \int e^x \coth (3 x) \, dx=-\frac {1}{3} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, e^{x} + 1\right )}\right ) - \frac {1}{3} \, \sqrt {3} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, e^{x} - 1\right )}\right ) + e^{x} - \frac {1}{6} \, \log \left (e^{\left (2 \, x\right )} + e^{x} + 1\right ) + \frac {1}{6} \, \log \left (e^{\left (2 \, x\right )} - e^{x} + 1\right ) - \frac {1}{3} \, \log \left (e^{x} + 1\right ) + \frac {1}{3} \, \log \left ({\left | e^{x} - 1 \right |}\right ) \]
[In]
[Out]
Time = 1.84 (sec) , antiderivative size = 81, normalized size of antiderivative = 0.95 \[ \int e^x \coth (3 x) \, dx=\frac {\ln \left (2-2\,{\mathrm {e}}^x\right )}{3}-\frac {\ln \left (-2\,{\mathrm {e}}^x-2\right )}{3}+\frac {\ln \left ({\left (2\,{\mathrm {e}}^x-1\right )}^2+3\right )}{6}-\frac {\ln \left ({\left (2\,{\mathrm {e}}^x+1\right )}^2+3\right )}{6}+{\mathrm {e}}^x-\frac {\sqrt {3}\,\mathrm {atan}\left (\frac {\sqrt {3}\,\left (2\,{\mathrm {e}}^x-1\right )}{3}\right )}{3}-\frac {\sqrt {3}\,\mathrm {atan}\left (\frac {\sqrt {3}\,\left (2\,{\mathrm {e}}^x+1\right )}{3}\right )}{3} \]
[In]
[Out]