Integrand size = 11, antiderivative size = 41 \[ \int \frac {\coth (a+2 \log (x))}{x^2} \, dx=\frac {1}{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.03 (sec) , antiderivative size = 41, 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.455, Rules used = {5657, 464, 304, 209, 212} \[ \int \frac {\coth (a+2 \log (x))}{x^2} \, dx=e^{a/2} \arctan \left (e^{a/2} x\right )-e^{a/2} \text {arctanh}\left (e^{a/2} x\right )+\frac {1}{x} \]
[In]
[Out]
Rule 209
Rule 212
Rule 304
Rule 464
Rule 5657
Rubi steps \begin{align*} \text {integral}& = \int \frac {-1-e^{2 a} x^4}{x^2 \left (1-e^{2 a} x^4\right )} \, dx \\ & = \frac {1}{x}-\left (2 e^{2 a}\right ) \int \frac {x^2}{1-e^{2 a} x^4} \, dx \\ & = \frac {1}{x}-e^a \int \frac {1}{1-e^a x^2} \, dx+e^a \int \frac {1}{1+e^a x^2} \, dx \\ & = \frac {1}{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.20 (sec) , antiderivative size = 62, normalized size of antiderivative = 1.51 \[ \int \frac {\coth (a+2 \log (x))}{x^2} \, dx=\frac {2+x \text {RootSum}\left [-\cosh (a)-\sinh (a)+\cosh (a) \text {$\#$1}^4-\sinh (a) \text {$\#$1}^4\&,\frac {\log (x)+\log \left (\frac {1}{x}-\text {$\#$1}\right )}{\text {$\#$1}^3}\&\right ] (\cosh (a)+\sinh (a))^2}{2 x} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 0.09 (sec) , antiderivative size = 88, normalized size of antiderivative = 2.15
method | result | size |
risch | \(\frac {1}{x}+\frac {\sqrt {-{\mathrm e}^{a}}\, \ln \left (\left (-{\mathrm e}^{a}\right )^{\frac {3}{2}}-{\mathrm e}^{2 a} x \right )}{2}-\frac {\sqrt {-{\mathrm e}^{a}}\, \ln \left (-\left (-{\mathrm e}^{a}\right )^{\frac {3}{2}}-{\mathrm e}^{2 a} x \right )}{2}+\frac {\left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (\textit {\_Z}^{2}-{\mathrm e}^{a}\right )}{\sum }\textit {\_R} \ln \left (\left (-5 \textit {\_R}^{4}+4 \,{\mathrm e}^{2 a}\right ) x +\textit {\_R}^{3}\right )\right )}{2}\) | \(88\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.32 \[ \int \frac {\coth (a+2 \log (x))}{x^2} \, dx=\frac {2 \, x \arctan \left (x e^{\left (\frac {1}{2} \, a\right )}\right ) e^{\left (\frac {1}{2} \, a\right )} + x 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 ) + 2}{2 \, x} \]
[In]
[Out]
\[ \int \frac {\coth (a+2 \log (x))}{x^2} \, dx=\int \frac {\coth {\left (a + 2 \log {\left (x \right )} \right )}}{x^{2}}\, dx \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.15 \[ \int \frac {\coth (a+2 \log (x))}{x^2} \, dx=-\arctan \left (\frac {e^{\left (-\frac {1}{2} \, a\right )}}{x}\right ) e^{\left (\frac {1}{2} \, a\right )} + \frac {1}{2} \, e^{\left (\frac {1}{2} \, a\right )} \log \left (\frac {\frac {1}{x} - e^{\left (\frac {1}{2} \, a\right )}}{\frac {1}{x} + e^{\left (\frac {1}{2} \, a\right )}}\right ) + \frac {1}{x} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.27 \[ \int \frac {\coth (a+2 \log (x))}{x^2} \, 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 ) + \frac {1}{x} \]
[In]
[Out]
Time = 1.89 (sec) , antiderivative size = 37, normalized size of antiderivative = 0.90 \[ \int \frac {\coth (a+2 \log (x))}{x^2} \, dx={\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\,\mathrm {atan}\left (x\,{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\right )-{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\,\mathrm {atanh}\left (x\,{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\right )+\frac {1}{x} \]
[In]
[Out]