3.139 \(\int \frac {\tanh ^2(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx\)

Optimal. Leaf size=310 \[ -\frac {2 (a-b) \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}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b^2 d}-\frac {2 \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 )}{b d}+\frac {2 \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}} \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a d} \]

[Out]

-2*(a-b)*coth(d*x+c)*EllipticE((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)/b^2/d-2*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)/b
/d+2*coth(d*x+c)*EllipticPi((a+b*sech(d*x+c))^(1/2)/(a+b)^(1/2),(a+b)/a,((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)/a/d

________________________________________________________________________________________

Rubi [A]  time = 0.26, antiderivative size = 310, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3894, 4059, 3921, 3784, 3832, 4004} \[ -\frac {2 (a-b) \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}} E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{b^2 d}-\frac {2 \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 )}{b d}+\frac {2 \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}} \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \text {sech}(c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{a d} \]

Antiderivative was successfully verified.

[In]

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

[Out]

(-2*(a - b)*Sqrt[a + b]*Coth[c + d*x]*EllipticE[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))])/(b^2*d) - (2*Sqrt[a + b]*Cot
h[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))])/(b*d) + (2*Sqrt[a + b]*Coth[c + d*x]*EllipticPi[(a + b)
/a, 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))])/(a*d)

Rule 3784

Int[1/Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[(2*Rt[a + b, 2]*Sqrt[(b*(1 - Csc[c + d*x])
)/(a + b)]*Sqrt[-((b*(1 + Csc[c + d*x]))/(a - b))]*EllipticPi[(a + b)/a, ArcSin[Sqrt[a + b*Csc[c + d*x]]/Rt[a
+ b, 2]], (a + b)/(a - b)])/(a*d*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 3894

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

Rule 3921

Int[(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[c, In
t[1/Sqrt[a + b*Csc[e + f*x]], x], x] + Dist[d, Int[Csc[e + f*x]/Sqrt[a + b*Csc[e + f*x]], x], x] /; FreeQ[{a,
b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]

Rule 4004

Int[(csc[(e_.) + (f_.)*(x_)]*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)
], x_Symbol] :> Simp[(-2*(A*b - a*B)*Rt[a + (b*B)/A, 2]*Sqrt[(b*(1 - Csc[e + f*x]))/(a + b)]*Sqrt[-((b*(1 + Cs
c[e + f*x]))/(a - b))]*EllipticE[ArcSin[Sqrt[a + b*Csc[e + f*x]]/Rt[a + (b*B)/A, 2]], (a*A + b*B)/(a*A - b*B)]
)/(b^2*f*Cot[e + f*x]), x] /; FreeQ[{a, b, e, f, A, B}, x] && NeQ[a^2 - b^2, 0] && EqQ[A^2 - B^2, 0]

Rule 4059

Int[((A_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Int[(A
- C*Csc[e + f*x])/Sqrt[a + b*Csc[e + f*x]], x] + Dist[C, Int[(Csc[e + f*x]*(1 + Csc[e + f*x]))/Sqrt[a + b*Csc[
e + f*x]], x], x] /; FreeQ[{a, b, e, f, A, C}, x] && NeQ[a^2 - b^2, 0]

Rubi steps

\begin {align*} \int \frac {\tanh ^2(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx &=-\int \frac {-1+\text {sech}^2(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx\\ &=-\int \frac {-1-\text {sech}(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx-\int \frac {\text {sech}(c+d x) (1+\text {sech}(c+d x))}{\sqrt {a+b \text {sech}(c+d x)}} \, dx\\ &=-\frac {2 (a-b) \sqrt {a+b} \coth (c+d x) E\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}}}{b^2 d}+\int \frac {1}{\sqrt {a+b \text {sech}(c+d x)}} \, dx+\int \frac {\text {sech}(c+d x)}{\sqrt {a+b \text {sech}(c+d x)}} \, dx\\ &=-\frac {2 (a-b) \sqrt {a+b} \coth (c+d x) E\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}}}{b^2 d}-\frac {2 \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}}}{b d}+\frac {2 \sqrt {a+b} \coth (c+d x) \Pi \left (\frac {a+b}{a};\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}}}{a d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [F]  time = 180.00, size = 0, normalized size = 0.00 \[ \text {\$Aborted} \]

Verification is Not applicable to the result.

[In]

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

[Out]

$Aborted

________________________________________________________________________________________

fricas [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Timed out

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

[Out]

int(tanh(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 \frac {\tanh \left (d x + c\right )^{2}}{\sqrt {b \operatorname {sech}\left (d x + c\right ) + a}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {{\mathrm {tanh}\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(tanh(c + d*x)^2/(a + b/cosh(c + d*x))^(1/2),x)

[Out]

int(tanh(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 \frac {\tanh ^{2}{\left (c + d x \right )}}{\sqrt {a + b \operatorname {sech}{\left (c + d x \right )}}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________