Optimal. Leaf size=123 \[ -\frac {\sqrt {c-\frac {c}{a^2 x^2}} x}{a^2}-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x (1+a x)}{3 a^2}-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x (1+a x)^2}{3 a^2}+\frac {\sqrt {c-\frac {c}{a^2 x^2}} x \text {ArcSin}(a x)}{a^2 \sqrt {1-a x} \sqrt {1+a x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 123, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {6294, 6264, 81,
52, 41, 222} \begin {gather*} \frac {x \text {ArcSin}(a x) \sqrt {c-\frac {c}{a^2 x^2}}}{a^2 \sqrt {1-a x} \sqrt {a x+1}}-\frac {x (a x+1)^2 \sqrt {c-\frac {c}{a^2 x^2}}}{3 a^2}-\frac {x (a x+1) \sqrt {c-\frac {c}{a^2 x^2}}}{3 a^2}-\frac {x \sqrt {c-\frac {c}{a^2 x^2}}}{a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 41
Rule 52
Rule 81
Rule 222
Rule 6264
Rule 6294
Rubi steps
\begin {align*} \int e^{2 \tanh ^{-1}(a x)} \sqrt {c-\frac {c}{a^2 x^2}} x^2 \, dx &=\frac {\left (\sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int e^{2 \tanh ^{-1}(a x)} x \sqrt {1-a x} \sqrt {1+a x} \, dx}{\sqrt {1-a x} \sqrt {1+a x}}\\ &=\frac {\left (\sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {x (1+a x)^{3/2}}{\sqrt {1-a x}} \, dx}{\sqrt {1-a x} \sqrt {1+a x}}\\ &=-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x (1+a x)^2}{3 a^2}+\frac {\left (2 \sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {(1+a x)^{3/2}}{\sqrt {1-a x}} \, dx}{3 a \sqrt {1-a x} \sqrt {1+a x}}\\ &=-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x (1+a x)}{3 a^2}-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x (1+a x)^2}{3 a^2}+\frac {\left (\sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {\sqrt {1+a x}}{\sqrt {1-a x}} \, dx}{a \sqrt {1-a x} \sqrt {1+a x}}\\ &=-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x}{a^2}-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x (1+a x)}{3 a^2}-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x (1+a x)^2}{3 a^2}+\frac {\left (\sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {1}{\sqrt {1-a x} \sqrt {1+a x}} \, dx}{a \sqrt {1-a x} \sqrt {1+a x}}\\ &=-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x}{a^2}-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x (1+a x)}{3 a^2}-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x (1+a x)^2}{3 a^2}+\frac {\left (\sqrt {c-\frac {c}{a^2 x^2}} x\right ) \int \frac {1}{\sqrt {1-a^2 x^2}} \, dx}{a \sqrt {1-a x} \sqrt {1+a x}}\\ &=-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x}{a^2}-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x (1+a x)}{3 a^2}-\frac {\sqrt {c-\frac {c}{a^2 x^2}} x (1+a x)^2}{3 a^2}+\frac {\sqrt {c-\frac {c}{a^2 x^2}} x \sin ^{-1}(a x)}{a^2 \sqrt {1-a x} \sqrt {1+a x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 84, normalized size = 0.68 \begin {gather*} -\frac {\sqrt {c-\frac {c}{a^2 x^2}} x \left (\sqrt {-1+a^2 x^2} \left (5+3 a x+a^2 x^2\right )+3 \log \left (a x+\sqrt {-1+a^2 x^2}\right )\right )}{3 a^2 \sqrt {-1+a^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 173, normalized size = 1.41
method | result | size |
risch | \(-\frac {\left (a^{2} x^{2}+3 a x +5\right ) x \sqrt {\frac {c \left (a^{2} x^{2}-1\right )}{a^{2} x^{2}}}}{3 a^{2}}-\frac {\ln \left (\frac {c \,a^{2} x}{\sqrt {c \,a^{2}}}+\sqrt {a^{2} c \,x^{2}-c}\right ) x \sqrt {c \left (a^{2} x^{2}-1\right )}\, \sqrt {\frac {c \left (a^{2} x^{2}-1\right )}{a^{2} x^{2}}}}{a \sqrt {c \,a^{2}}\, \left (a^{2} x^{2}-1\right )}\) | \(125\) |
default | \(-\frac {\sqrt {\frac {c \left (a^{2} x^{2}-1\right )}{a^{2} x^{2}}}\, x \left (\left (\frac {c \left (a^{2} x^{2}-1\right )}{a^{2}}\right )^{\frac {3}{2}} a^{3}+3 \sqrt {\frac {c \left (a^{2} x^{2}-1\right )}{a^{2}}}\, a^{2} c x -3 \ln \left (\sqrt {c}\, x +\sqrt {\frac {c \left (a^{2} x^{2}-1\right )}{a^{2}}}\right ) c^{\frac {3}{2}}+6 \ln \left (\frac {\sqrt {c}\, \sqrt {\frac {c \left (a x -1\right ) \left (a x +1\right )}{a^{2}}}+c x}{\sqrt {c}}\right ) c^{\frac {3}{2}}+6 \sqrt {\frac {c \left (a x -1\right ) \left (a x +1\right )}{a^{2}}}\, a c \right )}{3 \sqrt {\frac {c \left (a^{2} x^{2}-1\right )}{a^{2}}}\, c \,a^{3}}\) | \(173\) |
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.39, size = 204, normalized size = 1.66 \begin {gather*} \left [-\frac {2 \, {\left (a^{3} x^{3} + 3 \, a^{2} x^{2} + 5 \, a x\right )} \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}} - 3 \, \sqrt {c} \log \left (2 \, a^{2} c x^{2} - 2 \, a^{2} \sqrt {c} x^{2} \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}} - c\right )}{6 \, a^{3}}, -\frac {{\left (a^{3} x^{3} + 3 \, a^{2} x^{2} + 5 \, a x\right )} \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}} - 3 \, \sqrt {-c} \arctan \left (\frac {a^{2} \sqrt {-c} x^{2} \sqrt {\frac {a^{2} c x^{2} - c}{a^{2} x^{2}}}}{a^{2} c x^{2} - c}\right )}{3 \, a^{3}}\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 {x^{2} \sqrt {c - \frac {c}{a^{2} x^{2}}}}{a x - 1}\, dx - \int \frac {a x^{3} \sqrt {c - \frac {c}{a^{2} x^{2}}}}{a x - 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 116, normalized size = 0.94 \begin {gather*} -\frac {1}{6} \, {\left (2 \, \sqrt {a^{2} c x^{2} - c} {\left (x {\left (\frac {x \mathrm {sgn}\left (x\right )}{a^{2}} + \frac {3 \, \mathrm {sgn}\left (x\right )}{a^{3}}\right )} + \frac {5 \, \mathrm {sgn}\left (x\right )}{a^{4}}\right )} - \frac {6 \, \sqrt {c} \log \left ({\left | -\sqrt {a^{2} c} x + \sqrt {a^{2} c x^{2} - c} \right |}\right ) \mathrm {sgn}\left (x\right )}{a^{3} {\left | a \right |}} + \frac {{\left (3 \, a \sqrt {c} \log \left ({\left | c \right |}\right ) - 10 \, \sqrt {-c} {\left | a \right |}\right )} \mathrm {sgn}\left (x\right )}{a^{4} {\left | a \right |}}\right )} {\left | a \right |} \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 {x^2\,\sqrt {c-\frac {c}{a^2\,x^2}}\,{\left (a\,x+1\right )}^2}{a^2\,x^2-1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________