Optimal. Leaf size=72 \[ -\frac {c \sqrt {1-a^2 x^2}}{x \sqrt {c-a c x}}-a \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {1-a^2 x^2}}{\sqrt {c-a c x}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {6263, 877, 889,
214} \begin {gather*} -\frac {c \sqrt {1-a^2 x^2}}{x \sqrt {c-a c x}}-a \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {1-a^2 x^2}}{\sqrt {c-a c x}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 877
Rule 889
Rule 6263
Rubi steps
\begin {align*} \int \frac {e^{\tanh ^{-1}(a x)} \sqrt {c-a c x}}{x^2} \, dx &=c \int \frac {\sqrt {1-a^2 x^2}}{x^2 \sqrt {c-a c x}} \, dx\\ &=-\frac {c \sqrt {1-a^2 x^2}}{x \sqrt {c-a c x}}+\frac {1}{2} a \int \frac {\sqrt {c-a c x}}{x \sqrt {1-a^2 x^2}} \, dx\\ &=-\frac {c \sqrt {1-a^2 x^2}}{x \sqrt {c-a c x}}+\left (a^3 c^2\right ) \text {Subst}\left (\int \frac {1}{-a^2 c+a^2 c^2 x^2} \, dx,x,\frac {\sqrt {1-a^2 x^2}}{\sqrt {c-a c x}}\right )\\ &=-\frac {c \sqrt {1-a^2 x^2}}{x \sqrt {c-a c x}}-a \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {1-a^2 x^2}}{\sqrt {c-a c x}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 57, normalized size = 0.79 \begin {gather*} -\frac {\sqrt {c-a c x} \left (1+a x+a x \sqrt {1+a x} \tanh ^{-1}\left (\sqrt {1+a x}\right )\right )}{x \sqrt {1-a^2 x^2}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.90, size = 78, normalized size = 1.08
method | result | size |
default | \(\frac {\sqrt {-a^{2} x^{2}+1}\, \sqrt {-c \left (a x -1\right )}\, \left (\arctanh \left (\frac {\sqrt {\left (a x +1\right ) c}}{\sqrt {c}}\right ) c a x +\sqrt {\left (a x +1\right ) c}\, \sqrt {c}\right )}{\left (a x -1\right ) \sqrt {\left (a x +1\right ) c}\, \sqrt {c}\, x}\) | \(78\) |
risch | \(\frac {\left (a x +1\right ) \sqrt {-\frac {\left (-a^{2} x^{2}+1\right ) c}{a x -1}}\, \left (a x -1\right ) c}{x \sqrt {\left (a x +1\right ) c}\, \sqrt {-a^{2} x^{2}+1}\, \sqrt {-c \left (a x -1\right )}}+\frac {a \sqrt {c}\, \arctanh \left (\frac {\sqrt {c x a +c}}{\sqrt {c}}\right ) \sqrt {-\frac {\left (-a^{2} x^{2}+1\right ) c}{a x -1}}\, \left (a x -1\right )}{\sqrt {-a^{2} x^{2}+1}\, \sqrt {-c \left (a x -1\right )}}\) | \(137\) |
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.36, size = 207, normalized size = 2.88 \begin {gather*} \left [\frac {{\left (a^{2} x^{2} - a x\right )} \sqrt {c} \log \left (-\frac {a^{2} c x^{2} + a c x + 2 \, \sqrt {-a^{2} x^{2} + 1} \sqrt {-a c x + c} \sqrt {c} - 2 \, c}{a x^{2} - x}\right ) + 2 \, \sqrt {-a^{2} x^{2} + 1} \sqrt {-a c x + c}}{2 \, {\left (a x^{2} - x\right )}}, -\frac {{\left (a^{2} x^{2} - a x\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {-a^{2} x^{2} + 1} \sqrt {-a c x + c} \sqrt {-c}}{a^{2} c x^{2} - c}\right ) - \sqrt {-a^{2} x^{2} + 1} \sqrt {-a c x + c}}{a x^{2} - 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 {\sqrt {- c \left (a x - 1\right )} \left (a x + 1\right )}{x^{2} \sqrt {- \left (a x - 1\right ) \left (a x + 1\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 97, normalized size = 1.35 \begin {gather*} \frac {{\left (\frac {a^{2} \arctan \left (\frac {\sqrt {a c x + c}}{\sqrt {-c}}\right )}{\sqrt {-c}} - \frac {a^{2} \sqrt {c} \arctan \left (\frac {\sqrt {2} \sqrt {c}}{\sqrt {-c}}\right ) - \sqrt {2} a^{2} \sqrt {-c}}{\sqrt {-c} \sqrt {c}} - \frac {\sqrt {a c x + c} a}{c x}\right )} c^{2}}{a {\left | c \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {c-a\,c\,x}\,\left (a\,x+1\right )}{x^2\,\sqrt {1-a^2\,x^2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________