3.1043 \(\int \sinh (x) (\cosh (x)+\sinh (x)) \, dx\)

Optimal. Leaf size=22 \[ -\frac{x}{2}+\frac{\sinh ^2(x)}{2}+\frac{1}{2} \sinh (x) \cosh (x) \]

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.0342234, antiderivative size = 22, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.625, Rules used = {3089, 2564, 30, 2635, 8} \[ -\frac{x}{2}+\frac{\sinh ^2(x)}{2}+\frac{1}{2} \sinh (x) \cosh (x) \]

Antiderivative was successfully verified.

[In]

Int[Sinh[x]*(Cosh[x] + Sinh[x]),x]

[Out]

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

Rule 3089

Int[sin[(c_.) + (d_.)*(x_)]^(m_.)*(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(n_.), x_Sym
bol] :> Int[ExpandTrig[sin[c + d*x]^m*(a*cos[c + d*x] + b*sin[c + d*x])^n, x], x] /; FreeQ[{a, b, c, d}, x] &&
 IntegerQ[m] && IGtQ[n, 0]

Rule 2564

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 30

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

Rule 2635

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> -Simp[(b*Cos[c + d*x]*(b*Sin[c + d*x])^(n - 1))/(d*n),
x] + Dist[(b^2*(n - 1))/n, Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integer
Q[2*n]

Rule 8

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

Rubi steps

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

Mathematica [A]  time = 0.0041325, size = 22, normalized size = 1. \[ -\frac{x}{2}+\frac{1}{4} \sinh (2 x)+\frac{\cosh ^2(x)}{2} \]

Antiderivative was successfully verified.

[In]

Integrate[Sinh[x]*(Cosh[x] + Sinh[x]),x]

[Out]

-x/2 + Cosh[x]^2/2 + Sinh[2*x]/4

________________________________________________________________________________________

Maple [A]  time = 0.007, size = 17, normalized size = 0.8 \begin{align*}{\frac{\cosh \left ( x \right ) \sinh \left ( x \right ) }{2}}-{\frac{x}{2}}+{\frac{ \left ( \cosh \left ( x \right ) \right ) ^{2}}{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(x)*(cosh(x)+sinh(x)),x)

[Out]

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

________________________________________________________________________________________

Maxima [A]  time = 1.01952, size = 30, normalized size = 1.36 \begin{align*} \frac{1}{2} \, \cosh \left (x\right )^{2} - \frac{1}{2} \, x + \frac{1}{8} \, e^{\left (2 \, x\right )} - \frac{1}{8} \, e^{\left (-2 \, x\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(x)*(cosh(x)+sinh(x)),x, algorithm="maxima")

[Out]

1/2*cosh(x)^2 - 1/2*x + 1/8*e^(2*x) - 1/8*e^(-2*x)

________________________________________________________________________________________

Fricas [A]  time = 2.03138, size = 89, normalized size = 4.05 \begin{align*} -\frac{{\left (2 \, x - 1\right )} \cosh \left (x\right ) -{\left (2 \, x + 1\right )} \sinh \left (x\right )}{4 \,{\left (\cosh \left (x\right ) - \sinh \left (x\right )\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(x)*(cosh(x)+sinh(x)),x, algorithm="fricas")

[Out]

-1/4*((2*x - 1)*cosh(x) - (2*x + 1)*sinh(x))/(cosh(x) - sinh(x))

________________________________________________________________________________________

Sympy [A]  time = 0.21644, size = 31, normalized size = 1.41 \begin{align*} \frac{x \sinh ^{2}{\left (x \right )}}{2} - \frac{x \cosh ^{2}{\left (x \right )}}{2} + \frac{\sinh{\left (x \right )} \cosh{\left (x \right )}}{2} + \frac{\cosh ^{2}{\left (x \right )}}{2} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(x)*(cosh(x)+sinh(x)),x)

[Out]

x*sinh(x)**2/2 - x*cosh(x)**2/2 + sinh(x)*cosh(x)/2 + cosh(x)**2/2

________________________________________________________________________________________

Giac [A]  time = 1.14004, size = 14, normalized size = 0.64 \begin{align*} -\frac{1}{2} \, x + \frac{1}{4} \, e^{\left (2 \, x\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(x)*(cosh(x)+sinh(x)),x, algorithm="giac")

[Out]

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