Optimal. Leaf size=107 \[ \frac {8 c^2 (1-a x)^{3/2}}{\sqrt {1+a x} (c-a c x)^{3/2}}+\frac {2 c^2 (1-a x)^{3/2} \sqrt {1+a x}}{(c-a c x)^{3/2}}-\frac {2 c^2 (1-a x)^{3/2} \tanh ^{-1}\left (\sqrt {1+a x}\right )}{(c-a c x)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 107, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {6265, 23, 89,
65, 214} \begin {gather*} \frac {2 c^2 (1-a x)^{3/2} \sqrt {a x+1}}{(c-a c x)^{3/2}}+\frac {8 c^2 (1-a x)^{3/2}}{\sqrt {a x+1} (c-a c x)^{3/2}}-\frac {2 c^2 (1-a x)^{3/2} \tanh ^{-1}\left (\sqrt {a x+1}\right )}{(c-a c x)^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 23
Rule 65
Rule 89
Rule 214
Rule 6265
Rubi steps
\begin {align*} \int \frac {e^{-3 \tanh ^{-1}(a x)} \sqrt {c-a c x}}{x} \, dx &=\int \frac {(1-a x)^{3/2} \sqrt {c-a c x}}{x (1+a x)^{3/2}} \, dx\\ &=\frac {(1-a x)^{3/2} \int \frac {(c-a c x)^2}{x (1+a x)^{3/2}} \, dx}{(c-a c x)^{3/2}}\\ &=\frac {(1-a x)^{3/2} \int \left (-\frac {4 a c^2}{(1+a x)^{3/2}}+\frac {a c^2}{\sqrt {1+a x}}+\frac {c^2}{x \sqrt {1+a x}}\right ) \, dx}{(c-a c x)^{3/2}}\\ &=\frac {8 c^2 (1-a x)^{3/2}}{\sqrt {1+a x} (c-a c x)^{3/2}}+\frac {2 c^2 (1-a x)^{3/2} \sqrt {1+a x}}{(c-a c x)^{3/2}}+\frac {\left (c^2 (1-a x)^{3/2}\right ) \int \frac {1}{x \sqrt {1+a x}} \, dx}{(c-a c x)^{3/2}}\\ &=\frac {8 c^2 (1-a x)^{3/2}}{\sqrt {1+a x} (c-a c x)^{3/2}}+\frac {2 c^2 (1-a x)^{3/2} \sqrt {1+a x}}{(c-a c x)^{3/2}}+\frac {\left (2 c^2 (1-a x)^{3/2}\right ) \text {Subst}\left (\int \frac {1}{-\frac {1}{a}+\frac {x^2}{a}} \, dx,x,\sqrt {1+a x}\right )}{a (c-a c x)^{3/2}}\\ &=\frac {8 c^2 (1-a x)^{3/2}}{\sqrt {1+a x} (c-a c x)^{3/2}}+\frac {2 c^2 (1-a x)^{3/2} \sqrt {1+a x}}{(c-a c x)^{3/2}}-\frac {2 c^2 (1-a x)^{3/2} \tanh ^{-1}\left (\sqrt {1+a x}\right )}{(c-a c x)^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.03, size = 51, normalized size = 0.48 \begin {gather*} \frac {2 c \sqrt {1-a x} \left (4+a x+\, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};1+a x\right )\right )}{\sqrt {1+a x} \sqrt {c-a c x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.10, size = 78, normalized size = 0.73
method | result | size |
default | \(\frac {2 \sqrt {-a^{2} x^{2}+1}\, \sqrt {-c \left (a x -1\right )}\, \left (\sqrt {c}\, \arctanh \left (\frac {\sqrt {\left (a x +1\right ) c}}{\sqrt {c}}\right ) \sqrt {\left (a x +1\right ) c}-c x a -5 c \right )}{\left (a x -1\right ) \left (a x +1\right ) c}\) | \(78\) |
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.38, size = 209, normalized size = 1.95 \begin {gather*} \left [\frac {{\left (a^{2} x^{2} - 1\right )} \sqrt {c} \log \left (-\frac {a^{2} c x^{2} + a c x + 2 \, \sqrt {-a^{2} x^{2} + 1} \sqrt {-a c x + c} \sqrt {c} - 2 \, c}{a x^{2} - x}\right ) - 2 \, \sqrt {-a^{2} x^{2} + 1} \sqrt {-a c x + c} {\left (a x + 5\right )}}{a^{2} x^{2} - 1}, -\frac {2 \, {\left ({\left (a^{2} x^{2} - 1\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {-a^{2} x^{2} + 1} \sqrt {-a c x + c} \sqrt {-c}}{a^{2} c x^{2} - c}\right ) + \sqrt {-a^{2} x^{2} + 1} \sqrt {-a c x + c} {\left (a x + 5\right )}\right )}}{a^{2} x^{2} - 1}\right ] \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 (a x - 1\right )} \left (- \left (a x - 1\right ) \left (a x + 1\right )\right )^{\frac {3}{2}}}{x \left (a x + 1\right )^{3}}\, 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 [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (1-a^2\,x^2\right )}^{3/2}\,\sqrt {c-a\,c\,x}}{x\,{\left (a\,x+1\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________