3.69 \(\int \frac {\sinh ^4(x)}{1+\tanh (x)} \, dx\)

Optimal. Leaf size=60 \[ \frac {x}{16}-\frac {1}{8 (1-\tanh (x))}-\frac {3}{16 (\tanh (x)+1)}+\frac {1}{32 (1-\tanh (x))^2}+\frac {5}{32 (\tanh (x)+1)^2}-\frac {1}{24 (\tanh (x)+1)^3} \]

[Out]

1/16*x+1/32/(1-tanh(x))^2-1/8/(1-tanh(x))-1/24/(1+tanh(x))^3+5/32/(1+tanh(x))^2-3/16/(1+tanh(x))

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {3516, 848, 88, 207} \[ \frac {x}{16}-\frac {1}{8 (1-\tanh (x))}-\frac {3}{16 (\tanh (x)+1)}+\frac {1}{32 (1-\tanh (x))^2}+\frac {5}{32 (\tanh (x)+1)^2}-\frac {1}{24 (\tanh (x)+1)^3} \]

Antiderivative was successfully verified.

[In]

Int[Sinh[x]^4/(1 + Tanh[x]),x]

[Out]

x/16 + 1/(32*(1 - Tanh[x])^2) - 1/(8*(1 - Tanh[x])) - 1/(24*(1 + Tanh[x])^3) + 5/(32*(1 + Tanh[x])^2) - 3/(16*
(1 + Tanh[x]))

Rule 88

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[ExpandI
ntegrand[(a + b*x)^m*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, p}, x] && IntegersQ[m, n] &&
(IntegerQ[p] || (GtQ[m, 0] && GeQ[n, -1]))

Rule 207

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

Rule 848

Int[((d_) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))^(n_)*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[(d + e*x)
^(m + p)*(f + g*x)^n*(a/d + (c*x)/e)^p, x] /; FreeQ[{a, c, d, e, f, g, m, n}, x] && NeQ[e*f - d*g, 0] && EqQ[c
*d^2 + a*e^2, 0] && (IntegerQ[p] || (GtQ[a, 0] && GtQ[d, 0] && EqQ[m + p, 0]))

Rule 3516

Int[sin[(e_.) + (f_.)*(x_)]^(m_)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist[b/f, Subst[Int
[(x^m*(a + x)^n)/(b^2 + x^2)^(m/2 + 1), x], x, b*Tan[e + f*x]], x] /; FreeQ[{a, b, e, f, n}, x] && IntegerQ[m/
2]

Rubi steps

\begin {align*} \int \frac {\sinh ^4(x)}{1+\tanh (x)} \, dx &=-\operatorname {Subst}\left (\int \frac {x^4}{(1+x) \left (-1+x^2\right )^3} \, dx,x,\tanh (x)\right )\\ &=-\operatorname {Subst}\left (\int \frac {x^4}{(-1+x)^3 (1+x)^4} \, dx,x,\tanh (x)\right )\\ &=-\operatorname {Subst}\left (\int \left (\frac {1}{16 (-1+x)^3}+\frac {1}{8 (-1+x)^2}-\frac {1}{8 (1+x)^4}+\frac {5}{16 (1+x)^3}-\frac {3}{16 (1+x)^2}+\frac {1}{16 \left (-1+x^2\right )}\right ) \, dx,x,\tanh (x)\right )\\ &=\frac {1}{32 (1-\tanh (x))^2}-\frac {1}{8 (1-\tanh (x))}-\frac {1}{24 (1+\tanh (x))^3}+\frac {5}{32 (1+\tanh (x))^2}-\frac {3}{16 (1+\tanh (x))}-\frac {1}{16} \operatorname {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\tanh (x)\right )\\ &=\frac {x}{16}+\frac {1}{32 (1-\tanh (x))^2}-\frac {1}{8 (1-\tanh (x))}-\frac {1}{24 (1+\tanh (x))^3}+\frac {5}{32 (1+\tanh (x))^2}-\frac {3}{16 (1+\tanh (x))}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.08, size = 42, normalized size = 0.70 \[ \frac {1}{192} (12 x-3 \sinh (2 x)-3 \sinh (4 x)+\sinh (6 x)-15 \cosh (2 x)+6 \cosh (4 x)-\cosh (6 x)) \]

Antiderivative was successfully verified.

[In]

Integrate[Sinh[x]^4/(1 + Tanh[x]),x]

[Out]

(12*x - 15*Cosh[2*x] + 6*Cosh[4*x] - Cosh[6*x] - 3*Sinh[2*x] - 3*Sinh[4*x] + Sinh[6*x])/192

________________________________________________________________________________________

fricas [B]  time = 0.49, size = 92, normalized size = 1.53 \[ \frac {\cosh \relax (x)^{5} + 5 \, \cosh \relax (x) \sinh \relax (x)^{4} + 5 \, \sinh \relax (x)^{5} + {\left (50 \, \cosh \relax (x)^{2} - 27\right )} \sinh \relax (x)^{3} - 9 \, \cosh \relax (x)^{3} + {\left (10 \, \cosh \relax (x)^{3} - 27 \, \cosh \relax (x)\right )} \sinh \relax (x)^{2} + 12 \, {\left (2 \, x - 1\right )} \cosh \relax (x) + {\left (25 \, \cosh \relax (x)^{4} - 81 \, \cosh \relax (x)^{2} + 24 \, x + 12\right )} \sinh \relax (x)}{384 \, {\left (\cosh \relax (x) + \sinh \relax (x)\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(x)^4/(1+tanh(x)),x, algorithm="fricas")

[Out]

1/384*(cosh(x)^5 + 5*cosh(x)*sinh(x)^4 + 5*sinh(x)^5 + (50*cosh(x)^2 - 27)*sinh(x)^3 - 9*cosh(x)^3 + (10*cosh(
x)^3 - 27*cosh(x))*sinh(x)^2 + 12*(2*x - 1)*cosh(x) + (25*cosh(x)^4 - 81*cosh(x)^2 + 24*x + 12)*sinh(x))/(cosh
(x) + sinh(x))

________________________________________________________________________________________

giac [A]  time = 0.14, size = 42, normalized size = 0.70 \[ -\frac {1}{384} \, {\left (22 \, e^{\left (6 \, x\right )} + 12 \, e^{\left (4 \, x\right )} - 9 \, e^{\left (2 \, x\right )} + 2\right )} e^{\left (-6 \, x\right )} + \frac {1}{16} \, x + \frac {1}{128} \, e^{\left (4 \, x\right )} - \frac {3}{64} \, e^{\left (2 \, x\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(x)^4/(1+tanh(x)),x, algorithm="giac")

[Out]

-1/384*(22*e^(6*x) + 12*e^(4*x) - 9*e^(2*x) + 2)*e^(-6*x) + 1/16*x + 1/128*e^(4*x) - 3/64*e^(2*x)

________________________________________________________________________________________

maple [B]  time = 0.09, size = 98, normalized size = 1.63 \[ \frac {1}{8 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{4}}+\frac {1}{4 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{3}}-\frac {1}{8 \left (\tanh \left (\frac {x}{2}\right )-1\right )}-\frac {\ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{16}-\frac {1}{3 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{6}}+\frac {1}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{5}}-\frac {7}{8 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{4}}+\frac {1}{12 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{3}}+\frac {1}{8 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}+\frac {\ln \left (\tanh \left (\frac {x}{2}\right )+1\right )}{16} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(x)^4/(1+tanh(x)),x)

[Out]

1/8/(tanh(1/2*x)-1)^4+1/4/(tanh(1/2*x)-1)^3-1/8/(tanh(1/2*x)-1)-1/16*ln(tanh(1/2*x)-1)-1/3/(tanh(1/2*x)+1)^6+1
/(tanh(1/2*x)+1)^5-7/8/(tanh(1/2*x)+1)^4+1/12/(tanh(1/2*x)+1)^3+1/8/(tanh(1/2*x)+1)^2+1/16*ln(tanh(1/2*x)+1)

________________________________________________________________________________________

maxima [A]  time = 0.31, size = 36, normalized size = 0.60 \[ -\frac {1}{128} \, {\left (6 \, e^{\left (-2 \, x\right )} - 1\right )} e^{\left (4 \, x\right )} + \frac {1}{16} \, x - \frac {1}{32} \, e^{\left (-2 \, x\right )} + \frac {3}{128} \, e^{\left (-4 \, x\right )} - \frac {1}{192} \, e^{\left (-6 \, x\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(x)^4/(1+tanh(x)),x, algorithm="maxima")

[Out]

-1/128*(6*e^(-2*x) - 1)*e^(4*x) + 1/16*x - 1/32*e^(-2*x) + 3/128*e^(-4*x) - 1/192*e^(-6*x)

________________________________________________________________________________________

mupad [B]  time = 1.31, size = 34, normalized size = 0.57 \[ \frac {x}{16}-\frac {{\mathrm {e}}^{-2\,x}}{32}-\frac {3\,{\mathrm {e}}^{2\,x}}{64}+\frac {3\,{\mathrm {e}}^{-4\,x}}{128}+\frac {{\mathrm {e}}^{4\,x}}{128}-\frac {{\mathrm {e}}^{-6\,x}}{192} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(x)^4/(tanh(x) + 1),x)

[Out]

x/16 - exp(-2*x)/32 - (3*exp(2*x))/64 + (3*exp(-4*x))/128 + exp(4*x)/128 - exp(-6*x)/192

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sinh ^{4}{\relax (x )}}{\tanh {\relax (x )} + 1}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(x)**4/(1+tanh(x)),x)

[Out]

Integral(sinh(x)**4/(tanh(x) + 1), x)

________________________________________________________________________________________