Optimal. Leaf size=118 \[ -\sqrt {c-\frac {c}{a^2 x^2}} x+\frac {2 \sqrt {c-\frac {c}{a^2 x^2}} x \text {ArcSin}(a x)}{\sqrt {1-a x} \sqrt {1+a x}}-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x \tanh ^{-1}\left (\sqrt {1-a x} \sqrt {1+a x}\right )}{\sqrt {1-a x} \sqrt {1+a x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 118, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {6294, 6264,
104, 163, 41, 222, 94, 214} \begin {gather*} \frac {2 x \text {ArcSin}(a x) \sqrt {c-\frac {c}{a^2 x^2}}}{\sqrt {1-a x} \sqrt {a x+1}}-x \sqrt {c-\frac {c}{a^2 x^2}}-\frac {x \sqrt {c-\frac {c}{a^2 x^2}} \tanh ^{-1}\left (\sqrt {1-a x} \sqrt {a x+1}\right )}{\sqrt {1-a x} \sqrt {a x+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 41
Rule 94
Rule 104
Rule 163
Rule 214
Rule 222
Rule 6264
Rule 6294
Rubi steps
\begin {align*} \int e^{2 \tanh ^{-1}(a x)} \sqrt {c-\frac {c}{a^2 x^2}} \, dx &=\frac {\left (\sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {e^{2 \tanh ^{-1}(a x)} \sqrt {1-a x} \sqrt {1+a x}}{x} \, dx}{\sqrt {1-a x} \sqrt {1+a x}}\\ &=\frac {\left (\sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {(1+a x)^{3/2}}{x \sqrt {1-a x}} \, dx}{\sqrt {1-a x} \sqrt {1+a x}}\\ &=-\sqrt {c-\frac {c}{a^2 x^2}} x-\frac {\left (\sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {-a-2 a^2 x}{x \sqrt {1-a x} \sqrt {1+a x}} \, dx}{a \sqrt {1-a x} \sqrt {1+a x}}\\ &=-\sqrt {c-\frac {c}{a^2 x^2}} x+\frac {\left (\sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {1}{x \sqrt {1-a x} \sqrt {1+a x}} \, dx}{\sqrt {1-a x} \sqrt {1+a x}}+\frac {\left (2 a \sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {1}{\sqrt {1-a x} \sqrt {1+a x}} \, dx}{\sqrt {1-a x} \sqrt {1+a x}}\\ &=-\sqrt {c-\frac {c}{a^2 x^2}} x-\frac {\left (a \sqrt {c-\frac {c}{a^2 x^2}} x\right ) \text {Subst}\left (\int \frac {1}{a-a x^2} \, dx,x,\sqrt {1-a x} \sqrt {1+a x}\right )}{\sqrt {1-a x} \sqrt {1+a x}}+\frac {\left (2 a \sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {1}{\sqrt {1-a^2 x^2}} \, dx}{\sqrt {1-a x} \sqrt {1+a x}}\\ &=-\sqrt {c-\frac {c}{a^2 x^2}} x+\frac {2 \sqrt {c-\frac {c}{a^2 x^2}} x \sin ^{-1}(a x)}{\sqrt {1-a x} \sqrt {1+a x}}-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x \tanh ^{-1}\left (\sqrt {1-a x} \sqrt {1+a x}\right )}{\sqrt {1-a x} \sqrt {1+a x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 81, normalized size = 0.69 \begin {gather*} -\frac {\sqrt {c-\frac {c}{a^2 x^2}} x \left (\sqrt {-1+a^2 x^2}-\text {ArcTan}\left (\frac {1}{\sqrt {-1+a^2 x^2}}\right )+2 \log \left (a x+\sqrt {-1+a^2 x^2}\right )\right )}{\sqrt {-1+a^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.80, size = 198, normalized size = 1.68
method | result | size |
default | \(-\frac {\sqrt {\frac {c \left (a^{2} x^{2}-1\right )}{a^{2} x^{2}}}\, x \left (2 \sqrt {c}\, \ln \left (\frac {\sqrt {c}\, \sqrt {\frac {\left (a x -1\right ) \left (a x +1\right ) c}{a^{2}}}+c x}{\sqrt {c}}\right ) a \sqrt {-\frac {c}{a^{2}}}-\sqrt {-\frac {c}{a^{2}}}\, \sqrt {\frac {c \left (a^{2} x^{2}-1\right )}{a^{2}}}\, a^{2}+2 \sqrt {\frac {\left (a x -1\right ) \left (a x +1\right ) c}{a^{2}}}\, a^{2} \sqrt {-\frac {c}{a^{2}}}-c \ln \left (\frac {2 \sqrt {-\frac {c}{a^{2}}}\, \sqrt {\frac {c \left (a^{2} x^{2}-1\right )}{a^{2}}}\, a^{2}-2 c}{a^{2} x}\right )\right )}{\sqrt {-\frac {c}{a^{2}}}\, \sqrt {\frac {c \left (a^{2} x^{2}-1\right )}{a^{2}}}\, a^{2}}\) | \(198\) |
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.39, size = 270, normalized size = 2.29 \begin {gather*} \left [-\frac {2 \, a x \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}} - 4 \, \sqrt {-c} \arctan \left (\frac {a^{2} \sqrt {-c} x^{2} \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}}}{a^{2} c x^{2} - c}\right ) - \sqrt {-c} \log \left (-\frac {a^{2} c x^{2} - 2 \, a \sqrt {-c} x \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}} - 2 \, c}{x^{2}}\right )}{2 \, a}, -\frac {a x \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}} - \sqrt {c} \arctan \left (\frac {a \sqrt {c} x \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}}}{a^{2} c x^{2} - c}\right ) - \sqrt {c} \log \left (2 \, a^{2} c x^{2} - 2 \, a^{2} \sqrt {c} x^{2} \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}} - c\right )}{a}\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 - \frac {c}{a^{2} x^{2}}}}{a x - 1}\, dx - \int \frac {a x \sqrt {c - \frac {c}{a^{2} x^{2}}}}{a x - 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \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-\frac {c}{a^2\,x^2}}\,{\left (a\,x+1\right )}^2}{a^2\,x^2-1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________