Optimal. Leaf size=86 \[ -\frac {1}{x \left (1-e^{2 a} x^4\right )}+\frac {2 e^{2 a} x^3}{1-e^{2 a} x^4}-\frac {1}{2} e^{a/2} \text {ArcTan}\left (e^{a/2} x\right )+\frac {1}{2} e^{a/2} \tanh ^{-1}\left (e^{a/2} x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.462, Rules used = {5657, 473, 468,
304, 209, 212} \begin {gather*} -\frac {1}{2} e^{a/2} \text {ArcTan}\left (e^{a/2} x\right )-\frac {1}{x \left (1-e^{2 a} x^4\right )}+\frac {2 e^{2 a} x^3}{1-e^{2 a} x^4}+\frac {1}{2} e^{a/2} \tanh ^{-1}\left (e^{a/2} x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 304
Rule 468
Rule 473
Rule 5657
Rubi steps
\begin {align*} \int \frac {\coth ^2(a+2 \log (x))}{x^2} \, dx &=\int \frac {\coth ^2(a+2 \log (x))}{x^2} \, dx\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 1.93, size = 153, normalized size = 1.78 \begin {gather*} \frac {e^{-2 a} \left (-343-1163 e^{2 a} x^4-241 e^{4 a} x^8+3 e^{6 a} x^{12}+\left (343+632 e^{2 a} x^4+362 e^{4 a} x^8-56 e^{6 a} x^{12}-e^{8 a} x^{16}\right ) \, _2F_1\left (\frac {3}{4},1;\frac {7}{4};e^{2 a} x^4\right )\right )}{384 x^5}+\frac {16}{231} e^{2 a} x^3 \left (1+e^{2 a} x^4\right )^2 \, _4F_3\left (\frac {3}{4},2,2,2;1,1,\frac {15}{4};e^{2 a} x^4\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.61, size = 104, normalized size = 1.21
method | result | size |
risch | \(\frac {-2 \,{\mathrm e}^{2 a} x^{4}+1}{x \left (-1+{\mathrm e}^{2 a} x^{4}\right )}+\frac {\sqrt {{\mathrm e}^{a}}\, \ln \left (-\left ({\mathrm e}^{a}\right )^{\frac {3}{2}}-{\mathrm e}^{2 a} x \right )}{4}-\frac {\sqrt {{\mathrm e}^{a}}\, \ln \left (\left ({\mathrm e}^{a}\right )^{\frac {3}{2}}-{\mathrm e}^{2 a} x \right )}{4}+\frac {\left (\munderset {\textit {\_R} =\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 )}{4}\) | \(104\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 69, normalized size = 0.80 \begin {gather*} \frac {1}{2} \, \arctan \left (\frac {e^{\left (-\frac {1}{2} \, a\right )}}{x}\right ) e^{\left (\frac {1}{2} \, a\right )} - \frac {1}{4} \, 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} + \frac {e^{\left (2 \, a\right )}}{x {\left (\frac {1}{x^{4}} - e^{\left (2 \, a\right )}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 97, normalized size = 1.13 \begin {gather*} -\frac {8 \, x^{4} e^{\left (2 \, a\right )} + 2 \, {\left (x^{5} e^{\left (2 \, a\right )} - x\right )} \arctan \left (x e^{\left (\frac {1}{2} \, a\right )}\right ) e^{\left (\frac {1}{2} \, a\right )} - {\left (x^{5} e^{\left (2 \, a\right )} - x\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 ) - 4}{4 \, {\left (x^{5} e^{\left (2 \, a\right )} - x\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\coth ^{2}{\left (a + 2 \log {\left (x \right )} \right )}}{x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 77, normalized size = 0.90 \begin {gather*} -\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 ) - \frac {2 \, x^{4} e^{\left (2 \, a\right )} - 1}{x^{5} e^{\left (2 \, a\right )} - x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.21, size = 60, normalized size = 0.70 \begin {gather*} \frac {{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\,\mathrm {atanh}\left (x\,{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\right )}{2}-\frac {{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\,\mathrm {atan}\left (x\,{\left ({\mathrm {e}}^{2\,a}\right )}^{1/4}\right )}{2}+\frac {2\,x^4\,{\mathrm {e}}^{2\,a}-1}{x-x^5\,{\mathrm {e}}^{2\,a}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________