Optimal. Leaf size=35 \[ c \sqrt {1-a^2 x^2}-c \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.294, Rules used = {6263, 272, 52,
65, 214} \begin {gather*} c \sqrt {1-a^2 x^2}-c \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 214
Rule 272
Rule 6263
Rubi steps
\begin {align*} \int \frac {e^{\tanh ^{-1}(a x)} (c-a c x)}{x} \, dx &=c \int \frac {\sqrt {1-a^2 x^2}}{x} \, dx\\ &=\frac {1}{2} c \text {Subst}\left (\int \frac {\sqrt {1-a^2 x}}{x} \, dx,x,x^2\right )\\ &=c \sqrt {1-a^2 x^2}+\frac {1}{2} c \text {Subst}\left (\int \frac {1}{x \sqrt {1-a^2 x}} \, dx,x,x^2\right )\\ &=c \sqrt {1-a^2 x^2}-\frac {c \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 \sqrt {1-a^2 x^2}-c \tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(79\) vs. \(2(35)=70\).
time = 0.05, size = 79, normalized size = 2.26 \begin {gather*} c \left (\frac {1}{\sqrt {1-a^2 x^2}}-\frac {a^2 x^2}{\sqrt {1-a^2 x^2}}+\text {ArcSin}(a x)+2 \text {ArcSin}\left (\frac {\sqrt {1-a x}}{\sqrt {2}}\right )-\tanh ^{-1}\left (\sqrt {1-a^2 x^2}\right )\right ) \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.48, size = 32, normalized size = 0.91
method | result | size |
default | \(-c \left (-\sqrt {-a^{2} x^{2}+1}+\arctanh \left (\frac {1}{\sqrt {-a^{2} x^{2}+1}}\right )\right )\) | \(32\) |
meijerg | \(\frac {c \left (-2 \sqrt {\pi }+2 \sqrt {\pi }\, \sqrt {-a^{2} x^{2}+1}\right )}{2 \sqrt {\pi }}+\frac {c \left (-2 \sqrt {\pi }\, \ln \left (\frac {1}{2}+\frac {\sqrt {-a^{2} x^{2}+1}}{2}\right )+\left (-2 \ln \left (2\right )+2 \ln \left (x \right )+\ln \left (-a^{2}\right )\right ) \sqrt {\pi }\right )}{2 \sqrt {\pi }}\) | \(79\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.46, size = 44, normalized size = 1.26 \begin {gather*} -c \log \left (\frac {2 \, \sqrt {-a^{2} x^{2} + 1}}{{\left | x \right |}} + \frac {2}{{\left | x \right |}}\right ) + \sqrt {-a^{2} x^{2} + 1} c \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 36, normalized size = 1.03 \begin {gather*} c \log \left (\frac {\sqrt {-a^{2} x^{2} + 1} - 1}{x}\right ) + \sqrt {-a^{2} x^{2} + 1} c \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 9.78, size = 66, normalized size = 1.89 \begin {gather*} \frac {a^{2} c \left (\begin {cases} - x^{2} & \text {for}\: a^{2} = 0 \\\frac {2 \sqrt {- a^{2} x^{2} + 1}}{a^{2}} & \text {otherwise} \end {cases}\right )}{2} - \frac {c \left (- \log {\left (-1 + \frac {1}{\sqrt {- a^{2} x^{2} + 1}} \right )} + \log {\left (1 + \frac {1}{\sqrt {- a^{2} x^{2} + 1}} \right )}\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.39, size = 53, normalized size = 1.51 \begin {gather*} -\frac {1}{2} \, c \log \left (\sqrt {-a^{2} x^{2} + 1} + 1\right ) + \frac {1}{2} \, c \log \left (-\sqrt {-a^{2} x^{2} + 1} + 1\right ) + \sqrt {-a^{2} x^{2} + 1} c \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.77, size = 31, normalized size = 0.89 \begin {gather*} -c\,\left (\mathrm {atanh}\left (\sqrt {1-a^2\,x^2}\right )-\sqrt {1-a^2\,x^2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________