Optimal. Leaf size=67 \[ -\frac {\sqrt {c-\frac {c}{a^2 x^2}}}{\sqrt {1-a^2 x^2}}-\frac {a \sqrt {c-\frac {c}{a^2 x^2}} x \log (x)}{\sqrt {1-a^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {6295, 6285, 45}
\begin {gather*} -\frac {\sqrt {c-\frac {c}{a^2 x^2}}}{\sqrt {1-a^2 x^2}}-\frac {a x \log (x) \sqrt {c-\frac {c}{a^2 x^2}}}{\sqrt {1-a^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 6285
Rule 6295
Rubi steps
\begin {align*} \int \frac {e^{-\tanh ^{-1}(a x)} \sqrt {c-\frac {c}{a^2 x^2}}}{x} \, dx &=\frac {\left (\sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {e^{-\tanh ^{-1}(a x)} \sqrt {1-a^2 x^2}}{x^2} \, dx}{\sqrt {1-a^2 x^2}}\\ &=\frac {\left (\sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {1-a x}{x^2} \, dx}{\sqrt {1-a^2 x^2}}\\ &=\frac {\left (\sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \left (\frac {1}{x^2}-\frac {a}{x}\right ) \, dx}{\sqrt {1-a^2 x^2}}\\ &=-\frac {\sqrt {c-\frac {c}{a^2 x^2}}}{\sqrt {1-a^2 x^2}}-\frac {a \sqrt {c-\frac {c}{a^2 x^2}} x \log (x)}{\sqrt {1-a^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 38, normalized size = 0.57 \begin {gather*} -\frac {\sqrt {c-\frac {c}{a^2 x^2}} (1+a x \log (x))}{\sqrt {1-a^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 51, normalized size = 0.76
method | result | size |
default | \(\frac {\sqrt {\frac {c \left (a^{2} x^{2}-1\right )}{a^{2} x^{2}}}\, \sqrt {-a^{2} x^{2}+1}\, \left (a \ln \left (x \right ) x +1\right )}{a^{2} x^{2}-1}\) | \(51\) |
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 134 vs.
\(2 (59) = 118\).
time = 0.38, size = 295, normalized size = 4.40 \begin {gather*} \left [\frac {{\left (a^{2} x^{2} - 1\right )} \sqrt {-c} \log \left (\frac {a^{2} c x^{6} + a^{2} c x^{2} - c x^{4} - {\left (a x^{5} - a x\right )} \sqrt {-a^{2} x^{2} + 1} \sqrt {-c} \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}} - c}{a^{2} x^{4} - x^{2}}\right ) - 2 \, \sqrt {-a^{2} x^{2} + 1} {\left (x - 1\right )} \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}}}{2 \, {\left (a^{2} x^{2} - 1\right )}}, \frac {{\left (a^{2} x^{2} - 1\right )} \sqrt {c} \arctan \left (\frac {\sqrt {-a^{2} x^{2} + 1} {\left (a x^{3} + a x\right )} \sqrt {c} \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}}}{a^{2} c x^{4} - {\left (a^{2} + 1\right )} c x^{2} + c}\right ) - \sqrt {-a^{2} x^{2} + 1} {\left (x - 1\right )} \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}}}{a^{2} x^{2} - 1}\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 {- \left (a x - 1\right ) \left (a x + 1\right )} \sqrt {- c \left (-1 + \frac {1}{a x}\right ) \left (1 + \frac {1}{a x}\right )}}{x \left (a x + 1\right )}\, 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: RuntimeError} \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}}\,\sqrt {1-a^2\,x^2}}{x\,\left (a\,x+1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________