Optimal. Leaf size=45 \[ \frac {2 (1+a x)}{c \sqrt {1-a^2 x^2}}-\frac {\tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.368, Rules used = {6263, 866,
1819, 12, 272, 65, 214} \begin {gather*} \frac {2 (a x+1)}{c \sqrt {1-a^2 x^2}}-\frac {\tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 65
Rule 214
Rule 272
Rule 866
Rule 1819
Rule 6263
Rubi steps
\begin {align*} \int \frac {e^{\tanh ^{-1}(a x)}}{x (c-a c x)} \, dx &=c \int \frac {\sqrt {1-a^2 x^2}}{x (c-a c x)^2} \, dx\\ &=\frac {\int \frac {(c+a c x)^2}{x \left (1-a^2 x^2\right )^{3/2}} \, dx}{c^3}\\ &=\frac {2 (1+a x)}{c \sqrt {1-a^2 x^2}}+\frac {\int \frac {c^2}{x \sqrt {1-a^2 x^2}} \, dx}{c^3}\\ &=\frac {2 (1+a x)}{c \sqrt {1-a^2 x^2}}+\frac {\int \frac {1}{x \sqrt {1-a^2 x^2}} \, dx}{c}\\ &=\frac {2 (1+a x)}{c \sqrt {1-a^2 x^2}}+\frac {\text {Subst}\left (\int \frac {1}{x \sqrt {1-a^2 x}} \, dx,x,x^2\right )}{2 c}\\ &=\frac {2 (1+a x)}{c \sqrt {1-a^2 x^2}}-\frac {\text {Subst}\left (\int \frac {1}{\frac {1}{a^2}-\frac {x^2}{a^2}} \, dx,x,\sqrt {1-a^2 x^2}\right )}{a^2 c}\\ &=\frac {2 (1+a x)}{c \sqrt {1-a^2 x^2}}-\frac {\tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 55, normalized size = 1.22 \begin {gather*} \frac {2+2 a x-\sqrt {1-a^2 x^2} \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )}{c \sqrt {1-a^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.77, size = 61, normalized size = 1.36
method | result | size |
default | \(-\frac {\arctanh \left (\frac {1}{\sqrt {-a^{2} x^{2}+1}}\right )+\frac {2 \sqrt {-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )}}{a \left (x -\frac {1}{a}\right )}}{c}\) | \(61\) |
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.36, size = 56, normalized size = 1.24 \begin {gather*} \frac {2 \, a x + {\left (a x - 1\right )} \log \left (\frac {\sqrt {-a^{2} x^{2} + 1} - 1}{x}\right ) - 2 \, \sqrt {-a^{2} x^{2} + 1} - 2}{a c x - c} \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 {a x}{a x^{2} \sqrt {- a^{2} x^{2} + 1} - x \sqrt {- a^{2} x^{2} + 1}}\, dx + \int \frac {1}{a x^{2} \sqrt {- a^{2} x^{2} + 1} - x \sqrt {- a^{2} x^{2} + 1}}\, dx}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 80, normalized size = 1.78 \begin {gather*} -\frac {a \log \left (\frac {{\left | -2 \, \sqrt {-a^{2} x^{2} + 1} {\left | a \right |} - 2 \, a \right |}}{2 \, a^{2} {\left | x \right |}}\right )}{c {\left | a \right |}} + \frac {4 \, a}{c {\left (\frac {\sqrt {-a^{2} x^{2} + 1} {\left | a \right |} + a}{a^{2} x} - 1\right )} {\left | a \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 68, normalized size = 1.51 \begin {gather*} \frac {2\,a\,\sqrt {1-a^2\,x^2}}{c\,\left (x\,\sqrt {-a^2}-\frac {\sqrt {-a^2}}{a}\right )\,\sqrt {-a^2}}-\frac {\mathrm {atanh}\left (\sqrt {1-a^2\,x^2}\right )}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________