3.1.26 \(\int \text {csch}(x) \, dx\) [26]

Optimal. Leaf size=7 \[ \log \left (\tanh \left (\frac {x}{2}\right )\right ) \]

[Out]

ln(tanh(1/2*x))

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 5, normalized size of antiderivative = 0.71, number of steps used = 1, number of rules used = 1, integrand size = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3855} \begin {gather*} -\text {arctanh}(\cosh (x)) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Csch[x],x]

[Out]

-ArcTanh[Cosh[x]]

Rule 3855

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

Rubi steps

\begin {gather*} \begin {aligned} \text {Integral} &=-\text {arctanh}(\cosh (x))\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(17\) vs. \(2(7)=14\).
time = 0.00, size = 17, normalized size = 2.43 \begin {gather*} -\log \left (\cosh \left (\frac {x}{2}\right )\right )+\log \left (\sinh \left (\frac {x}{2}\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Csch[x],x]

[Out]

-Log[Cosh[x/2]] + Log[Sinh[x/2]]

________________________________________________________________________________________

Maple [A]
time = 0.01, size = 6, normalized size = 0.86

method result size
default \(-2 \,\arctanh \left ({\mathrm e}^{x}\right )\) \(6\)
parallelrisch \(\ln \left (\tanh \left (\frac {x}{2}\right )\right )\) \(6\)
risch \(\ln \left (-1+{\mathrm e}^{x}\right )-\ln \left ({\mathrm e}^{x}+1\right )\) \(14\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/sinh(x),x,method=_RETURNVERBOSE)

[Out]

-2*arctanh(exp(x))

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 17 vs. \(2 (5) = 10\).
time = 0.35, size = 17, normalized size = 2.43 \begin {gather*} -\log \left (e^{\left (-x\right )} + 1\right ) + \log \left (e^{\left (-x\right )} - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sinh(x),x, algorithm="maxima")

[Out]

-log(e^(-x) + 1) + log(e^(-x) - 1)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 17 vs. \(2 (5) = 10\).
time = 0.57, size = 17, normalized size = 2.43 \begin {gather*} -\log \left (\cosh \left (x\right ) + \sinh \left (x\right ) + 1\right ) + \log \left (\cosh \left (x\right ) + \sinh \left (x\right ) - 1\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sinh(x),x, algorithm="fricas")

[Out]

-log(cosh(x) + sinh(x) + 1) + log(cosh(x) + sinh(x) - 1)

________________________________________________________________________________________

Sympy [A]
time = 0.08, size = 5, normalized size = 0.71 \begin {gather*} \log {\left (\tanh {\left (\frac {x}{2} \right )} \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sinh(x),x)

[Out]

log(tanh(x/2))

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 14 vs. \(2 (5) = 10\).
time = 0.39, size = 14, normalized size = 2.00 \begin {gather*} -\log \left (e^{x} + 1\right ) + \log \left ({\left | e^{x} - 1 \right |}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sinh(x),x, algorithm="giac")

[Out]

-log(e^x + 1) + log(abs(e^x - 1))

________________________________________________________________________________________

Mupad [B]
time = 0.01, size = 5, normalized size = 0.71 \begin {gather*} \ln \left (\mathrm {tanh}\left (\frac {x}{2}\right )\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/sinh(x),x)

[Out]

log(tanh(x/2))

________________________________________________________________________________________