3.4.67 \(\int (x+\sinh (x))^3 \, dx\) [367]

Optimal. Leaf size=56 \[ -\frac {3 x^2}{4}+\frac {x^4}{4}+5 \cosh (x)+3 x^2 \cosh (x)+\frac {\cosh ^3(x)}{3}-6 x \sinh (x)+\frac {3}{2} x \cosh (x) \sinh (x)-\frac {3 \sinh ^2(x)}{4} \]

[Out]

-3/4*x^2+1/4*x^4+5*cosh(x)+3*x^2*cosh(x)+1/3*cosh(x)^3-6*x*sinh(x)+3/2*x*cosh(x)*sinh(x)-3/4*sinh(x)^2

________________________________________________________________________________________

Rubi [A]
time = 0.05, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 6, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 1.000, Rules used = {6874, 3377, 2718, 3391, 30, 2713} \begin {gather*} \frac {x^4}{4}-\frac {3 x^2}{4}+3 x^2 \cosh (x)-\frac {3 \sinh ^2(x)}{4}-6 x \sinh (x)+\frac {\cosh ^3(x)}{3}+5 \cosh (x)+\frac {3}{2} x \sinh (x) \cosh (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(x + Sinh[x])^3,x]

[Out]

(-3*x^2)/4 + x^4/4 + 5*Cosh[x] + 3*x^2*Cosh[x] + Cosh[x]^3/3 - 6*x*Sinh[x] + (3*x*Cosh[x]*Sinh[x])/2 - (3*Sinh
[x]^2)/4

Rule 30

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

Rule 2713

Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Dist[-d^(-1), Subst[Int[Expand[(1 - x^2)^((n - 1)/2), x], x], x
, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]

Rule 2718

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

Rule 3377

Int[((c_.) + (d_.)*(x_))^(m_.)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[(-(c + d*x)^m)*(Cos[e + f*x]/f), x]
+ Dist[d*(m/f), Int[(c + d*x)^(m - 1)*Cos[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && GtQ[m, 0]

Rule 3391

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

Rule 6874

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps

\begin {align*} \int (x+\sinh (x))^3 \, dx &=\int \left (x^3+3 x^2 \sinh (x)+3 x \sinh ^2(x)+\sinh ^3(x)\right ) \, dx\\ &=\frac {x^4}{4}+3 \int x^2 \sinh (x) \, dx+3 \int x \sinh ^2(x) \, dx+\int \sinh ^3(x) \, dx\\ &=\frac {x^4}{4}+3 x^2 \cosh (x)+\frac {3}{2} x \cosh (x) \sinh (x)-\frac {3 \sinh ^2(x)}{4}-\frac {3 \int x \, dx}{2}-6 \int x \cosh (x) \, dx-\text {Subst}\left (\int \left (1-x^2\right ) \, dx,x,\cosh (x)\right )\\ &=-\frac {3 x^2}{4}+\frac {x^4}{4}-\cosh (x)+3 x^2 \cosh (x)+\frac {\cosh ^3(x)}{3}-6 x \sinh (x)+\frac {3}{2} x \cosh (x) \sinh (x)-\frac {3 \sinh ^2(x)}{4}+6 \int \sinh (x) \, dx\\ &=-\frac {3 x^2}{4}+\frac {x^4}{4}+5 \cosh (x)+3 x^2 \cosh (x)+\frac {\cosh ^3(x)}{3}-6 x \sinh (x)+\frac {3}{2} x \cosh (x) \sinh (x)-\frac {3 \sinh ^2(x)}{4}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.05, size = 48, normalized size = 0.86 \begin {gather*} \frac {1}{24} \left (18 \left (7+4 x^2\right ) \cosh (x)-9 \cosh (2 x)+2 \cosh (3 x)+6 x \left (-3 x+x^3-24 \sinh (x)+3 \sinh (2 x)\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(x + Sinh[x])^3,x]

[Out]

(18*(7 + 4*x^2)*Cosh[x] - 9*Cosh[2*x] + 2*Cosh[3*x] + 6*x*(-3*x + x^3 - 24*Sinh[x] + 3*Sinh[2*x]))/24

________________________________________________________________________________________

Maple [A]
time = 0.42, size = 73, normalized size = 1.30

method result size
risch \(\frac {x^{4}}{4}-\frac {3 x^{2}}{4}+\frac {9}{16}+\frac {{\mathrm e}^{3 x}}{24}+\left (-\frac {3}{16}+\frac {3 x}{8}\right ) {\mathrm e}^{2 x}+\left (\frac {21}{8}-3 x +\frac {3}{2} x^{2}\right ) {\mathrm e}^{x}+\left (\frac {21}{8}+3 x +\frac {3}{2} x^{2}\right ) {\mathrm e}^{-x}+\left (-\frac {3}{16}-\frac {3 x}{8}\right ) {\mathrm e}^{-2 x}+\frac {{\mathrm e}^{-3 x}}{24}\) \(73\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x+sinh(x))^3,x,method=_RETURNVERBOSE)

[Out]

1/4*x^4-3/4*x^2+9/16+1/24*exp(3*x)+(-3/16+3/8*x)*exp(2*x)+(21/8-3*x+3/2*x^2)*exp(x)+(21/8+3*x+3/2*x^2)*exp(-x)
+(-3/16-3/8*x)*exp(-2*x)+1/24*exp(-3*x)

________________________________________________________________________________________

Maxima [A]
time = 0.27, size = 81, normalized size = 1.45 \begin {gather*} \frac {1}{4} \, x^{4} - \frac {3}{4} \, x^{2} + \frac {3}{16} \, {\left (2 \, x - 1\right )} e^{\left (2 \, x\right )} + \frac {3}{2} \, {\left (x^{2} + 2 \, x + 2\right )} e^{\left (-x\right )} - \frac {3}{16} \, {\left (2 \, x + 1\right )} e^{\left (-2 \, x\right )} + \frac {3}{2} \, {\left (x^{2} - 2 \, x + 2\right )} e^{x} + \frac {1}{24} \, e^{\left (3 \, x\right )} - \frac {3}{8} \, e^{\left (-x\right )} + \frac {1}{24} \, e^{\left (-3 \, x\right )} - \frac {3}{8} \, e^{x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x+sinh(x))^3,x, algorithm="maxima")

[Out]

1/4*x^4 - 3/4*x^2 + 3/16*(2*x - 1)*e^(2*x) + 3/2*(x^2 + 2*x + 2)*e^(-x) - 3/16*(2*x + 1)*e^(-2*x) + 3/2*(x^2 -
 2*x + 2)*e^x + 1/24*e^(3*x) - 3/8*e^(-x) + 1/24*e^(-3*x) - 3/8*e^x

________________________________________________________________________________________

Fricas [A]
time = 0.37, size = 58, normalized size = 1.04 \begin {gather*} \frac {1}{4} \, x^{4} + \frac {1}{12} \, \cosh \left (x\right )^{3} + \frac {1}{8} \, {\left (2 \, \cosh \left (x\right ) - 3\right )} \sinh \left (x\right )^{2} - \frac {3}{4} \, x^{2} + \frac {3}{4} \, {\left (4 \, x^{2} + 7\right )} \cosh \left (x\right ) - \frac {3}{8} \, \cosh \left (x\right )^{2} + \frac {3}{2} \, {\left (x \cosh \left (x\right ) - 4 \, x\right )} \sinh \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x+sinh(x))^3,x, algorithm="fricas")

[Out]

1/4*x^4 + 1/12*cosh(x)^3 + 1/8*(2*cosh(x) - 3)*sinh(x)^2 - 3/4*x^2 + 3/4*(4*x^2 + 7)*cosh(x) - 3/8*cosh(x)^2 +
 3/2*(x*cosh(x) - 4*x)*sinh(x)

________________________________________________________________________________________

Sympy [A]
time = 0.09, size = 85, normalized size = 1.52 \begin {gather*} \frac {x^{4}}{4} + \frac {3 x^{2} \sinh ^{2}{\left (x \right )}}{4} - \frac {3 x^{2} \cosh ^{2}{\left (x \right )}}{4} + 3 x^{2} \cosh {\left (x \right )} + \frac {3 x \sinh {\left (x \right )} \cosh {\left (x \right )}}{2} - 6 x \sinh {\left (x \right )} + \sinh ^{2}{\left (x \right )} \cosh {\left (x \right )} - \frac {2 \cosh ^{3}{\left (x \right )}}{3} - \frac {3 \cosh ^{2}{\left (x \right )}}{4} + 6 \cosh {\left (x \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x**4/4 + 3*x**2*sinh(x)**2/4 - 3*x**2*cosh(x)**2/4 + 3*x**2*cosh(x) + 3*x*sinh(x)*cosh(x)/2 - 6*x*sinh(x) + si
nh(x)**2*cosh(x) - 2*cosh(x)**3/3 - 3*cosh(x)**2/4 + 6*cosh(x)

________________________________________________________________________________________

Giac [A]
time = 0.41, size = 75, normalized size = 1.34 \begin {gather*} \frac {1}{4} \, x^{4} - \frac {3}{4} \, x^{2} + \frac {3}{16} \, {\left (2 \, x - 1\right )} e^{\left (2 \, x\right )} + \frac {3}{8} \, {\left (4 \, x^{2} + 8 \, x + 7\right )} e^{\left (-x\right )} - \frac {3}{16} \, {\left (2 \, x + 1\right )} e^{\left (-2 \, x\right )} + \frac {3}{8} \, {\left (4 \, x^{2} - 8 \, x + 7\right )} e^{x} + \frac {1}{24} \, e^{\left (3 \, x\right )} + \frac {1}{24} \, e^{\left (-3 \, x\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((x+sinh(x))^3,x, algorithm="giac")

[Out]

1/4*x^4 - 3/4*x^2 + 3/16*(2*x - 1)*e^(2*x) + 3/8*(4*x^2 + 8*x + 7)*e^(-x) - 3/16*(2*x + 1)*e^(-2*x) + 3/8*(4*x
^2 - 8*x + 7)*e^x + 1/24*e^(3*x) + 1/24*e^(-3*x)

________________________________________________________________________________________

Mupad [B]
time = 0.08, size = 46, normalized size = 0.82 \begin {gather*} 5\,\mathrm {cosh}\left (x\right )+3\,x^2\,\mathrm {cosh}\left (x\right )-\frac {3\,{\mathrm {cosh}\left (x\right )}^2}{4}+\frac {{\mathrm {cosh}\left (x\right )}^3}{3}-6\,x\,\mathrm {sinh}\left (x\right )-\frac {3\,x^2}{4}+\frac {x^4}{4}+\frac {3\,x\,\mathrm {cosh}\left (x\right )\,\mathrm {sinh}\left (x\right )}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((x + sinh(x))^3,x)

[Out]

5*cosh(x) + 3*x^2*cosh(x) - (3*cosh(x)^2)/4 + cosh(x)^3/3 - 6*x*sinh(x) - (3*x^2)/4 + x^4/4 + (3*x*cosh(x)*sin
h(x))/2

________________________________________________________________________________________