Integrand size = 7, antiderivative size = 40 \[ \int \coth (a+2 \log (x)) \, dx=x-e^{-a/2} \arctan \left (e^{a/2} x\right )-e^{-a/2} \text {arctanh}\left (e^{a/2} x\right ) \]
[Out]
Time = 0.01 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.714, Rules used = {5653, 396, 218, 212, 209} \[ \int \coth (a+2 \log (x)) \, dx=-e^{-a/2} \arctan \left (e^{a/2} x\right )-e^{-a/2} \text {arctanh}\left (e^{a/2} x\right )+x \]
[In]
[Out]
Rule 209
Rule 212
Rule 218
Rule 396
Rule 5653
Rubi steps \begin{align*} \text {integral}& = \int \frac {-1-e^{2 a} x^4}{1-e^{2 a} x^4} \, dx \\ & = x-2 \int \frac {1}{1-e^{2 a} x^4} \, dx \\ & = x-\int \frac {1}{1-e^a x^2} \, dx-\int \frac {1}{1+e^a x^2} \, dx \\ & = x-e^{-a/2} \arctan \left (e^{a/2} x\right )-e^{-a/2} \text {arctanh}\left (e^{a/2} x\right ) \\ \end{align*}
Result contains higher order function than in optimal. Order 9 vs. order 3 in optimal.
Time = 0.21 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.45 \[ \int \coth (a+2 \log (x)) \, dx=x+\frac {1}{2} \text {RootSum}\left [-\cosh (a)+\sinh (a)+\cosh (a) \text {$\#$1}^4+\sinh (a) \text {$\#$1}^4\&,\frac {\log (x)-\log (x-\text {$\#$1})}{\text {$\#$1}^3}\&\right ] (-\cosh (2 a)+\sinh (2 a)) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(70\) vs. \(2(32)=64\).
Time = 0.08 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.78
method | result | size |
risch | \(x -\frac {\ln \left (x \sqrt {-{\mathrm e}^{a}}+1\right )}{2 \sqrt {-{\mathrm e}^{a}}}+\frac {\ln \left (x \sqrt {-{\mathrm e}^{a}}-1\right )}{2 \sqrt {-{\mathrm e}^{a}}}+\frac {\ln \left (\sqrt {{\mathrm e}^{a}}\, x -1\right )}{2 \sqrt {{\mathrm e}^{a}}}-\frac {\ln \left (\sqrt {{\mathrm e}^{a}}\, x +1\right )}{2 \sqrt {{\mathrm e}^{a}}}\) | \(71\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 58 vs. \(2 (28) = 56\).
Time = 0.24 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.45 \[ \int \coth (a+2 \log (x)) \, dx=-\frac {1}{2} \, {\left (2 \, \arctan \left (x e^{\left (\frac {1}{2} \, a\right )}\right ) e^{\left (\frac {1}{2} \, a\right )} - 2 \, x e^{a} - e^{\left (\frac {1}{2} \, a\right )} \log \left (\frac {x^{2} e^{a} - 2 \, x e^{\left (\frac {1}{2} \, a\right )} + 1}{x^{2} e^{a} - 1}\right )\right )} e^{\left (-a\right )} \]
[In]
[Out]
\[ \int \coth (a+2 \log (x)) \, dx=\int \coth {\left (a + 2 \log {\left (x \right )} \right )}\, dx \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 45, normalized size of antiderivative = 1.12 \[ \int \coth (a+2 \log (x)) \, dx=-\arctan \left (x e^{\left (\frac {1}{2} \, a\right )}\right ) e^{\left (-\frac {1}{2} \, a\right )} + \frac {1}{2} \, e^{\left (-\frac {1}{2} \, a\right )} \log \left (\frac {x e^{a} - e^{\left (\frac {1}{2} \, a\right )}}{x e^{a} + e^{\left (\frac {1}{2} \, a\right )}}\right ) + x \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.28 \[ \int \coth (a+2 \log (x)) \, dx=-\arctan \left (x e^{\left (\frac {1}{2} \, a\right )}\right ) e^{\left (-\frac {1}{2} \, a\right )} + \frac {1}{2} \, e^{\left (-\frac {1}{2} \, a\right )} \log \left (\frac {{\left | 2 \, x e^{a} - 2 \, e^{\left (\frac {1}{2} \, a\right )} \right |}}{{\left | 2 \, x e^{a} + 2 \, e^{\left (\frac {1}{2} \, a\right )} \right |}}\right ) + x \]
[In]
[Out]
Time = 1.93 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.90 \[ \int \coth (a+2 \log (x)) \, dx=x-\frac {\mathrm {atan}\left (x\,{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\right )}{{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}}-\frac {\mathrm {atanh}\left (x\,{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\right )}{{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}} \]
[In]
[Out]