Integrand size = 23, antiderivative size = 80 \[ \int e^{\text {arctanh}(a x)} x^m \left (c-a^2 c x^2\right )^2 \, dx=\frac {c^2 x^{1+m} \operatorname {Hypergeometric2F1}\left (-\frac {3}{2},\frac {1+m}{2},\frac {3+m}{2},a^2 x^2\right )}{1+m}+\frac {a c^2 x^{2+m} \operatorname {Hypergeometric2F1}\left (-\frac {3}{2},\frac {2+m}{2},\frac {4+m}{2},a^2 x^2\right )}{2+m} \] Output:
c^2*x^(1+m)*hypergeom([-3/2, 1/2+1/2*m],[3/2+1/2*m],a^2*x^2)/(1+m)+a*c^2*x ^(2+m)*hypergeom([-3/2, 1+1/2*m],[2+1/2*m],a^2*x^2)/(2+m)
Time = 0.04 (sec) , antiderivative size = 82, normalized size of antiderivative = 1.02 \[ \int e^{\text {arctanh}(a x)} x^m \left (c-a^2 c x^2\right )^2 \, dx=c^2 \left (\frac {x^{1+m} \operatorname {Hypergeometric2F1}\left (-\frac {3}{2},\frac {1+m}{2},1+\frac {1+m}{2},a^2 x^2\right )}{1+m}+\frac {a x^{2+m} \operatorname {Hypergeometric2F1}\left (-\frac {3}{2},\frac {2+m}{2},1+\frac {2+m}{2},a^2 x^2\right )}{2+m}\right ) \] Input:
Integrate[E^ArcTanh[a*x]*x^m*(c - a^2*c*x^2)^2,x]
Output:
c^2*((x^(1 + m)*Hypergeometric2F1[-3/2, (1 + m)/2, 1 + (1 + m)/2, a^2*x^2] )/(1 + m) + (a*x^(2 + m)*Hypergeometric2F1[-3/2, (2 + m)/2, 1 + (2 + m)/2, a^2*x^2])/(2 + m))
Time = 0.50 (sec) , antiderivative size = 78, normalized size of antiderivative = 0.98, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {6698, 557, 278}
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 x^m e^{\text {arctanh}(a x)} \left (c-a^2 c x^2\right )^2 \, dx\) |
\(\Big \downarrow \) 6698 |
\(\displaystyle c^2 \int x^m (a x+1) \left (1-a^2 x^2\right )^{3/2}dx\) |
\(\Big \downarrow \) 557 |
\(\displaystyle c^2 \left (a \int x^{m+1} \left (1-a^2 x^2\right )^{3/2}dx+\int x^m \left (1-a^2 x^2\right )^{3/2}dx\right )\) |
\(\Big \downarrow \) 278 |
\(\displaystyle c^2 \left (\frac {x^{m+1} \operatorname {Hypergeometric2F1}\left (-\frac {3}{2},\frac {m+1}{2},\frac {m+3}{2},a^2 x^2\right )}{m+1}+\frac {a x^{m+2} \operatorname {Hypergeometric2F1}\left (-\frac {3}{2},\frac {m+2}{2},\frac {m+4}{2},a^2 x^2\right )}{m+2}\right )\) |
Input:
Int[E^ArcTanh[a*x]*x^m*(c - a^2*c*x^2)^2,x]
Output:
c^2*((x^(1 + m)*Hypergeometric2F1[-3/2, (1 + m)/2, (3 + m)/2, a^2*x^2])/(1 + m) + (a*x^(2 + m)*Hypergeometric2F1[-3/2, (2 + m)/2, (4 + m)/2, a^2*x^2 ])/(2 + m))
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^p*(( c*x)^(m + 1)/(c*(m + 1)))*Hypergeometric2F1[-p, (m + 1)/2, (m + 1)/2 + 1, ( -b)*(x^2/a)], x] /; FreeQ[{a, b, c, m, p}, x] && !IGtQ[p, 0] && (ILtQ[p, 0 ] || GtQ[a, 0])
Int[((e_.)*(x_))^(m_)*((c_) + (d_.)*(x_))*((a_) + (b_.)*(x_)^2)^(p_), x_Sym bol] :> Simp[c Int[(e*x)^m*(a + b*x^2)^p, x], x] + Simp[d/e Int[(e*x)^( m + 1)*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m, p}, x]
Int[E^(ArcTanh[(a_.)*(x_)]*(n_.))*(x_)^(m_.)*((c_) + (d_.)*(x_)^2)^(p_.), x _Symbol] :> Simp[c^p Int[x^m*(1 - a^2*x^2)^(p - n/2)*(1 + a*x)^n, x], x] /; FreeQ[{a, c, d, m, p}, x] && EqQ[a^2*c + d, 0] && (IntegerQ[p] || GtQ[c, 0]) && IGtQ[(n + 1)/2, 0] && !IntegerQ[p - n/2]
Leaf count of result is larger than twice the leaf count of optimal. \(226\) vs. \(2(72)=144\).
Time = 0.13 (sec) , antiderivative size = 227, normalized size of antiderivative = 2.84
method | result | size |
meijerg | \(\frac {a^{5} c^{2} x^{m +6} \operatorname {hypergeom}\left (\left [\frac {1}{2}, \frac {m}{2}+3\right ], \left [4+\frac {m}{2}\right ], a^{2} x^{2}\right )}{m +6}-\frac {2 a^{3} c^{2} x^{4+m} \operatorname {hypergeom}\left (\left [\frac {1}{2}, 2+\frac {m}{2}\right ], \left [\frac {m}{2}+3\right ], a^{2} x^{2}\right )}{4+m}+\frac {a \,c^{2} x^{2+m} \operatorname {hypergeom}\left (\left [\frac {1}{2}, \frac {m}{2}+1\right ], \left [2+\frac {m}{2}\right ], a^{2} x^{2}\right )}{2+m}+\frac {c^{2} a^{4} x^{5+m} \operatorname {hypergeom}\left (\left [\frac {1}{2}, \frac {5}{2}+\frac {m}{2}\right ], \left [\frac {7}{2}+\frac {m}{2}\right ], a^{2} x^{2}\right )}{5+m}-\frac {2 c^{2} a^{2} x^{3+m} \operatorname {hypergeom}\left (\left [\frac {1}{2}, \frac {3}{2}+\frac {m}{2}\right ], \left [\frac {5}{2}+\frac {m}{2}\right ], a^{2} x^{2}\right )}{3+m}+\frac {c^{2} x^{1+m} \operatorname {hypergeom}\left (\left [\frac {1}{2}, \frac {m}{2}+\frac {1}{2}\right ], \left [\frac {3}{2}+\frac {m}{2}\right ], a^{2} x^{2}\right )}{1+m}\) | \(227\) |
Input:
int((a*x+1)/(-a^2*x^2+1)^(1/2)*x^m*(-a^2*c*x^2+c)^2,x,method=_RETURNVERBOS E)
Output:
a^5*c^2/(m+6)*x^(m+6)*hypergeom([1/2,1/2*m+3],[4+1/2*m],a^2*x^2)-2*a^3*c^2 /(4+m)*x^(4+m)*hypergeom([1/2,2+1/2*m],[1/2*m+3],a^2*x^2)+a*c^2/(2+m)*x^(2 +m)*hypergeom([1/2,1/2*m+1],[2+1/2*m],a^2*x^2)+c^2*a^4/(5+m)*x^(5+m)*hyper geom([1/2,5/2+1/2*m],[7/2+1/2*m],a^2*x^2)-2*c^2*a^2/(3+m)*x^(3+m)*hypergeo m([1/2,3/2+1/2*m],[5/2+1/2*m],a^2*x^2)+c^2/(1+m)*x^(1+m)*hypergeom([1/2,1/ 2*m+1/2],[3/2+1/2*m],a^2*x^2)
\[ \int e^{\text {arctanh}(a x)} x^m \left (c-a^2 c x^2\right )^2 \, dx=\int { \frac {{\left (a^{2} c x^{2} - c\right )}^{2} {\left (a x + 1\right )} x^{m}}{\sqrt {-a^{2} x^{2} + 1}} \,d x } \] Input:
integrate((a*x+1)/(-a^2*x^2+1)^(1/2)*x^m*(-a^2*c*x^2+c)^2,x, algorithm="fr icas")
Output:
integral(-(a^3*c^2*x^3 + a^2*c^2*x^2 - a*c^2*x - c^2)*sqrt(-a^2*x^2 + 1)*x ^m, x)
Result contains complex when optimal does not.
Time = 6.29 (sec) , antiderivative size = 316, normalized size of antiderivative = 3.95 \[ \int e^{\text {arctanh}(a x)} x^m \left (c-a^2 c x^2\right )^2 \, dx=\frac {a^{5} c^{2} x^{m + 6} \Gamma \left (\frac {m}{2} + 3\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, \frac {m}{2} + 3 \\ \frac {m}{2} + 4 \end {matrix}\middle | {a^{2} x^{2} e^{2 i \pi }} \right )}}{2 \Gamma \left (\frac {m}{2} + 4\right )} + \frac {a^{4} c^{2} x^{m + 5} \Gamma \left (\frac {m}{2} + \frac {5}{2}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, \frac {m}{2} + \frac {5}{2} \\ \frac {m}{2} + \frac {7}{2} \end {matrix}\middle | {a^{2} x^{2} e^{2 i \pi }} \right )}}{2 \Gamma \left (\frac {m}{2} + \frac {7}{2}\right )} - \frac {a^{3} c^{2} x^{m + 4} \Gamma \left (\frac {m}{2} + 2\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, \frac {m}{2} + 2 \\ \frac {m}{2} + 3 \end {matrix}\middle | {a^{2} x^{2} e^{2 i \pi }} \right )}}{\Gamma \left (\frac {m}{2} + 3\right )} - \frac {a^{2} c^{2} x^{m + 3} \Gamma \left (\frac {m}{2} + \frac {3}{2}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, \frac {m}{2} + \frac {3}{2} \\ \frac {m}{2} + \frac {5}{2} \end {matrix}\middle | {a^{2} x^{2} e^{2 i \pi }} \right )}}{\Gamma \left (\frac {m}{2} + \frac {5}{2}\right )} + \frac {a c^{2} x^{m + 2} \Gamma \left (\frac {m}{2} + 1\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, \frac {m}{2} + 1 \\ \frac {m}{2} + 2 \end {matrix}\middle | {a^{2} x^{2} e^{2 i \pi }} \right )}}{2 \Gamma \left (\frac {m}{2} + 2\right )} + \frac {c^{2} x^{m + 1} \Gamma \left (\frac {m}{2} + \frac {1}{2}\right ) {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, \frac {m}{2} + \frac {1}{2} \\ \frac {m}{2} + \frac {3}{2} \end {matrix}\middle | {a^{2} x^{2} e^{2 i \pi }} \right )}}{2 \Gamma \left (\frac {m}{2} + \frac {3}{2}\right )} \] Input:
integrate((a*x+1)/(-a**2*x**2+1)**(1/2)*x**m*(-a**2*c*x**2+c)**2,x)
Output:
a**5*c**2*x**(m + 6)*gamma(m/2 + 3)*hyper((1/2, m/2 + 3), (m/2 + 4,), a**2 *x**2*exp_polar(2*I*pi))/(2*gamma(m/2 + 4)) + a**4*c**2*x**(m + 5)*gamma(m /2 + 5/2)*hyper((1/2, m/2 + 5/2), (m/2 + 7/2,), a**2*x**2*exp_polar(2*I*pi ))/(2*gamma(m/2 + 7/2)) - a**3*c**2*x**(m + 4)*gamma(m/2 + 2)*hyper((1/2, m/2 + 2), (m/2 + 3,), a**2*x**2*exp_polar(2*I*pi))/gamma(m/2 + 3) - a**2*c **2*x**(m + 3)*gamma(m/2 + 3/2)*hyper((1/2, m/2 + 3/2), (m/2 + 5/2,), a**2 *x**2*exp_polar(2*I*pi))/gamma(m/2 + 5/2) + a*c**2*x**(m + 2)*gamma(m/2 + 1)*hyper((1/2, m/2 + 1), (m/2 + 2,), a**2*x**2*exp_polar(2*I*pi))/(2*gamma (m/2 + 2)) + c**2*x**(m + 1)*gamma(m/2 + 1/2)*hyper((1/2, m/2 + 1/2), (m/2 + 3/2,), a**2*x**2*exp_polar(2*I*pi))/(2*gamma(m/2 + 3/2))
\[ \int e^{\text {arctanh}(a x)} x^m \left (c-a^2 c x^2\right )^2 \, dx=\int { \frac {{\left (a^{2} c x^{2} - c\right )}^{2} {\left (a x + 1\right )} x^{m}}{\sqrt {-a^{2} x^{2} + 1}} \,d x } \] Input:
integrate((a*x+1)/(-a^2*x^2+1)^(1/2)*x^m*(-a^2*c*x^2+c)^2,x, algorithm="ma xima")
Output:
integrate((a^2*c*x^2 - c)^2*(a*x + 1)*x^m/sqrt(-a^2*x^2 + 1), x)
\[ \int e^{\text {arctanh}(a x)} x^m \left (c-a^2 c x^2\right )^2 \, dx=\int { \frac {{\left (a^{2} c x^{2} - c\right )}^{2} {\left (a x + 1\right )} x^{m}}{\sqrt {-a^{2} x^{2} + 1}} \,d x } \] Input:
integrate((a*x+1)/(-a^2*x^2+1)^(1/2)*x^m*(-a^2*c*x^2+c)^2,x, algorithm="gi ac")
Output:
integrate((a^2*c*x^2 - c)^2*(a*x + 1)*x^m/sqrt(-a^2*x^2 + 1), x)
Timed out. \[ \int e^{\text {arctanh}(a x)} x^m \left (c-a^2 c x^2\right )^2 \, dx=\int \frac {x^m\,{\left (c-a^2\,c\,x^2\right )}^2\,\left (a\,x+1\right )}{\sqrt {1-a^2\,x^2}} \,d x \] Input:
int((x^m*(c - a^2*c*x^2)^2*(a*x + 1))/(1 - a^2*x^2)^(1/2),x)
Output:
int((x^m*(c - a^2*c*x^2)^2*(a*x + 1))/(1 - a^2*x^2)^(1/2), x)
\[ \int e^{\text {arctanh}(a x)} x^m \left (c-a^2 c x^2\right )^2 \, dx=c^{2} \left (\int \frac {x^{m}}{\sqrt {-a^{2} x^{2}+1}}d x +\left (\int \frac {x^{m} x^{5}}{\sqrt {-a^{2} x^{2}+1}}d x \right ) a^{5}+\left (\int \frac {x^{m} x^{4}}{\sqrt {-a^{2} x^{2}+1}}d x \right ) a^{4}-2 \left (\int \frac {x^{m} x^{3}}{\sqrt {-a^{2} x^{2}+1}}d x \right ) a^{3}-2 \left (\int \frac {x^{m} x^{2}}{\sqrt {-a^{2} x^{2}+1}}d x \right ) a^{2}+\left (\int \frac {x^{m} x}{\sqrt {-a^{2} x^{2}+1}}d x \right ) a \right ) \] Input:
int((a*x+1)/(-a^2*x^2+1)^(1/2)*x^m*(-a^2*c*x^2+c)^2,x)
Output:
c**2*(int(x**m/sqrt( - a**2*x**2 + 1),x) + int((x**m*x**5)/sqrt( - a**2*x* *2 + 1),x)*a**5 + int((x**m*x**4)/sqrt( - a**2*x**2 + 1),x)*a**4 - 2*int(( x**m*x**3)/sqrt( - a**2*x**2 + 1),x)*a**3 - 2*int((x**m*x**2)/sqrt( - a**2 *x**2 + 1),x)*a**2 + int((x**m*x)/sqrt( - a**2*x**2 + 1),x)*a)