Optimal. Leaf size=86 \[ -\frac {2^{\frac {3}{2}+p} (1-a x)^{\frac {1}{2}+p} \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p \, _2F_1\left (-\frac {1}{2}-p,\frac {1}{2}+p;\frac {3}{2}+p;\frac {1}{2} (1-a x)\right )}{a (1+2 p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {6278, 6275, 71}
\begin {gather*} -\frac {2^{p+\frac {3}{2}} (1-a x)^{p+\frac {1}{2}} \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p \, _2F_1\left (-p-\frac {1}{2},p+\frac {1}{2};p+\frac {3}{2};\frac {1}{2} (1-a x)\right )}{a (2 p+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 71
Rule 6275
Rule 6278
Rubi steps
\begin {align*} \int e^{\tanh ^{-1}(a x)} \left (c-a^2 c x^2\right )^p \, dx &=\left (\left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p\right ) \int e^{\tanh ^{-1}(a x)} \left (1-a^2 x^2\right )^p \, dx\\ &=\left (\left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p\right ) \int (1-a x)^{-\frac {1}{2}+p} (1+a x)^{\frac {1}{2}+p} \, dx\\ &=-\frac {2^{\frac {3}{2}+p} (1-a x)^{\frac {1}{2}+p} \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p \, _2F_1\left (-\frac {1}{2}-p,\frac {1}{2}+p;\frac {3}{2}+p;\frac {1}{2} (1-a x)\right )}{a (1+2 p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 86, normalized size = 1.00 \begin {gather*} -\frac {2^{\frac {1}{2}+p} (1-a x)^{\frac {1}{2}+p} \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p \, _2F_1\left (-\frac {1}{2}-p,\frac {1}{2}+p;\frac {3}{2}+p;\frac {1}{2} (1-a x)\right )}{a \left (\frac {1}{2}+p\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {\left (a x +1\right ) \left (-a^{2} c \,x^{2}+c \right )^{p}}{\sqrt {-a^{2} x^{2}+1}}\, dx\]
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 [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]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 6.87, size = 306, normalized size = 3.56 \begin {gather*} - \frac {a a^{2 p} c^{p} x^{2} x^{2 p} e^{i \pi p} \Gamma \left (- p - 1\right ) \Gamma \left (p + \frac {1}{2}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, 1 \\ p + 2 \end {matrix}\middle | {a^{2} x^{2} e^{2 i \pi }} \right )}}{2 \sqrt {\pi } \Gamma \left (- p\right ) \Gamma \left (p + 1\right )} - \frac {a a^{2 p} c^{p} x^{2} x^{2 p} e^{i \pi p} \Gamma \left (- p - 1\right ) \Gamma \left (p + \frac {1}{2}\right ) {{}_{2}F_{1}\left (\begin {matrix} 1, - p - 1 \\ \frac {1}{2} \end {matrix}\middle | {\frac {1}{a^{2} x^{2}}} \right )}}{2 \sqrt {\pi } \Gamma \left (- p\right ) \Gamma \left (p + 1\right )} - \frac {a^{2 p} c^{p} x x^{2 p} e^{i \pi p} \Gamma \left (- p - \frac {1}{2}\right ) \Gamma \left (p + \frac {1}{2}\right ) {{}_{3}F_{2}\left (\begin {matrix} \frac {1}{2}, 1, p + \frac {1}{2} \\ p + 1, p + \frac {3}{2} \end {matrix}\middle | {a^{2} x^{2} e^{2 i \pi }} \right )}}{2 \sqrt {\pi } \Gamma \left (\frac {1}{2} - p\right ) \Gamma \left (p + 1\right )} - \frac {a^{2 p} c^{p} x x^{2 p} e^{i \pi p} \Gamma \left (- p - \frac {1}{2}\right ) \Gamma \left (p + \frac {1}{2}\right ) {{}_{3}F_{2}\left (\begin {matrix} 1, - p, - p - \frac {1}{2} \\ \frac {1}{2}, \frac {1}{2} - p \end {matrix}\middle | {\frac {1}{a^{2} x^{2}}} \right )}}{2 \sqrt {\pi } \Gamma \left (\frac {1}{2} - p\right ) \Gamma \left (p + 1\right )} \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-a^2\,c\,x^2\right )}^p\,\left (a\,x+1\right )}{\sqrt {1-a^2\,x^2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________