Optimal. Leaf size=46 \[ \frac{1}{2} a^2 c \tanh ^{-1}\left (\sqrt{1-a^2 x^2}\right )-\frac{c \sqrt{1-a^2 x^2}}{2 x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0578259, antiderivative size = 46, normalized size of antiderivative = 1., 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 = {6128, 266, 47, 63, 208} \[ \frac{1}{2} a^2 c \tanh ^{-1}\left (\sqrt{1-a^2 x^2}\right )-\frac{c \sqrt{1-a^2 x^2}}{2 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6128
Rule 266
Rule 47
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{e^{\tanh ^{-1}(a x)} (c-a c x)}{x^3} \, dx &=c \int \frac{\sqrt{1-a^2 x^2}}{x^3} \, dx\\ &=\frac{1}{2} c \operatorname{Subst}\left (\int \frac{\sqrt{1-a^2 x}}{x^2} \, dx,x,x^2\right )\\ &=-\frac{c \sqrt{1-a^2 x^2}}{2 x^2}-\frac{1}{4} \left (a^2 c\right ) \operatorname{Subst}\left (\int \frac{1}{x \sqrt{1-a^2 x}} \, dx,x,x^2\right )\\ &=-\frac{c \sqrt{1-a^2 x^2}}{2 x^2}+\frac{1}{2} c \operatorname{Subst}\left (\int \frac{1}{\frac{1}{a^2}-\frac{x^2}{a^2}} \, dx,x,\sqrt{1-a^2 x^2}\right )\\ &=-\frac{c \sqrt{1-a^2 x^2}}{2 x^2}+\frac{1}{2} a^2 c \tanh ^{-1}\left (\sqrt{1-a^2 x^2}\right )\\ \end{align*}
Mathematica [A] time = 0.0228295, size = 67, normalized size = 1.46 \[ \frac{c \left (a^2 x^2+a^2 x^2 \sqrt{1-a^2 x^2} \tanh ^{-1}\left (\sqrt{1-a^2 x^2}\right )-1\right )}{2 x^2 \sqrt{1-a^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.039, size = 40, normalized size = 0.9 \begin{align*} -c \left ( -{\frac{{a}^{2}}{2}{\it Artanh} \left ({\frac{1}{\sqrt{-{a}^{2}{x}^{2}+1}}} \right ) }+{\frac{1}{2\,{x}^{2}}\sqrt{-{a}^{2}{x}^{2}+1}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.42605, size = 69, normalized size = 1.5 \begin{align*} \frac{1}{2} \, a^{2} c \log \left (\frac{2 \, \sqrt{-a^{2} x^{2} + 1}}{{\left | x \right |}} + \frac{2}{{\left | x \right |}}\right ) - \frac{\sqrt{-a^{2} x^{2} + 1} c}{2 \, x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.68195, size = 104, normalized size = 2.26 \begin{align*} -\frac{a^{2} c x^{2} \log \left (\frac{\sqrt{-a^{2} x^{2} + 1} - 1}{x}\right ) + \sqrt{-a^{2} x^{2} + 1} c}{2 \, x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 21.6313, size = 78, normalized size = 1.7 \begin{align*} \frac{a^{2} \left (- \frac{c \log{\left (-1 + \frac{1}{\sqrt{- a^{2} x^{2} + 1}} \right )}}{2} + \frac{c \log{\left (1 + \frac{1}{\sqrt{- a^{2} x^{2} + 1}} \right )}}{2} - \frac{c}{2 \left (1 + \frac{1}{\sqrt{- a^{2} x^{2} + 1}}\right )} - \frac{c}{2 \left (-1 + \frac{1}{\sqrt{- a^{2} x^{2} + 1}}\right )}\right )}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.28067, size = 82, normalized size = 1.78 \begin{align*} -\frac{1}{4} \, a^{2} c{\left (\frac{2 \, \sqrt{-a^{2} x^{2} + 1}}{a^{2} x^{2}} - \log \left (\sqrt{-a^{2} x^{2} + 1} + 1\right ) + \log \left (-\sqrt{-a^{2} x^{2} + 1} + 1\right )\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]