Optimal. Leaf size=29 \[ -\frac{c \sqrt{1-a^2 x^2}}{x}-a c \sin ^{-1}(a x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0429045, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.176, Rules used = {6128, 277, 216} \[ -\frac{c \sqrt{1-a^2 x^2}}{x}-a c \sin ^{-1}(a x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6128
Rule 277
Rule 216
Rubi steps
\begin{align*} \int \frac{e^{\tanh ^{-1}(a x)} (c-a c x)}{x^2} \, dx &=c \int \frac{\sqrt{1-a^2 x^2}}{x^2} \, dx\\ &=-\frac{c \sqrt{1-a^2 x^2}}{x}-\left (a^2 c\right ) \int \frac{1}{\sqrt{1-a^2 x^2}} \, dx\\ &=-\frac{c \sqrt{1-a^2 x^2}}{x}-a c \sin ^{-1}(a x)\\ \end{align*}
Mathematica [A] time = 0.0285526, size = 28, normalized size = 0.97 \[ -\frac{c \left (\sqrt{1-a^2 x^2}+a x \sin ^{-1}(a x)\right )}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.039, size = 51, normalized size = 1.8 \begin{align*} -{{a}^{2}c\arctan \left ({x\sqrt{{a}^{2}}{\frac{1}{\sqrt{-{a}^{2}{x}^{2}+1}}}} \right ){\frac{1}{\sqrt{{a}^{2}}}}}-{\frac{c}{x}\sqrt{-{a}^{2}{x}^{2}+1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.44362, size = 55, normalized size = 1.9 \begin{align*} -\frac{a^{2} c \arcsin \left (\frac{a^{2} x}{\sqrt{a^{2}}}\right )}{\sqrt{a^{2}}} - \frac{\sqrt{-a^{2} x^{2} + 1} c}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.68843, size = 101, normalized size = 3.48 \begin{align*} \frac{2 \, a c x \arctan \left (\frac{\sqrt{-a^{2} x^{2} + 1} - 1}{a x}\right ) - \sqrt{-a^{2} x^{2} + 1} c}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 2.96254, size = 88, normalized size = 3.03 \begin{align*} - a^{2} c \left (\begin{cases} \sqrt{\frac{1}{a^{2}}} \operatorname{asin}{\left (x \sqrt{a^{2}} \right )} & \text{for}\: a^{2} > 0 \\\sqrt{- \frac{1}{a^{2}}} \operatorname{asinh}{\left (x \sqrt{- a^{2}} \right )} & \text{for}\: a^{2} < 0 \end{cases}\right ) + c \left (\begin{cases} - \frac{i \sqrt{a^{2} x^{2} - 1}}{x} & \text{for}\: \left |{a^{2} x^{2}}\right | > 1 \\- \frac{\sqrt{- a^{2} x^{2} + 1}}{x} & \text{otherwise} \end{cases}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.15102, size = 100, normalized size = 3.45 \begin{align*} \frac{a^{4} c x}{2 \,{\left (\sqrt{-a^{2} x^{2} + 1}{\left | a \right |} + a\right )}{\left | a \right |}} - \frac{a^{2} c \arcsin \left (a x\right ) \mathrm{sgn}\left (a\right )}{{\left | a \right |}} - \frac{{\left (\sqrt{-a^{2} x^{2} + 1}{\left | a \right |} + a\right )} c}{2 \, x{\left | a \right |}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]