Optimal. Leaf size=233 \[ \frac {7}{8} c^2 \sqrt {1-\frac {1}{a x}} \sqrt {1+\frac {1}{a x}} x-\frac {7}{8} a c^2 \sqrt {1-\frac {1}{a x}} \left (1+\frac {1}{a x}\right )^{3/2} x^2+\frac {7}{12} a^2 c^2 \left (1-\frac {1}{a x}\right )^{3/2} \left (1+\frac {1}{a x}\right )^{3/2} x^3-\frac {7}{20} a^3 c^2 \left (1-\frac {1}{a x}\right )^{5/2} \left (1+\frac {1}{a x}\right )^{3/2} x^4+\frac {1}{5} a^4 c^2 \left (1-\frac {1}{a x}\right )^{7/2} \left (1+\frac {1}{a x}\right )^{3/2} x^5+\frac {7 c^2 \tanh ^{-1}\left (\sqrt {1-\frac {1}{a x}} \sqrt {1+\frac {1}{a x}}\right )}{8 a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 233, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {6326, 6330, 96,
94, 214} \begin {gather*} \frac {1}{5} a^4 c^2 x^5 \left (1-\frac {1}{a x}\right )^{7/2} \left (\frac {1}{a x}+1\right )^{3/2}-\frac {7}{20} a^3 c^2 x^4 \left (1-\frac {1}{a x}\right )^{5/2} \left (\frac {1}{a x}+1\right )^{3/2}+\frac {7}{12} a^2 c^2 x^3 \left (1-\frac {1}{a x}\right )^{3/2} \left (\frac {1}{a x}+1\right )^{3/2}-\frac {7}{8} a c^2 x^2 \sqrt {1-\frac {1}{a x}} \left (\frac {1}{a x}+1\right )^{3/2}+\frac {7}{8} c^2 x \sqrt {1-\frac {1}{a x}} \sqrt {\frac {1}{a x}+1}+\frac {7 c^2 \tanh ^{-1}\left (\sqrt {1-\frac {1}{a x}} \sqrt {\frac {1}{a x}+1}\right )}{8 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 94
Rule 96
Rule 214
Rule 6326
Rule 6330
Rubi steps
\begin {align*} \int e^{-3 \coth ^{-1}(a x)} \left (c-a^2 c x^2\right )^2 \, dx &=\left (a^4 c^2\right ) \int e^{-3 \coth ^{-1}(a x)} \left (1-\frac {1}{a^2 x^2}\right )^2 x^4 \, dx\\ &=-\left (\left (a^4 c^2\right ) \text {Subst}\left (\int \frac {\left (1-\frac {x}{a}\right )^{7/2} \sqrt {1+\frac {x}{a}}}{x^6} \, dx,x,\frac {1}{x}\right )\right )\\ &=\frac {1}{5} a^4 c^2 \left (1-\frac {1}{a x}\right )^{7/2} \left (1+\frac {1}{a x}\right )^{3/2} x^5+\frac {1}{5} \left (7 a^3 c^2\right ) \text {Subst}\left (\int \frac {\left (1-\frac {x}{a}\right )^{5/2} \sqrt {1+\frac {x}{a}}}{x^5} \, dx,x,\frac {1}{x}\right )\\ &=-\frac {7}{20} a^3 c^2 \left (1-\frac {1}{a x}\right )^{5/2} \left (1+\frac {1}{a x}\right )^{3/2} x^4+\frac {1}{5} a^4 c^2 \left (1-\frac {1}{a x}\right )^{7/2} \left (1+\frac {1}{a x}\right )^{3/2} x^5-\frac {1}{4} \left (7 a^2 c^2\right ) \text {Subst}\left (\int \frac {\left (1-\frac {x}{a}\right )^{3/2} \sqrt {1+\frac {x}{a}}}{x^4} \, dx,x,\frac {1}{x}\right )\\ &=\frac {7}{12} a^2 c^2 \left (1-\frac {1}{a x}\right )^{3/2} \left (1+\frac {1}{a x}\right )^{3/2} x^3-\frac {7}{20} a^3 c^2 \left (1-\frac {1}{a x}\right )^{5/2} \left (1+\frac {1}{a x}\right )^{3/2} x^4+\frac {1}{5} a^4 c^2 \left (1-\frac {1}{a x}\right )^{7/2} \left (1+\frac {1}{a x}\right )^{3/2} x^5+\frac {1}{4} \left (7 a c^2\right ) \text {Subst}\left (\int \frac {\sqrt {1-\frac {x}{a}} \sqrt {1+\frac {x}{a}}}{x^3} \, dx,x,\frac {1}{x}\right )\\ &=-\frac {7}{8} a c^2 \sqrt {1-\frac {1}{a x}} \left (1+\frac {1}{a x}\right )^{3/2} x^2+\frac {7}{12} a^2 c^2 \left (1-\frac {1}{a x}\right )^{3/2} \left (1+\frac {1}{a x}\right )^{3/2} x^3-\frac {7}{20} a^3 c^2 \left (1-\frac {1}{a x}\right )^{5/2} \left (1+\frac {1}{a x}\right )^{3/2} x^4+\frac {1}{5} a^4 c^2 \left (1-\frac {1}{a x}\right )^{7/2} \left (1+\frac {1}{a x}\right )^{3/2} x^5-\frac {1}{8} \left (7 c^2\right ) \text {Subst}\left (\int \frac {\sqrt {1+\frac {x}{a}}}{x^2 \sqrt {1-\frac {x}{a}}} \, dx,x,\frac {1}{x}\right )\\ &=\frac {7}{8} c^2 \sqrt {1-\frac {1}{a x}} \sqrt {1+\frac {1}{a x}} x-\frac {7}{8} a c^2 \sqrt {1-\frac {1}{a x}} \left (1+\frac {1}{a x}\right )^{3/2} x^2+\frac {7}{12} a^2 c^2 \left (1-\frac {1}{a x}\right )^{3/2} \left (1+\frac {1}{a x}\right )^{3/2} x^3-\frac {7}{20} a^3 c^2 \left (1-\frac {1}{a x}\right )^{5/2} \left (1+\frac {1}{a x}\right )^{3/2} x^4+\frac {1}{5} a^4 c^2 \left (1-\frac {1}{a x}\right )^{7/2} \left (1+\frac {1}{a x}\right )^{3/2} x^5-\frac {\left (7 c^2\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {1-\frac {x}{a}} \sqrt {1+\frac {x}{a}}} \, dx,x,\frac {1}{x}\right )}{8 a}\\ &=\frac {7}{8} c^2 \sqrt {1-\frac {1}{a x}} \sqrt {1+\frac {1}{a x}} x-\frac {7}{8} a c^2 \sqrt {1-\frac {1}{a x}} \left (1+\frac {1}{a x}\right )^{3/2} x^2+\frac {7}{12} a^2 c^2 \left (1-\frac {1}{a x}\right )^{3/2} \left (1+\frac {1}{a x}\right )^{3/2} x^3-\frac {7}{20} a^3 c^2 \left (1-\frac {1}{a x}\right )^{5/2} \left (1+\frac {1}{a x}\right )^{3/2} x^4+\frac {1}{5} a^4 c^2 \left (1-\frac {1}{a x}\right )^{7/2} \left (1+\frac {1}{a x}\right )^{3/2} x^5+\frac {\left (7 c^2\right ) \text {Subst}\left (\int \frac {1}{\frac {1}{a}-\frac {x^2}{a}} \, dx,x,\sqrt {1-\frac {1}{a x}} \sqrt {1+\frac {1}{a x}}\right )}{8 a^2}\\ &=\frac {7}{8} c^2 \sqrt {1-\frac {1}{a x}} \sqrt {1+\frac {1}{a x}} x-\frac {7}{8} a c^2 \sqrt {1-\frac {1}{a x}} \left (1+\frac {1}{a x}\right )^{3/2} x^2+\frac {7}{12} a^2 c^2 \left (1-\frac {1}{a x}\right )^{3/2} \left (1+\frac {1}{a x}\right )^{3/2} x^3-\frac {7}{20} a^3 c^2 \left (1-\frac {1}{a x}\right )^{5/2} \left (1+\frac {1}{a x}\right )^{3/2} x^4+\frac {1}{5} a^4 c^2 \left (1-\frac {1}{a x}\right )^{7/2} \left (1+\frac {1}{a x}\right )^{3/2} x^5+\frac {7 c^2 \tanh ^{-1}\left (\sqrt {1-\frac {1}{a x}} \sqrt {1+\frac {1}{a x}}\right )}{8 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 79, normalized size = 0.34 \begin {gather*} \frac {c^2 \left (a \sqrt {1-\frac {1}{a^2 x^2}} x \left (-136-15 a x+112 a^2 x^2-90 a^3 x^3+24 a^4 x^4\right )+105 \log \left (\left (1+\sqrt {1-\frac {1}{a^2 x^2}}\right ) x\right )\right )}{120 a} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 192, normalized size = 0.82
method | result | size |
risch | \(\frac {\left (24 a^{4} x^{4}-90 a^{3} x^{3}+112 a^{2} x^{2}-15 a x -136\right ) \left (a x +1\right ) c^{2} \sqrt {\frac {a x -1}{a x +1}}}{120 a}+\frac {7 \ln \left (\frac {a^{2} x}{\sqrt {a^{2}}}+\sqrt {a^{2} x^{2}-1}\right ) c^{2} \sqrt {\frac {a x -1}{a x +1}}\, \sqrt {\left (a x +1\right ) \left (a x -1\right )}}{8 \sqrt {a^{2}}\, \left (a x -1\right )}\) | \(128\) |
default | \(\frac {\left (\frac {a x -1}{a x +1}\right )^{\frac {3}{2}} \left (a x +1\right )^{2} c^{2} \left (24 \left (a^{2} x^{2}-1\right )^{\frac {3}{2}} \sqrt {a^{2}}\, a^{2} x^{2}-90 \sqrt {a^{2}}\, \left (a^{2} x^{2}-1\right )^{\frac {3}{2}} a x +16 \left (a^{2} x^{2}-1\right )^{\frac {3}{2}} \sqrt {a^{2}}-105 \sqrt {a^{2}}\, \sqrt {a^{2} x^{2}-1}\, a x +120 \left (\left (a x +1\right ) \left (a x -1\right )\right )^{\frac {3}{2}} \sqrt {a^{2}}+105 \ln \left (\frac {a^{2} x +\sqrt {a^{2} x^{2}-1}\, \sqrt {a^{2}}}{\sqrt {a^{2}}}\right ) a \right )}{120 a \left (a x -1\right ) \sqrt {\left (a x +1\right ) \left (a x -1\right )}\, \sqrt {a^{2}}}\) | \(192\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 259, normalized size = 1.11 \begin {gather*} \frac {1}{120} \, a {\left (\frac {105 \, c^{2} \log \left (\sqrt {\frac {a x - 1}{a x + 1}} + 1\right )}{a^{2}} - \frac {105 \, c^{2} \log \left (\sqrt {\frac {a x - 1}{a x + 1}} - 1\right )}{a^{2}} - \frac {2 \, {\left (105 \, c^{2} \left (\frac {a x - 1}{a x + 1}\right )^{\frac {9}{2}} + 790 \, c^{2} \left (\frac {a x - 1}{a x + 1}\right )^{\frac {7}{2}} - 896 \, c^{2} \left (\frac {a x - 1}{a x + 1}\right )^{\frac {5}{2}} + 490 \, c^{2} \left (\frac {a x - 1}{a x + 1}\right )^{\frac {3}{2}} - 105 \, c^{2} \sqrt {\frac {a x - 1}{a x + 1}}\right )}}{\frac {5 \, {\left (a x - 1\right )} a^{2}}{a x + 1} - \frac {10 \, {\left (a x - 1\right )}^{2} a^{2}}{{\left (a x + 1\right )}^{2}} + \frac {10 \, {\left (a x - 1\right )}^{3} a^{2}}{{\left (a x + 1\right )}^{3}} - \frac {5 \, {\left (a x - 1\right )}^{4} a^{2}}{{\left (a x + 1\right )}^{4}} + \frac {{\left (a x - 1\right )}^{5} a^{2}}{{\left (a x + 1\right )}^{5}} - a^{2}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 125, normalized size = 0.54 \begin {gather*} \frac {105 \, c^{2} \log \left (\sqrt {\frac {a x - 1}{a x + 1}} + 1\right ) - 105 \, c^{2} \log \left (\sqrt {\frac {a x - 1}{a x + 1}} - 1\right ) + {\left (24 \, a^{5} c^{2} x^{5} - 66 \, a^{4} c^{2} x^{4} + 22 \, a^{3} c^{2} x^{3} + 97 \, a^{2} c^{2} x^{2} - 151 \, a c^{2} x - 136 \, c^{2}\right )} \sqrt {\frac {a x - 1}{a x + 1}}}{120 \, a} \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*} c^{2} \left (\int \left (- \frac {\sqrt {\frac {a x}{a x + 1} - \frac {1}{a x + 1}}}{a x + 1}\right )\, dx + \int \frac {a x \sqrt {\frac {a x}{a x + 1} - \frac {1}{a x + 1}}}{a x + 1}\, dx + \int \frac {2 a^{2} x^{2} \sqrt {\frac {a x}{a x + 1} - \frac {1}{a x + 1}}}{a x + 1}\, dx + \int \left (- \frac {2 a^{3} x^{3} \sqrt {\frac {a x}{a x + 1} - \frac {1}{a x + 1}}}{a x + 1}\right )\, dx + \int \left (- \frac {a^{4} x^{4} \sqrt {\frac {a x}{a x + 1} - \frac {1}{a x + 1}}}{a x + 1}\right )\, dx + \int \frac {a^{5} x^{5} \sqrt {\frac {a x}{a x + 1} - \frac {1}{a x + 1}}}{a x + 1}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 126, normalized size = 0.54 \begin {gather*} -\frac {7 \, c^{2} \log \left ({\left | -x {\left | a \right |} + \sqrt {a^{2} x^{2} - 1} \right |}\right ) \mathrm {sgn}\left (a x + 1\right )}{8 \, {\left | a \right |}} - \frac {1}{120} \, \sqrt {a^{2} x^{2} - 1} {\left ({\left (15 \, c^{2} \mathrm {sgn}\left (a x + 1\right ) - 2 \, {\left (56 \, a c^{2} \mathrm {sgn}\left (a x + 1\right ) + 3 \, {\left (4 \, a^{3} c^{2} x \mathrm {sgn}\left (a x + 1\right ) - 15 \, a^{2} c^{2} \mathrm {sgn}\left (a x + 1\right )\right )} x\right )} x\right )} x + \frac {136 \, c^{2} \mathrm {sgn}\left (a x + 1\right )}{a}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.27, size = 214, normalized size = 0.92 \begin {gather*} \frac {\frac {49\,c^2\,{\left (\frac {a\,x-1}{a\,x+1}\right )}^{3/2}}{6}-\frac {7\,c^2\,\sqrt {\frac {a\,x-1}{a\,x+1}}}{4}-\frac {224\,c^2\,{\left (\frac {a\,x-1}{a\,x+1}\right )}^{5/2}}{15}+\frac {79\,c^2\,{\left (\frac {a\,x-1}{a\,x+1}\right )}^{7/2}}{6}+\frac {7\,c^2\,{\left (\frac {a\,x-1}{a\,x+1}\right )}^{9/2}}{4}}{a-\frac {5\,a\,\left (a\,x-1\right )}{a\,x+1}+\frac {10\,a\,{\left (a\,x-1\right )}^2}{{\left (a\,x+1\right )}^2}-\frac {10\,a\,{\left (a\,x-1\right )}^3}{{\left (a\,x+1\right )}^3}+\frac {5\,a\,{\left (a\,x-1\right )}^4}{{\left (a\,x+1\right )}^4}-\frac {a\,{\left (a\,x-1\right )}^5}{{\left (a\,x+1\right )}^5}}+\frac {7\,c^2\,\mathrm {atanh}\left (\sqrt {\frac {a\,x-1}{a\,x+1}}\right )}{4\,a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________