Optimal. Leaf size=42 \[ 4 a \sqrt {c-\frac {c}{a x}}-\frac {2 a \left (c-\frac {c}{a x}\right )^{3/2}}{3 c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {6302, 6268, 25,
528, 455, 45} \begin {gather*} 4 a \sqrt {c-\frac {c}{a x}}-\frac {2 a \left (c-\frac {c}{a x}\right )^{3/2}}{3 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 25
Rule 45
Rule 455
Rule 528
Rule 6268
Rule 6302
Rubi steps
\begin {align*} \int \frac {e^{2 \coth ^{-1}(a x)} \sqrt {c-\frac {c}{a x}}}{x^2} \, dx &=-\int \frac {e^{2 \tanh ^{-1}(a x)} \sqrt {c-\frac {c}{a x}}}{x^2} \, dx\\ &=-\int \frac {\sqrt {c-\frac {c}{a x}} (1+a x)}{x^2 (1-a x)} \, dx\\ &=\frac {c \int \frac {1+a x}{\sqrt {c-\frac {c}{a x}} x^3} \, dx}{a}\\ &=\frac {c \int \frac {a+\frac {1}{x}}{\sqrt {c-\frac {c}{a x}} x^2} \, dx}{a}\\ &=-\frac {c \text {Subst}\left (\int \frac {a+x}{\sqrt {c-\frac {c x}{a}}} \, dx,x,\frac {1}{x}\right )}{a}\\ &=-\frac {c \text {Subst}\left (\int \left (\frac {2 a}{\sqrt {c-\frac {c x}{a}}}-\frac {a \sqrt {c-\frac {c x}{a}}}{c}\right ) \, dx,x,\frac {1}{x}\right )}{a}\\ &=4 a \sqrt {c-\frac {c}{a x}}-\frac {2 a \left (c-\frac {c}{a x}\right )^{3/2}}{3 c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 28, normalized size = 0.67 \begin {gather*} \frac {2 \sqrt {c-\frac {c}{a x}} (1+5 a x)}{3 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 3 vs. order
2.
time = 0.12, size = 173, normalized size = 4.12
method | result | size |
gosper | \(\frac {2 \left (5 a x +1\right ) \sqrt {\frac {c \left (a x -1\right )}{a x}}}{3 x}\) | \(27\) |
trager | \(\frac {2 \left (5 a x +1\right ) \sqrt {-\frac {-a c x +c}{a x}}}{3 x}\) | \(29\) |
risch | \(\frac {2 \sqrt {\frac {c \left (a x -1\right )}{a x}}\, \left (5 a^{2} x^{2}-4 a x -1\right )}{3 \left (a x -1\right ) x}\) | \(42\) |
default | \(-\frac {\sqrt {\frac {c \left (a x -1\right )}{a x}}\, \left (-6 \sqrt {a \,x^{2}-x}\, a^{\frac {5}{2}} x^{3}-6 a^{\frac {5}{2}} \sqrt {\left (a x -1\right ) x}\, x^{3}+12 a^{\frac {3}{2}} \left (a \,x^{2}-x \right )^{\frac {3}{2}} x +3 \ln \left (\frac {2 \sqrt {a \,x^{2}-x}\, \sqrt {a}+2 a x -1}{2 \sqrt {a}}\right ) a^{2} x^{3}-3 \ln \left (\frac {2 \sqrt {\left (a x -1\right ) x}\, \sqrt {a}+2 a x -1}{2 \sqrt {a}}\right ) a^{2} x^{3}+2 \left (a \,x^{2}-x \right )^{\frac {3}{2}} \sqrt {a}\right )}{3 x^{2} \sqrt {\left (a x -1\right ) x}\, \sqrt {a}}\) | \(173\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.32, size = 28, normalized size = 0.67 \begin {gather*} \frac {2 \, {\left (5 \, a x + 1\right )} \sqrt {\frac {a c x - c}{a x}}}{3 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {- c \left (-1 + \frac {1}{a x}\right )} \left (a x + 1\right )}{x^{2} \left (a x - 1\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.26, size = 24, normalized size = 0.57 \begin {gather*} \frac {2\,\sqrt {c-\frac {c}{a\,x}}\,\left (5\,a\,x+1\right )}{3\,x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________