Optimal. Leaf size=43 \[ -\frac{\sqrt{c-a c x}}{x}-3 a \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{c-a c x}}{\sqrt{c}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.106619, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.217, Rules used = {6130, 21, 78, 63, 208} \[ -\frac{\sqrt{c-a c x}}{x}-3 a \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{c-a c x}}{\sqrt{c}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6130
Rule 21
Rule 78
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{e^{2 \tanh ^{-1}(a x)} \sqrt{c-a c x}}{x^2} \, dx &=\int \frac{(1+a x) \sqrt{c-a c x}}{x^2 (1-a x)} \, dx\\ &=c \int \frac{1+a x}{x^2 \sqrt{c-a c x}} \, dx\\ &=-\frac{\sqrt{c-a c x}}{x}+\frac{1}{2} (3 a c) \int \frac{1}{x \sqrt{c-a c x}} \, dx\\ &=-\frac{\sqrt{c-a c x}}{x}-3 \operatorname{Subst}\left (\int \frac{1}{\frac{1}{a}-\frac{x^2}{a c}} \, dx,x,\sqrt{c-a c x}\right )\\ &=-\frac{\sqrt{c-a c x}}{x}-3 a \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{c-a c x}}{\sqrt{c}}\right )\\ \end{align*}
Mathematica [A] time = 0.0279141, size = 43, normalized size = 1. \[ -\frac{\sqrt{c-a c x}}{x}-3 a \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{c-a c x}}{\sqrt{c}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.04, size = 45, normalized size = 1.1 \begin{align*} 2\,ac \left ( -1/2\,{\frac{\sqrt{-acx+c}}{acx}}-3/2\,{\frac{1}{\sqrt{c}}{\it Artanh} \left ({\frac{\sqrt{-acx+c}}{\sqrt{c}}} \right ) } \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.98908, size = 234, normalized size = 5.44 \begin{align*} \left [\frac{3 \, a \sqrt{c} x \log \left (\frac{a c x + 2 \, \sqrt{-a c x + c} \sqrt{c} - 2 \, c}{x}\right ) - 2 \, \sqrt{-a c x + c}}{2 \, x}, \frac{3 \, a \sqrt{-c} x \arctan \left (\frac{\sqrt{-a c x + c} \sqrt{-c}}{c}\right ) - \sqrt{-a c x + c}}{x}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 12.9676, size = 119, normalized size = 2.77 \begin{align*} \frac{a c^{2} \sqrt{\frac{1}{c^{3}}} \log{\left (- c^{2} \sqrt{\frac{1}{c^{3}}} + \sqrt{- a c x + c} \right )}}{2} - \frac{a c^{2} \sqrt{\frac{1}{c^{3}}} \log{\left (c^{2} \sqrt{\frac{1}{c^{3}}} + \sqrt{- a c x + c} \right )}}{2} + \frac{2 a c \operatorname{atan}{\left (\frac{\sqrt{- a c x + c}}{\sqrt{- c}} \right )}}{\sqrt{- c}} - \frac{\sqrt{- a c x + c}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.23356, size = 54, normalized size = 1.26 \begin{align*} \frac{3 \, a c \arctan \left (\frac{\sqrt{-a c x + c}}{\sqrt{-c}}\right )}{\sqrt{-c}} - \frac{\sqrt{-a c x + c}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]