Optimal. Leaf size=64 \[ \frac {x (1-a x)^{-p} \left (c-\frac {c}{a x}\right )^p F_1\left (1-p;\frac {1}{2} (n-2 p),-\frac {n}{2};2-p;a x,-a x\right )}{1-p} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {6134, 6129, 133} \[ \frac {x (1-a x)^{-p} \left (c-\frac {c}{a x}\right )^p F_1\left (1-p;\frac {1}{2} (n-2 p),-\frac {n}{2};2-p;a x,-a x\right )}{1-p} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 133
Rule 6129
Rule 6134
Rubi steps
\begin {align*} \int e^{n \tanh ^{-1}(a x)} \left (c-\frac {c}{a x}\right )^p \, dx &=\left (\left (c-\frac {c}{a x}\right )^p x^p (1-a x)^{-p}\right ) \int e^{n \tanh ^{-1}(a x)} x^{-p} (1-a x)^p \, dx\\ &=\left (\left (c-\frac {c}{a x}\right )^p x^p (1-a x)^{-p}\right ) \int x^{-p} (1-a x)^{-\frac {n}{2}+p} (1+a x)^{n/2} \, dx\\ &=\frac {\left (c-\frac {c}{a x}\right )^p x (1-a x)^{-p} F_1\left (1-p;\frac {1}{2} (n-2 p),-\frac {n}{2};2-p;a x,-a x\right )}{1-p}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 0.64, size = 0, normalized size = 0.00 \[ \int e^{n \tanh ^{-1}(a x)} \left (c-\frac {c}{a x}\right )^p \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.59, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\left (\frac {a x + 1}{a x - 1}\right )^{\frac {1}{2} \, n} \left (\frac {a c x - c}{a x}\right )^{p}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (c - \frac {c}{a x}\right )}^{p} \left (\frac {a x + 1}{a x - 1}\right )^{\frac {1}{2} \, n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.19, size = 0, normalized size = 0.00 \[ \int {\mathrm e}^{n \arctanh \left (a x \right )} \left (c -\frac {c}{a x}\right )^{p}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (c - \frac {c}{a x}\right )}^{p} \left (\frac {a x + 1}{a x - 1}\right )^{\frac {1}{2} \, n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int {\mathrm {e}}^{n\,\mathrm {atanh}\left (a\,x\right )}\,{\left (c-\frac {c}{a\,x}\right )}^p \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (- c \left (-1 + \frac {1}{a x}\right )\right )^{p} e^{n \operatorname {atanh}{\left (a x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________