Integrand size = 24, antiderivative size = 71 \[ \int \frac {e^{2 \text {arctanh}(a x)}}{\sqrt {c-\frac {c}{a x}}} \, dx=\frac {5}{a \sqrt {c-\frac {c}{a x}}}-\frac {x}{\sqrt {c-\frac {c}{a x}}}-\frac {5 \text {arctanh}\left (\frac {\sqrt {c-\frac {c}{a x}}}{\sqrt {c}}\right )}{a \sqrt {c}} \] Output:
5/a/(c-c/a/x)^(1/2)-x/(c-c/a/x)^(1/2)-5*arctanh((c-c/a/x)^(1/2)/c^(1/2))/a /c^(1/2)
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.03 (sec) , antiderivative size = 44, normalized size of antiderivative = 0.62 \[ \int \frac {e^{2 \text {arctanh}(a x)}}{\sqrt {c-\frac {c}{a x}}} \, dx=\frac {-a x+5 \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},1,\frac {1}{2},1-\frac {1}{a x}\right )}{a \sqrt {c-\frac {c}{a x}}} \] Input:
Integrate[E^(2*ArcTanh[a*x])/Sqrt[c - c/(a*x)],x]
Output:
(-(a*x) + 5*Hypergeometric2F1[-1/2, 1, 1/2, 1 - 1/(a*x)])/(a*Sqrt[c - c/(a *x)])
Time = 0.54 (sec) , antiderivative size = 82, normalized size of antiderivative = 1.15, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {6683, 1035, 281, 899, 87, 61, 73, 221}
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^{2 \text {arctanh}(a x)}}{\sqrt {c-\frac {c}{a x}}} \, dx\) |
\(\Big \downarrow \) 6683 |
\(\displaystyle \int \frac {a x+1}{(1-a x) \sqrt {c-\frac {c}{a x}}}dx\) |
\(\Big \downarrow \) 1035 |
\(\displaystyle \int \frac {a+\frac {1}{x}}{\left (\frac {1}{x}-a\right ) \sqrt {c-\frac {c}{a x}}}dx\) |
\(\Big \downarrow \) 281 |
\(\displaystyle -\frac {c \int \frac {a+\frac {1}{x}}{\left (c-\frac {c}{a x}\right )^{3/2}}dx}{a}\) |
\(\Big \downarrow \) 899 |
\(\displaystyle \frac {c \int \frac {\left (a+\frac {1}{x}\right ) x^2}{\left (c-\frac {c}{a x}\right )^{3/2}}d\frac {1}{x}}{a}\) |
\(\Big \downarrow \) 87 |
\(\displaystyle \frac {c \left (\frac {5}{2} \int \frac {x}{\left (c-\frac {c}{a x}\right )^{3/2}}d\frac {1}{x}-\frac {a x}{c \sqrt {c-\frac {c}{a x}}}\right )}{a}\) |
\(\Big \downarrow \) 61 |
\(\displaystyle \frac {c \left (\frac {5}{2} \left (\frac {\int \frac {x}{\sqrt {c-\frac {c}{a x}}}d\frac {1}{x}}{c}+\frac {2}{c \sqrt {c-\frac {c}{a x}}}\right )-\frac {a x}{c \sqrt {c-\frac {c}{a x}}}\right )}{a}\) |
\(\Big \downarrow \) 73 |
\(\displaystyle \frac {c \left (\frac {5}{2} \left (\frac {2}{c \sqrt {c-\frac {c}{a x}}}-\frac {2 a \int \frac {1}{a-\frac {a}{c x^2}}d\sqrt {c-\frac {c}{a x}}}{c^2}\right )-\frac {a x}{c \sqrt {c-\frac {c}{a x}}}\right )}{a}\) |
\(\Big \downarrow \) 221 |
\(\displaystyle \frac {c \left (\frac {5}{2} \left (\frac {2}{c \sqrt {c-\frac {c}{a x}}}-\frac {2 \text {arctanh}\left (\frac {\sqrt {c-\frac {c}{a x}}}{\sqrt {c}}\right )}{c^{3/2}}\right )-\frac {a x}{c \sqrt {c-\frac {c}{a x}}}\right )}{a}\) |
Input:
Int[E^(2*ArcTanh[a*x])/Sqrt[c - c/(a*x)],x]
Output:
(c*(-((a*x)/(c*Sqrt[c - c/(a*x)])) + (5*(2/(c*Sqrt[c - c/(a*x)]) - (2*ArcT anh[Sqrt[c - c/(a*x)]/Sqrt[c]])/c^(3/2)))/2))/a
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[ (a + b*x)^(m + 1)*((c + d*x)^(n + 1)/((b*c - a*d)*(m + 1))), x] - Simp[d*(( m + n + 2)/((b*c - a*d)*(m + 1))) Int[(a + b*x)^(m + 1)*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && LtQ[m, -1] && !(LtQ[n, -1] && (EqQ[a, 0 ] || (NeQ[c, 0] && LtQ[m - n, 0] && IntegerQ[n]))) && IntLinearQ[a, b, c, d , m, n, x]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[ {p = Denominator[m]}, Simp[p/b Subst[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] && Lt Q[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntL inearQ[a, b, c, d, m, n, x]
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)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && LtQ[p, -1] && ( !LtQ[n, -1] || Intege rQ[p] || !(IntegerQ[n] || !(EqQ[e, 0] || !(EqQ[c, 0] || LtQ[p, n]))))
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x /Rt[-a/b, 2]], x] /; FreeQ[{a, b}, x] && NegQ[a/b]
Int[(u_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_ Symbol] :> Simp[(b/d)^p Int[u*(c + d*x^n)^(p + q), x], x] /; FreeQ[{a, b, c, d, n, p, q}, x] && EqQ[b*c - a*d, 0] && IntegerQ[p] && !(IntegerQ[q] & & SimplerQ[a + b*x^n, c + d*x^n])
Int[((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol ] :> -Subst[Int[(a + b/x^n)^p*((c + d/x^n)^q/x^2), x], x, 1/x] /; FreeQ[{a, b, c, d, p, q}, x] && NeQ[b*c - a*d, 0] && ILtQ[n, 0]
Int[((c_) + (d_.)*(x_)^(mn_.))^(q_.)*((a_.) + (b_.)*(x_)^(n_.))^(p_.)*((e_) + (f_.)*(x_)^(n_.))^(r_.), x_Symbol] :> Int[x^(n*(p + r))*(b + a/x^n)^p*(c + d/x^n)^q*(f + e/x^n)^r, x] /; FreeQ[{a, b, c, d, e, f, n, q}, x] && EqQ[ mn, -n] && IntegerQ[p] && IntegerQ[r]
Int[E^(ArcTanh[(a_.)*(x_)]*(n_))*(u_.)*((c_) + (d_.)/(x_))^(p_), x_Symbol] :> Int[u*(c + d/x)^p*((1 + a*x)^(n/2)/(1 - a*x)^(n/2)), x] /; FreeQ[{a, c, d, p}, x] && EqQ[c^2 - a^2*d^2, 0] && !IntegerQ[p] && IntegerQ[n/2] && !G tQ[c, 0]
Leaf count of result is larger than twice the leaf count of optimal. \(151\) vs. \(2(61)=122\).
Time = 0.11 (sec) , antiderivative size = 152, normalized size of antiderivative = 2.14
method | result | size |
risch | \(-\frac {a x -1}{a \sqrt {\frac {c \left (a x -1\right )}{a x}}}-\frac {\left (\frac {5 \ln \left (\frac {-\frac {1}{2} a c +a^{2} c x}{\sqrt {a^{2} c}}+\sqrt {a^{2} c \,x^{2}-a c x}\right )}{2 a \sqrt {a^{2} c}}-\frac {4 \sqrt {\left (x -\frac {1}{a}\right )^{2} a^{2} c +\left (x -\frac {1}{a}\right ) a c}}{a^{3} c \left (x -\frac {1}{a}\right )}\right ) \sqrt {c \left (a x -1\right ) a x}}{x \sqrt {\frac {c \left (a x -1\right )}{a x}}}\) | \(152\) |
default | \(\frac {\sqrt {\frac {c \left (a x -1\right )}{a x}}\, x \left (-10 \sqrt {x \left (a x -1\right )}\, a^{\frac {5}{2}} x^{2}+8 a^{\frac {3}{2}} \left (x \left (a x -1\right )\right )^{\frac {3}{2}}-5 \ln \left (\frac {2 \sqrt {x \left (a x -1\right )}\, \sqrt {a}+2 a x -1}{2 \sqrt {a}}\right ) a^{2} x^{2}+20 \sqrt {x \left (a x -1\right )}\, a^{\frac {3}{2}} x +10 \ln \left (\frac {2 \sqrt {x \left (a x -1\right )}\, \sqrt {a}+2 a x -1}{2 \sqrt {a}}\right ) a x -10 \sqrt {x \left (a x -1\right )}\, \sqrt {a}-5 \ln \left (\frac {2 \sqrt {x \left (a x -1\right )}\, \sqrt {a}+2 a x -1}{2 \sqrt {a}}\right )\right )}{2 \sqrt {x \left (a x -1\right )}\, c \left (a x -1\right )^{2} \sqrt {a}}\) | \(194\) |
Input:
int((a*x+1)^2/(-a^2*x^2+1)/(c-c/a/x)^(1/2),x,method=_RETURNVERBOSE)
Output:
-1/a*(a*x-1)/(c*(a*x-1)/a/x)^(1/2)-(5/2/a*ln((-1/2*a*c+a^2*c*x)/(a^2*c)^(1 /2)+(a^2*c*x^2-a*c*x)^(1/2))/(a^2*c)^(1/2)-4/a^3/c/(x-1/a)*((x-1/a)^2*a^2* c+(x-1/a)*a*c)^(1/2))*(c*(a*x-1)*a*x)^(1/2)/x/(c*(a*x-1)/a/x)^(1/2)
Time = 0.15 (sec) , antiderivative size = 184, normalized size of antiderivative = 2.59 \[ \int \frac {e^{2 \text {arctanh}(a x)}}{\sqrt {c-\frac {c}{a x}}} \, dx=\left [\frac {5 \, {\left (a x - 1\right )} \sqrt {c} \log \left (-2 \, a c x + 2 \, a \sqrt {c} x \sqrt {\frac {a c x - c}{a x}} + c\right ) - 2 \, {\left (a^{2} x^{2} - 5 \, a x\right )} \sqrt {\frac {a c x - c}{a x}}}{2 \, {\left (a^{2} c x - a c\right )}}, \frac {5 \, {\left (a x - 1\right )} \sqrt {-c} \arctan \left (\frac {a \sqrt {-c} x \sqrt {\frac {a c x - c}{a x}}}{a c x - c}\right ) - {\left (a^{2} x^{2} - 5 \, a x\right )} \sqrt {\frac {a c x - c}{a x}}}{a^{2} c x - a c}\right ] \] Input:
integrate((a*x+1)^2/(-a^2*x^2+1)/(c-c/a/x)^(1/2),x, algorithm="fricas")
Output:
[1/2*(5*(a*x - 1)*sqrt(c)*log(-2*a*c*x + 2*a*sqrt(c)*x*sqrt((a*c*x - c)/(a *x)) + c) - 2*(a^2*x^2 - 5*a*x)*sqrt((a*c*x - c)/(a*x)))/(a^2*c*x - a*c), (5*(a*x - 1)*sqrt(-c)*arctan(a*sqrt(-c)*x*sqrt((a*c*x - c)/(a*x))/(a*c*x - c)) - (a^2*x^2 - 5*a*x)*sqrt((a*c*x - c)/(a*x)))/(a^2*c*x - a*c)]
\[ \int \frac {e^{2 \text {arctanh}(a x)}}{\sqrt {c-\frac {c}{a x}}} \, dx=- \int \frac {a x}{a x \sqrt {c - \frac {c}{a x}} - \sqrt {c - \frac {c}{a x}}}\, dx - \int \frac {1}{a x \sqrt {c - \frac {c}{a x}} - \sqrt {c - \frac {c}{a x}}}\, dx \] Input:
integrate((a*x+1)**2/(-a**2*x**2+1)/(c-c/a/x)**(1/2),x)
Output:
-Integral(a*x/(a*x*sqrt(c - c/(a*x)) - sqrt(c - c/(a*x))), x) - Integral(1 /(a*x*sqrt(c - c/(a*x)) - sqrt(c - c/(a*x))), x)
\[ \int \frac {e^{2 \text {arctanh}(a x)}}{\sqrt {c-\frac {c}{a x}}} \, dx=\int { -\frac {{\left (a x + 1\right )}^{2}}{{\left (a^{2} x^{2} - 1\right )} \sqrt {c - \frac {c}{a x}}} \,d x } \] Input:
integrate((a*x+1)^2/(-a^2*x^2+1)/(c-c/a/x)^(1/2),x, algorithm="maxima")
Output:
-integrate((a*x + 1)^2/((a^2*x^2 - 1)*sqrt(c - c/(a*x))), x)
Leaf count of result is larger than twice the leaf count of optimal. 171 vs. \(2 (61) = 122\).
Time = 0.17 (sec) , antiderivative size = 171, normalized size of antiderivative = 2.41 \[ \int \frac {e^{2 \text {arctanh}(a x)}}{\sqrt {c-\frac {c}{a x}}} \, dx=-\frac {5 \, \log \left (c^{2} {\left | a \right |}\right ) \mathrm {sgn}\left (x\right )}{6 \, a \sqrt {c}} + \frac {5 \, \log \left ({\left | 2 \, {\left (\sqrt {a^{2} c} x - \sqrt {a^{2} c x^{2} - a c x}\right )}^{3} \sqrt {c} {\left | a \right |} - 5 \, {\left (\sqrt {a^{2} c} x - \sqrt {a^{2} c x^{2} - a c x}\right )}^{2} a c + 4 \, {\left (\sqrt {a^{2} c} x - \sqrt {a^{2} c x^{2} - a c x}\right )} c^{\frac {3}{2}} {\left | a \right |} - a c^{2} \right |}\right ) \mathrm {sgn}\left (x\right )}{6 \, a \sqrt {c}} - \frac {\sqrt {a^{2} c x^{2} - a c x} {\left | a \right |} \mathrm {sgn}\left (x\right )}{a^{2} c} \] Input:
integrate((a*x+1)^2/(-a^2*x^2+1)/(c-c/a/x)^(1/2),x, algorithm="giac")
Output:
-5/6*log(c^2*abs(a))*sgn(x)/(a*sqrt(c)) + 5/6*log(abs(2*(sqrt(a^2*c)*x - s qrt(a^2*c*x^2 - a*c*x))^3*sqrt(c)*abs(a) - 5*(sqrt(a^2*c)*x - sqrt(a^2*c*x ^2 - a*c*x))^2*a*c + 4*(sqrt(a^2*c)*x - sqrt(a^2*c*x^2 - a*c*x))*c^(3/2)*a bs(a) - a*c^2))*sgn(x)/(a*sqrt(c)) - sqrt(a^2*c*x^2 - a*c*x)*abs(a)*sgn(x) /(a^2*c)
Timed out. \[ \int \frac {e^{2 \text {arctanh}(a x)}}{\sqrt {c-\frac {c}{a x}}} \, dx=\int -\frac {{\left (a\,x+1\right )}^2}{\sqrt {c-\frac {c}{a\,x}}\,\left (a^2\,x^2-1\right )} \,d x \] Input:
int(-(a*x + 1)^2/((c - c/(a*x))^(1/2)*(a^2*x^2 - 1)),x)
Output:
int(-(a*x + 1)^2/((c - c/(a*x))^(1/2)*(a^2*x^2 - 1)), x)
Time = 0.15 (sec) , antiderivative size = 62, normalized size of antiderivative = 0.87 \[ \int \frac {e^{2 \text {arctanh}(a x)}}{\sqrt {c-\frac {c}{a x}}} \, dx=\frac {\sqrt {c}\, \left (-20 \sqrt {a x -1}\, \mathrm {log}\left (\sqrt {a x -1}+\sqrt {x}\, \sqrt {a}\right )+17 \sqrt {a x -1}-4 \sqrt {x}\, \sqrt {a}\, a x +20 \sqrt {x}\, \sqrt {a}\right )}{4 \sqrt {a x -1}\, a c} \] Input:
int((a*x+1)^2/(-a^2*x^2+1)/(c-c/a/x)^(1/2),x)
Output:
(sqrt(c)*( - 20*sqrt(a*x - 1)*log(sqrt(a*x - 1) + sqrt(x)*sqrt(a)) + 17*sq rt(a*x - 1) - 4*sqrt(x)*sqrt(a)*a*x + 20*sqrt(x)*sqrt(a)))/(4*sqrt(a*x - 1 )*a*c)