Integrand size = 15, antiderivative size = 87 \[ \int \frac {1}{\sqrt {a-a \text {sech}(c+d x)}} \, dx=\frac {2 \text {arctanh}\left (\frac {\sqrt {a} \tanh (c+d x)}{\sqrt {a-a \text {sech}(c+d x)}}\right )}{\sqrt {a} d}-\frac {\sqrt {2} \text {arctanh}\left (\frac {\sqrt {a} \tanh (c+d x)}{\sqrt {2} \sqrt {a-a \text {sech}(c+d x)}}\right )}{\sqrt {a} d} \] Output:
2*arctanh(a^(1/2)*tanh(d*x+c)/(a-a*sech(d*x+c))^(1/2))/a^(1/2)/d-2^(1/2)*a rctanh(1/2*a^(1/2)*tanh(d*x+c)*2^(1/2)/(a-a*sech(d*x+c))^(1/2))/a^(1/2)/d
Time = 1.71 (sec) , antiderivative size = 118, normalized size of antiderivative = 1.36 \[ \int \frac {1}{\sqrt {a-a \text {sech}(c+d x)}} \, dx=\frac {\left (-1+e^{c+d x}\right ) \left (\sqrt {2} \text {arcsinh}\left (e^{c+d x}\right )-2 \text {arctanh}\left (\frac {1+e^{c+d x}}{\sqrt {2} \sqrt {1+e^{2 (c+d x)}}}\right )+\sqrt {2} \text {arctanh}\left (\sqrt {1+e^{2 (c+d x)}}\right )\right )}{\sqrt {2} d \sqrt {1+e^{2 (c+d x)}} \sqrt {a-a \text {sech}(c+d x)}} \] Input:
Integrate[1/Sqrt[a - a*Sech[c + d*x]],x]
Output:
((-1 + E^(c + d*x))*(Sqrt[2]*ArcSinh[E^(c + d*x)] - 2*ArcTanh[(1 + E^(c + d*x))/(Sqrt[2]*Sqrt[1 + E^(2*(c + d*x))])] + Sqrt[2]*ArcTanh[Sqrt[1 + E^(2 *(c + d*x))]]))/(Sqrt[2]*d*Sqrt[1 + E^(2*(c + d*x))]*Sqrt[a - a*Sech[c + d *x]])
Time = 0.48 (sec) , antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.467, Rules used = {3042, 4263, 3042, 4261, 216, 4282, 216}
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 {1}{\sqrt {a-a \text {sech}(c+d x)}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {1}{\sqrt {a-a \csc \left (i c+i d x+\frac {\pi }{2}\right )}}dx\) |
\(\Big \downarrow \) 4263 |
\(\displaystyle \int \frac {\text {sech}(c+d x)}{\sqrt {a-a \text {sech}(c+d x)}}dx+\frac {\int \sqrt {a-a \text {sech}(c+d x)}dx}{a}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\csc \left (i c+i d x+\frac {\pi }{2}\right )}{\sqrt {a-a \csc \left (i c+i d x+\frac {\pi }{2}\right )}}dx+\frac {\int \sqrt {a-a \csc \left (i c+i d x+\frac {\pi }{2}\right )}dx}{a}\) |
\(\Big \downarrow \) 4261 |
\(\displaystyle \int \frac {\csc \left (i c+i d x+\frac {\pi }{2}\right )}{\sqrt {a-a \csc \left (i c+i d x+\frac {\pi }{2}\right )}}dx-\frac {2 i \int \frac {1}{a-\frac {a^2 \tanh ^2(c+d x)}{a-a \text {sech}(c+d x)}}d\frac {i a \tanh (c+d x)}{\sqrt {a-a \text {sech}(c+d x)}}}{d}\) |
\(\Big \downarrow \) 216 |
\(\displaystyle \frac {2 \text {arctanh}\left (\frac {\sqrt {a} \tanh (c+d x)}{\sqrt {a-a \text {sech}(c+d x)}}\right )}{\sqrt {a} d}+\int \frac {\csc \left (i c+i d x+\frac {\pi }{2}\right )}{\sqrt {a-a \csc \left (i c+i d x+\frac {\pi }{2}\right )}}dx\) |
\(\Big \downarrow \) 4282 |
\(\displaystyle \frac {2 \text {arctanh}\left (\frac {\sqrt {a} \tanh (c+d x)}{\sqrt {a-a \text {sech}(c+d x)}}\right )}{\sqrt {a} d}+\frac {2 i \int \frac {1}{2 a-\frac {a^2 \tanh ^2(c+d x)}{a-a \text {sech}(c+d x)}}d\frac {i a \tanh (c+d x)}{\sqrt {a-a \text {sech}(c+d x)}}}{d}\) |
\(\Big \downarrow \) 216 |
\(\displaystyle \frac {2 \text {arctanh}\left (\frac {\sqrt {a} \tanh (c+d x)}{\sqrt {a-a \text {sech}(c+d x)}}\right )}{\sqrt {a} d}-\frac {\sqrt {2} \text {arctanh}\left (\frac {\sqrt {a} \tanh (c+d x)}{\sqrt {2} \sqrt {a-a \text {sech}(c+d x)}}\right )}{\sqrt {a} d}\) |
Input:
Int[1/Sqrt[a - a*Sech[c + d*x]],x]
Output:
(2*ArcTanh[(Sqrt[a]*Tanh[c + d*x])/Sqrt[a - a*Sech[c + d*x]]])/(Sqrt[a]*d) - (Sqrt[2]*ArcTanh[(Sqrt[a]*Tanh[c + d*x])/(Sqrt[2]*Sqrt[a - a*Sech[c + d *x]])])/(Sqrt[a]*d)
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*A rcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a , 0] || GtQ[b, 0])
Int[Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[-2*(b/d) Subst[Int[1/(a + x^2), x], x, b*(Cot[c + d*x]/Sqrt[a + b*Csc[c + d*x]])], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0]
Int[1/Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[1/a I nt[Sqrt[a + b*Csc[c + d*x]], x], x] - Simp[b/a Int[Csc[c + d*x]/Sqrt[a + b*Csc[c + d*x]], x], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0]
Int[csc[(e_.) + (f_.)*(x_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_S ymbol] :> Simp[-2/f Subst[Int[1/(2*a + x^2), x], x, b*(Cot[e + f*x]/Sqrt[ a + b*Csc[e + f*x]])], x] /; FreeQ[{a, b, e, f}, x] && EqQ[a^2 - b^2, 0]
\[\int \frac {1}{\sqrt {a -a \,\operatorname {sech}\left (d x +c \right )}}d x\]
Input:
int(1/(a-a*sech(d*x+c))^(1/2),x)
Output:
int(1/(a-a*sech(d*x+c))^(1/2),x)
Leaf count of result is larger than twice the leaf count of optimal. 871 vs. \(2 (72) = 144\).
Time = 0.11 (sec) , antiderivative size = 871, normalized size of antiderivative = 10.01 \[ \int \frac {1}{\sqrt {a-a \text {sech}(c+d x)}} \, dx=\text {Too large to display} \] Input:
integrate(1/(a-a*sech(d*x+c))^(1/2),x, algorithm="fricas")
Output:
1/2*(sqrt(2)*sqrt(a)*log(-(3*cosh(d*x + c)^2 + 2*(3*cosh(d*x + c) + 1)*sin h(d*x + c) + 3*sinh(d*x + c)^2 - 2*sqrt(2)*(cosh(d*x + c)^3 + (3*cosh(d*x + c) + 1)*sinh(d*x + c)^2 + sinh(d*x + c)^3 + cosh(d*x + c)^2 + (3*cosh(d* x + c)^2 + 2*cosh(d*x + c) + 1)*sinh(d*x + c) + cosh(d*x + c) + 1)*sqrt(a/ (cosh(d*x + c)^2 + 2*cosh(d*x + c)*sinh(d*x + c) + sinh(d*x + c)^2 + 1))/s qrt(a) + 2*cosh(d*x + c) + 3)/(cosh(d*x + c)^2 + 2*(cosh(d*x + c) - 1)*sin h(d*x + c) + sinh(d*x + c)^2 - 2*cosh(d*x + c) + 1)) + sqrt(a)*log((a*cosh (d*x + c)^4 + a*sinh(d*x + c)^4 + 3*a*cosh(d*x + c)^3 + (4*a*cosh(d*x + c) + 3*a)*sinh(d*x + c)^3 + 5*a*cosh(d*x + c)^2 + (6*a*cosh(d*x + c)^2 + 9*a *cosh(d*x + c) + 5*a)*sinh(d*x + c)^2 + (cosh(d*x + c)^5 + (5*cosh(d*x + c ) + 3)*sinh(d*x + c)^4 + sinh(d*x + c)^5 + 3*cosh(d*x + c)^4 + (10*cosh(d* x + c)^2 + 12*cosh(d*x + c) + 5)*sinh(d*x + c)^3 + 5*cosh(d*x + c)^3 + (10 *cosh(d*x + c)^3 + 18*cosh(d*x + c)^2 + 15*cosh(d*x + c) + 7)*sinh(d*x + c )^2 + 7*cosh(d*x + c)^2 + (5*cosh(d*x + c)^4 + 12*cosh(d*x + c)^3 + 15*cos h(d*x + c)^2 + 14*cosh(d*x + c) + 4)*sinh(d*x + c) + 4*cosh(d*x + c) + 4)* sqrt(a)*sqrt(a/(cosh(d*x + c)^2 + 2*cosh(d*x + c)*sinh(d*x + c) + sinh(d*x + c)^2 + 1)) + 4*a*cosh(d*x + c) + (4*a*cosh(d*x + c)^3 + 9*a*cosh(d*x + c)^2 + 10*a*cosh(d*x + c) + 4*a)*sinh(d*x + c) + 4*a)/(cosh(d*x + c)^3 + 3 *cosh(d*x + c)^2*sinh(d*x + c) + 3*cosh(d*x + c)*sinh(d*x + c)^2 + sinh(d* x + c)^3)) + sqrt(a)*log(-(a*cosh(d*x + c)^2 + a*sinh(d*x + c)^2 + (cos...
\[ \int \frac {1}{\sqrt {a-a \text {sech}(c+d x)}} \, dx=\int \frac {1}{\sqrt {- a \operatorname {sech}{\left (c + d x \right )} + a}}\, dx \] Input:
integrate(1/(a-a*sech(d*x+c))**(1/2),x)
Output:
Integral(1/sqrt(-a*sech(c + d*x) + a), x)
\[ \int \frac {1}{\sqrt {a-a \text {sech}(c+d x)}} \, dx=\int { \frac {1}{\sqrt {-a \operatorname {sech}\left (d x + c\right ) + a}} \,d x } \] Input:
integrate(1/(a-a*sech(d*x+c))^(1/2),x, algorithm="maxima")
Output:
integrate(1/sqrt(-a*sech(d*x + c) + a), x)
Exception generated. \[ \int \frac {1}{\sqrt {a-a \text {sech}(c+d x)}} \, dx=\text {Exception raised: TypeError} \] Input:
integrate(1/(a-a*sech(d*x+c))^(1/2),x, algorithm="giac")
Output:
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:index.cc index_m i_lex_is_greater E rror: Bad Argument Value
Timed out. \[ \int \frac {1}{\sqrt {a-a \text {sech}(c+d x)}} \, dx=\int \frac {1}{\sqrt {a-\frac {a}{\mathrm {cosh}\left (c+d\,x\right )}}} \,d x \] Input:
int(1/(a - a/cosh(c + d*x))^(1/2),x)
Output:
int(1/(a - a/cosh(c + d*x))^(1/2), x)
\[ \int \frac {1}{\sqrt {a-a \text {sech}(c+d x)}} \, dx=-\frac {\sqrt {a}\, \left (\int \frac {\sqrt {-\mathrm {sech}\left (d x +c \right )+1}}{\mathrm {sech}\left (d x +c \right )-1}d x \right )}{a} \] Input:
int(1/(a-a*sech(d*x+c))^(1/2),x)
Output:
( - sqrt(a)*int(sqrt( - sech(c + d*x) + 1)/(sech(c + d*x) - 1),x))/a