3.1363 \(\int e^{2 (1+p) \tanh ^{-1}(a x)} (1-a^2 x^2)^{-p} \, dx\)

Optimal. Leaf size=41 \[ \frac{(1-a x)^{1-2 p}}{a (1-2 p)}+\frac{(1-a x)^{-2 p}}{a p} \]

[Out]

(1 - a*x)^(1 - 2*p)/(a*(1 - 2*p)) + 1/(a*p*(1 - a*x)^(2*p))

________________________________________________________________________________________

Rubi [A]  time = 0.0478388, antiderivative size = 41, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077, Rules used = {6140, 43} \[ \frac{(1-a x)^{1-2 p}}{a (1-2 p)}+\frac{(1-a x)^{-2 p}}{a p} \]

Antiderivative was successfully verified.

[In]

Int[E^(2*(1 + p)*ArcTanh[a*x])/(1 - a^2*x^2)^p,x]

[Out]

(1 - a*x)^(1 - 2*p)/(a*(1 - 2*p)) + 1/(a*p*(1 - a*x)^(2*p))

Rule 6140

Int[E^(ArcTanh[(a_.)*(x_)]*(n_.))*((c_) + (d_.)*(x_)^2)^(p_.), x_Symbol] :> Dist[c^p, Int[(1 - a*x)^(p - n/2)*
(1 + a*x)^(p + n/2), x], x] /; FreeQ[{a, c, d, n, p}, x] && EqQ[a^2*c + d, 0] && (IntegerQ[p] || GtQ[c, 0])

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rubi steps

\begin{align*} \int e^{2 (1+p) \tanh ^{-1}(a x)} \left (1-a^2 x^2\right )^{-p} \, dx &=\int (1-a x)^{-1-2 p} (1+a x) \, dx\\ &=\int \left (2 (1-a x)^{-1-2 p}-(1-a x)^{-2 p}\right ) \, dx\\ &=\frac{(1-a x)^{1-2 p}}{a (1-2 p)}+\frac{(1-a x)^{-2 p}}{a p}\\ \end{align*}

Mathematica [A]  time = 0.0187566, size = 31, normalized size = 0.76 \[ \frac{(1-a x)^{-2 p} (a p x+p-1)}{a p (2 p-1)} \]

Antiderivative was successfully verified.

[In]

Integrate[E^(2*(1 + p)*ArcTanh[a*x])/(1 - a^2*x^2)^p,x]

[Out]

(-1 + p + a*p*x)/(a*p*(-1 + 2*p)*(1 - a*x)^(2*p))

________________________________________________________________________________________

Maple [A]  time = 0.026, size = 59, normalized size = 1.4 \begin{align*} -{\frac{ \left ( apx+p-1 \right ) \left ( ax-1 \right ){{\rm e}^{2\, \left ( 1+p \right ){\it Artanh} \left ( ax \right ) }}}{ \left ( ax+1 \right ) ap \left ( 2\,p-1 \right ) \left ( -{a}^{2}{x}^{2}+1 \right ) ^{p}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(2*(1+p)*arctanh(a*x))/((-a^2*x^2+1)^p),x)

[Out]

-(a*x-1)*(a*p*x+p-1)*exp(2*(1+p)*arctanh(a*x))/a/p/(2*p-1)/(a*x+1)/((-a^2*x^2+1)^p)

________________________________________________________________________________________

Maxima [A]  time = 1.00252, size = 54, normalized size = 1.32 \begin{align*} -\frac{a p x + p - 1}{{\left (2 \, \left (-1\right )^{p} p^{2} - \left (-1\right )^{p} p\right )}{\left (a x - 1\right )}^{2 \, p} a} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(2*(1+p)*arctanh(a*x))/((-a^2*x^2+1)^p),x, algorithm="maxima")

[Out]

-(a*p*x + p - 1)/((2*(-1)^p*p^2 - (-1)^p*p)*(a*x - 1)^(2*p)*a)

________________________________________________________________________________________

Fricas [A]  time = 2.14788, size = 158, normalized size = 3.85 \begin{align*} -\frac{{\left (a^{2} p x^{2} - a x - p + 1\right )} \left (\frac{a x + 1}{a x - 1}\right )^{p + 1}}{{\left (2 \, a p^{2} - a p +{\left (2 \, a^{2} p^{2} - a^{2} p\right )} x\right )}{\left (-a^{2} x^{2} + 1\right )}^{p}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(2*(1+p)*arctanh(a*x))/((-a^2*x^2+1)^p),x, algorithm="fricas")

[Out]

-(a^2*p*x^2 - a*x - p + 1)*((a*x + 1)/(a*x - 1))^(p + 1)/((2*a*p^2 - a*p + (2*a^2*p^2 - a^2*p)*x)*(-a^2*x^2 +
1)^p)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(2*(1+p)*atanh(a*x))/((-a**2*x**2+1)**p),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (\frac{a x + 1}{a x - 1}\right )^{p + 1}}{{\left (-a^{2} x^{2} + 1\right )}^{p}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(2*(1+p)*arctanh(a*x))/((-a^2*x^2+1)^p),x, algorithm="giac")

[Out]

integrate(((a*x + 1)/(a*x - 1))^(p + 1)/(-a^2*x^2 + 1)^p, x)