3.132 \(\int \coth ^2(c+d x) \sqrt {a+b \text {sech}(c+d x)} \, dx\)

Optimal. Leaf size=246 \[ -\frac {\coth (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{d}+\frac {\sqrt {a+b} \coth (c+d x) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (\text {sech}(c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{d}+\frac {2 \coth (c+d x) \sqrt {-\frac {b (1-\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} \sqrt {\frac {b (\text {sech}(c+d x)+1)}{a+b \text {sech}(c+d x)}} (a+b \text {sech}(c+d x)) \Pi \left (\frac {a}{a+b};\sin ^{-1}\left (\frac {\sqrt {a+b}}{\sqrt {a+b \text {sech}(c+d x)}}\right )|\frac {a-b}{a+b}\right )}{d \sqrt {a+b}} \]

[Out]

coth(d*x+c)*EllipticF((a+b*sech(d*x+c))^(1/2)/(a+b)^(1/2),((a+b)/(a-b))^(1/2))*(a+b)^(1/2)*(b*(1-sech(d*x+c))/
(a+b))^(1/2)*(-b*(1+sech(d*x+c))/(a-b))^(1/2)/d+2*coth(d*x+c)*EllipticPi((a+b)^(1/2)/(a+b*sech(d*x+c))^(1/2),a
/(a+b),((a-b)/(a+b))^(1/2))*(a+b*sech(d*x+c))*(-b*(1-sech(d*x+c))/(a+b*sech(d*x+c)))^(1/2)*(b*(1+sech(d*x+c))/
(a+b*sech(d*x+c)))^(1/2)/d/(a+b)^(1/2)-coth(d*x+c)*(a+b*sech(d*x+c))^(1/2)/d

________________________________________________________________________________________

Rubi [A]  time = 0.22, antiderivative size = 246, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3896, 3780, 3875, 3832} \[ -\frac {\coth (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{d}+\frac {\sqrt {a+b} \coth (c+d x) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (\text {sech}(c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{d}+\frac {2 \coth (c+d x) \sqrt {-\frac {b (1-\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} \sqrt {\frac {b (\text {sech}(c+d x)+1)}{a+b \text {sech}(c+d x)}} (a+b \text {sech}(c+d x)) \Pi \left (\frac {a}{a+b};\sin ^{-1}\left (\frac {\sqrt {a+b}}{\sqrt {a+b \text {sech}(c+d x)}}\right )|\frac {a-b}{a+b}\right )}{d \sqrt {a+b}} \]

Antiderivative was successfully verified.

[In]

Int[Coth[c + d*x]^2*Sqrt[a + b*Sech[c + d*x]],x]

[Out]

(Sqrt[a + b]*Coth[c + d*x]*EllipticF[ArcSin[Sqrt[a + b*Sech[c + d*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(
1 - Sech[c + d*x]))/(a + b)]*Sqrt[-((b*(1 + Sech[c + d*x]))/(a - b))])/d - (Coth[c + d*x]*Sqrt[a + b*Sech[c +
d*x]])/d + (2*Coth[c + d*x]*EllipticPi[a/(a + b), ArcSin[Sqrt[a + b]/Sqrt[a + b*Sech[c + d*x]]], (a - b)/(a +
b)]*Sqrt[-((b*(1 - Sech[c + d*x]))/(a + b*Sech[c + d*x]))]*Sqrt[(b*(1 + Sech[c + d*x]))/(a + b*Sech[c + d*x])]
*(a + b*Sech[c + d*x]))/(Sqrt[a + b]*d)

Rule 3780

Int[Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[(2*(a + b*Csc[c + d*x])*Sqrt[(b*(1 + Csc[c +
 d*x]))/(a + b*Csc[c + d*x])]*Sqrt[-((b*(1 - Csc[c + d*x]))/(a + b*Csc[c + d*x]))]*EllipticPi[a/(a + b), ArcSi
n[Rt[a + b, 2]/Sqrt[a + b*Csc[c + d*x]]], (a - b)/(a + b)])/(d*Rt[a + b, 2]*Cot[c + d*x]), x] /; FreeQ[{a, b,
c, d}, x] && NeQ[a^2 - b^2, 0]

Rule 3832

Int[csc[(e_.) + (f_.)*(x_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[(-2*Rt[a + b, 2]*Sqr
t[(b*(1 - Csc[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Csc[e + f*x]))/(a - b))]*EllipticF[ArcSin[Sqrt[a + b*Csc[e +
f*x]]/Rt[a + b, 2]], (a + b)/(a - b)])/(b*f*Cot[e + f*x]), x] /; FreeQ[{a, b, e, f}, x] && NeQ[a^2 - b^2, 0]

Rule 3875

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)/cos[(e_.) + (f_.)*(x_)]^2, x_Symbol] :> Simp[(Tan[e + f*x]*(a
+ b*Csc[e + f*x])^m)/f, x] + Dist[b*m, Int[Csc[e + f*x]*(a + b*Csc[e + f*x])^(m - 1), x], x] /; FreeQ[{a, b, e
, f, m}, x]

Rule 3896

Int[cot[(c_.) + (d_.)*(x_)]^(m_)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_), x_Symbol] :> Int[ExpandIntegrand
[(a + b*Csc[c + d*x])^n, (-1 + Sec[c + d*x]^2)^(-(m/2)), x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[a^2 - b^2,
 0] && ILtQ[m/2, 0] && IntegerQ[n - 1/2] && EqQ[m, -2]

Rubi steps

\begin {align*} \int \coth ^2(c+d x) \sqrt {a+b \text {sech}(c+d x)} \, dx &=-\int \left (-\sqrt {a+b \text {sech}(c+d x)}-\text {csch}^2(c+d x) \sqrt {a+b \text {sech}(c+d x)}\right ) \, dx\\ &=\int \sqrt {a+b \text {sech}(c+d x)} \, dx+\int \text {csch}^2(c+d x) \sqrt {a+b \text {sech}(c+d x)} \, dx\\ &=-\frac {\coth (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{d}+\frac {2 \coth (c+d x) \Pi \left (\frac {a}{a+b};\sin ^{-1}\left (\frac {\sqrt {a+b}}{\sqrt {a+b \text {sech}(c+d x)}}\right )|\frac {a-b}{a+b}\right ) \sqrt {-\frac {b (1-\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} \sqrt {\frac {b (1+\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} (a+b \text {sech}(c+d x))}{\sqrt {a+b} d}-\frac {1}{2} b \int \frac {\text {sech}(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx\\ &=\frac {\sqrt {a+b} \coth (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\text {sech}(c+d x))}{a+b}} \sqrt {-\frac {b (1+\text {sech}(c+d x))}{a-b}}}{d}-\frac {\coth (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{d}+\frac {2 \coth (c+d x) \Pi \left (\frac {a}{a+b};\sin ^{-1}\left (\frac {\sqrt {a+b}}{\sqrt {a+b \text {sech}(c+d x)}}\right )|\frac {a-b}{a+b}\right ) \sqrt {-\frac {b (1-\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} \sqrt {\frac {b (1+\text {sech}(c+d x))}{a+b \text {sech}(c+d x)}} (a+b \text {sech}(c+d x))}{\sqrt {a+b} d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 18.23, size = 539, normalized size = 2.19 \[ \frac {\sqrt {a+b \text {sech}(c+d x)} \left (\frac {2 \sqrt {b} \sinh (c+d x) (a-a \cosh (c+d x))^{3/2} \sqrt {\frac {(a+b) (a \cosh (c+d x)+a)}{(a-b) (a-a \cosh (c+d x))}} F\left (\sin ^{-1}\left (\frac {\sqrt {a} \sqrt {b+a \cosh (c+d x)}}{\sqrt {b} \sqrt {a-a \cosh (c+d x)}}\right )|-\frac {2 b}{a-b}\right )}{a^{3/2} \sqrt {\cosh (c+d x)-1} \sqrt {\cosh (c+d x)+1} \sqrt {\text {sech}(c+d x)} \left (-\frac {a-a \cosh (c+d x)}{a}\right )^{3/2} \sqrt {\frac {a \cosh (c+d x)+a}{a}} \sqrt {-\frac {a (a+b) \cosh (c+d x)}{b (a-a \cosh (c+d x))}}}-\frac {4 b \sinh (c+d x) (a-a \cosh (c+d x)) \sqrt {-\frac {b \text {sech}(c+d x) (a \cosh (c+d x)+a)}{a (a-b)}} \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a} \sqrt {b+a \cosh (c+d x)}}{\sqrt {a+b} \sqrt {a \cosh (c+d x)}}\right )|\frac {a+b}{a-b}\right )}{\sqrt {a} \sqrt {a+b} \sqrt {\cosh (c+d x)-1} \sqrt {\cosh (c+d x)+1} \sqrt {\text {sech}(c+d x)} \sqrt {a \cosh (c+d x)} \sqrt {-\frac {a-a \cosh (c+d x)}{a}} \sqrt {\frac {a \cosh (c+d x)+a}{a}} \sqrt {-\frac {b \text {sech}(c+d x) (a-a \cosh (c+d x))}{a (a+b)}}}\right )}{2 d \sqrt {\text {sech}(c+d x)} \sqrt {a \cosh (c+d x)+b}}-\frac {\coth (c+d x) \sqrt {a+b \text {sech}(c+d x)}}{d} \]

Antiderivative was successfully verified.

[In]

Integrate[Coth[c + d*x]^2*Sqrt[a + b*Sech[c + d*x]],x]

[Out]

-((Coth[c + d*x]*Sqrt[a + b*Sech[c + d*x]])/d) + (Sqrt[a + b*Sech[c + d*x]]*((2*Sqrt[b]*(a - a*Cosh[c + d*x])^
(3/2)*Sqrt[((a + b)*(a + a*Cosh[c + d*x]))/((a - b)*(a - a*Cosh[c + d*x]))]*EllipticF[ArcSin[(Sqrt[a]*Sqrt[b +
 a*Cosh[c + d*x]])/(Sqrt[b]*Sqrt[a - a*Cosh[c + d*x]])], (-2*b)/(a - b)]*Sinh[c + d*x])/(a^(3/2)*Sqrt[-1 + Cos
h[c + d*x]]*Sqrt[1 + Cosh[c + d*x]]*Sqrt[-((a*(a + b)*Cosh[c + d*x])/(b*(a - a*Cosh[c + d*x])))]*(-((a - a*Cos
h[c + d*x])/a))^(3/2)*Sqrt[(a + a*Cosh[c + d*x])/a]*Sqrt[Sech[c + d*x]]) - (4*b*(a - a*Cosh[c + d*x])*Elliptic
Pi[(a + b)/a, ArcSin[(Sqrt[a]*Sqrt[b + a*Cosh[c + d*x]])/(Sqrt[a + b]*Sqrt[a*Cosh[c + d*x]])], (a + b)/(a - b)
]*Sqrt[-((b*(a + a*Cosh[c + d*x])*Sech[c + d*x])/(a*(a - b)))]*Sinh[c + d*x])/(Sqrt[a]*Sqrt[a + b]*Sqrt[-1 + C
osh[c + d*x]]*Sqrt[a*Cosh[c + d*x]]*Sqrt[1 + Cosh[c + d*x]]*Sqrt[-((a - a*Cosh[c + d*x])/a)]*Sqrt[(a + a*Cosh[
c + d*x])/a]*Sqrt[Sech[c + d*x]]*Sqrt[-((b*(a - a*Cosh[c + d*x])*Sech[c + d*x])/(a*(a + b)))])))/(2*d*Sqrt[b +
 a*Cosh[c + d*x]]*Sqrt[Sech[c + d*x]])

________________________________________________________________________________________

fricas [F]  time = 1.27, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\sqrt {b \operatorname {sech}\left (d x + c\right ) + a} \coth \left (d x + c\right )^{2}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(d*x+c)^2*(a+b*sech(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

integral(sqrt(b*sech(d*x + c) + a)*coth(d*x + c)^2, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {b \operatorname {sech}\left (d x + c\right ) + a} \coth \left (d x + c\right )^{2}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(d*x+c)^2*(a+b*sech(d*x+c))^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(b*sech(d*x + c) + a)*coth(d*x + c)^2, x)

________________________________________________________________________________________

maple [F]  time = 0.55, size = 0, normalized size = 0.00 \[ \int \left (\coth ^{2}\left (d x +c \right )\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)^2*(a+b*sech(d*x+c))^(1/2),x)

[Out]

int(coth(d*x+c)^2*(a+b*sech(d*x+c))^(1/2),x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {b \operatorname {sech}\left (d x + c\right ) + a} \coth \left (d x + c\right )^{2}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(d*x+c)^2*(a+b*sech(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(b*sech(d*x + c) + a)*coth(d*x + c)^2, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.00 \[ \int {\mathrm {coth}\left (c+d\,x\right )}^2\,\sqrt {a+\frac {b}{\mathrm {cosh}\left (c+d\,x\right )}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(coth(c + d*x)^2*(a + b/cosh(c + d*x))^(1/2),x)

[Out]

int(coth(c + d*x)^2*(a + b/cosh(c + d*x))^(1/2), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a + b \operatorname {sech}{\left (c + d x \right )}} \coth ^{2}{\left (c + d x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(d*x+c)**2*(a+b*sech(d*x+c))**(1/2),x)

[Out]

Integral(sqrt(a + b*sech(c + d*x))*coth(c + d*x)**2, x)

________________________________________________________________________________________