Optimal. Leaf size=27 \[ c \sqrt {1-\frac {1}{a^2 x^2}} x+\frac {c \csc ^{-1}(a x)}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {6312, 283, 222}
\begin {gather*} c x \sqrt {1-\frac {1}{a^2 x^2}}+\frac {c \csc ^{-1}(a x)}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 283
Rule 6312
Rubi steps
\begin {align*} \int e^{\coth ^{-1}(a x)} \left (c-\frac {c}{a x}\right ) \, dx &=-\left (c \text {Subst}\left (\int \frac {\sqrt {1-\frac {x^2}{a^2}}}{x^2} \, dx,x,\frac {1}{x}\right )\right )\\ &=c \sqrt {1-\frac {1}{a^2 x^2}} x+\frac {c \text {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{a^2}}} \, dx,x,\frac {1}{x}\right )}{a^2}\\ &=c \sqrt {1-\frac {1}{a^2 x^2}} x+\frac {c \csc ^{-1}(a x)}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 31, normalized size = 1.15 \begin {gather*} \frac {c \left (a \sqrt {1-\frac {1}{a^2 x^2}} x+\text {ArcSin}\left (\frac {1}{a x}\right )\right )}{a} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(62\) vs.
\(2(25)=50\).
time = 0.03, size = 63, normalized size = 2.33
method | result | size |
default | \(\frac {\left (a x -1\right ) c \left (\sqrt {a^{2} x^{2}-1}+\arctan \left (\frac {1}{\sqrt {a^{2} x^{2}-1}}\right )\right )}{\sqrt {\frac {a x -1}{a x +1}}\, \sqrt {\left (a x +1\right ) \left (a x -1\right )}\, a}\) | \(63\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 66 vs.
\(2 (25) = 50\).
time = 0.49, size = 66, normalized size = 2.44 \begin {gather*} -2 \, a {\left (\frac {c \sqrt {\frac {a x - 1}{a x + 1}}}{\frac {{\left (a x - 1\right )} a^{2}}{a x + 1} - a^{2}} + \frac {c \arctan \left (\sqrt {\frac {a x - 1}{a x + 1}}\right )}{a^{2}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 48, normalized size = 1.78 \begin {gather*} -\frac {2 \, c \arctan \left (\sqrt {\frac {a x - 1}{a x + 1}}\right ) - {\left (a c x + c\right )} \sqrt {\frac {a x - 1}{a x + 1}}}{a} \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*} \frac {c \left (\int \frac {a}{\sqrt {\frac {a x}{a x + 1} - \frac {1}{a x + 1}}}\, dx + \int \left (- \frac {1}{x \sqrt {\frac {a x}{a x + 1} - \frac {1}{a x + 1}}}\right )\, dx\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 42, normalized size = 1.56 \begin {gather*} -\frac {c \arctan \left (\sqrt {a^{2} x^{2} - 1}\right ) - \sqrt {a^{2} x^{2} - 1} c}{a \mathrm {sgn}\left (a x + 1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 60, normalized size = 2.22 \begin {gather*} \frac {2\,c\,\sqrt {\frac {a\,x-1}{a\,x+1}}}{a-\frac {a\,\left (a\,x-1\right )}{a\,x+1}}-\frac {2\,c\,\mathrm {atan}\left (\sqrt {\frac {a\,x-1}{a\,x+1}}\right )}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________