Optimal. Leaf size=78 \[ -\sqrt {c-a^2 c x^2}-2 \sqrt {c} \text {ArcTan}\left (\frac {a \sqrt {c} x}{\sqrt {c-a^2 c x^2}}\right )-\sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c-a^2 c x^2}}{\sqrt {c}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 78, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.296, Rules used = {6287, 1823,
858, 223, 209, 272, 65, 214} \begin {gather*} -2 \sqrt {c} \text {ArcTan}\left (\frac {a \sqrt {c} x}{\sqrt {c-a^2 c x^2}}\right )-\sqrt {c-a^2 c x^2}-\sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c-a^2 c x^2}}{\sqrt {c}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 209
Rule 214
Rule 223
Rule 272
Rule 858
Rule 1823
Rule 6287
Rubi steps
\begin {align*} \int \frac {e^{-2 \tanh ^{-1}(a x)} \sqrt {c-a^2 c x^2}}{x} \, dx &=c \int \frac {(1-a x)^2}{x \sqrt {c-a^2 c x^2}} \, dx\\ &=-\sqrt {c-a^2 c x^2}-\frac {\int \frac {-a^2 c+2 a^3 c x}{x \sqrt {c-a^2 c x^2}} \, dx}{a^2}\\ &=-\sqrt {c-a^2 c x^2}+c \int \frac {1}{x \sqrt {c-a^2 c x^2}} \, dx-(2 a c) \int \frac {1}{\sqrt {c-a^2 c x^2}} \, dx\\ &=-\sqrt {c-a^2 c x^2}+\frac {1}{2} c \text {Subst}\left (\int \frac {1}{x \sqrt {c-a^2 c x}} \, dx,x,x^2\right )-(2 a c) \text {Subst}\left (\int \frac {1}{1+a^2 c x^2} \, dx,x,\frac {x}{\sqrt {c-a^2 c x^2}}\right )\\ &=-\sqrt {c-a^2 c x^2}-2 \sqrt {c} \tan ^{-1}\left (\frac {a \sqrt {c} x}{\sqrt {c-a^2 c x^2}}\right )-\frac {\text {Subst}\left (\int \frac {1}{\frac {1}{a^2}-\frac {x^2}{a^2 c}} \, dx,x,\sqrt {c-a^2 c x^2}\right )}{a^2}\\ &=-\sqrt {c-a^2 c x^2}-2 \sqrt {c} \tan ^{-1}\left (\frac {a \sqrt {c} x}{\sqrt {c-a^2 c x^2}}\right )-\sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c-a^2 c x^2}}{\sqrt {c}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 99, normalized size = 1.27 \begin {gather*} -\sqrt {c-a^2 c x^2}+2 \sqrt {c} \text {ArcTan}\left (\frac {a x \sqrt {c-a^2 c x^2}}{\sqrt {c} \left (-1+a^2 x^2\right )}\right )+\sqrt {c} \log (x)-\sqrt {c} \log \left (c+\sqrt {c} \sqrt {c-a^2 c x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 120, normalized size = 1.54
method | result | size |
default | \(-2 \sqrt {-c \,a^{2} \left (x +\frac {1}{a}\right )^{2}+2 a c \left (x +\frac {1}{a}\right )}-\frac {2 a c \arctan \left (\frac {\sqrt {c \,a^{2}}\, x}{\sqrt {-c \,a^{2} \left (x +\frac {1}{a}\right )^{2}+2 a c \left (x +\frac {1}{a}\right )}}\right )}{\sqrt {c \,a^{2}}}+\sqrt {-a^{2} c \,x^{2}+c}-\sqrt {c}\, \ln \left (\frac {2 c +2 \sqrt {c}\, \sqrt {-a^{2} c \,x^{2}+c}}{x}\right )\) | \(120\) |
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.33, size = 196, normalized size = 2.51 \begin {gather*} \left [2 \, \sqrt {c} \arctan \left (\frac {\sqrt {-a^{2} c x^{2} + c} a \sqrt {c} x}{a^{2} c x^{2} - c}\right ) + \frac {1}{2} \, \sqrt {c} \log \left (-\frac {a^{2} c x^{2} + 2 \, \sqrt {-a^{2} c x^{2} + c} \sqrt {c} - 2 \, c}{x^{2}}\right ) - \sqrt {-a^{2} c x^{2} + c}, -\sqrt {-c} \arctan \left (\frac {\sqrt {-a^{2} c x^{2} + c} \sqrt {-c}}{a^{2} c x^{2} - c}\right ) + \sqrt {-c} \log \left (2 \, a^{2} c x^{2} - 2 \, \sqrt {-a^{2} c x^{2} + c} a \sqrt {-c} x - c\right ) - \sqrt {-a^{2} c x^{2} + c}\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 \left (- \frac {\sqrt {- a^{2} c x^{2} + c}}{a x^{2} + x}\right )\, dx - \int \frac {a x \sqrt {- a^{2} c x^{2} + c}}{a x^{2} + x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.47, size = 124, normalized size = 1.59 \begin {gather*} -{\left (\frac {{\left (a x + 1\right )} \sqrt {-c + \frac {2 \, c}{a x + 1}} \mathrm {sgn}\left (\frac {1}{a x + 1}\right ) \mathrm {sgn}\left (a\right )}{a^{2}} - \frac {2 \, c \arctan \left (\frac {\sqrt {-c + \frac {2 \, c}{a x + 1}}}{\sqrt {-c}}\right ) \mathrm {sgn}\left (\frac {1}{a x + 1}\right ) \mathrm {sgn}\left (a\right )}{a^{2} \sqrt {-c}} - \frac {4 \, \sqrt {c} \arctan \left (\frac {\sqrt {-c + \frac {2 \, c}{a x + 1}}}{\sqrt {c}}\right ) \mathrm {sgn}\left (\frac {1}{a x + 1}\right ) \mathrm {sgn}\left (a\right )}{a^{2}}\right )} a {\left | a \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^2\,c\,x^2}\,\left (a^2\,x^2-1\right )}{x\,{\left (a\,x+1\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________