Integrand size = 9, antiderivative size = 60 \[ \int \coth ^2(a+2 \log (x)) \, dx=x+\frac {x}{1-e^{2 a} x^4}-\frac {1}{2} e^{-a/2} \arctan \left (e^{a/2} x\right )-\frac {1}{2} e^{-a/2} \text {arctanh}\left (e^{a/2} x\right ) \]
[Out]
Time = 0.03 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.667, Rules used = {5653, 398, 294, 218, 212, 209} \[ \int \coth ^2(a+2 \log (x)) \, dx=-\frac {1}{2} e^{-a/2} \arctan \left (e^{a/2} x\right )-\frac {1}{2} e^{-a/2} \text {arctanh}\left (e^{a/2} x\right )+\frac {x}{1-e^{2 a} x^4}+x \]
[In]
[Out]
Rule 209
Rule 212
Rule 218
Rule 294
Rule 398
Rule 5653
Rubi steps \begin{align*} \text {integral}& = \int \frac {\left (-1-e^{2 a} x^4\right )^2}{\left (1-e^{2 a} x^4\right )^2} \, dx \\ & = \int \left (1+\frac {4 e^{2 a} x^4}{\left (1-e^{2 a} x^4\right )^2}\right ) \, dx \\ & = x+\left (4 e^{2 a}\right ) \int \frac {x^4}{\left (1-e^{2 a} x^4\right )^2} \, dx \\ & = x+\frac {x}{1-e^{2 a} x^4}-\int \frac {1}{1-e^{2 a} x^4} \, dx \\ & = x+\frac {x}{1-e^{2 a} x^4}-\frac {1}{2} \int \frac {1}{1-e^a x^2} \, dx-\frac {1}{2} \int \frac {1}{1+e^a x^2} \, dx \\ & = x+\frac {x}{1-e^{2 a} x^4}-\frac {1}{2} e^{-a/2} \arctan \left (e^{a/2} x\right )-\frac {1}{2} e^{-a/2} \text {arctanh}\left (e^{a/2} x\right ) \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 2.60 (sec) , antiderivative size = 153, normalized size of antiderivative = 2.55 \[ \int \coth ^2(a+2 \log (x)) \, dx=\frac {e^{-4 a} \left (-3645-6769 e^{2 a} x^4-1483 e^{4 a} x^8+681 e^{6 a} x^{12}+5 \left (729+1208 e^{2 a} x^4+102 e^{4 a} x^8-248 e^{6 a} x^{12}+e^{8 a} x^{16}\right ) \operatorname {Hypergeometric2F1}\left (\frac {1}{4},1,\frac {5}{4},e^{2 a} x^4\right )\right )}{640 x^7}+\frac {16}{585} e^{2 a} x^5 \left (1+e^{2 a} x^4\right )^2 \, _4F_3\left (\frac {5}{4},2,2,2;1,1,\frac {17}{4};e^{2 a} x^4\right ) \]
[In]
[Out]
Time = 0.10 (sec) , antiderivative size = 86, normalized size of antiderivative = 1.43
method | result | size |
risch | \(x -\frac {x}{-1+{\mathrm e}^{2 a} x^{4}}-\frac {\ln \left (x \sqrt {-{\mathrm e}^{a}}+1\right )}{4 \sqrt {-{\mathrm e}^{a}}}+\frac {\ln \left (x \sqrt {-{\mathrm e}^{a}}-1\right )}{4 \sqrt {-{\mathrm e}^{a}}}+\frac {\ln \left (\sqrt {{\mathrm e}^{a}}\, x -1\right )}{4 \sqrt {{\mathrm e}^{a}}}-\frac {\ln \left (\sqrt {{\mathrm e}^{a}}\, x +1\right )}{4 \sqrt {{\mathrm e}^{a}}}\) | \(86\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 97 vs. \(2 (43) = 86\).
Time = 0.27 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.62 \[ \int \coth ^2(a+2 \log (x)) \, dx=\frac {4 \, x^{5} e^{\left (3 \, a\right )} - 2 \, {\left (x^{4} e^{\left (2 \, a\right )} - 1\right )} \arctan \left (x e^{\left (\frac {1}{2} \, a\right )}\right ) e^{\left (\frac {1}{2} \, a\right )} + {\left (x^{4} e^{\left (2 \, a\right )} - 1\right )} 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 ) - 8 \, x e^{a}}{4 \, {\left (x^{4} e^{\left (3 \, a\right )} - e^{a}\right )}} \]
[In]
[Out]
\[ \int \coth ^2(a+2 \log (x)) \, dx=\int \coth ^{2}{\left (a + 2 \log {\left (x \right )} \right )}\, dx \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.00 \[ \int \coth ^2(a+2 \log (x)) \, dx=-\frac {1}{2} \, \arctan \left (x e^{\left (\frac {1}{2} \, a\right )}\right ) e^{\left (-\frac {1}{2} \, a\right )} + \frac {1}{4} \, 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 - \frac {x}{x^{4} e^{\left (2 \, a\right )} - 1} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.10 \[ \int \coth ^2(a+2 \log (x)) \, dx=-\frac {1}{2} \, \arctan \left (x e^{\left (\frac {1}{2} \, a\right )}\right ) e^{\left (-\frac {1}{2} \, a\right )} + \frac {1}{4} \, 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 - \frac {x}{x^{4} e^{\left (2 \, a\right )} - 1} \]
[In]
[Out]
Time = 1.89 (sec) , antiderivative size = 54, normalized size of antiderivative = 0.90 \[ \int \coth ^2(a+2 \log (x)) \, dx=x-\frac {\mathrm {atan}\left (x\,{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\right )}{2\,{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}}-\frac {x}{x^4\,{\mathrm {e}}^{2\,a}-1}+\frac {\mathrm {atan}\left (x\,{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{2\,{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}} \]
[In]
[Out]