Optimal. Leaf size=176 \[ -\frac {a^2 \left (c-\frac {c}{a x}\right )^{5/2} x^3 \sqrt {1+a x}}{(1-a x)^{5/2}}+\frac {2 a \left (c-\frac {c}{a x}\right )^{5/2} x^2 (1+a x)^{3/2}}{3 (1-a x)^{5/2}}-\frac {2 \left (c-\frac {c}{a x}\right )^{5/2} x \left (1-a^2 x^2\right )^{5/2}}{3 (1-a x)^5}-\frac {a^{3/2} \left (c-\frac {c}{a x}\right )^{5/2} x^{5/2} \sinh ^{-1}\left (\sqrt {a} \sqrt {x}\right )}{(1-a x)^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 176, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {6269, 6263,
893, 862, 49, 52, 56, 221} \begin {gather*} -\frac {a^{3/2} x^{5/2} \left (c-\frac {c}{a x}\right )^{5/2} \sinh ^{-1}\left (\sqrt {a} \sqrt {x}\right )}{(1-a x)^{5/2}}-\frac {a^2 x^3 \sqrt {a x+1} \left (c-\frac {c}{a x}\right )^{5/2}}{(1-a x)^{5/2}}-\frac {2 x \left (1-a^2 x^2\right )^{5/2} \left (c-\frac {c}{a x}\right )^{5/2}}{3 (1-a x)^5}+\frac {2 a x^2 (a x+1)^{3/2} \left (c-\frac {c}{a x}\right )^{5/2}}{3 (1-a x)^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 49
Rule 52
Rule 56
Rule 221
Rule 862
Rule 893
Rule 6263
Rule 6269
Rubi steps
\begin {align*} \int e^{3 \tanh ^{-1}(a x)} \left (c-\frac {c}{a x}\right )^{5/2} \, dx &=\frac {\left (\left (c-\frac {c}{a x}\right )^{5/2} x^{5/2}\right ) \int \frac {e^{3 \tanh ^{-1}(a x)} (1-a x)^{5/2}}{x^{5/2}} \, dx}{(1-a x)^{5/2}}\\ &=\frac {\left (\left (c-\frac {c}{a x}\right )^{5/2} x^{5/2}\right ) \int \frac {\left (1-a^2 x^2\right )^{3/2}}{x^{5/2} \sqrt {1-a x}} \, dx}{(1-a x)^{5/2}}\\ &=-\frac {2 \left (c-\frac {c}{a x}\right )^{5/2} x \left (1-a^2 x^2\right )^{5/2}}{3 (1-a x)^5}-\frac {\left (a \left (c-\frac {c}{a x}\right )^{5/2} x^{5/2}\right ) \int \frac {\left (1-a^2 x^2\right )^{3/2}}{x^{3/2} (1-a x)^{3/2}} \, dx}{3 (1-a x)^{5/2}}\\ &=-\frac {2 \left (c-\frac {c}{a x}\right )^{5/2} x \left (1-a^2 x^2\right )^{5/2}}{3 (1-a x)^5}-\frac {\left (a \left (c-\frac {c}{a x}\right )^{5/2} x^{5/2}\right ) \int \frac {(1+a x)^{3/2}}{x^{3/2}} \, dx}{3 (1-a x)^{5/2}}\\ &=\frac {2 a \left (c-\frac {c}{a x}\right )^{5/2} x^2 (1+a x)^{3/2}}{3 (1-a x)^{5/2}}-\frac {2 \left (c-\frac {c}{a x}\right )^{5/2} x \left (1-a^2 x^2\right )^{5/2}}{3 (1-a x)^5}-\frac {\left (a^2 \left (c-\frac {c}{a x}\right )^{5/2} x^{5/2}\right ) \int \frac {\sqrt {1+a x}}{\sqrt {x}} \, dx}{(1-a x)^{5/2}}\\ &=-\frac {a^2 \left (c-\frac {c}{a x}\right )^{5/2} x^3 \sqrt {1+a x}}{(1-a x)^{5/2}}+\frac {2 a \left (c-\frac {c}{a x}\right )^{5/2} x^2 (1+a x)^{3/2}}{3 (1-a x)^{5/2}}-\frac {2 \left (c-\frac {c}{a x}\right )^{5/2} x \left (1-a^2 x^2\right )^{5/2}}{3 (1-a x)^5}-\frac {\left (a^2 \left (c-\frac {c}{a x}\right )^{5/2} x^{5/2}\right ) \int \frac {1}{\sqrt {x} \sqrt {1+a x}} \, dx}{2 (1-a x)^{5/2}}\\ &=-\frac {a^2 \left (c-\frac {c}{a x}\right )^{5/2} x^3 \sqrt {1+a x}}{(1-a x)^{5/2}}+\frac {2 a \left (c-\frac {c}{a x}\right )^{5/2} x^2 (1+a x)^{3/2}}{3 (1-a x)^{5/2}}-\frac {2 \left (c-\frac {c}{a x}\right )^{5/2} x \left (1-a^2 x^2\right )^{5/2}}{3 (1-a x)^5}-\frac {\left (a^2 \left (c-\frac {c}{a x}\right )^{5/2} x^{5/2}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+a x^2}} \, dx,x,\sqrt {x}\right )}{(1-a x)^{5/2}}\\ &=-\frac {a^2 \left (c-\frac {c}{a x}\right )^{5/2} x^3 \sqrt {1+a x}}{(1-a x)^{5/2}}+\frac {2 a \left (c-\frac {c}{a x}\right )^{5/2} x^2 (1+a x)^{3/2}}{3 (1-a x)^{5/2}}-\frac {2 \left (c-\frac {c}{a x}\right )^{5/2} x \left (1-a^2 x^2\right )^{5/2}}{3 (1-a x)^5}-\frac {a^{3/2} \left (c-\frac {c}{a x}\right )^{5/2} x^{5/2} \sinh ^{-1}\left (\sqrt {a} \sqrt {x}\right )}{(1-a x)^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.03, size = 66, normalized size = 0.38 \begin {gather*} -\frac {2 c^2 \sqrt {c-\frac {c}{a x}} \left ((1+a x)^{5/2}-a x \, _2F_1\left (-\frac {3}{2},-\frac {1}{2};\frac {1}{2};-a x\right )\right )}{3 a^2 x \sqrt {1-a x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.92, size = 136, normalized size = 0.77
method | result | size |
default | \(\frac {\sqrt {\frac {c \left (a x -1\right )}{a x}}\, c^{2} \sqrt {-a^{2} x^{2}+1}\, \left (6 a^{\frac {5}{2}} x^{2} \sqrt {-\left (a x +1\right ) x}+4 a^{\frac {3}{2}} x \sqrt {-\left (a x +1\right ) x}-3 \arctan \left (\frac {2 a x +1}{2 \sqrt {a}\, \sqrt {-\left (a x +1\right ) x}}\right ) a^{2} x^{2}+4 \sqrt {a}\, \sqrt {-\left (a x +1\right ) x}\right )}{6 x \,a^{\frac {5}{2}} \left (a x -1\right ) \sqrt {-\left (a x +1\right ) x}}\) | \(136\) |
risch | \(-\frac {\left (3 a^{3} x^{3}+5 a^{2} x^{2}+4 a x +2\right ) c^{2} \sqrt {\frac {c \left (a x -1\right )}{a x}}\, \sqrt {\frac {a c x \left (-a^{2} x^{2}+1\right )}{a x -1}}}{3 x \sqrt {-a c x \left (a x +1\right )}\, \sqrt {-a^{2} x^{2}+1}\, a^{2}}-\frac {\arctan \left (\frac {\sqrt {a^{2} c}\, \left (x +\frac {1}{2 a}\right )}{\sqrt {-a^{2} c \,x^{2}-c x a}}\right ) c^{2} \sqrt {\frac {c \left (a x -1\right )}{a x}}\, \sqrt {\frac {a c x \left (-a^{2} x^{2}+1\right )}{a x -1}}}{2 \sqrt {a^{2} c}\, \sqrt {-a^{2} x^{2}+1}}\) | \(192\) |
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 = 330, normalized size = 1.88 \begin {gather*} \left [\frac {3 \, {\left (a^{2} c^{2} x^{2} - a c^{2} x\right )} \sqrt {-c} \log \left (-\frac {8 \, a^{3} c x^{3} - 7 \, a c x - 4 \, {\left (2 \, a^{2} x^{2} + a x\right )} \sqrt {-a^{2} x^{2} + 1} \sqrt {-c} \sqrt {\frac {a c x - c}{a x}} - c}{a x - 1}\right ) + 4 \, {\left (3 \, a^{2} c^{2} x^{2} + 2 \, a c^{2} x + 2 \, c^{2}\right )} \sqrt {-a^{2} x^{2} + 1} \sqrt {\frac {a c x - c}{a x}}}{12 \, {\left (a^{3} x^{2} - a^{2} x\right )}}, \frac {3 \, {\left (a^{2} c^{2} x^{2} - a c^{2} x\right )} \sqrt {c} \arctan \left (\frac {2 \, \sqrt {-a^{2} x^{2} + 1} a \sqrt {c} x \sqrt {\frac {a c x - c}{a x}}}{2 \, a^{2} c x^{2} - a c x - c}\right ) + 2 \, {\left (3 \, a^{2} c^{2} x^{2} + 2 \, a c^{2} x + 2 \, c^{2}\right )} \sqrt {-a^{2} x^{2} + 1} \sqrt {\frac {a c x - c}{a x}}}{6 \, {\left (a^{3} x^{2} - a^{2} x\right )}}\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 {\left (- c \left (-1 + \frac {1}{a x}\right )\right )^{\frac {5}{2}} \left (a x + 1\right )^{3}}{\left (- \left (a x - 1\right ) \left (a x + 1\right )\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \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 (c-\frac {c}{a\,x}\right )}^{5/2}\,{\left (a\,x+1\right )}^3}{{\left (1-a^2\,x^2\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________