3.3.6 \(\int \coth (2 x) \sinh (x) \, dx\) [206]

Optimal. Leaf size=10 \[ -\frac {1}{2} \text {ArcTan}(\sinh (x))+\sinh (x) \]

[Out]

-1/2*arctan(sinh(x))+sinh(x)

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {396, 209} \begin {gather*} \sinh (x)-\frac {1}{2} \text {ArcTan}(\sinh (x)) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Coth[2*x]*Sinh[x],x]

[Out]

-1/2*ArcTan[Sinh[x]] + Sinh[x]

Rule 209

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*ArcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rule 396

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

Rubi steps

\begin {align*} \int \coth (2 x) \sinh (x) \, dx &=\text {Subst}\left (\int \frac {1+2 x^2}{2+2 x^2} \, dx,x,\sinh (x)\right )\\ &=\sinh (x)-\text {Subst}\left (\int \frac {1}{2+2 x^2} \, dx,x,\sinh (x)\right )\\ &=-\frac {1}{2} \tan ^{-1}(\sinh (x))+\sinh (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 10, normalized size = 1.00 \begin {gather*} -\frac {1}{2} \text {ArcTan}(\sinh (x))+\sinh (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Coth[2*x]*Sinh[x],x]

[Out]

-1/2*ArcTan[Sinh[x]] + Sinh[x]

________________________________________________________________________________________

Maple [A]
time = 0.61, size = 9, normalized size = 0.90

method result size
default \(\sinh \left (x \right )-\arctan \left ({\mathrm e}^{x}\right )\) \(9\)
risch \(\frac {{\mathrm e}^{x}}{2}-\frac {{\mathrm e}^{-x}}{2}+\frac {i \ln \left ({\mathrm e}^{x}-i\right )}{2}-\frac {i \ln \left ({\mathrm e}^{x}+i\right )}{2}\) \(30\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(coth(2*x)*sinh(x),x,method=_RETURNVERBOSE)

[Out]

sinh(x)-arctan(exp(x))

________________________________________________________________________________________

Maxima [A]
time = 0.48, size = 16, normalized size = 1.60 \begin {gather*} \arctan \left (e^{\left (-x\right )}\right ) - \frac {1}{2} \, e^{\left (-x\right )} + \frac {1}{2} \, e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(2*x)*sinh(x),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 42 vs. \(2 (8) = 16\).
time = 0.37, size = 42, normalized size = 4.20 \begin {gather*} -\frac {2 \, {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \arctan \left (\cosh \left (x\right ) + \sinh \left (x\right )\right ) - \cosh \left (x\right )^{2} - 2 \, \cosh \left (x\right ) \sinh \left (x\right ) - \sinh \left (x\right )^{2} + 1}{2 \, {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(2*x)*sinh(x),x, algorithm="fricas")

[Out]

-1/2*(2*(cosh(x) + sinh(x))*arctan(cosh(x) + sinh(x)) - cosh(x)^2 - 2*cosh(x)*sinh(x) - sinh(x)^2 + 1)/(cosh(x
) + sinh(x))

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sinh {\left (x \right )} \coth {\left (2 x \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(2*x)*sinh(x),x)

[Out]

Integral(sinh(x)*coth(2*x), x)

________________________________________________________________________________________

Giac [A]
time = 0.39, size = 16, normalized size = 1.60 \begin {gather*} -\arctan \left (e^{x}\right ) - \frac {1}{2} \, e^{\left (-x\right )} + \frac {1}{2} \, e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(coth(2*x)*sinh(x),x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 0.05, size = 16, normalized size = 1.60 \begin {gather*} \frac {{\mathrm {e}}^x}{2}-\mathrm {atan}\left ({\mathrm {e}}^x\right )-\frac {{\mathrm {e}}^{-x}}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(coth(2*x)*sinh(x),x)

[Out]

exp(x)/2 - atan(exp(x)) - exp(-x)/2

________________________________________________________________________________________