Optimal. Leaf size=193 \[ \frac {4 \left (c-a^2 c x^2\right )^p}{(1-2 p) \sqrt {1-a^2 x^2}}-\frac {a x \left (c-a^2 c x^2\right )^p}{2 p \sqrt {1-a^2 x^2}}+\frac {a (1+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 )}{2 p}-\frac {\sqrt {1-a^2 x^2} \left (c-a^2 c x^2\right )^p \, _2F_1\left (1,\frac {1}{2}+p;\frac {3}{2}+p;1-a^2 x^2\right )}{1+2 p} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 193, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {6288, 6283,
1666, 457, 80, 67, 396, 251} \begin {gather*} \frac {a (6 p+1) 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 )}{2 p}-\frac {\sqrt {1-a^2 x^2} \left (c-a^2 c x^2\right )^p \, _2F_1\left (1,p+\frac {1}{2};p+\frac {3}{2};1-a^2 x^2\right )}{2 p+1}-\frac {a x \left (c-a^2 c x^2\right )^p}{2 p \sqrt {1-a^2 x^2}}+\frac {4 \left (c-a^2 c x^2\right )^p}{(1-2 p) \sqrt {1-a^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 67
Rule 80
Rule 251
Rule 396
Rule 457
Rule 1666
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} \, 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} \, 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} \, dx\\ &=\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 (1+3 a^2 x^2\right )}{x} \, dx+\left (\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} \left (3 a+a^3 x^2\right ) \, dx\\ &=-\frac {a x \left (c-a^2 c x^2\right )^p}{2 p \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 ) \text {Subst}\left (\int \frac {\left (1-a^2 x\right )^{-\frac {3}{2}+p} \left (1+3 a^2 x\right )}{x} \, dx,x,x^2\right )+\frac {\left (\left (a^3+3 a^3 \left (1+2 \left (-\frac {1}{2}+p\right )\right )\right ) \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}{a^2 \left (1+2 \left (-\frac {1}{2}+p\right )\right )}\\ &=\frac {4 \left (c-a^2 c x^2\right )^p}{(1-2 p) \sqrt {1-a^2 x^2}}-\frac {a x \left (c-a^2 c x^2\right )^p}{2 p \sqrt {1-a^2 x^2}}+\frac {a (1+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 )}{2 p}+\frac {1}{2} \left (\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 {1}{2}+p}}{x} \, dx,x,x^2\right )\\ &=\frac {4 \left (c-a^2 c x^2\right )^p}{(1-2 p) \sqrt {1-a^2 x^2}}-\frac {a x \left (c-a^2 c x^2\right )^p}{2 p \sqrt {1-a^2 x^2}}+\frac {a (1+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 )}{2 p}-\frac {\sqrt {1-a^2 x^2} \left (c-a^2 c x^2\right )^p \, _2F_1\left (1,\frac {1}{2}+p;\frac {3}{2}+p;1-a^2 x^2\right )}{1+2 p}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.16, size = 159, normalized size = 0.82 \begin {gather*} \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p \left (\frac {3 \left (1-a^2 x^2\right )^{-\frac {1}{2}+p}}{1-2 p}+3 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} \, _2F_1\left (1,-\frac {1}{2}+p;\frac {1}{2}+p;1-a^2 x^2\right )}{2 \left (-\frac {1}{2}+p\right )}+\frac {1}{3} a^3 x^3 \, _2F_1\left (\frac {3}{2},\frac {3}{2}-p;\frac {5}{2};a^2 x^2\right )\right ) \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, 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}\, 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 \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\,{\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]
________________________________________________________________________________________