Optimal. Leaf size=42 \[ \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.203317, antiderivative size = 42, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.261, Rules used = {6167, 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 6167
Rule 6130
Rule 21
Rule 78
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{e^{2 \coth ^{-1}(a x)} \sqrt{c-a c x}}{x^2} \, dx &=-\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\\ &=-\left (c \int \frac{1+a x}{x^2 \sqrt{c-a c x}} \, dx\right )\\ &=\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.0310648, size = 42, 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.052, 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.58873, size = 235, normalized size = 5.6 \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.1982, size = 119, normalized size = 2.83 \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.12742, size = 53, 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]