Optimal. Leaf size=72 \[ \frac {2 e^{n \coth ^{-1}(a x)}}{a c^2 n \left (4-n^2\right )}-\frac {e^{n \coth ^{-1}(a x)} (n-2 a x)}{a c^2 \left (4-n^2\right ) \left (1-a^2 x^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {6320, 6318}
\begin {gather*} \frac {2 e^{n \coth ^{-1}(a x)}}{a c^2 n \left (4-n^2\right )}-\frac {(n-2 a x) e^{n \coth ^{-1}(a x)}}{a c^2 \left (4-n^2\right ) \left (1-a^2 x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6318
Rule 6320
Rubi steps
\begin {align*} \int \frac {e^{n \coth ^{-1}(a x)}}{\left (c-a^2 c x^2\right )^2} \, dx &=-\frac {e^{n \coth ^{-1}(a x)} (n-2 a x)}{a c^2 \left (4-n^2\right ) \left (1-a^2 x^2\right )}+\frac {2 \int \frac {e^{n \coth ^{-1}(a x)}}{c-a^2 c x^2} \, dx}{c \left (4-n^2\right )}\\ &=\frac {2 e^{n \coth ^{-1}(a x)}}{a c^2 n \left (4-n^2\right )}-\frac {e^{n \coth ^{-1}(a x)} (n-2 a x)}{a c^2 \left (4-n^2\right ) \left (1-a^2 x^2\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 55, normalized size = 0.76 \begin {gather*} -\frac {e^{n \coth ^{-1}(a x)} \left (-2+n^2-2 a n x+2 a^2 x^2\right )}{a c^2 n \left (-4+n^2\right ) \left (-1+a^2 x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 55, normalized size = 0.76
method | result | size |
gosper | \(-\frac {{\mathrm e}^{n \,\mathrm {arccoth}\left (a x \right )} \left (2 a^{2} x^{2}-2 x a n +n^{2}-2\right )}{\left (a^{2} x^{2}-1\right ) c^{2} a n \left (n^{2}-4\right )}\) | \(55\) |
risch | \(-\frac {\left (2 a^{2} x^{2}-2 x a n +n^{2}-2\right ) \left (a x -1\right )^{-\frac {n}{2}} \left (a x +1\right )^{\frac {n}{2}}}{\left (a^{2} x^{2}-1\right ) c^{2} a n \left (n^{2}-4\right )}\) | \(66\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 79, normalized size = 1.10 \begin {gather*} \frac {{\left (2 \, a^{2} x^{2} - 2 \, a n x + n^{2} - 2\right )} \left (\frac {a x + 1}{a x - 1}\right )^{\frac {1}{2} \, n}}{a c^{2} n^{3} - 4 \, a c^{2} n - {\left (a^{3} c^{2} n^{3} - 4 \, a^{3} c^{2} n\right )} x^{2}} \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*} \begin {cases} \frac {x e^{\frac {i \pi n}{2}}}{c^{2}} & \text {for}\: a = 0 \\\tilde {\infty } x e^{- \infty n} & \text {for}\: a = - \frac {1}{x} \\\tilde {\infty } x e^{\infty n} & \text {for}\: a = \frac {1}{x} \\- \frac {a^{2} x^{2} \operatorname {acoth}{\left (a x \right )}}{4 a^{3} c^{2} x^{2} e^{2 \operatorname {acoth}{\left (a x \right )}} - 4 a c^{2} e^{2 \operatorname {acoth}{\left (a x \right )}}} - \frac {2 a x \operatorname {acoth}{\left (a x \right )}}{4 a^{3} c^{2} x^{2} e^{2 \operatorname {acoth}{\left (a x \right )}} - 4 a c^{2} e^{2 \operatorname {acoth}{\left (a x \right )}}} + \frac {a x}{4 a^{3} c^{2} x^{2} e^{2 \operatorname {acoth}{\left (a x \right )}} - 4 a c^{2} e^{2 \operatorname {acoth}{\left (a x \right )}}} - \frac {\operatorname {acoth}{\left (a x \right )}}{4 a^{3} c^{2} x^{2} e^{2 \operatorname {acoth}{\left (a x \right )}} - 4 a c^{2} e^{2 \operatorname {acoth}{\left (a x \right )}}} + \frac {2}{4 a^{3} c^{2} x^{2} e^{2 \operatorname {acoth}{\left (a x \right )}} - 4 a c^{2} e^{2 \operatorname {acoth}{\left (a x \right )}}} & \text {for}\: n = -2 \\- \frac {a^{2} x^{2} \log {\left (x - \frac {1}{a} \right )}}{4 a^{3} c^{2} x^{2} - 4 a c^{2}} + \frac {a^{2} x^{2} \log {\left (x + \frac {1}{a} \right )}}{4 a^{3} c^{2} x^{2} - 4 a c^{2}} - \frac {2 a x}{4 a^{3} c^{2} x^{2} - 4 a c^{2}} + \frac {\log {\left (x - \frac {1}{a} \right )}}{4 a^{3} c^{2} x^{2} - 4 a c^{2}} - \frac {\log {\left (x + \frac {1}{a} \right )}}{4 a^{3} c^{2} x^{2} - 4 a c^{2}} & \text {for}\: n = 0 \\\frac {\int \frac {e^{2 \operatorname {acoth}{\left (a x \right )}}}{a^{4} x^{4} - 2 a^{2} x^{2} + 1}\, dx}{c^{2}} & \text {for}\: n = 2 \\- \frac {2 a^{2} x^{2} e^{n \operatorname {acoth}{\left (a x \right )}}}{a^{3} c^{2} n^{3} x^{2} - 4 a^{3} c^{2} n x^{2} - a c^{2} n^{3} + 4 a c^{2} n} + \frac {2 a n x e^{n \operatorname {acoth}{\left (a x \right )}}}{a^{3} c^{2} n^{3} x^{2} - 4 a^{3} c^{2} n x^{2} - a c^{2} n^{3} + 4 a c^{2} n} - \frac {n^{2} e^{n \operatorname {acoth}{\left (a x \right )}}}{a^{3} c^{2} n^{3} x^{2} - 4 a^{3} c^{2} n x^{2} - a c^{2} n^{3} + 4 a c^{2} n} + \frac {2 e^{n \operatorname {acoth}{\left (a x \right )}}}{a^{3} c^{2} n^{3} x^{2} - 4 a^{3} c^{2} n x^{2} - a c^{2} n^{3} + 4 a c^{2} n} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.59, size = 106, normalized size = 1.47 \begin {gather*} \frac {{\left (\frac {a\,x+1}{a\,x}\right )}^{n/2}\,\left (\frac {2\,x^2}{a\,c^2\,n\,\left (n^2-4\right )}-\frac {2\,x}{a^2\,c^2\,\left (n^2-4\right )}+\frac {n^2-2}{a^3\,c^2\,n\,\left (n^2-4\right )}\right )}{\left (\frac {1}{a^2}-x^2\right )\,{\left (\frac {a\,x-1}{a\,x}\right )}^{n/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________