3.2.36 \(\int \frac {\coth (c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx\) [136]
Optimal. Leaf size=106 \[ \frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a}}\right )}{\sqrt {a} d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a-b}}\right )}{\sqrt {a-b} d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b} d} \]
[Out]
2*arctanh((a+b*sech(d*x+c))^(1/2)/a^(1/2))/d/a^(1/2)-arctanh((a+b*sech(d*x+c))^(1/2)/(a-b)^(1/2))/d/(a-b)^(1/2
)-arctanh((a+b*sech(d*x+c))^(1/2)/(a+b)^(1/2))/d/(a+b)^(1/2)
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 106, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {3970, 912,
1184, 212, 213} \begin {gather*} \frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a}}\right )}{\sqrt {a} d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a-b}}\right )}{d \sqrt {a-b}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )}{d \sqrt {a+b}} \end {gather*}
Antiderivative was successfully verified.
[In]
Int[Coth[c + d*x]/Sqrt[a + b*Sech[c + d*x]],x]
[Out]
(2*ArcTanh[Sqrt[a + b*Sech[c + d*x]]/Sqrt[a]])/(Sqrt[a]*d) - ArcTanh[Sqrt[a + b*Sech[c + d*x]]/Sqrt[a - b]]/(S
qrt[a - b]*d) - ArcTanh[Sqrt[a + b*Sech[c + d*x]]/Sqrt[a + b]]/(Sqrt[a + b]*d)
Rule 212
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] && (GtQ[a, 0] || LtQ[b, 0])
Rule 213
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[b, 2])^(-1))*ArcTanh[Rt[b, 2]*(x/Rt[-a, 2])]
, x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (LtQ[a, 0] || GtQ[b, 0])
Rule 912
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))^(n_)*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> With[{q = De
nominator[m]}, Dist[q/e, Subst[Int[x^(q*(m + 1) - 1)*((e*f - d*g)/e + g*(x^q/e))^n*((c*d^2 + a*e^2)/e^2 - 2*c*
d*(x^q/e^2) + c*(x^(2*q)/e^2))^p, x], x, (d + e*x)^(1/q)], x]] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[e*f - d*
g, 0] && NeQ[c*d^2 + a*e^2, 0] && IntegersQ[n, p] && FractionQ[m]
Rule 1184
Int[((d_) + (e_.)*(x_)^2)^(q_)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> Int[ExpandIntegrand[(d + e*x
^2)^q/(a + b*x^2 + c*x^4), x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a
*e^2, 0] && IntegerQ[q]
Rule 3970
Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_), x_Symbol] :> Dist[-(-1)^((m - 1
)/2)/(d*b^(m - 1)), Subst[Int[(b^2 - x^2)^((m - 1)/2)*((a + x)^n/x), x], x, b*Csc[c + d*x]], x] /; FreeQ[{a, b
, c, d, n}, x] && IntegerQ[(m - 1)/2] && NeQ[a^2 - b^2, 0]
Rubi steps
\begin {align*} \int \frac {\coth (c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx &=-\frac {b^2 \text {Subst}\left (\int \frac {1}{x \sqrt {a+x} \left (b^2-x^2\right )} \, dx,x,b \text {sech}(c+d x)\right )}{d}\\ &=-\frac {\left (2 b^2\right ) \text {Subst}\left (\int \frac {1}{\left (-a+x^2\right ) \left (-a^2+b^2+2 a x^2-x^4\right )} \, dx,x,\sqrt {a+b \text {sech}(c+d x)}\right )}{d}\\ &=-\frac {\left (2 b^2\right ) \text {Subst}\left (\int \left (-\frac {1}{b^2 \left (a-x^2\right )}+\frac {1}{2 b^2 \left (a+b-x^2\right )}-\frac {1}{2 b^2 \left (-a+b+x^2\right )}\right ) \, dx,x,\sqrt {a+b \text {sech}(c+d x)}\right )}{d}\\ &=-\frac {\text {Subst}\left (\int \frac {1}{a+b-x^2} \, dx,x,\sqrt {a+b \text {sech}(c+d x)}\right )}{d}+\frac {\text {Subst}\left (\int \frac {1}{-a+b+x^2} \, dx,x,\sqrt {a+b \text {sech}(c+d x)}\right )}{d}+\frac {2 \text {Subst}\left (\int \frac {1}{a-x^2} \, dx,x,\sqrt {a+b \text {sech}(c+d x)}\right )}{d}\\ &=\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a}}\right )}{\sqrt {a} d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a-b}}\right )}{\sqrt {a-b} d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )}{\sqrt {a+b} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(226\) vs. \(2(106)=212\).
time = 2.50, size = 226, normalized size = 2.13 \begin {gather*} \frac {\sqrt {b+a \cosh (c+d x)} \left (-\frac {\tanh ^{-1}\left (\frac {\sqrt {a-b} \sqrt {\cosh (c+d x)}}{\sqrt {b+a \cosh (c+d x)}}\right )}{\sqrt {a-b}}+\frac {-\frac {\tanh ^{-1}\left (\frac {\sqrt {-a-b} \sqrt {\cosh (c+d x)}}{\sqrt {-b-a \cosh (c+d x)}}\right ) \sqrt {-b-a \cosh (c+d x)}}{\sqrt {-a-b}}+\frac {2 \sqrt {b} \sinh ^{-1}\left (\frac {\sqrt {a} \sqrt {\cosh (c+d x)}}{\sqrt {b}}\right ) \sqrt {1+\frac {a \cosh (c+d x)}{b}}}{\sqrt {a}}}{\sqrt {b+a \cosh (c+d x)}}\right )}{d \sqrt {\cosh (c+d x)} \sqrt {a+b \text {sech}(c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
Integrate[Coth[c + d*x]/Sqrt[a + b*Sech[c + d*x]],x]
[Out]
(Sqrt[b + a*Cosh[c + d*x]]*(-(ArcTanh[(Sqrt[a - b]*Sqrt[Cosh[c + d*x]])/Sqrt[b + a*Cosh[c + d*x]]]/Sqrt[a - b]
) + (-((ArcTanh[(Sqrt[-a - b]*Sqrt[Cosh[c + d*x]])/Sqrt[-b - a*Cosh[c + d*x]]]*Sqrt[-b - a*Cosh[c + d*x]])/Sqr
t[-a - b]) + (2*Sqrt[b]*ArcSinh[(Sqrt[a]*Sqrt[Cosh[c + d*x]])/Sqrt[b]]*Sqrt[1 + (a*Cosh[c + d*x])/b])/Sqrt[a])
/Sqrt[b + a*Cosh[c + d*x]]))/(d*Sqrt[Cosh[c + d*x]]*Sqrt[a + b*Sech[c + d*x]])
________________________________________________________________________________________
Maple [F]
time = 2.80, size = 0, normalized size = 0.00 \[\int \frac {\coth \left (d x +c \right )}{\sqrt {a +b \,\mathrm {sech}\left (d x +c \right )}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(coth(d*x+c)/(a+b*sech(d*x+c))^(1/2),x)
[Out]
int(coth(d*x+c)/(a+b*sech(d*x+c))^(1/2),x)
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(coth(d*x+c)/(a+b*sech(d*x+c))^(1/2),x, algorithm="maxima")
[Out]
integrate(coth(d*x + c)/sqrt(b*sech(d*x + c) + a), x)
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 446 vs.
\(2 (88) = 176\).
time = 0.97, size = 8908, normalized size = 84.04 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(coth(d*x+c)/(a+b*sech(d*x+c))^(1/2),x, algorithm="fricas")
[Out]
[1/4*((a^2 + a*b)*sqrt(a - b)*log(-((8*a^2 - 8*a*b + b^2)*cosh(d*x + c)^4 + (8*a^2 - 8*a*b + b^2)*sinh(d*x + c
)^4 + 4*(4*a*b - 3*b^2)*cosh(d*x + c)^3 + 4*(4*a*b - 3*b^2 + (8*a^2 - 8*a*b + b^2)*cosh(d*x + c))*sinh(d*x + c
)^3 + 2*(8*a^2 - 8*a*b + 3*b^2)*cosh(d*x + c)^2 + 2*(3*(8*a^2 - 8*a*b + b^2)*cosh(d*x + c)^2 + 8*a^2 - 8*a*b +
3*b^2 + 6*(4*a*b - 3*b^2)*cosh(d*x + c))*sinh(d*x + c)^2 + 8*a^2 - 8*a*b + b^2 - 4*((2*a - b)*cosh(d*x + c)^4
+ (2*a - b)*sinh(d*x + c)^4 + 2*b*cosh(d*x + c)^3 + 2*(2*(2*a - b)*cosh(d*x + c) + b)*sinh(d*x + c)^3 + 2*(2*
a - b)*cosh(d*x + c)^2 + 2*(3*(2*a - b)*cosh(d*x + c)^2 + 3*b*cosh(d*x + c) + 2*a - b)*sinh(d*x + c)^2 + 2*b*c
osh(d*x + c) + 2*(2*(2*a - b)*cosh(d*x + c)^3 + 3*b*cosh(d*x + c)^2 + 2*(2*a - b)*cosh(d*x + c) + b)*sinh(d*x
+ c) + 2*a - b)*sqrt(a - b)*sqrt((a*cosh(d*x + c) + b)/cosh(d*x + c)) + 4*(4*a*b - 3*b^2)*cosh(d*x + c) + 4*((
8*a^2 - 8*a*b + b^2)*cosh(d*x + c)^3 + 3*(4*a*b - 3*b^2)*cosh(d*x + c)^2 + 4*a*b - 3*b^2 + (8*a^2 - 8*a*b + 3*
b^2)*cosh(d*x + c))*sinh(d*x + c))/(cosh(d*x + c)^4 + 4*(cosh(d*x + c) + 1)*sinh(d*x + c)^3 + sinh(d*x + c)^4
+ 4*cosh(d*x + c)^3 + 6*(cosh(d*x + c)^2 + 2*cosh(d*x + c) + 1)*sinh(d*x + c)^2 + 6*cosh(d*x + c)^2 + 4*(cosh(
d*x + c)^3 + 3*cosh(d*x + c)^2 + 3*cosh(d*x + c) + 1)*sinh(d*x + c) + 4*cosh(d*x + c) + 1)) + (a^2 - a*b)*sqrt
(a + b)*log(-((8*a^2 + 8*a*b + b^2)*cosh(d*x + c)^4 + (8*a^2 + 8*a*b + b^2)*sinh(d*x + c)^4 + 4*(4*a*b + 3*b^2
)*cosh(d*x + c)^3 + 4*(4*a*b + 3*b^2 + (8*a^2 + 8*a*b + b^2)*cosh(d*x + c))*sinh(d*x + c)^3 + 2*(8*a^2 + 8*a*b
+ 3*b^2)*cosh(d*x + c)^2 + 2*(3*(8*a^2 + 8*a*b + b^2)*cosh(d*x + c)^2 + 8*a^2 + 8*a*b + 3*b^2 + 6*(4*a*b + 3*
b^2)*cosh(d*x + c))*sinh(d*x + c)^2 + 8*a^2 + 8*a*b + b^2 - 4*((2*a + b)*cosh(d*x + c)^4 + (2*a + b)*sinh(d*x
+ c)^4 + 2*b*cosh(d*x + c)^3 + 2*(2*(2*a + b)*cosh(d*x + c) + b)*sinh(d*x + c)^3 + 2*(2*a + b)*cosh(d*x + c)^2
+ 2*(3*(2*a + b)*cosh(d*x + c)^2 + 3*b*cosh(d*x + c) + 2*a + b)*sinh(d*x + c)^2 + 2*b*cosh(d*x + c) + 2*(2*(2
*a + b)*cosh(d*x + c)^3 + 3*b*cosh(d*x + c)^2 + 2*(2*a + b)*cosh(d*x + c) + b)*sinh(d*x + c) + 2*a + b)*sqrt(a
+ b)*sqrt((a*cosh(d*x + c) + b)/cosh(d*x + c)) + 4*(4*a*b + 3*b^2)*cosh(d*x + c) + 4*((8*a^2 + 8*a*b + b^2)*c
osh(d*x + c)^3 + 3*(4*a*b + 3*b^2)*cosh(d*x + c)^2 + 4*a*b + 3*b^2 + (8*a^2 + 8*a*b + 3*b^2)*cosh(d*x + c))*si
nh(d*x + c))/(cosh(d*x + c)^4 + 4*(cosh(d*x + c) - 1)*sinh(d*x + c)^3 + sinh(d*x + c)^4 - 4*cosh(d*x + c)^3 +
6*(cosh(d*x + c)^2 - 2*cosh(d*x + c) + 1)*sinh(d*x + c)^2 + 6*cosh(d*x + c)^2 + 4*(cosh(d*x + c)^3 - 3*cosh(d*
x + c)^2 + 3*cosh(d*x + c) - 1)*sinh(d*x + c) - 4*cosh(d*x + c) + 1)) + 2*(a^2 - b^2)*sqrt(a)*log(-(2*a^2*cosh
(d*x + c)^4 + 2*a^2*sinh(d*x + c)^4 + 4*a*b*cosh(d*x + c)^3 + 4*(2*a^2*cosh(d*x + c) + a*b)*sinh(d*x + c)^3 +
4*a*b*cosh(d*x + c) + (4*a^2 + b^2)*cosh(d*x + c)^2 + (12*a^2*cosh(d*x + c)^2 + 12*a*b*cosh(d*x + c) + 4*a^2 +
b^2)*sinh(d*x + c)^2 + 2*a^2 + 2*(a*cosh(d*x + c)^4 + a*sinh(d*x + c)^4 + b*cosh(d*x + c)^3 + (4*a*cosh(d*x +
c) + b)*sinh(d*x + c)^3 + 2*a*cosh(d*x + c)^2 + (6*a*cosh(d*x + c)^2 + 3*b*cosh(d*x + c) + 2*a)*sinh(d*x + c)
^2 + b*cosh(d*x + c) + (4*a*cosh(d*x + c)^3 + 3*b*cosh(d*x + c)^2 + 4*a*cosh(d*x + c) + b)*sinh(d*x + c) + a)*
sqrt(a)*sqrt((a*cosh(d*x + c) + b)/cosh(d*x + c)) + 2*(4*a^2*cosh(d*x + c)^3 + 6*a*b*cosh(d*x + c)^2 + 2*a*b +
(4*a^2 + b^2)*cosh(d*x + c))*sinh(d*x + c))/(cosh(d*x + c)^2 + 2*cosh(d*x + c)*sinh(d*x + c) + sinh(d*x + c)^
2)))/((a^3 - a*b^2)*d), 1/4*(2*(a^2 - a*b)*sqrt(-a - b)*arctan(2*(cosh(d*x + c)^2 + 2*cosh(d*x + c)*sinh(d*x +
c) + sinh(d*x + c)^2 + 1)*sqrt(-a - b)*sqrt((a*cosh(d*x + c) + b)/cosh(d*x + c))/((2*a + b)*cosh(d*x + c)^2 +
(2*a + b)*sinh(d*x + c)^2 + 2*b*cosh(d*x + c) + 2*((2*a + b)*cosh(d*x + c) + b)*sinh(d*x + c) + 2*a + b)) + (
a^2 + a*b)*sqrt(a - b)*log(-((8*a^2 - 8*a*b + b^2)*cosh(d*x + c)^4 + (8*a^2 - 8*a*b + b^2)*sinh(d*x + c)^4 + 4
*(4*a*b - 3*b^2)*cosh(d*x + c)^3 + 4*(4*a*b - 3*b^2 + (8*a^2 - 8*a*b + b^2)*cosh(d*x + c))*sinh(d*x + c)^3 + 2
*(8*a^2 - 8*a*b + 3*b^2)*cosh(d*x + c)^2 + 2*(3*(8*a^2 - 8*a*b + b^2)*cosh(d*x + c)^2 + 8*a^2 - 8*a*b + 3*b^2
+ 6*(4*a*b - 3*b^2)*cosh(d*x + c))*sinh(d*x + c)^2 + 8*a^2 - 8*a*b + b^2 - 4*((2*a - b)*cosh(d*x + c)^4 + (2*a
- b)*sinh(d*x + c)^4 + 2*b*cosh(d*x + c)^3 + 2*(2*(2*a - b)*cosh(d*x + c) + b)*sinh(d*x + c)^3 + 2*(2*a - b)*
cosh(d*x + c)^2 + 2*(3*(2*a - b)*cosh(d*x + c)^2 + 3*b*cosh(d*x + c) + 2*a - b)*sinh(d*x + c)^2 + 2*b*cosh(d*x
+ c) + 2*(2*(2*a - b)*cosh(d*x + c)^3 + 3*b*cosh(d*x + c)^2 + 2*(2*a - b)*cosh(d*x + c) + b)*sinh(d*x + c) +
2*a - b)*sqrt(a - b)*sqrt((a*cosh(d*x + c) + b)/cosh(d*x + c)) + 4*(4*a*b - 3*b^2)*cosh(d*x + c) + 4*((8*a^2 -
8*a*b + b^2)*cosh(d*x + c)^3 + 3*(4*a*b - 3*b^2)*cosh(d*x + c)^2 + 4*a*b - 3*b^2 + (8*a^2 - 8*a*b + 3*b^2)*co
sh(d*x + c))*sinh(d*x + c))/(cosh(d*x + c)^4 + 4*(cosh(d*x + c) + 1)*sinh(d*x + c)^3 + sinh(d*x + c)^4 + 4*cos
h(d*x + c)^3 + 6*(cosh(d*x + c)^2 + 2*cosh(d*x + c) + 1)*sinh(d*x + c)^2 + 6*cosh(d*x + c)^2 + 4*(cosh(d*x + c
)^3 + 3*cosh(d*x + c)^2 + 3*cosh(d*x + c) + 1)*...
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\coth {\left (c + d x \right )}}{\sqrt {a + b \operatorname {sech}{\left (c + d x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(coth(d*x+c)/(a+b*sech(d*x+c))**(1/2),x)
[Out]
Integral(coth(c + d*x)/sqrt(a + b*sech(c + d*x)), x)
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(coth(d*x+c)/(a+b*sech(d*x+c))^(1/2),x, algorithm="giac")
[Out]
integrate(coth(d*x + c)/sqrt(b*sech(d*x + c) + a), x)
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\mathrm {coth}\left (c+d\,x\right )}{\sqrt {a+\frac {b}{\mathrm {cosh}\left (c+d\,x\right )}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(coth(c + d*x)/(a + b/cosh(c + d*x))^(1/2),x)
[Out]
int(coth(c + d*x)/(a + b/cosh(c + d*x))^(1/2), x)
________________________________________________________________________________________