Integrand size = 20, antiderivative size = 180 \[ \int e^{c (a+b x)} \cot ^{-1}(\tanh (a c+b c x)) \, dx=\frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}-\frac {\arctan \left (1-\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}+\frac {\arctan \left (1+\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}+\frac {\log \left (1+e^{2 c (a+b x)}-\sqrt {2} e^{a c+b c x}\right )}{2 \sqrt {2} b c}-\frac {\log \left (1+e^{2 c (a+b x)}+\sqrt {2} e^{a c+b c x}\right )}{2 \sqrt {2} b c} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 180, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {2225, 5316, 12, 2281, 303, 1176, 631, 210, 1179, 642} \[ \int e^{c (a+b x)} \cot ^{-1}(\tanh (a c+b c x)) \, dx=-\frac {\arctan \left (1-\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}+\frac {\arctan \left (\sqrt {2} e^{a c+b c x}+1\right )}{\sqrt {2} b c}+\frac {\log \left (e^{2 c (a+b x)}-\sqrt {2} e^{a c+b c x}+1\right )}{2 \sqrt {2} b c}-\frac {\log \left (e^{2 c (a+b x)}+\sqrt {2} e^{a c+b c x}+1\right )}{2 \sqrt {2} b c}+\frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c} \]
[In]
[Out]
Rule 12
Rule 210
Rule 303
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 2225
Rule 2281
Rule 5316
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int e^x \cot ^{-1}(\tanh (x)) \, dx,x,a c+b c x\right )}{b c} \\ & = \frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}+\frac {\text {Subst}\left (\int \frac {2 e^{3 x}}{1+e^{4 x}} \, dx,x,a c+b c x\right )}{b c} \\ & = \frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}+\frac {2 \text {Subst}\left (\int \frac {e^{3 x}}{1+e^{4 x}} \, dx,x,a c+b c x\right )}{b c} \\ & = \frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}+\frac {2 \text {Subst}\left (\int \frac {x^2}{1+x^4} \, dx,x,e^{a c+b c x}\right )}{b c} \\ & = \frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}-\frac {\text {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,e^{a c+b c x}\right )}{b c}+\frac {\text {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,e^{a c+b c x}\right )}{b c} \\ & = \frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}+\frac {\text {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,e^{a c+b c x}\right )}{2 b c}+\frac {\text {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,e^{a c+b c x}\right )}{2 b c}+\frac {\text {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,e^{a c+b c x}\right )}{2 \sqrt {2} b c}+\frac {\text {Subst}\left (\int \frac {\sqrt {2}-2 x}{-1+\sqrt {2} x-x^2} \, dx,x,e^{a c+b c x}\right )}{2 \sqrt {2} b c} \\ & = \frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}+\frac {\log \left (1-\sqrt {2} e^{a c+b c x}+e^{2 a c+2 b c x}\right )}{2 \sqrt {2} b c}-\frac {\log \left (1+\sqrt {2} e^{a c+b c x}+e^{2 a c+2 b c x}\right )}{2 \sqrt {2} b c}+\frac {\text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}-\frac {\text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c} \\ & = \frac {e^{a c+b c x} \cot ^{-1}(\tanh (c (a+b x)))}{b c}-\frac {\arctan \left (1-\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}+\frac {\arctan \left (1+\sqrt {2} e^{a c+b c x}\right )}{\sqrt {2} b c}+\frac {\log \left (1-\sqrt {2} e^{a c+b c x}+e^{2 a c+2 b c x}\right )}{2 \sqrt {2} b c}-\frac {\log \left (1+\sqrt {2} e^{a c+b c x}+e^{2 a c+2 b c x}\right )}{2 \sqrt {2} b c} \\ \end{align*}
Result contains higher order function than in optimal. Order 9 vs. order 3 in optimal.
Time = 0.07 (sec) , antiderivative size = 89, normalized size of antiderivative = 0.49 \[ \int e^{c (a+b x)} \cot ^{-1}(\tanh (a c+b c x)) \, dx=\frac {2 e^{c (a+b x)} \cot ^{-1}\left (\frac {-1+e^{2 c (a+b x)}}{1+e^{2 c (a+b x)}}\right )+\text {RootSum}\left [1+\text {$\#$1}^4\&,\frac {-a c-b c x+\log \left (e^{c (a+b x)}-\text {$\#$1}\right )}{\text {$\#$1}}\&\right ]}{2 b c} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 1.48 (sec) , antiderivative size = 1323, normalized size of antiderivative = 7.35
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.29 (sec) , antiderivative size = 258, normalized size of antiderivative = 1.43 \[ \int e^{c (a+b x)} \cot ^{-1}(\tanh (a c+b c x)) \, dx=\frac {b c \left (-\frac {1}{b^{4} c^{4}}\right )^{\frac {1}{4}} \log \left (b^{3} c^{3} \left (-\frac {1}{b^{4} c^{4}}\right )^{\frac {3}{4}} + \cosh \left (b c x + a c\right ) + \sinh \left (b c x + a c\right )\right ) - i \, b c \left (-\frac {1}{b^{4} c^{4}}\right )^{\frac {1}{4}} \log \left (i \, b^{3} c^{3} \left (-\frac {1}{b^{4} c^{4}}\right )^{\frac {3}{4}} + \cosh \left (b c x + a c\right ) + \sinh \left (b c x + a c\right )\right ) + i \, b c \left (-\frac {1}{b^{4} c^{4}}\right )^{\frac {1}{4}} \log \left (-i \, b^{3} c^{3} \left (-\frac {1}{b^{4} c^{4}}\right )^{\frac {3}{4}} + \cosh \left (b c x + a c\right ) + \sinh \left (b c x + a c\right )\right ) - b c \left (-\frac {1}{b^{4} c^{4}}\right )^{\frac {1}{4}} \log \left (-b^{3} c^{3} \left (-\frac {1}{b^{4} c^{4}}\right )^{\frac {3}{4}} + \cosh \left (b c x + a c\right ) + \sinh \left (b c x + a c\right )\right ) + 2 \, {\left (\cosh \left (b c x + a c\right ) + \sinh \left (b c x + a c\right )\right )} \arctan \left (\frac {\cosh \left (b c x + a c\right )}{\sinh \left (b c x + a c\right )}\right )}{2 \, b c} \]
[In]
[Out]
\[ \int e^{c (a+b x)} \cot ^{-1}(\tanh (a c+b c x)) \, dx=e^{a c} \int e^{b c x} \operatorname {acot}{\left (\tanh {\left (a c + b c x \right )} \right )}\, dx \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 167, normalized size of antiderivative = 0.93 \[ \int e^{c (a+b x)} \cot ^{-1}(\tanh (a c+b c x)) \, dx=\frac {\operatorname {arccot}\left (\tanh \left (b c x + a c\right )\right ) e^{\left ({\left (b x + a\right )} c\right )}}{b c} + \frac {\sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} + 2 \, e^{\left (b c x + a c\right )}\right )}\right )}{2 \, b c} + \frac {\sqrt {2} \arctan \left (-\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} - 2 \, e^{\left (b c x + a c\right )}\right )}\right )}{2 \, b c} - \frac {\sqrt {2} \log \left (\sqrt {2} e^{\left (b c x + a c\right )} + e^{\left (2 \, b c x + 2 \, a c\right )} + 1\right )}{4 \, b c} + \frac {\sqrt {2} \log \left (-\sqrt {2} e^{\left (b c x + a c\right )} + e^{\left (2 \, b c x + 2 \, a c\right )} + 1\right )}{4 \, b c} \]
[In]
[Out]
\[ \int e^{c (a+b x)} \cot ^{-1}(\tanh (a c+b c x)) \, dx=\int { \operatorname {arccot}\left (\tanh \left (b c x + a c\right )\right ) e^{\left ({\left (b x + a\right )} c\right )} \,d x } \]
[In]
[Out]
Time = 2.91 (sec) , antiderivative size = 164, normalized size of antiderivative = 0.91 \[ \int e^{c (a+b x)} \cot ^{-1}(\tanh (a c+b c x)) \, dx=\frac {4\,{\mathrm {e}}^{a\,c+b\,c\,x}\,\mathrm {acot}\left (\frac {{\mathrm {e}}^{2\,b\,c\,x}\,{\mathrm {e}}^{2\,a\,c}-1}{{\mathrm {e}}^{2\,b\,c\,x}\,{\mathrm {e}}^{2\,a\,c}+1}\right )+\sqrt {2}\,\ln \left (\sqrt {2}\,\left (-4-4{}\mathrm {i}\right )-{\mathrm {e}}^{b\,c\,x}\,{\mathrm {e}}^{a\,c}\,8{}\mathrm {i}\right )\,\left (-1-\mathrm {i}\right )+\sqrt {2}\,\ln \left (\sqrt {2}\,\left (-4+4{}\mathrm {i}\right )+{\mathrm {e}}^{b\,c\,x}\,{\mathrm {e}}^{a\,c}\,8{}\mathrm {i}\right )\,\left (-1+1{}\mathrm {i}\right )+\sqrt {2}\,\ln \left (\sqrt {2}\,\left (4-4{}\mathrm {i}\right )+{\mathrm {e}}^{b\,c\,x}\,{\mathrm {e}}^{a\,c}\,8{}\mathrm {i}\right )\,\left (1-\mathrm {i}\right )+\sqrt {2}\,\ln \left (\sqrt {2}\,\left (4+4{}\mathrm {i}\right )-{\mathrm {e}}^{b\,c\,x}\,{\mathrm {e}}^{a\,c}\,8{}\mathrm {i}\right )\,\left (1+1{}\mathrm {i}\right )}{4\,b\,c} \]
[In]
[Out]