\(\int \frac {\sinh ^3(x)}{a+a \text {sech}(x)} \, dx\) [53]

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

Optimal result

Integrand size = 13, antiderivative size = 23 \[ \int \frac {\sinh ^3(x)}{a+a \text {sech}(x)} \, dx=\frac {\cosh ^3(x)}{3 a}-\frac {\sinh ^2(x)}{2 a} \]

[Out]

1/3*cosh(x)^3/a-1/2*sinh(x)^2/a

Rubi [A] (verified)

Time = 0.09 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {3957, 2914, 2644, 30, 2645} \[ \int \frac {\sinh ^3(x)}{a+a \text {sech}(x)} \, dx=\frac {\cosh ^3(x)}{3 a}-\frac {\sinh ^2(x)}{2 a} \]

[In]

Int[Sinh[x]^3/(a + a*Sech[x]),x]

[Out]

Cosh[x]^3/(3*a) - Sinh[x]^2/(2*a)

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 2644

Int[cos[(e_.) + (f_.)*(x_)]^(n_.)*((a_.)*sin[(e_.) + (f_.)*(x_)])^(m_.), x_Symbol] :> Dist[1/(a*f), Subst[Int[
x^m*(1 - x^2/a^2)^((n - 1)/2), x], x, a*Sin[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n - 1)/2] &&
 !(IntegerQ[(m - 1)/2] && LtQ[0, m, n])

Rule 2645

Int[(cos[(e_.) + (f_.)*(x_)]*(a_.))^(m_.)*sin[(e_.) + (f_.)*(x_)]^(n_.), x_Symbol] :> Dist[-(a*f)^(-1), Subst[
Int[x^m*(1 - x^2/a^2)^((n - 1)/2), x], x, a*Cos[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n - 1)/2]
 &&  !(IntegerQ[(m - 1)/2] && GtQ[m, 0] && LeQ[m, n])

Rule 2914

Int[(cos[(e_.) + (f_.)*(x_)]^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.))/((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]
), x_Symbol] :> Dist[1/a, Int[Cos[e + f*x]^(p - 2)*(d*Sin[e + f*x])^n, x], x] - Dist[1/(b*d), Int[Cos[e + f*x]
^(p - 2)*(d*Sin[e + f*x])^(n + 1), x], x] /; FreeQ[{a, b, d, e, f, n, p}, x] && IntegerQ[(p - 1)/2] && EqQ[a^2
 - b^2, 0] && IntegerQ[n] && (LtQ[0, n, (p + 1)/2] || (LeQ[p, -n] && LtQ[-n, 2*p - 3]) || (GtQ[n, 0] && LeQ[n,
 -p]))

Rule 3957

Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_.)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.), x_Symbol] :> Int[(g*Co
s[e + f*x])^p*((b + a*Sin[e + f*x])^m/Sin[e + f*x]^m), x] /; FreeQ[{a, b, e, f, g, p}, x] && IntegerQ[m]

Rubi steps \begin{align*} \text {integral}& = -\int \frac {\cosh (x) \sinh ^3(x)}{-a-a \cosh (x)} \, dx \\ & = -\frac {\int \cosh (x) \sinh (x) \, dx}{a}+\frac {\int \cosh ^2(x) \sinh (x) \, dx}{a} \\ & = \frac {\text {Subst}(\int x \, dx,x,i \sinh (x))}{a}+\frac {\text {Subst}\left (\int x^2 \, dx,x,\cosh (x)\right )}{a} \\ & = \frac {\cosh ^3(x)}{3 a}-\frac {\sinh ^2(x)}{2 a} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.06 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.00 \[ \int \frac {\sinh ^3(x)}{a+a \text {sech}(x)} \, dx=\frac {-7+3 \cosh (x)-3 \cosh (2 x)+\cosh (3 x)}{12 a} \]

[In]

Integrate[Sinh[x]^3/(a + a*Sech[x]),x]

[Out]

(-7 + 3*Cosh[x] - 3*Cosh[2*x] + Cosh[3*x])/(12*a)

Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(53\) vs. \(2(19)=38\).

Time = 2.53 (sec) , antiderivative size = 54, normalized size of antiderivative = 2.35

method result size
risch \(\frac {{\mathrm e}^{3 x}}{24 a}-\frac {{\mathrm e}^{2 x}}{8 a}+\frac {{\mathrm e}^{x}}{8 a}+\frac {{\mathrm e}^{-x}}{8 a}-\frac {{\mathrm e}^{-2 x}}{8 a}+\frac {{\mathrm e}^{-3 x}}{24 a}\) \(54\)
default \(\frac {-\frac {1}{3 \left (\tanh \left (\frac {x}{2}\right )-1\right )^{3}}-\frac {1}{\left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}-\frac {1}{\tanh \left (\frac {x}{2}\right )-1}+\frac {1}{3 \left (\tanh \left (\frac {x}{2}\right )+1\right )^{3}}-\frac {1}{\left (\tanh \left (\frac {x}{2}\right )+1\right )^{2}}+\frac {8}{8 \tanh \left (\frac {x}{2}\right )+8}}{a}\) \(67\)

[In]

int(sinh(x)^3/(a+a*sech(x)),x,method=_RETURNVERBOSE)

[Out]

1/24/a*exp(3*x)-1/8/a*exp(2*x)+1/8/a*exp(x)+1/8/a*exp(-x)-1/8/a*exp(-2*x)+1/24/a*exp(-3*x)

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 30, normalized size of antiderivative = 1.30 \[ \int \frac {\sinh ^3(x)}{a+a \text {sech}(x)} \, dx=\frac {\cosh \left (x\right )^{3} + 3 \, {\left (\cosh \left (x\right ) - 1\right )} \sinh \left (x\right )^{2} - 3 \, \cosh \left (x\right )^{2} + 3 \, \cosh \left (x\right )}{12 \, a} \]

[In]

integrate(sinh(x)^3/(a+a*sech(x)),x, algorithm="fricas")

[Out]

1/12*(cosh(x)^3 + 3*(cosh(x) - 1)*sinh(x)^2 - 3*cosh(x)^2 + 3*cosh(x))/a

Sympy [F]

\[ \int \frac {\sinh ^3(x)}{a+a \text {sech}(x)} \, dx=\frac {\int \frac {\sinh ^{3}{\left (x \right )}}{\operatorname {sech}{\left (x \right )} + 1}\, dx}{a} \]

[In]

integrate(sinh(x)**3/(a+a*sech(x)),x)

[Out]

Integral(sinh(x)**3/(sech(x) + 1), x)/a

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 46 vs. \(2 (19) = 38\).

Time = 0.20 (sec) , antiderivative size = 46, normalized size of antiderivative = 2.00 \[ \int \frac {\sinh ^3(x)}{a+a \text {sech}(x)} \, dx=-\frac {{\left (3 \, e^{\left (-x\right )} - 3 \, e^{\left (-2 \, x\right )} - 1\right )} e^{\left (3 \, x\right )}}{24 \, a} + \frac {3 \, e^{\left (-x\right )} - 3 \, e^{\left (-2 \, x\right )} + e^{\left (-3 \, x\right )}}{24 \, a} \]

[In]

integrate(sinh(x)^3/(a+a*sech(x)),x, algorithm="maxima")

[Out]

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

Giac [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.61 \[ \int \frac {\sinh ^3(x)}{a+a \text {sech}(x)} \, dx=\frac {{\left (3 \, e^{\left (2 \, x\right )} - 3 \, e^{x} + 1\right )} e^{\left (-3 \, x\right )} + e^{\left (3 \, x\right )} - 3 \, e^{\left (2 \, x\right )} + 3 \, e^{x}}{24 \, a} \]

[In]

integrate(sinh(x)^3/(a+a*sech(x)),x, algorithm="giac")

[Out]

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

Mupad [B] (verification not implemented)

Time = 1.99 (sec) , antiderivative size = 53, normalized size of antiderivative = 2.30 \[ \int \frac {\sinh ^3(x)}{a+a \text {sech}(x)} \, dx=\frac {{\mathrm {e}}^{-x}}{8\,a}-\frac {{\mathrm {e}}^{-2\,x}}{8\,a}-\frac {{\mathrm {e}}^{2\,x}}{8\,a}+\frac {{\mathrm {e}}^{-3\,x}}{24\,a}+\frac {{\mathrm {e}}^{3\,x}}{24\,a}+\frac {{\mathrm {e}}^x}{8\,a} \]

[In]

int(sinh(x)^3/(a + a/cosh(x)),x)

[Out]

exp(-x)/(8*a) - exp(-2*x)/(8*a) - exp(2*x)/(8*a) + exp(-3*x)/(24*a) + exp(3*x)/(24*a) + exp(x)/(8*a)