Integrand size = 22, antiderivative size = 111 \[ \int \frac {e^{n \text {arctanh}(a x)}}{c-\frac {c}{a x}} \, dx=-\frac {(1-a x)^{-n/2} (1+a x)^{\frac {2+n}{2}}}{a c n}-\frac {2^{1+\frac {n}{2}} (1+n) (1-a x)^{1-\frac {n}{2}} \operatorname {Hypergeometric2F1}\left (1-\frac {n}{2},-\frac {n}{2},2-\frac {n}{2},\frac {1}{2} (1-a x)\right )}{a c (2-n) n} \] Output:
-(a*x+1)^(1+1/2*n)/a/c/n/((-a*x+1)^(1/2*n))-2^(1+1/2*n)*(1+n)*(-a*x+1)^(1- 1/2*n)*hypergeom([-1/2*n, 1-1/2*n],[2-1/2*n],-1/2*a*x+1/2)/a/c/(2-n)/n
Time = 0.03 (sec) , antiderivative size = 95, normalized size of antiderivative = 0.86 \[ \int \frac {e^{n \text {arctanh}(a x)}}{c-\frac {c}{a x}} \, dx=\frac {(1-a x)^{-n/2} \left (-\left ((-2+n) (1+a x)^{1+\frac {n}{2}}\right )-2^{1+\frac {n}{2}} (1+n) (-1+a x) \operatorname {Hypergeometric2F1}\left (1-\frac {n}{2},-\frac {n}{2},2-\frac {n}{2},\frac {1}{2} (1-a x)\right )\right )}{a c (-2+n) n} \] Input:
Integrate[E^(n*ArcTanh[a*x])/(c - c/(a*x)),x]
Output:
(-((-2 + n)*(1 + a*x)^(1 + n/2)) - 2^(1 + n/2)*(1 + n)*(-1 + a*x)*Hypergeo metric2F1[1 - n/2, -1/2*n, 2 - n/2, (1 - a*x)/2])/(a*c*(-2 + n)*n*(1 - a*x )^(n/2))
Time = 0.39 (sec) , antiderivative size = 109, normalized size of antiderivative = 0.98, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {6681, 6679, 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)}}{c-\frac {c}{a x}} \, dx\) |
\(\Big \downarrow \) 6681 |
\(\displaystyle -\frac {a \int \frac {e^{n \text {arctanh}(a x)} x}{1-a x}dx}{c}\) |
\(\Big \downarrow \) 6679 |
\(\displaystyle -\frac {a \int x (1-a x)^{-\frac {n}{2}-1} (a x+1)^{n/2}dx}{c}\) |
\(\Big \downarrow \) 88 |
\(\displaystyle -\frac {a \left (\frac {(1-a x)^{-n/2} (a x+1)^{\frac {n+2}{2}}}{a^2 n}-\frac {(n+1) \int (1-a x)^{-n/2} (a x+1)^{n/2}dx}{a n}\right )}{c}\) |
\(\Big \downarrow \) 79 |
\(\displaystyle -\frac {a \left (\frac {2^{\frac {n}{2}+1} (n+1) (1-a x)^{1-\frac {n}{2}} \operatorname {Hypergeometric2F1}\left (1-\frac {n}{2},-\frac {n}{2},2-\frac {n}{2},\frac {1}{2} (1-a x)\right )}{a^2 (2-n) n}+\frac {(a x+1)^{\frac {n+2}{2}} (1-a x)^{-n/2}}{a^2 n}\right )}{c}\) |
Input:
Int[E^(n*ArcTanh[a*x])/(c - c/(a*x)),x]
Output:
-((a*((1 + a*x)^((2 + n)/2)/(a^2*n*(1 - a*x)^(n/2)) + (2^(1 + n/2)*(1 + n) *(1 - a*x)^(1 - n/2)*Hypergeometric2F1[1 - n/2, -1/2*n, 2 - n/2, (1 - a*x) /2])/(a^2*(2 - n)*n)))/c)
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[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 )}}{c -\frac {c}{a x}}d x\]
Input:
int(exp(n*arctanh(a*x))/(c-c/a/x),x)
Output:
int(exp(n*arctanh(a*x))/(c-c/a/x),x)
\[ \int \frac {e^{n \text {arctanh}(a x)}}{c-\frac {c}{a x}} \, dx=\int { \frac {\left (-\frac {a x + 1}{a x - 1}\right )^{\frac {1}{2} \, n}}{c - \frac {c}{a x}} \,d x } \] Input:
integrate(exp(n*arctanh(a*x))/(c-c/a/x),x, algorithm="fricas")
Output:
integral(a*x*(-(a*x + 1)/(a*x - 1))^(1/2*n)/(a*c*x - c), x)
\[ \int \frac {e^{n \text {arctanh}(a x)}}{c-\frac {c}{a x}} \, dx=\frac {a \int \frac {x e^{n \operatorname {atanh}{\left (a x \right )}}}{a x - 1}\, dx}{c} \] Input:
integrate(exp(n*atanh(a*x))/(c-c/a/x),x)
Output:
a*Integral(x*exp(n*atanh(a*x))/(a*x - 1), x)/c
\[ \int \frac {e^{n \text {arctanh}(a x)}}{c-\frac {c}{a x}} \, dx=\int { \frac {\left (-\frac {a x + 1}{a x - 1}\right )^{\frac {1}{2} \, n}}{c - \frac {c}{a x}} \,d x } \] Input:
integrate(exp(n*arctanh(a*x))/(c-c/a/x),x, algorithm="maxima")
Output:
integrate((-(a*x + 1)/(a*x - 1))^(1/2*n)/(c - c/(a*x)), x)
Exception generated. \[ \int \frac {e^{n \text {arctanh}(a x)}}{c-\frac {c}{a x}} \, dx=\text {Exception raised: TypeError} \] Input:
integrate(exp(n*arctanh(a*x))/(c-c/a/x),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,1]%%%} Error: Bad Argument Valu e
Timed out. \[ \int \frac {e^{n \text {arctanh}(a x)}}{c-\frac {c}{a x}} \, dx=\int \frac {{\mathrm {e}}^{n\,\mathrm {atanh}\left (a\,x\right )}}{c-\frac {c}{a\,x}} \,d x \] Input:
int(exp(n*atanh(a*x))/(c - c/(a*x)),x)
Output:
int(exp(n*atanh(a*x))/(c - c/(a*x)), x)
\[ \int \frac {e^{n \text {arctanh}(a x)}}{c-\frac {c}{a x}} \, dx=\frac {\left (\int \frac {e^{\mathit {atanh} \left (a x \right ) n} x}{a x -1}d x \right ) a}{c} \] Input:
int(exp(n*atanh(a*x))/(c-c/a/x),x)
Output:
(int((e**(atanh(a*x)*n)*x)/(a*x - 1),x)*a)/c