Integrand size = 22, antiderivative size = 139 \[ \int \frac {e^{n \text {arctanh}(a x)}}{\left (c-\frac {c}{a x}\right )^2} \, dx=\frac {(3+n) (1-a x)^{-1-\frac {n}{2}} (1+a x)^{\frac {2+n}{2}}}{a c^2 (2+n)}-\frac {x (1-a x)^{-1-\frac {n}{2}} (1+a x)^{\frac {2+n}{2}}}{c^2}-\frac {2^{1+\frac {n}{2}} (2+n) (1-a x)^{-n/2} \operatorname {Hypergeometric2F1}\left (-\frac {n}{2},-\frac {n}{2},1-\frac {n}{2},\frac {1}{2} (1-a x)\right )}{a c^2 n} \] Output:
(3+n)*(-a*x+1)^(-1-1/2*n)*(a*x+1)^(1+1/2*n)/a/c^2/(2+n)-x*(-a*x+1)^(-1-1/2 *n)*(a*x+1)^(1+1/2*n)/c^2-2^(1+1/2*n)*(2+n)*hypergeom([-1/2*n, -1/2*n],[1- 1/2*n],-1/2*a*x+1/2)/a/c^2/n/((-a*x+1)^(1/2*n))
Time = 0.18 (sec) , antiderivative size = 97, normalized size of antiderivative = 0.70 \[ \int \frac {e^{n \text {arctanh}(a x)}}{\left (c-\frac {c}{a x}\right )^2} \, dx=-\frac {(1-a x)^{-1-\frac {n}{2}} \left ((1+a x)^{1+\frac {n}{2}} (1+n+2 a x+a n x)-2^{2+\frac {n}{2}} (2+n) \operatorname {Hypergeometric2F1}\left (-1-\frac {n}{2},-1-\frac {n}{2},-\frac {n}{2},\frac {1}{2} (1-a x)\right )\right )}{a c^2 (2+n)} \] Input:
Integrate[E^(n*ArcTanh[a*x])/(c - c/(a*x))^2,x]
Output:
-(((1 - a*x)^(-1 - n/2)*((1 + a*x)^(1 + n/2)*(1 + n + 2*a*x + a*n*x) - 2^( 2 + n/2)*(2 + n)*Hypergeometric2F1[-1 - n/2, -1 - n/2, -1/2*n, (1 - a*x)/2 ]))/(a*c^2*(2 + n)))
Time = 0.73 (sec) , antiderivative size = 145, normalized size of antiderivative = 1.04, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {6681, 6679, 101, 25, 88, 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 \frac {e^{n \text {arctanh}(a x)}}{\left (c-\frac {c}{a x}\right )^2} \, dx\) |
\(\Big \downarrow \) 6681 |
\(\displaystyle \frac {a^2 \int \frac {e^{n \text {arctanh}(a x)} x^2}{(1-a x)^2}dx}{c^2}\) |
\(\Big \downarrow \) 6679 |
\(\displaystyle \frac {a^2 \int x^2 (1-a x)^{-\frac {n}{2}-2} (a x+1)^{n/2}dx}{c^2}\) |
\(\Big \downarrow \) 101 |
\(\displaystyle \frac {a^2 \left (-\frac {\int -(1-a x)^{-\frac {n}{2}-2} (a x+1)^{n/2} (a (n+2) x+1)dx}{a^2}-\frac {x (a x+1)^{\frac {n+2}{2}} (1-a x)^{-\frac {n}{2}-1}}{a^2}\right )}{c^2}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {a^2 \left (\frac {\int (1-a x)^{-\frac {n}{2}-2} (a x+1)^{n/2} (a (n+2) x+1)dx}{a^2}-\frac {x (1-a x)^{-\frac {n}{2}-1} (a x+1)^{\frac {n+2}{2}}}{a^2}\right )}{c^2}\) |
\(\Big \downarrow \) 88 |
\(\displaystyle \frac {a^2 \left (\frac {\frac {(n+3) (1-a x)^{-\frac {n}{2}-1} (a x+1)^{\frac {n+2}{2}}}{a (n+2)}-(n+2) \int (1-a x)^{-\frac {n}{2}-1} (a x+1)^{n/2}dx}{a^2}-\frac {x (1-a x)^{-\frac {n}{2}-1} (a x+1)^{\frac {n+2}{2}}}{a^2}\right )}{c^2}\) |
\(\Big \downarrow \) 79 |
\(\displaystyle \frac {a^2 \left (\frac {\frac {(n+3) (1-a x)^{-\frac {n}{2}-1} (a x+1)^{\frac {n+2}{2}}}{a (n+2)}-\frac {2^{\frac {n}{2}+1} (n+2) (1-a x)^{-n/2} \operatorname {Hypergeometric2F1}\left (-\frac {n}{2},-\frac {n}{2},1-\frac {n}{2},\frac {1}{2} (1-a x)\right )}{a n}}{a^2}-\frac {x (1-a x)^{-\frac {n}{2}-1} (a x+1)^{\frac {n+2}{2}}}{a^2}\right )}{c^2}\) |
Input:
Int[E^(n*ArcTanh[a*x])/(c - c/(a*x))^2,x]
Output:
(a^2*(-((x*(1 - a*x)^(-1 - n/2)*(1 + a*x)^((2 + n)/2))/a^2) + (((3 + n)*(1 - a*x)^(-1 - n/2)*(1 + a*x)^((2 + n)/2))/(a*(2 + n)) - (2^(1 + n/2)*(2 + n)*Hypergeometric2F1[-1/2*n, -1/2*n, 1 - n/2, (1 - a*x)/2])/(a*n*(1 - a*x) ^(n/2)))/a^2))/c^2
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]))
Int[((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p _.), x_] :> Simp[(-(b*e - a*f))*(c + d*x)^(n + 1)*((e + f*x)^(p + 1)/(f*(p + 1)*(c*f - d*e))), x] - Simp[(a*d*f*(n + p + 2) - b*(d*e*(n + 1) + c*f*(p + 1)))/(f*(p + 1)*(c*f - d*e)) Int[(c + d*x)^n*(e + f*x)^Simplify[p + 1], x], x] /; FreeQ[{a, b, c, d, e, f, n, p}, x] && !RationalQ[p] && SumSimpl erQ[p, 1]
Int[((a_.) + (b_.)*(x_))^2*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_))^( p_), x_] :> Simp[b*(a + b*x)*(c + d*x)^(n + 1)*((e + f*x)^(p + 1)/(d*f*(n + p + 3))), x] + Simp[1/(d*f*(n + p + 3)) Int[(c + d*x)^n*(e + f*x)^p*Simp [a^2*d*f*(n + p + 3) - b*(b*c*e + a*(d*e*(n + 1) + c*f*(p + 1))) + b*(a*d*f *(n + p + 4) - b*(d*e*(n + 2) + c*f*(p + 2)))*x, x], x], x] /; FreeQ[{a, b, c, d, e, f, n, p}, x] && NeQ[n + p + 3, 0]
Int[E^(ArcTanh[(a_.)*(x_)]*(n_.))*(u_.)*((c_) + (d_.)*(x_))^(p_.), x_Symbol ] :> Simp[c^p Int[u*(1 + d*(x/c))^p*((1 + a*x)^(n/2)/(1 - a*x)^(n/2)), x] , x] /; FreeQ[{a, c, d, n, p}, x] && EqQ[a^2*c^2 - d^2, 0] && (IntegerQ[p] || GtQ[c, 0])
Int[E^(ArcTanh[(a_.)*(x_)]*(n_.))*(u_.)*((c_) + (d_.)/(x_))^(p_.), x_Symbol ] :> Simp[d^p Int[u*(1 + c*(x/d))^p*(E^(n*ArcTanh[a*x])/x^p), x], x] /; F reeQ[{a, c, d, n}, x] && EqQ[c^2 - a^2*d^2, 0] && IntegerQ[p]
\[\int \frac {{\mathrm e}^{n \,\operatorname {arctanh}\left (a x \right )}}{\left (c -\frac {c}{a x}\right )^{2}}d x\]
Input:
int(exp(n*arctanh(a*x))/(c-c/a/x)^2,x)
Output:
int(exp(n*arctanh(a*x))/(c-c/a/x)^2,x)
\[ \int \frac {e^{n \text {arctanh}(a x)}}{\left (c-\frac {c}{a x}\right )^2} \, dx=\int { \frac {\left (-\frac {a x + 1}{a x - 1}\right )^{\frac {1}{2} \, n}}{{\left (c - \frac {c}{a x}\right )}^{2}} \,d x } \] Input:
integrate(exp(n*arctanh(a*x))/(c-c/a/x)^2,x, algorithm="fricas")
Output:
integral(a^2*x^2*(-(a*x + 1)/(a*x - 1))^(1/2*n)/(a^2*c^2*x^2 - 2*a*c^2*x + c^2), x)
\[ \int \frac {e^{n \text {arctanh}(a x)}}{\left (c-\frac {c}{a x}\right )^2} \, dx=\frac {a^{2} \int \frac {x^{2} e^{n \operatorname {atanh}{\left (a x \right )}}}{a^{2} x^{2} - 2 a x + 1}\, dx}{c^{2}} \] Input:
integrate(exp(n*atanh(a*x))/(c-c/a/x)**2,x)
Output:
a**2*Integral(x**2*exp(n*atanh(a*x))/(a**2*x**2 - 2*a*x + 1), x)/c**2
\[ \int \frac {e^{n \text {arctanh}(a x)}}{\left (c-\frac {c}{a x}\right )^2} \, dx=\int { \frac {\left (-\frac {a x + 1}{a x - 1}\right )^{\frac {1}{2} \, n}}{{\left (c - \frac {c}{a x}\right )}^{2}} \,d x } \] Input:
integrate(exp(n*arctanh(a*x))/(c-c/a/x)^2,x, algorithm="maxima")
Output:
integrate((-(a*x + 1)/(a*x - 1))^(1/2*n)/(c - c/(a*x))^2, x)
Exception generated. \[ \int \frac {e^{n \text {arctanh}(a x)}}{\left (c-\frac {c}{a x}\right )^2} \, dx=\text {Exception raised: TypeError} \] Input:
integrate(exp(n*arctanh(a*x))/(c-c/a/x)^2,x, algorithm="giac")
Output:
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:Unable to divide, perhaps due to ro unding error%%%{1,[0,1,0]%%%} / %%%{1,[0,0,2]%%%} Error: Bad Argument Valu e
Timed out. \[ \int \frac {e^{n \text {arctanh}(a x)}}{\left (c-\frac {c}{a x}\right )^2} \, dx=\int \frac {{\mathrm {e}}^{n\,\mathrm {atanh}\left (a\,x\right )}}{{\left (c-\frac {c}{a\,x}\right )}^2} \,d x \] Input:
int(exp(n*atanh(a*x))/(c - c/(a*x))^2,x)
Output:
int(exp(n*atanh(a*x))/(c - c/(a*x))^2, x)
\[ \int \frac {e^{n \text {arctanh}(a x)}}{\left (c-\frac {c}{a x}\right )^2} \, dx=\frac {\left (\int \frac {e^{\mathit {atanh} \left (a x \right ) n} x^{2}}{a^{2} x^{2}-2 a x +1}d x \right ) a^{2}}{c^{2}} \] Input:
int(exp(n*atanh(a*x))/(c-c/a/x)^2,x)
Output:
(int((e**(atanh(a*x)*n)*x**2)/(a**2*x**2 - 2*a*x + 1),x)*a**2)/c**2