Optimal. Leaf size=37 \[ \frac {\sqrt {\frac {1}{1+c x}} \sqrt {1+c x} \text {ArcSin}(c x)}{c^2}+\frac {\tanh ^{-1}(c x)}{c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {6476, 1972, 41,
222, 212} \begin {gather*} \frac {\sqrt {\frac {1}{c x+1}} \sqrt {c x+1} \text {ArcSin}(c x)}{c^2}+\frac {\tanh ^{-1}(c x)}{c^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 41
Rule 212
Rule 222
Rule 1972
Rule 6476
Rubi steps
\begin {align*} \int \frac {e^{\text {sech}^{-1}(c x)} x}{1-c^2 x^2} \, dx &=\frac {\int \frac {\sqrt {\frac {1}{1+c x}}}{\sqrt {1-c x}} \, dx}{c}+\frac {\int \frac {1}{1-c^2 x^2} \, dx}{c}\\ &=\frac {\tanh ^{-1}(c x)}{c^2}+\frac {\left (\sqrt {\frac {1}{1+c x}} \sqrt {1+c x}\right ) \int \frac {1}{\sqrt {1-c x} \sqrt {1+c x}} \, dx}{c}\\ &=\frac {\tanh ^{-1}(c x)}{c^2}+\frac {\left (\sqrt {\frac {1}{1+c x}} \sqrt {1+c x}\right ) \int \frac {1}{\sqrt {1-c^2 x^2}} \, dx}{c}\\ &=\frac {\sqrt {\frac {1}{1+c x}} \sqrt {1+c x} \sin ^{-1}(c x)}{c^2}+\frac {\tanh ^{-1}(c x)}{c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.04, size = 68, normalized size = 1.84 \begin {gather*} -\frac {\log (1-c x)}{2 c^2}+\frac {\log (1+c x)}{2 c^2}+\frac {i \log \left (-2 i c x+2 \sqrt {\frac {1-c x}{1+c x}} (1+c x)\right )}{c^2} \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.29, size = 97, normalized size = 2.62
method | result | size |
default | \(\frac {\sqrt {-\frac {c x -1}{c x}}\, x \sqrt {\frac {c x +1}{c x}}\, \arctan \left (\frac {\mathrm {csgn}\left (c \right ) c x}{\sqrt {-\left (c x -1\right ) \left (c x +1\right )}}\right ) \mathrm {csgn}\left (c \right )}{\sqrt {-c^{2} x^{2}+1}\, c}+\frac {\frac {\ln \left (c x +1\right )}{2 c}-\frac {\ln \left (c x -1\right )}{2 c}}{c}\) | \(97\) |
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. 53 vs.
\(2 (17) = 34\).
time = 0.53, size = 53, normalized size = 1.43 \begin {gather*} -\frac {2 \, \arctan \left (\sqrt {\frac {c x + 1}{c x}} \sqrt {-\frac {c x - 1}{c x}}\right ) - \log \left (c x + 1\right ) + \log \left (c x - 1\right )}{2 \, c^{2}} \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^{2} - 1}\, dx + \int \frac {1}{c^{2} x^{2} - 1}\, 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 = 3.57, size = 84, normalized size = 2.27 \begin {gather*} \frac {\mathrm {atanh}\left (c\,x\right )}{c^2}+\frac {\left (\ln \left (\frac {{\left (\sqrt {\frac {1}{c\,x}-1}-\mathrm {i}\right )}^2}{{\left (\sqrt {\frac {1}{c\,x}+1}-1\right )}^2}+1\right )-\ln \left (\frac {\sqrt {\frac {1}{c\,x}-1}-\mathrm {i}}{\sqrt {\frac {1}{c\,x}+1}-1}\right )\right )\,1{}\mathrm {i}}{c^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________