Optimal. Leaf size=42 \[ -\frac {1}{c x}-\frac {\sqrt {1-c x}}{c x \sqrt {\frac {1}{1+c x}}}+\tanh ^{-1}(c x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {6476, 1972, 97,
331, 212} \begin {gather*} -\frac {\sqrt {1-c x}}{c x \sqrt {\frac {1}{c x+1}}}-\frac {1}{c x}+\tanh ^{-1}(c x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 97
Rule 212
Rule 331
Rule 1972
Rule 6476
Rubi steps
\begin {align*} \int \frac {e^{\text {sech}^{-1}(c x)}}{x \left (1-c^2 x^2\right )} \, dx &=\frac {\int \frac {\sqrt {\frac {1}{1+c x}}}{x^2 \sqrt {1-c x}} \, dx}{c}+\frac {\int \frac {1}{x^2 \left (1-c^2 x^2\right )} \, dx}{c}\\ &=-\frac {1}{c x}+c \int \frac {1}{1-c^2 x^2} \, dx+\frac {\left (\sqrt {\frac {1}{1+c x}} \sqrt {1+c x}\right ) \int \frac {1}{x^2 \sqrt {1-c x} \sqrt {1+c x}} \, dx}{c}\\ &=-\frac {1}{c x}-\frac {\sqrt {1-c x}}{c x \sqrt {\frac {1}{1+c x}}}+\tanh ^{-1}(c x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 59, normalized size = 1.40 \begin {gather*} -\frac {1}{c x}-\left (1+\frac {1}{c x}\right ) \sqrt {\frac {1-c x}{1+c x}}-\frac {1}{2} \log (1-c x)+\frac {1}{2} \log (1+c x) \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.30, size = 65, normalized size = 1.55
method | result | size |
default | \(-\sqrt {-\frac {c x -1}{c x}}\, \sqrt {\frac {c x +1}{c x}}\, \mathrm {csgn}\left (c \right )^{2}+\frac {\frac {c \ln \left (c x +1\right )}{2}-\frac {1}{x}-\frac {c \ln \left (c x -1\right )}{2}}{c}\) | \(65\) |
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.56, size = 62, normalized size = 1.48 \begin {gather*} -\frac {2 \, c x \sqrt {\frac {c x + 1}{c x}} \sqrt {-\frac {c x - 1}{c x}} - c x \log \left (c x + 1\right ) + c x \log \left (c x - 1\right ) + 2}{2 \, c x} \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 {\int \frac {c x \sqrt {-1 + \frac {1}{c x}} \sqrt {1 + \frac {1}{c x}}}{c^{2} x^{4} - x^{2}}\, dx + \int \frac {1}{c^{2} x^{4} - x^{2}}\, dx}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.53, size = 37, normalized size = 0.88 \begin {gather*} \mathrm {atanh}\left (c\,x\right )-\sqrt {\frac {1}{c\,x}-1}\,\sqrt {\frac {1}{c\,x}+1}-\frac {1}{c\,x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________