Optimal. Leaf size=173 \[ \frac {6}{5 a c^2 \left (c-\frac {c}{a x}\right )^{5/2}}+\frac {11}{6 a c^3 \left (c-\frac {c}{a x}\right )^{3/2}}+\frac {21}{4 a c^4 \sqrt {c-\frac {c}{a x}}}-\frac {x}{c^2 \left (c-\frac {c}{a x}\right )^{5/2}}-\frac {5 \tanh ^{-1}\left (\frac {\sqrt {c-\frac {c}{a x}}}{\sqrt {c}}\right )}{a c^{9/2}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {c-\frac {c}{a x}}}{\sqrt {2} \sqrt {c}}\right )}{4 \sqrt {2} a c^{9/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 173, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 9, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {6268, 25, 528,
382, 105, 157, 162, 65, 214} \begin {gather*} -\frac {5 \tanh ^{-1}\left (\frac {\sqrt {c-\frac {c}{a x}}}{\sqrt {c}}\right )}{a c^{9/2}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {c-\frac {c}{a x}}}{\sqrt {2} \sqrt {c}}\right )}{4 \sqrt {2} a c^{9/2}}+\frac {21}{4 a c^4 \sqrt {c-\frac {c}{a x}}}+\frac {11}{6 a c^3 \left (c-\frac {c}{a x}\right )^{3/2}}-\frac {x}{c^2 \left (c-\frac {c}{a x}\right )^{5/2}}+\frac {6}{5 a c^2 \left (c-\frac {c}{a x}\right )^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 25
Rule 65
Rule 105
Rule 157
Rule 162
Rule 214
Rule 382
Rule 528
Rule 6268
Rubi steps
\begin {align*} \int \frac {e^{-2 \tanh ^{-1}(a x)}}{\left (c-\frac {c}{a x}\right )^{9/2}} \, dx &=\int \frac {1-a x}{\left (c-\frac {c}{a x}\right )^{9/2} (1+a x)} \, dx\\ &=-\frac {a \int \frac {x}{\left (c-\frac {c}{a x}\right )^{7/2} (1+a x)} \, dx}{c}\\ &=-\frac {a \int \frac {1}{\left (a+\frac {1}{x}\right ) \left (c-\frac {c}{a x}\right )^{7/2}} \, dx}{c}\\ &=\frac {a \text {Subst}\left (\int \frac {1}{x^2 (a+x) \left (c-\frac {c x}{a}\right )^{7/2}} \, dx,x,\frac {1}{x}\right )}{c}\\ &=-\frac {x}{c^2 \left (c-\frac {c}{a x}\right )^{5/2}}-\frac {\text {Subst}\left (\int \frac {-\frac {5 c}{2}-\frac {7 c x}{2 a}}{x (a+x) \left (c-\frac {c x}{a}\right )^{7/2}} \, dx,x,\frac {1}{x}\right )}{c^2}\\ &=\frac {6}{5 a c^2 \left (c-\frac {c}{a x}\right )^{5/2}}-\frac {x}{c^2 \left (c-\frac {c}{a x}\right )^{5/2}}+\frac {\text {Subst}\left (\int \frac {\frac {25 c^2}{2}+\frac {15 c^2 x}{a}}{x (a+x) \left (c-\frac {c x}{a}\right )^{5/2}} \, dx,x,\frac {1}{x}\right )}{5 c^4}\\ &=\frac {6}{5 a c^2 \left (c-\frac {c}{a x}\right )^{5/2}}+\frac {11}{6 a c^3 \left (c-\frac {c}{a x}\right )^{3/2}}-\frac {x}{c^2 \left (c-\frac {c}{a x}\right )^{5/2}}-\frac {\text {Subst}\left (\int \frac {-\frac {75 c^3}{2}-\frac {165 c^3 x}{4 a}}{x (a+x) \left (c-\frac {c x}{a}\right )^{3/2}} \, dx,x,\frac {1}{x}\right )}{15 c^6}\\ &=\frac {6}{5 a c^2 \left (c-\frac {c}{a x}\right )^{5/2}}+\frac {11}{6 a c^3 \left (c-\frac {c}{a x}\right )^{3/2}}+\frac {21}{4 a c^4 \sqrt {c-\frac {c}{a x}}}-\frac {x}{c^2 \left (c-\frac {c}{a x}\right )^{5/2}}+\frac {\text {Subst}\left (\int \frac {\frac {75 c^4}{2}+\frac {315 c^4 x}{8 a}}{x (a+x) \sqrt {c-\frac {c x}{a}}} \, dx,x,\frac {1}{x}\right )}{15 c^8}\\ &=\frac {6}{5 a c^2 \left (c-\frac {c}{a x}\right )^{5/2}}+\frac {11}{6 a c^3 \left (c-\frac {c}{a x}\right )^{3/2}}+\frac {21}{4 a c^4 \sqrt {c-\frac {c}{a x}}}-\frac {x}{c^2 \left (c-\frac {c}{a x}\right )^{5/2}}+\frac {\text {Subst}\left (\int \frac {1}{(a+x) \sqrt {c-\frac {c x}{a}}} \, dx,x,\frac {1}{x}\right )}{8 a c^4}+\frac {5 \text {Subst}\left (\int \frac {1}{x \sqrt {c-\frac {c x}{a}}} \, dx,x,\frac {1}{x}\right )}{2 a c^4}\\ &=\frac {6}{5 a c^2 \left (c-\frac {c}{a x}\right )^{5/2}}+\frac {11}{6 a c^3 \left (c-\frac {c}{a x}\right )^{3/2}}+\frac {21}{4 a c^4 \sqrt {c-\frac {c}{a x}}}-\frac {x}{c^2 \left (c-\frac {c}{a x}\right )^{5/2}}-\frac {\text {Subst}\left (\int \frac {1}{2 a-\frac {a x^2}{c}} \, dx,x,\sqrt {c-\frac {c}{a x}}\right )}{4 c^5}-\frac {5 \text {Subst}\left (\int \frac {1}{a-\frac {a x^2}{c}} \, dx,x,\sqrt {c-\frac {c}{a x}}\right )}{c^5}\\ &=\frac {6}{5 a c^2 \left (c-\frac {c}{a x}\right )^{5/2}}+\frac {11}{6 a c^3 \left (c-\frac {c}{a x}\right )^{3/2}}+\frac {21}{4 a c^4 \sqrt {c-\frac {c}{a x}}}-\frac {x}{c^2 \left (c-\frac {c}{a x}\right )^{5/2}}-\frac {5 \tanh ^{-1}\left (\frac {\sqrt {c-\frac {c}{a x}}}{\sqrt {c}}\right )}{a c^{9/2}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {c-\frac {c}{a x}}}{\sqrt {2} \sqrt {c}}\right )}{4 \sqrt {2} a c^{9/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.04, size = 82, normalized size = 0.47 \begin {gather*} -\frac {a x^2 \left (5 a x-\, _2F_1\left (-\frac {5}{2},1;-\frac {3}{2};\frac {a-\frac {1}{x}}{2 a}\right )-5 \, _2F_1\left (-\frac {5}{2},1;-\frac {3}{2};1-\frac {1}{a x}\right )\right )}{5 c^4 \sqrt {c-\frac {c}{a x}} (-1+a x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(625\) vs.
\(2(142)=284\).
time = 0.48, size = 626, normalized size = 3.62
method | result | size |
risch | \(-\frac {a x -1}{a \,c^{4} \sqrt {\frac {c \left (a x -1\right )}{a x}}}-\frac {\left (\frac {5 \ln \left (\frac {-\frac {1}{2} a c +a^{2} c x}{\sqrt {a^{2} c}}+\sqrt {a^{2} c \,x^{2}-c x a}\right )}{2 a^{5} \sqrt {a^{2} c}}-\frac {\sqrt {a^{2} c \left (x -\frac {1}{a}\right )^{2}+\left (x -\frac {1}{a}\right ) a c}}{5 a^{9} c \left (x -\frac {1}{a}\right )^{3}}-\frac {37 \sqrt {a^{2} c \left (x -\frac {1}{a}\right )^{2}+\left (x -\frac {1}{a}\right ) a c}}{30 a^{8} c \left (x -\frac {1}{a}\right )^{2}}-\frac {317 \sqrt {a^{2} c \left (x -\frac {1}{a}\right )^{2}+\left (x -\frac {1}{a}\right ) a c}}{60 a^{7} c \left (x -\frac {1}{a}\right )}-\frac {\sqrt {2}\, \ln \left (\frac {4 c -3 \left (x +\frac {1}{a}\right ) a c +2 \sqrt {2}\, \sqrt {c}\, \sqrt {a^{2} c \left (x +\frac {1}{a}\right )^{2}-3 \left (x +\frac {1}{a}\right ) a c +2 c}}{x +\frac {1}{a}}\right )}{16 a^{6} \sqrt {c}}\right ) a^{4} \sqrt {a c x \left (a x -1\right )}}{c^{4} \sqrt {\frac {c \left (a x -1\right )}{a x}}\, x}\) | \(317\) |
default | \(-\frac {\sqrt {\frac {c \left (a x -1\right )}{a x}}\, x \left (1260 a^{\frac {11}{2}} \sqrt {\left (a x -1\right ) x}\, \sqrt {\frac {1}{a}}\, x^{4}-15 a^{\frac {9}{2}} \sqrt {2}\, \ln \left (\frac {2 \sqrt {2}\, \sqrt {\frac {1}{a}}\, \sqrt {\left (a x -1\right ) x}\, a -3 a x +1}{a x +1}\right ) x^{4}-1020 a^{\frac {9}{2}} \left (\left (a x -1\right ) x \right )^{\frac {3}{2}} \sqrt {\frac {1}{a}}\, x^{2}-5040 a^{\frac {9}{2}} \sqrt {\left (a x -1\right ) x}\, \sqrt {\frac {1}{a}}\, x^{3}+60 a^{\frac {7}{2}} \sqrt {2}\, \ln \left (\frac {2 \sqrt {2}\, \sqrt {\frac {1}{a}}\, \sqrt {\left (a x -1\right ) x}\, a -3 a x +1}{a x +1}\right ) x^{3}+1792 a^{\frac {7}{2}} \left (\left (a x -1\right ) x \right )^{\frac {3}{2}} \sqrt {\frac {1}{a}}\, x +7560 a^{\frac {7}{2}} \sqrt {\left (a x -1\right ) x}\, \sqrt {\frac {1}{a}}\, x^{2}+600 \ln \left (\frac {2 \sqrt {\left (a x -1\right ) x}\, \sqrt {a}+2 a x -1}{2 \sqrt {a}}\right ) \sqrt {\frac {1}{a}}\, a^{5} x^{4}-90 a^{\frac {5}{2}} \sqrt {2}\, \ln \left (\frac {2 \sqrt {2}\, \sqrt {\frac {1}{a}}\, \sqrt {\left (a x -1\right ) x}\, a -3 a x +1}{a x +1}\right ) x^{2}-820 a^{\frac {5}{2}} \left (\left (a x -1\right ) x \right )^{\frac {3}{2}} \sqrt {\frac {1}{a}}-2400 \ln \left (\frac {2 \sqrt {\left (a x -1\right ) x}\, \sqrt {a}+2 a x -1}{2 \sqrt {a}}\right ) \sqrt {\frac {1}{a}}\, a^{4} x^{3}-5040 a^{\frac {5}{2}} \sqrt {\left (a x -1\right ) x}\, \sqrt {\frac {1}{a}}\, x +3600 \ln \left (\frac {2 \sqrt {\left (a x -1\right ) x}\, \sqrt {a}+2 a x -1}{2 \sqrt {a}}\right ) \sqrt {\frac {1}{a}}\, a^{3} x^{2}+60 a^{\frac {3}{2}} \sqrt {2}\, \ln \left (\frac {2 \sqrt {2}\, \sqrt {\frac {1}{a}}\, \sqrt {\left (a x -1\right ) x}\, a -3 a x +1}{a x +1}\right ) x +1260 \sqrt {\left (a x -1\right ) x}\, a^{\frac {3}{2}} \sqrt {\frac {1}{a}}-2400 \ln \left (\frac {2 \sqrt {\left (a x -1\right ) x}\, \sqrt {a}+2 a x -1}{2 \sqrt {a}}\right ) \sqrt {\frac {1}{a}}\, a^{2} x -15 \sqrt {2}\, \ln \left (\frac {2 \sqrt {2}\, \sqrt {\frac {1}{a}}\, \sqrt {\left (a x -1\right ) x}\, a -3 a x +1}{a x +1}\right ) \sqrt {a}+600 \ln \left (\frac {2 \sqrt {\left (a x -1\right ) x}\, \sqrt {a}+2 a x -1}{2 \sqrt {a}}\right ) a \sqrt {\frac {1}{a}}\right )}{240 a^{\frac {3}{2}} \sqrt {\left (a x -1\right ) x}\, c^{5} \left (a x -1\right )^{4} \sqrt {\frac {1}{a}}}\) | \(626\) |
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.37, size = 428, normalized size = 2.47 \begin {gather*} \left [\frac {15 \, \sqrt {2} {\left (a^{3} x^{3} - 3 \, a^{2} x^{2} + 3 \, a x - 1\right )} \sqrt {c} \log \left (\frac {2 \, \sqrt {2} a \sqrt {c} x \sqrt {\frac {a c x - c}{a x}} - 3 \, a c x + c}{a x + 1}\right ) + 600 \, {\left (a^{3} x^{3} - 3 \, a^{2} x^{2} + 3 \, a x - 1\right )} \sqrt {c} \log \left (-2 \, a c x + 2 \, a \sqrt {c} x \sqrt {\frac {a c x - c}{a x}} + c\right ) - 4 \, {\left (60 \, a^{4} x^{4} - 497 \, a^{3} x^{3} + 740 \, a^{2} x^{2} - 315 \, a x\right )} \sqrt {\frac {a c x - c}{a x}}}{240 \, {\left (a^{4} c^{5} x^{3} - 3 \, a^{3} c^{5} x^{2} + 3 \, a^{2} c^{5} x - a c^{5}\right )}}, \frac {15 \, \sqrt {2} {\left (a^{3} x^{3} - 3 \, a^{2} x^{2} + 3 \, a x - 1\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {2} \sqrt {-c} \sqrt {\frac {a c x - c}{a x}}}{2 \, c}\right ) + 600 \, {\left (a^{3} x^{3} - 3 \, a^{2} x^{2} + 3 \, a x - 1\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {-c} \sqrt {\frac {a c x - c}{a x}}}{c}\right ) - 2 \, {\left (60 \, a^{4} x^{4} - 497 \, a^{3} x^{3} + 740 \, a^{2} x^{2} - 315 \, a x\right )} \sqrt {\frac {a c x - c}{a x}}}{120 \, {\left (a^{4} c^{5} x^{3} - 3 \, a^{3} c^{5} x^{2} + 3 \, a^{2} c^{5} x - a c^{5}\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 {a x}{a c^{4} x \sqrt {c - \frac {c}{a x}} - 3 c^{4} \sqrt {c - \frac {c}{a x}} + \frac {2 c^{4} \sqrt {c - \frac {c}{a x}}}{a x} + \frac {2 c^{4} \sqrt {c - \frac {c}{a x}}}{a^{2} x^{2}} - \frac {3 c^{4} \sqrt {c - \frac {c}{a x}}}{a^{3} x^{3}} + \frac {c^{4} \sqrt {c - \frac {c}{a x}}}{a^{4} x^{4}}}\, dx - \int \left (- \frac {1}{a c^{4} x \sqrt {c - \frac {c}{a x}} - 3 c^{4} \sqrt {c - \frac {c}{a x}} + \frac {2 c^{4} \sqrt {c - \frac {c}{a x}}}{a x} + \frac {2 c^{4} \sqrt {c - \frac {c}{a x}}}{a^{2} x^{2}} - \frac {3 c^{4} \sqrt {c - \frac {c}{a x}}}{a^{3} x^{3}} + \frac {c^{4} \sqrt {c - \frac {c}{a x}}}{a^{4} x^{4}}}\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 [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} -\int \frac {a^2\,x^2-1}{{\left (c-\frac {c}{a\,x}\right )}^{9/2}\,{\left (a\,x+1\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________