Optimal. Leaf size=39 \[ 2 \sqrt{c-a c x}+2 \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{c-a c x}}{\sqrt{c}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.198014, antiderivative size = 39, 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, 80, 63, 208} \[ 2 \sqrt{c-a c x}+2 \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 80
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{e^{2 \coth ^{-1}(a x)} \sqrt{c-a c x}}{x} \, dx &=-\int \frac{e^{2 \tanh ^{-1}(a x)} \sqrt{c-a c x}}{x} \, dx\\ &=-\int \frac{(1+a x) \sqrt{c-a c x}}{x (1-a x)} \, dx\\ &=-\left (c \int \frac{1+a x}{x \sqrt{c-a c x}} \, dx\right )\\ &=2 \sqrt{c-a c x}-c \int \frac{1}{x \sqrt{c-a c x}} \, dx\\ &=2 \sqrt{c-a c x}+\frac{2 \operatorname{Subst}\left (\int \frac{1}{\frac{1}{a}-\frac{x^2}{a c}} \, dx,x,\sqrt{c-a c x}\right )}{a}\\ &=2 \sqrt{c-a c x}+2 \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{c-a c x}}{\sqrt{c}}\right )\\ \end{align*}
Mathematica [A] time = 0.0302798, size = 39, normalized size = 1. \[ 2 \sqrt{c-a c x}+2 \sqrt{c} \tanh ^{-1}\left (\frac{\sqrt{c-a c x}}{\sqrt{c}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 32, normalized size = 0.8 \begin{align*} 2\,{\it Artanh} \left ({\frac{\sqrt{-acx+c}}{\sqrt{c}}} \right ) \sqrt{c}+2\,\sqrt{-acx+c} \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.66075, size = 208, normalized size = 5.33 \begin{align*} \left [\sqrt{c} \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 \, \sqrt{-c} \arctan \left (\frac{\sqrt{-a c x + c} \sqrt{-c}}{c}\right ) + 2 \, \sqrt{-a c x + c}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 7.97232, size = 39, normalized size = 1. \begin{align*} - \frac{2 c \operatorname{atan}{\left (\frac{\sqrt{- a c x + c}}{\sqrt{- c}} \right )}}{\sqrt{- c}} + 2 \sqrt{- a c x + c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14801, size = 49, normalized size = 1.26 \begin{align*} -\frac{2 \, c \arctan \left (\frac{\sqrt{-a c x + c}}{\sqrt{-c}}\right )}{\sqrt{-c}} + 2 \, \sqrt{-a c x + c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]