Optimal. Leaf size=104 \[ -\frac {6 \sqrt {1-a^2 x^2}}{a c^2 (1-a x)}+\frac {\left (1-a^2 x^2\right )^{3/2}}{3 a c^2 (1-a x)^3}+\frac {\left (1-a^2 x^2\right )^{3/2}}{a c^2 (1-a x)^2}+\frac {3 \text {ArcSin}(a x)}{a c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 104, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {6266, 6263,
1653, 807, 677, 222} \begin {gather*} \frac {\left (1-a^2 x^2\right )^{3/2}}{a c^2 (1-a x)^2}+\frac {\left (1-a^2 x^2\right )^{3/2}}{3 a c^2 (1-a x)^3}-\frac {6 \sqrt {1-a^2 x^2}}{a c^2 (1-a x)}+\frac {3 \text {ArcSin}(a x)}{a c^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 677
Rule 807
Rule 1653
Rule 6263
Rule 6266
Rubi steps
\begin {align*} \int \frac {e^{\tanh ^{-1}(a x)}}{\left (c-\frac {c}{a x}\right )^2} \, dx &=\frac {a^2 \int \frac {e^{\tanh ^{-1}(a x)} x^2}{(1-a x)^2} \, dx}{c^2}\\ &=\frac {a^2 \int \frac {x^2 \sqrt {1-a^2 x^2}}{(1-a x)^3} \, dx}{c^2}\\ &=\frac {\left (1-a^2 x^2\right )^{3/2}}{a c^2 (1-a x)^2}-\frac {\int \frac {\left (2 a^2-3 a^3 x\right ) \sqrt {1-a^2 x^2}}{(1-a x)^3} \, dx}{a^2 c^2}\\ &=\frac {\left (1-a^2 x^2\right )^{3/2}}{3 a c^2 (1-a x)^3}+\frac {\left (1-a^2 x^2\right )^{3/2}}{a c^2 (1-a x)^2}-\frac {3 \int \frac {\sqrt {1-a^2 x^2}}{(1-a x)^2} \, dx}{c^2}\\ &=-\frac {6 \sqrt {1-a^2 x^2}}{a c^2 (1-a x)}+\frac {\left (1-a^2 x^2\right )^{3/2}}{3 a c^2 (1-a x)^3}+\frac {\left (1-a^2 x^2\right )^{3/2}}{a c^2 (1-a x)^2}+\frac {3 \int \frac {1}{\sqrt {1-a^2 x^2}} \, dx}{c^2}\\ &=-\frac {6 \sqrt {1-a^2 x^2}}{a c^2 (1-a x)}+\frac {\left (1-a^2 x^2\right )^{3/2}}{3 a c^2 (1-a x)^3}+\frac {\left (1-a^2 x^2\right )^{3/2}}{a c^2 (1-a x)^2}+\frac {3 \sin ^{-1}(a x)}{a c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 53, normalized size = 0.51 \begin {gather*} \frac {\frac {\left (-14+19 a x-3 a^2 x^2\right ) \sqrt {1-a^2 x^2}}{(-1+a x)^2}+9 \text {ArcSin}(a x)}{3 a c^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.38, size = 182, normalized size = 1.75
method | result | size |
risch | \(\frac {a^{2} x^{2}-1}{a \sqrt {-a^{2} x^{2}+1}\, c^{2}}+\frac {\left (\frac {3 \arctan \left (\frac {\sqrt {a^{2}}\, x}{\sqrt {-a^{2} x^{2}+1}}\right )}{a^{2} \sqrt {a^{2}}}+\frac {2 \sqrt {-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )}}{3 a^{5} \left (x -\frac {1}{a}\right )^{2}}+\frac {13 \sqrt {-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )}}{3 a^{4} \left (x -\frac {1}{a}\right )}\right ) a^{2}}{c^{2}}\) | \(150\) |
default | \(\frac {a^{2} \left (-\frac {\sqrt {-a^{2} x^{2}+1}}{a^{3}}+\frac {3 \arctan \left (\frac {\sqrt {a^{2}}\, x}{\sqrt {-a^{2} x^{2}+1}}\right )}{a^{2} \sqrt {a^{2}}}+\frac {\frac {2 \sqrt {-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )}}{3 a \left (x -\frac {1}{a}\right )^{2}}-\frac {2 \sqrt {-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )}}{3 \left (x -\frac {1}{a}\right )}}{a^{4}}+\frac {5 \sqrt {-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )}}{a^{4} \left (x -\frac {1}{a}\right )}\right )}{c^{2}}\) | \(182\) |
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.35, size = 107, normalized size = 1.03 \begin {gather*} -\frac {14 \, a^{2} x^{2} - 28 \, a x + 18 \, {\left (a^{2} x^{2} - 2 \, a x + 1\right )} \arctan \left (\frac {\sqrt {-a^{2} x^{2} + 1} - 1}{a x}\right ) + {\left (3 \, a^{2} x^{2} - 19 \, a x + 14\right )} \sqrt {-a^{2} x^{2} + 1} + 14}{3 \, {\left (a^{3} c^{2} x^{2} - 2 \, a^{2} c^{2} x + a c^{2}\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*} \frac {a^{2} \left (\int \frac {x^{2}}{a^{2} x^{2} \sqrt {- a^{2} x^{2} + 1} - 2 a x \sqrt {- a^{2} x^{2} + 1} + \sqrt {- a^{2} x^{2} + 1}}\, dx + \int \frac {a x^{3}}{a^{2} x^{2} \sqrt {- a^{2} x^{2} + 1} - 2 a x \sqrt {- a^{2} x^{2} + 1} + \sqrt {- a^{2} x^{2} + 1}}\, dx\right )}{c^{2}} \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 = 0.82, size = 140, normalized size = 1.35 \begin {gather*} \frac {2\,a\,\sqrt {1-a^2\,x^2}}{3\,\left (a^4\,c^2\,x^2-2\,a^3\,c^2\,x+a^2\,c^2\right )}+\frac {3\,\mathrm {asinh}\left (x\,\sqrt {-a^2}\right )}{c^2\,\sqrt {-a^2}}-\frac {\sqrt {1-a^2\,x^2}}{a\,c^2}-\frac {13\,\sqrt {1-a^2\,x^2}}{3\,\sqrt {-a^2}\,\left (c^2\,x\,\sqrt {-a^2}-\frac {c^2\,\sqrt {-a^2}}{a}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________