\(\int \text {csch}^2(a+b x) \, dx\) [2]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [B] (verification not implemented)
   Sympy [F]
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 8, antiderivative size = 11 \[ \int \text {csch}^2(a+b x) \, dx=-\frac {\coth (a+b x)}{b} \]

[Out]

-coth(b*x+a)/b

Rubi [A] (verified)

Time = 0.01 (sec) , antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3852, 8} \[ \int \text {csch}^2(a+b x) \, dx=-\frac {\coth (a+b x)}{b} \]

[In]

Int[Csch[a + b*x]^2,x]

[Out]

-(Coth[a + b*x]/b)

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 3852

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Dist[-d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

Rubi steps \begin{align*} \text {integral}& = -\frac {i \text {Subst}(\int 1 \, dx,x,-i \coth (a+b x))}{b} \\ & = -\frac {\coth (a+b x)}{b} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.02 (sec) , antiderivative size = 11, normalized size of antiderivative = 1.00 \[ \int \text {csch}^2(a+b x) \, dx=-\frac {\coth (a+b x)}{b} \]

[In]

Integrate[Csch[a + b*x]^2,x]

[Out]

-(Coth[a + b*x]/b)

Maple [A] (verified)

Time = 0.76 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.09

method result size
derivativedivides \(-\frac {\coth \left (b x +a \right )}{b}\) \(12\)
default \(-\frac {\coth \left (b x +a \right )}{b}\) \(12\)
risch \(-\frac {2}{b \left ({\mathrm e}^{2 b x +2 a}-1\right )}\) \(19\)
parallelrisch \(\frac {-\coth \left (\frac {b x}{2}+\frac {a}{2}\right )-\tanh \left (\frac {b x}{2}+\frac {a}{2}\right )}{2 b}\) \(29\)

[In]

int(csch(b*x+a)^2,x,method=_RETURNVERBOSE)

[Out]

-coth(b*x+a)/b

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 43 vs. \(2 (11) = 22\).

Time = 0.24 (sec) , antiderivative size = 43, normalized size of antiderivative = 3.91 \[ \int \text {csch}^2(a+b x) \, dx=-\frac {2}{b \cosh \left (b x + a\right )^{2} + 2 \, b \cosh \left (b x + a\right ) \sinh \left (b x + a\right ) + b \sinh \left (b x + a\right )^{2} - b} \]

[In]

integrate(csch(b*x+a)^2,x, algorithm="fricas")

[Out]

-2/(b*cosh(b*x + a)^2 + 2*b*cosh(b*x + a)*sinh(b*x + a) + b*sinh(b*x + a)^2 - b)

Sympy [F]

\[ \int \text {csch}^2(a+b x) \, dx=\int \operatorname {csch}^{2}{\left (a + b x \right )}\, dx \]

[In]

integrate(csch(b*x+a)**2,x)

[Out]

Integral(csch(a + b*x)**2, x)

Maxima [A] (verification not implemented)

none

Time = 0.18 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.64 \[ \int \text {csch}^2(a+b x) \, dx=\frac {2}{b {\left (e^{\left (-2 \, b x - 2 \, a\right )} - 1\right )}} \]

[In]

integrate(csch(b*x+a)^2,x, algorithm="maxima")

[Out]

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

Giac [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.64 \[ \int \text {csch}^2(a+b x) \, dx=-\frac {2}{b {\left (e^{\left (2 \, b x + 2 \, a\right )} - 1\right )}} \]

[In]

integrate(csch(b*x+a)^2,x, algorithm="giac")

[Out]

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

Mupad [B] (verification not implemented)

Time = 0.07 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.64 \[ \int \text {csch}^2(a+b x) \, dx=-\frac {2}{b\,\left ({\mathrm {e}}^{2\,a+2\,b\,x}-1\right )} \]

[In]

int(1/sinh(a + b*x)^2,x)

[Out]

-2/(b*(exp(2*a + 2*b*x) - 1))