Optimal. Leaf size=56 \[ \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) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.076909, antiderivative size = 56, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 6, integrand size = 6, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 1., Rules used = {6742, 3296, 2638, 3310, 30, 2633} \[ \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) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6742
Rule 3296
Rule 2638
Rule 3310
Rule 30
Rule 2633
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-\operatorname{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.084436, size = 48, normalized size = 0.86 \[ \frac{1}{24} \left (6 x \left (x^3-3 x-24 \sinh (x)+3 \sinh (2 x)\right )+18 \left (4 x^2+7\right ) \cosh (x)-9 \cosh (2 x)+2 \cosh (3 x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.008, size = 52, normalized size = 0.9 \begin{align*} \left ( -{\frac{2}{3}}+{\frac{ \left ( \sinh \left ( x \right ) \right ) ^{2}}{3}} \right ) \cosh \left ( x \right ) +{\frac{3\,x\cosh \left ( x \right ) \sinh \left ( x \right ) }{2}}-{\frac{3\,{x}^{2}}{4}}-{\frac{3\, \left ( \cosh \left ( x \right ) \right ) ^{2}}{4}}+3\,{x}^{2}\cosh \left ( x \right ) -6\,x\sinh \left ( x \right ) +6\,\cosh \left ( x \right ) +{\frac{{x}^{4}}{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.03458, size = 109, normalized size = 1.95 \begin{align*} \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.06957, size = 192, normalized size = 3.43 \begin{align*} \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.455458, size = 85, normalized size = 1.52 \begin{align*} \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.24664, size = 101, normalized size = 1.8 \begin{align*} \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]