\(\int e^{-2 \text {arctanh}(a x)} (c-a^2 c x^2)^p \, dx\) [1290]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [F]
Fricas [F]
Sympy [C] (verification not implemented)
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 22, antiderivative size = 54 \[ \int e^{-2 \text {arctanh}(a x)} \left (c-a^2 c x^2\right )^p \, dx=\frac {2^{1+p} (1-a x)^{-p} \left (c-a^2 c x^2\right )^p \operatorname {Hypergeometric2F1}\left (-1-p,p,1+p,\frac {1}{2} (1+a x)\right )}{a p} \] Output:

2^(p+1)*(-a^2*c*x^2+c)^p*hypergeom([p, -1-p],[p+1],1/2*a*x+1/2)/a/p/((-a*x 
+1)^p)
 

Mathematica [A] (verified)

Time = 0.04 (sec) , antiderivative size = 74, normalized size of antiderivative = 1.37 \[ \int e^{-2 \text {arctanh}(a x)} \left (c-a^2 c x^2\right )^p \, dx=-\frac {2^{-1+p} (1-a x)^{2+p} \left (1-a^2 x^2\right )^{-p} \left (c-a^2 c x^2\right )^p \operatorname {Hypergeometric2F1}\left (1-p,2+p,3+p,\frac {1}{2} (1-a x)\right )}{a (2+p)} \] Input:

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

Output:

-((2^(-1 + p)*(1 - a*x)^(2 + p)*(c - a^2*c*x^2)^p*Hypergeometric2F1[1 - p, 
 2 + p, 3 + p, (1 - a*x)/2])/(a*(2 + p)*(1 - a^2*x^2)^p))
 

Rubi [A] (verified)

Time = 0.42 (sec) , antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {6692, 473, 79}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int e^{-2 \text {arctanh}(a x)} \left (c-a^2 c x^2\right )^p \, dx\)

\(\Big \downarrow \) 6692

\(\displaystyle c \int (1-a x)^2 \left (c-a^2 c x^2\right )^{p-1}dx\)

\(\Big \downarrow \) 473

\(\displaystyle c (1-a x)^{-p} (a c x+c)^{-p} \left (c-a^2 c x^2\right )^p \int (1-a x)^{p+1} (a x c+c)^{p-1}dx\)

\(\Big \downarrow \) 79

\(\displaystyle \frac {2^{p+1} (1-a x)^{-p} \left (c-a^2 c x^2\right )^p \operatorname {Hypergeometric2F1}\left (-p-1,p,p+1,\frac {1}{2} (a x+1)\right )}{a p}\)

Input:

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

Output:

(2^(1 + p)*(c - a^2*c*x^2)^p*Hypergeometric2F1[-1 - p, p, 1 + p, (1 + a*x) 
/2])/(a*p*(1 - a*x)^p)
 

Defintions of rubi rules used

rule 79
Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(( 
a + b*x)^(m + 1)/(b*(m + 1)*(b/(b*c - a*d))^n))*Hypergeometric2F1[-n, m + 1 
, m + 2, (-d)*((a + b*x)/(b*c - a*d))], x] /; FreeQ[{a, b, c, d, m, n}, x] 
&&  !IntegerQ[m] &&  !IntegerQ[n] && GtQ[b/(b*c - a*d), 0] && (RationalQ[m] 
 ||  !(RationalQ[n] && GtQ[-d/(b*c - a*d), 0]))
 

rule 473
Int[((c_) + (d_.)*(x_))^(n_)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[ 
c^(n - 1)*((a + b*x^2)^(p + 1)/((1 + d*(x/c))^(p + 1)*(a/c + (b*x)/d)^(p + 
1)))   Int[(1 + d*(x/c))^(n + p)*(a/c + (b/d)*x)^p, x], x] /; FreeQ[{a, b, 
c, d, n}, x] && EqQ[b*c^2 + a*d^2, 0] && (IntegerQ[n] || GtQ[c, 0]) &&  !Gt 
Q[a, 0] &&  !(IntegerQ[n] && (IntegerQ[3*p] || IntegerQ[4*p]))
 

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

\[\int \frac {\left (-a^{2} c \,x^{2}+c \right )^{p} \left (-a^{2} x^{2}+1\right )}{\left (a x +1\right )^{2}}d x\]

Input:

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

Output:

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

Fricas [F]

\[ \int e^{-2 \text {arctanh}(a x)} \left (c-a^2 c x^2\right )^p \, dx=\int { -\frac {{\left (a^{2} x^{2} - 1\right )} {\left (-a^{2} c x^{2} + c\right )}^{p}}{{\left (a x + 1\right )}^{2}} \,d x } \] Input:

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

Output:

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

Sympy [C] (verification not implemented)

Result contains complex when optimal does not.

Time = 8.66 (sec) , antiderivative size = 648, normalized size of antiderivative = 12.00 \[ \int e^{-2 \text {arctanh}(a x)} \left (c-a^2 c x^2\right )^p \, dx=\text {Too large to display} \] Input:

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

Output:

-a*Piecewise((0**p*x/a + 0**p*log(1/(a**2*x**2))/(2*a**2) - 0**p*log(-1 + 
1/(a**2*x**2))/(2*a**2) - 0**p*acoth(1/(a*x))/a**2 - a**(2*p - 1)*c**p*p*x 
**(2*p + 1)*exp(I*pi*p)*gamma(p)*gamma(-p - 1/2)*hyper((1 - p, -p - 1/2), 
(1/2 - p,), 1/(a**2*x**2))/(2*gamma(1/2 - p)*gamma(p + 1)) - c**p*x**2*gam 
ma(p)*gamma(1 - p)*hyper((2, 1, 1 - p), (2, 2), a**2*x**2*exp_polar(2*I*pi 
))/(2*gamma(-p)*gamma(p + 1)), 1/Abs(a**2*x**2) > 1), (0**p*x/a + 0**p*log 
(1/(a**2*x**2))/(2*a**2) - 0**p*log(1 - 1/(a**2*x**2))/(2*a**2) - 0**p*ata 
nh(1/(a*x))/a**2 - a**(2*p - 1)*c**p*p*x**(2*p + 1)*exp(I*pi*p)*gamma(p)*g 
amma(-p - 1/2)*hyper((1 - p, -p - 1/2), (1/2 - p,), 1/(a**2*x**2))/(2*gamm 
a(1/2 - p)*gamma(p + 1)) - c**p*x**2*gamma(p)*gamma(1 - p)*hyper((2, 1, 1 
- p), (2, 2), a**2*x**2*exp_polar(2*I*pi))/(2*gamma(-p)*gamma(p + 1)), Tru 
e)) + Piecewise((0**p*log(a**2*x**2 - 1)/(2*a) + 0**p*acoth(a*x)/a + a*c** 
p*x**2*gamma(p)*gamma(1 - p)*hyper((2, 1, 1 - p), (2, 2), a**2*x**2*exp_po 
lar(2*I*pi))/(2*gamma(-p)*gamma(p + 1)) + a**(2*p - 2)*c**p*p*x**(2*p - 1) 
*exp(I*pi*p)*gamma(p)*gamma(1/2 - p)*hyper((1 - p, 1/2 - p), (3/2 - p,), 1 
/(a**2*x**2))/(2*gamma(3/2 - p)*gamma(p + 1)), Abs(a**2*x**2) > 1), (0**p* 
log(-a**2*x**2 + 1)/(2*a) + 0**p*atanh(a*x)/a + a*c**p*x**2*gamma(p)*gamma 
(1 - p)*hyper((2, 1, 1 - p), (2, 2), a**2*x**2*exp_polar(2*I*pi))/(2*gamma 
(-p)*gamma(p + 1)) + a**(2*p - 2)*c**p*p*x**(2*p - 1)*exp(I*pi*p)*gamma(p) 
*gamma(1/2 - p)*hyper((1 - p, 1/2 - p), (3/2 - p,), 1/(a**2*x**2))/(2*g...
                                                                                    
                                                                                    
 

Maxima [F]

\[ \int e^{-2 \text {arctanh}(a x)} \left (c-a^2 c x^2\right )^p \, dx=\int { -\frac {{\left (a^{2} x^{2} - 1\right )} {\left (-a^{2} c x^{2} + c\right )}^{p}}{{\left (a x + 1\right )}^{2}} \,d x } \] Input:

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

Output:

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

Giac [F]

\[ \int e^{-2 \text {arctanh}(a x)} \left (c-a^2 c x^2\right )^p \, dx=\int { -\frac {{\left (a^{2} x^{2} - 1\right )} {\left (-a^{2} c x^{2} + c\right )}^{p}}{{\left (a x + 1\right )}^{2}} \,d x } \] Input:

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

Output:

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

Mupad [F(-1)]

Timed out. \[ \int e^{-2 \text {arctanh}(a x)} \left (c-a^2 c x^2\right )^p \, dx=-\int \frac {{\left (c-a^2\,c\,x^2\right )}^p\,\left (a^2\,x^2-1\right )}{{\left (a\,x+1\right )}^2} \,d x \] Input:

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

Output:

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

Reduce [F]

\[ \int e^{-2 \text {arctanh}(a x)} \left (c-a^2 c x^2\right )^p \, dx=\frac {-\left (-a^{2} c \,x^{2}+c \right )^{p} a p x +2 \left (-a^{2} c \,x^{2}+c \right )^{p} p +\left (-a^{2} c \,x^{2}+c \right )^{p}-4 \left (\int \frac {\left (-a^{2} c \,x^{2}+c \right )^{p}}{2 a^{2} p \,x^{2}+a^{2} x^{2}-2 p -1}d x \right ) a \,p^{3}-6 \left (\int \frac {\left (-a^{2} c \,x^{2}+c \right )^{p}}{2 a^{2} p \,x^{2}+a^{2} x^{2}-2 p -1}d x \right ) a \,p^{2}-2 \left (\int \frac {\left (-a^{2} c \,x^{2}+c \right )^{p}}{2 a^{2} p \,x^{2}+a^{2} x^{2}-2 p -1}d x \right ) a p}{a p \left (2 p +1\right )} \] Input:

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

Output:

( - ( - a**2*c*x**2 + c)**p*a*p*x + 2*( - a**2*c*x**2 + c)**p*p + ( - a**2 
*c*x**2 + c)**p - 4*int(( - a**2*c*x**2 + c)**p/(2*a**2*p*x**2 + a**2*x**2 
 - 2*p - 1),x)*a*p**3 - 6*int(( - a**2*c*x**2 + c)**p/(2*a**2*p*x**2 + a** 
2*x**2 - 2*p - 1),x)*a*p**2 - 2*int(( - a**2*c*x**2 + c)**p/(2*a**2*p*x**2 
 + a**2*x**2 - 2*p - 1),x)*a*p)/(a*p*(2*p + 1))