### 3.143 $$\int \sinh (a+b x) \tanh (c+b x) \, dx$$

Optimal. Leaf size=29 $\frac{\sinh (a+b x)}{b}-\frac{\cosh (a-c) \tan ^{-1}(\sinh (b x+c))}{b}$

[Out]

-((ArcTan[Sinh[c + b*x]]*Cosh[a - c])/b) + Sinh[a + b*x]/b

________________________________________________________________________________________

Rubi [A]  time = 0.0228972, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 13, $$\frac{\text{number of rules}}{\text{integrand size}}$$ = 0.231, Rules used = {5620, 2637, 3770} $\frac{\sinh (a+b x)}{b}-\frac{\cosh (a-c) \tan ^{-1}(\sinh (b x+c))}{b}$

Antiderivative was successfully veriﬁed.

[In]

Int[Sinh[a + b*x]*Tanh[c + b*x],x]

[Out]

-((ArcTan[Sinh[c + b*x]]*Cosh[a - c])/b) + Sinh[a + b*x]/b

Rule 5620

Int[Sinh[v_]*Tanh[w_]^(n_.), x_Symbol] :> Int[Cosh[v]*Tanh[w]^(n - 1), x] - Dist[Cosh[v - w], Int[Sech[w]*Tanh
[w]^(n - 1), x], x] /; GtQ[n, 0] && NeQ[w, v] && FreeQ[v - w, x]

Rule 2637

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 3770

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin{align*} \int \sinh (a+b x) \tanh (c+b x) \, dx &=-(\cosh (a-c) \int \text{sech}(c+b x) \, dx)+\int \cosh (a+b x) \, dx\\ &=-\frac{\tan ^{-1}(\sinh (c+b x)) \cosh (a-c)}{b}+\frac{\sinh (a+b x)}{b}\\ \end{align*}

Mathematica [B]  time = 0.0579334, size = 86, normalized size = 2.97 $-\frac{2 \cosh (a-c) \tan ^{-1}\left (\frac{(\cosh (c)-\sinh (c)) \left (\sinh (c) \cosh \left (\frac{b x}{2}\right )+\cosh (c) \sinh \left (\frac{b x}{2}\right )\right )}{\cosh (c) \cosh \left (\frac{b x}{2}\right )-\sinh (c) \cosh \left (\frac{b x}{2}\right )}\right )}{b}+\frac{\sinh (a) \cosh (b x)}{b}+\frac{\cosh (a) \sinh (b x)}{b}$

Antiderivative was successfully veriﬁed.

[In]

Integrate[Sinh[a + b*x]*Tanh[c + b*x],x]

[Out]

(-2*ArcTan[((Cosh[c] - Sinh[c])*(Cosh[(b*x)/2]*Sinh[c] + Cosh[c]*Sinh[(b*x)/2]))/(Cosh[c]*Cosh[(b*x)/2] - Cosh
[(b*x)/2]*Sinh[c])]*Cosh[a - c])/b + (Cosh[b*x]*Sinh[a])/b + (Cosh[a]*Sinh[b*x])/b

________________________________________________________________________________________

Maple [C]  time = 0.078, size = 167, normalized size = 5.8 \begin{align*}{\frac{{{\rm e}^{bx+a}}}{2\,b}}-{\frac{{{\rm e}^{-bx-a}}}{2\,b}}+{\frac{{\frac{i}{2}}\ln \left ({{\rm e}^{bx+a}}-i{{\rm e}^{a-c}} \right ){{\rm e}^{-a-c}}{{\rm e}^{2\,a}}}{b}}+{\frac{{\frac{i}{2}}\ln \left ({{\rm e}^{bx+a}}-i{{\rm e}^{a-c}} \right ){{\rm e}^{-a-c}}{{\rm e}^{2\,c}}}{b}}-{\frac{{\frac{i}{2}}\ln \left ({{\rm e}^{bx+a}}+i{{\rm e}^{a-c}} \right ){{\rm e}^{-a-c}}{{\rm e}^{2\,a}}}{b}}-{\frac{{\frac{i}{2}}\ln \left ({{\rm e}^{bx+a}}+i{{\rm e}^{a-c}} \right ){{\rm e}^{-a-c}}{{\rm e}^{2\,c}}}{b}} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(b*x+a)*tanh(b*x+c),x)

[Out]

1/2*exp(b*x+a)/b-1/2*exp(-b*x-a)/b+1/2*I/b*ln(exp(b*x+a)-I*exp(a-c))*exp(-a-c)*exp(2*a)+1/2*I/b*ln(exp(b*x+a)-
I*exp(a-c))*exp(-a-c)*exp(2*c)-1/2*I/b*ln(exp(b*x+a)+I*exp(a-c))*exp(-a-c)*exp(2*a)-1/2*I/b*ln(exp(b*x+a)+I*ex
p(a-c))*exp(-a-c)*exp(2*c)

________________________________________________________________________________________

Maxima [A]  time = 1.65073, size = 77, normalized size = 2.66 \begin{align*} \frac{{\left (e^{\left (2 \, a\right )} + e^{\left (2 \, c\right )}\right )} \arctan \left (e^{\left (-b x - c\right )}\right ) e^{\left (-a - c\right )}}{b} + \frac{e^{\left (b x + a\right )}}{2 \, b} - \frac{e^{\left (-b x - a\right )}}{2 \, b} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(b*x+a)*tanh(b*x+c),x, algorithm="maxima")

[Out]

(e^(2*a) + e^(2*c))*arctan(e^(-b*x - c))*e^(-a - c)/b + 1/2*e^(b*x + a)/b - 1/2*e^(-b*x - a)/b

________________________________________________________________________________________

Fricas [B]  time = 2.19109, size = 914, normalized size = 31.52 \begin{align*} \frac{\cosh \left (b x + c\right )^{2} \cosh \left (-a + c\right )^{2} - 2 \, \cosh \left (b x + c\right )^{2} \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) + \cosh \left (b x + c\right )^{2} \sinh \left (-a + c\right )^{2} +{\left (\cosh \left (-a + c\right )^{2} - 2 \, \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) + \sinh \left (-a + c\right )^{2}\right )} \sinh \left (b x + c\right )^{2} + 2 \,{\left (2 \, \cosh \left (b x + c\right ) \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) - \cosh \left (b x + c\right ) \sinh \left (-a + c\right )^{2} -{\left (\cosh \left (-a + c\right )^{2} + 1\right )} \cosh \left (b x + c\right ) -{\left (\cosh \left (-a + c\right )^{2} - 2 \, \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) + \sinh \left (-a + c\right )^{2} + 1\right )} \sinh \left (b x + c\right )\right )} \arctan \left (\cosh \left (b x + c\right ) + \sinh \left (b x + c\right )\right ) + 2 \,{\left (\cosh \left (b x + c\right ) \cosh \left (-a + c\right )^{2} - 2 \, \cosh \left (b x + c\right ) \cosh \left (-a + c\right ) \sinh \left (-a + c\right ) + \cosh \left (b x + c\right ) \sinh \left (-a + c\right )^{2}\right )} \sinh \left (b x + c\right ) - 1}{2 \,{\left (b \cosh \left (b x + c\right ) \cosh \left (-a + c\right ) - b \cosh \left (b x + c\right ) \sinh \left (-a + c\right ) +{\left (b \cosh \left (-a + c\right ) - b \sinh \left (-a + c\right )\right )} \sinh \left (b x + c\right )\right )}} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(b*x+a)*tanh(b*x+c),x, algorithm="fricas")

[Out]

1/2*(cosh(b*x + c)^2*cosh(-a + c)^2 - 2*cosh(b*x + c)^2*cosh(-a + c)*sinh(-a + c) + cosh(b*x + c)^2*sinh(-a +
c)^2 + (cosh(-a + c)^2 - 2*cosh(-a + c)*sinh(-a + c) + sinh(-a + c)^2)*sinh(b*x + c)^2 + 2*(2*cosh(b*x + c)*co
sh(-a + c)*sinh(-a + c) - cosh(b*x + c)*sinh(-a + c)^2 - (cosh(-a + c)^2 + 1)*cosh(b*x + c) - (cosh(-a + c)^2
- 2*cosh(-a + c)*sinh(-a + c) + sinh(-a + c)^2 + 1)*sinh(b*x + c))*arctan(cosh(b*x + c) + sinh(b*x + c)) + 2*(
cosh(b*x + c)*cosh(-a + c)^2 - 2*cosh(b*x + c)*cosh(-a + c)*sinh(-a + c) + cosh(b*x + c)*sinh(-a + c)^2)*sinh(
b*x + c) - 1)/(b*cosh(b*x + c)*cosh(-a + c) - b*cosh(b*x + c)*sinh(-a + c) + (b*cosh(-a + c) - b*sinh(-a + c))
*sinh(b*x + c))

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sinh{\left (a + b x \right )} \tanh{\left (b x + c \right )}\, dx \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(b*x+a)*tanh(b*x+c),x)

[Out]

Integral(sinh(a + b*x)*tanh(b*x + c), x)

________________________________________________________________________________________

Giac [A]  time = 1.20172, size = 66, normalized size = 2.28 \begin{align*} -\frac{2 \,{\left (e^{\left (2 \, a\right )} + e^{\left (2 \, c\right )}\right )} \arctan \left (e^{\left (b x + c\right )}\right ) e^{\left (-a - c\right )} - e^{\left (b x + a\right )} + e^{\left (-b x - a\right )}}{2 \, b} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(b*x+a)*tanh(b*x+c),x, algorithm="giac")

[Out]

-1/2*(2*(e^(2*a) + e^(2*c))*arctan(e^(b*x + c))*e^(-a - c) - e^(b*x + a) + e^(-b*x - a))/b