Integrand size = 14, antiderivative size = 74 \[ \int \frac {1}{\sqrt {a+b \tanh (c+d x)}} \, dx=-\frac {\text {arctanh}\left (\frac {\sqrt {a+b \tanh (c+d x)}}{\sqrt {a-b}}\right )}{\sqrt {a-b} d}+\frac {\text {arctanh}\left (\frac {\sqrt {a+b \tanh (c+d x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b} d} \]
-arctanh((a+b*tanh(d*x+c))^(1/2)/(a-b)^(1/2))/d/(a-b)^(1/2)+arctanh((a+b*t anh(d*x+c))^(1/2)/(a+b)^(1/2))/d/(a+b)^(1/2)
Time = 0.05 (sec) , antiderivative size = 74, normalized size of antiderivative = 1.00 \[ \int \frac {1}{\sqrt {a+b \tanh (c+d x)}} \, dx=-\frac {\text {arctanh}\left (\frac {\sqrt {a+b \tanh (c+d x)}}{\sqrt {a-b}}\right )}{\sqrt {a-b} d}+\frac {\text {arctanh}\left (\frac {\sqrt {a+b \tanh (c+d x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b} d} \]
-(ArcTanh[Sqrt[a + b*Tanh[c + d*x]]/Sqrt[a - b]]/(Sqrt[a - b]*d)) + ArcTan h[Sqrt[a + b*Tanh[c + d*x]]/Sqrt[a + b]]/(Sqrt[a + b]*d)
Time = 0.26 (sec) , antiderivative size = 85, normalized size of antiderivative = 1.15, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {3042, 3966, 25, 484, 1406, 219}
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+b \tanh (c+d x)}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {1}{\sqrt {a-i b \tan (i c+i d x)}}dx\) |
\(\Big \downarrow \) 3966 |
\(\displaystyle -\frac {b \int -\frac {1}{\sqrt {a+b \tanh (c+d x)} \left (b^2-b^2 \tanh ^2(c+d x)\right )}d(b \tanh (c+d x))}{d}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {b \int \frac {1}{\sqrt {a+b \tanh (c+d x)} \left (b^2-b^2 \tanh ^2(c+d x)\right )}d(b \tanh (c+d x))}{d}\) |
\(\Big \downarrow \) 484 |
\(\displaystyle \frac {2 b \int \frac {1}{-b^4 \tanh ^4(c+d x)+2 a b^2 \tanh ^2(c+d x)-a^2+b^2}d\sqrt {a+b \tanh (c+d x)}}{d}\) |
\(\Big \downarrow \) 1406 |
\(\displaystyle \frac {2 b \left (\frac {\int \frac {1}{-b^2 \tanh ^2(c+d x)+a+b}d\sqrt {a+b \tanh (c+d x)}}{2 b}-\frac {\int \frac {1}{-b^2 \tanh ^2(c+d x)+a-b}d\sqrt {a+b \tanh (c+d x)}}{2 b}\right )}{d}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {2 b \left (\frac {\text {arctanh}\left (\frac {\sqrt {a+b \tanh (c+d x)}}{\sqrt {a+b}}\right )}{2 b \sqrt {a+b}}-\frac {\text {arctanh}\left (\frac {\sqrt {a+b \tanh (c+d x)}}{\sqrt {a-b}}\right )}{2 b \sqrt {a-b}}\right )}{d}\) |
(2*b*(-1/2*ArcTanh[Sqrt[a + b*Tanh[c + d*x]]/Sqrt[a - b]]/(Sqrt[a - b]*b) + ArcTanh[Sqrt[a + b*Tanh[c + d*x]]/Sqrt[a + b]]/(2*b*Sqrt[a + b])))/d
3.1.68.3.1 Defintions of rubi rules used
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[1/(Sqrt[(c_) + (d_.)*(x_)]*((a_) + (b_.)*(x_)^2)), x_Symbol] :> Simp[2* d Subst[Int[1/(b*c^2 + a*d^2 - 2*b*c*x^2 + b*x^4), x], x, Sqrt[c + d*x]], x] /; FreeQ[{a, b, c, d}, x]
Int[((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(-1), x_Symbol] :> With[{q = Rt[b^ 2 - 4*a*c, 2]}, Simp[c/q Int[1/(b/2 - q/2 + c*x^2), x], x] - Simp[c/q I nt[1/(b/2 + q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c , 0] && PosQ[b^2 - 4*a*c]
Int[((a_) + (b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[b/d Su bst[Int[(a + x)^n/(b^2 + x^2), x], x, b*Tan[c + d*x]], x] /; FreeQ[{a, b, c , d, n}, x] && NeQ[a^2 + b^2, 0]
Time = 0.06 (sec) , antiderivative size = 62, normalized size of antiderivative = 0.84
method | result | size |
derivativedivides | \(\frac {\arctan \left (\frac {\sqrt {a +b \tanh \left (d x +c \right )}}{\sqrt {-a +b}}\right )}{d \sqrt {-a +b}}+\frac {\operatorname {arctanh}\left (\frac {\sqrt {a +b \tanh \left (d x +c \right )}}{\sqrt {a +b}}\right )}{d \sqrt {a +b}}\) | \(62\) |
default | \(\frac {\arctan \left (\frac {\sqrt {a +b \tanh \left (d x +c \right )}}{\sqrt {-a +b}}\right )}{d \sqrt {-a +b}}+\frac {\operatorname {arctanh}\left (\frac {\sqrt {a +b \tanh \left (d x +c \right )}}{\sqrt {a +b}}\right )}{d \sqrt {a +b}}\) | \(62\) |
1/d/(-a+b)^(1/2)*arctan((a+b*tanh(d*x+c))^(1/2)/(-a+b)^(1/2))+arctanh((a+b *tanh(d*x+c))^(1/2)/(a+b)^(1/2))/d/(a+b)^(1/2)
Leaf count of result is larger than twice the leaf count of optimal. 351 vs. \(2 (62) = 124\).
Time = 0.31 (sec) , antiderivative size = 2279, normalized size of antiderivative = 30.80 \[ \int \frac {1}{\sqrt {a+b \tanh (c+d x)}} \, dx=\text {Too large to display} \]
[1/4*(sqrt(a + b)*(a - b)*log(2*(a^2 + 2*a*b + b^2)*cosh(d*x + c)^4 + 8*(a ^2 + 2*a*b + b^2)*cosh(d*x + c)*sinh(d*x + c)^3 + 2*(a^2 + 2*a*b + b^2)*si nh(d*x + c)^4 + 4*(a^2 + a*b)*cosh(d*x + c)^2 + 4*(3*(a^2 + 2*a*b + b^2)*c osh(d*x + c)^2 + a^2 + a*b)*sinh(d*x + c)^2 + 2*a^2 - b^2 + 2*((a + b)*cos h(d*x + c)^4 + 4*(a + b)*cosh(d*x + c)*sinh(d*x + c)^3 + (a + b)*sinh(d*x + c)^4 + (2*a + b)*cosh(d*x + c)^2 + (6*(a + b)*cosh(d*x + c)^2 + 2*a + b) *sinh(d*x + c)^2 + 2*(2*(a + b)*cosh(d*x + c)^3 + (2*a + b)*cosh(d*x + c)) *sinh(d*x + c) + a)*sqrt(a + b)*sqrt((a*cosh(d*x + c) + b*sinh(d*x + c))/c osh(d*x + c)) + 8*((a^2 + 2*a*b + b^2)*cosh(d*x + c)^3 + (a^2 + a*b)*cosh( d*x + c))*sinh(d*x + c)) + (a + b)*sqrt(a - b)*log(((2*a^2 - b^2)*cosh(d*x + c)^4 + 4*(2*a^2 - b^2)*cosh(d*x + c)*sinh(d*x + c)^3 + (2*a^2 - b^2)*si nh(d*x + c)^4 + 4*(a^2 - a*b)*cosh(d*x + c)^2 + 2*(3*(2*a^2 - b^2)*cosh(d* x + c)^2 + 2*a^2 - 2*a*b)*sinh(d*x + c)^2 + 2*a^2 - 4*a*b + 2*b^2 - 2*(a*c osh(d*x + c)^4 + 4*a*cosh(d*x + c)*sinh(d*x + c)^3 + a*sinh(d*x + c)^4 + ( 2*a - b)*cosh(d*x + c)^2 + (6*a*cosh(d*x + c)^2 + 2*a - b)*sinh(d*x + c)^2 + 2*(2*a*cosh(d*x + c)^3 + (2*a - b)*cosh(d*x + c))*sinh(d*x + c) + a - b )*sqrt(a - b)*sqrt((a*cosh(d*x + c) + b*sinh(d*x + c))/cosh(d*x + c)) + 4* ((2*a^2 - b^2)*cosh(d*x + c)^3 + 2*(a^2 - a*b)*cosh(d*x + c))*sinh(d*x + c ))/(cosh(d*x + c)^4 + 4*cosh(d*x + c)^3*sinh(d*x + c) + 6*cosh(d*x + c)^2* sinh(d*x + c)^2 + 4*cosh(d*x + c)*sinh(d*x + c)^3 + sinh(d*x + c)^4)))/...
\[ \int \frac {1}{\sqrt {a+b \tanh (c+d x)}} \, dx=\int \frac {1}{\sqrt {a + b \tanh {\left (c + d x \right )}}}\, dx \]
Exception generated. \[ \int \frac {1}{\sqrt {a+b \tanh (c+d x)}} \, dx=\text {Exception raised: ValueError} \]
Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'assume' command before evaluation *may* help (example of legal syntax is 'assume(4*a-4*b>0)', see `assume?` for m ore detail
Exception generated. \[ \int \frac {1}{\sqrt {a+b \tanh (c+d x)}} \, dx=\text {Exception raised: TypeError} \]
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:index.cc index_m operator + Error: Bad Argument Value
Time = 1.99 (sec) , antiderivative size = 240, normalized size of antiderivative = 3.24 \[ \int \frac {1}{\sqrt {a+b \tanh (c+d x)}} \, dx=\frac {\mathrm {atanh}\left (\frac {\left (a\,d^3+b\,d^3\right )\,\sqrt {a+b\,\mathrm {tanh}\left (c+d\,x\right )}}{b\,d^3\,\sqrt {a+b}}-\frac {16\,a\,b^2\,\sqrt {a+b\,\mathrm {tanh}\left (c+d\,x\right )}}{\left (\frac {16\,b^4\,d^3}{a\,d^3+b\,d^3}+\frac {16\,a\,b^3\,d^3}{a\,d^3+b\,d^3}\right )\,\sqrt {a+b}}\right )}{d\,\sqrt {a+b}}+\frac {\mathrm {atanh}\left (\frac {16\,a\,b^2\,\sqrt {a+b\,\mathrm {tanh}\left (c+d\,x\right )}}{\left (\frac {16\,b^4\,d^3}{a\,d^3-b\,d^3}-\frac {16\,a\,b^3\,d^3}{a\,d^3-b\,d^3}\right )\,\sqrt {a-b}}+\frac {\left (a\,d^3-b\,d^3\right )\,\sqrt {a+b\,\mathrm {tanh}\left (c+d\,x\right )}}{b\,d^3\,\sqrt {a-b}}\right )}{d\,\sqrt {a-b}} \]
atanh(((a*d^3 + b*d^3)*(a + b*tanh(c + d*x))^(1/2))/(b*d^3*(a + b)^(1/2)) - (16*a*b^2*(a + b*tanh(c + d*x))^(1/2))/(((16*b^4*d^3)/(a*d^3 + b*d^3) + (16*a*b^3*d^3)/(a*d^3 + b*d^3))*(a + b)^(1/2)))/(d*(a + b)^(1/2)) + atanh( (16*a*b^2*(a + b*tanh(c + d*x))^(1/2))/(((16*b^4*d^3)/(a*d^3 - b*d^3) - (1 6*a*b^3*d^3)/(a*d^3 - b*d^3))*(a - b)^(1/2)) + ((a*d^3 - b*d^3)*(a + b*tan h(c + d*x))^(1/2))/(b*d^3*(a - b)^(1/2)))/(d*(a - b)^(1/2))