Optimal. Leaf size=194 \[ -\frac {\left (c-a^2 c x^2\right )^p}{2 x^2 \sqrt {1-a^2 x^2}}-\frac {3 a \left (c-a^2 c x^2\right )^p}{x \sqrt {1-a^2 x^2}}+a^3 (7-6 p) x \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p \, _2F_1\left (\frac {1}{2},\frac {3}{2}-p;\frac {3}{2};a^2 x^2\right )+\frac {a^2 (9-2 p) \left (c-a^2 c x^2\right )^p \, _2F_1\left (1,-\frac {1}{2}+p;\frac {1}{2}+p;1-a^2 x^2\right )}{2 (1-2 p) \sqrt {1-a^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 194, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {6288, 6283,
1821, 778, 272, 67, 251} \begin {gather*} \frac {a^2 (9-2 p) \left (c-a^2 c x^2\right )^p \, _2F_1\left (1,p-\frac {1}{2};p+\frac {1}{2};1-a^2 x^2\right )}{2 (1-2 p) \sqrt {1-a^2 x^2}}-\frac {3 a \left (c-a^2 c x^2\right )^p}{x \sqrt {1-a^2 x^2}}-\frac {\left (c-a^2 c x^2\right )^p}{2 x^2 \sqrt {1-a^2 x^2}}+a^3 (7-6 p) x \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p \, _2F_1\left (\frac {1}{2},\frac {3}{2}-p;\frac {3}{2};a^2 x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 67
Rule 251
Rule 272
Rule 778
Rule 1821
Rule 6283
Rule 6288
Rubi steps
\begin {align*} \int \frac {e^{3 \tanh ^{-1}(a x)} \left (c-a^2 c x^2\right )^p}{x^3} \, dx &=\left (\left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p\right ) \int \frac {e^{3 \tanh ^{-1}(a x)} \left (1-a^2 x^2\right )^p}{x^3} \, dx\\ &=\left (\left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p\right ) \int \frac {(1+a x)^3 \left (1-a^2 x^2\right )^{-\frac {3}{2}+p}}{x^3} \, dx\\ &=-\frac {\left (c-a^2 c x^2\right )^p}{2 x^2 \sqrt {1-a^2 x^2}}-\frac {1}{2} \left (\left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p\right ) \int \frac {\left (1-a^2 x^2\right )^{-\frac {3}{2}+p} \left (-6 a-a^2 (9-2 p) x-2 a^3 x^2\right )}{x^2} \, dx\\ &=-\frac {\left (c-a^2 c x^2\right )^p}{2 x^2 \sqrt {1-a^2 x^2}}-\frac {3 a \left (c-a^2 c x^2\right )^p}{x \sqrt {1-a^2 x^2}}+\frac {1}{2} \left (\left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p\right ) \int \frac {\left (a^2 (9-2 p)+2 a^3 (7-6 p) x\right ) \left (1-a^2 x^2\right )^{-\frac {3}{2}+p}}{x} \, dx\\ &=-\frac {\left (c-a^2 c x^2\right )^p}{2 x^2 \sqrt {1-a^2 x^2}}-\frac {3 a \left (c-a^2 c x^2\right )^p}{x \sqrt {1-a^2 x^2}}+\left (a^3 (7-6 p) \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p\right ) \int \left (1-a^2 x^2\right )^{-\frac {3}{2}+p} \, dx+\frac {1}{2} \left (a^2 (9-2 p) \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p\right ) \int \frac {\left (1-a^2 x^2\right )^{-\frac {3}{2}+p}}{x} \, dx\\ &=-\frac {\left (c-a^2 c x^2\right )^p}{2 x^2 \sqrt {1-a^2 x^2}}-\frac {3 a \left (c-a^2 c x^2\right )^p}{x \sqrt {1-a^2 x^2}}+a^3 (7-6 p) x \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p \, _2F_1\left (\frac {1}{2},\frac {3}{2}-p;\frac {3}{2};a^2 x^2\right )+\frac {1}{4} \left (a^2 (9-2 p) \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p\right ) \text {Subst}\left (\int \frac {\left (1-a^2 x\right )^{-\frac {3}{2}+p}}{x} \, dx,x,x^2\right )\\ &=-\frac {\left (c-a^2 c x^2\right )^p}{2 x^2 \sqrt {1-a^2 x^2}}-\frac {3 a \left (c-a^2 c x^2\right )^p}{x \sqrt {1-a^2 x^2}}+a^3 (7-6 p) x \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p \, _2F_1\left (\frac {1}{2},\frac {3}{2}-p;\frac {3}{2};a^2 x^2\right )+\frac {a^2 (9-2 p) \left (c-a^2 c x^2\right )^p \, _2F_1\left (1,-\frac {1}{2}+p;\frac {1}{2}+p;1-a^2 x^2\right )}{2 (1-2 p) \sqrt {1-a^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.21, size = 154, normalized size = 0.79 \begin {gather*} a \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p \left (-\frac {3 \, _2F_1\left (-\frac {1}{2},\frac {3}{2}-p;\frac {1}{2};a^2 x^2\right )}{x}+a \left (a x \, _2F_1\left (\frac {1}{2},\frac {3}{2}-p;\frac {3}{2};a^2 x^2\right )+\frac {\left (1-a^2 x^2\right )^{-\frac {1}{2}+p} \left (3 \, _2F_1\left (1,-\frac {1}{2}+p;\frac {1}{2}+p;1-a^2 x^2\right )+\, _2F_1\left (2,-\frac {1}{2}+p;\frac {1}{2}+p;1-a^2 x^2\right )\right )}{1-2 p}\right )\right ) \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {\left (a x +1\right )^{3} \left (-a^{2} c \,x^{2}+c \right )^{p}}{\left (-a^{2} x^{2}+1\right )^{\frac {3}{2}} x^{3}}\, 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 [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (- c \left (a x - 1\right ) \left (a x + 1\right )\right )^{p} \left (a x + 1\right )^{3}}{x^{3} \left (- \left (a x - 1\right ) \left (a x + 1\right )\right )^{\frac {3}{2}}}\, dx \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 )}^3}{x^3\,{\left (1-a^2\,x^2\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________