Optimal. Leaf size=30 \[ \frac {x}{2}+\frac {x^3}{3}-2 \cosh (x)+2 x \sinh (x)+\frac {1}{2} \cosh (x) \sinh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.833, Rules used = {6874, 3377,
2718, 2715, 8} \begin {gather*} \frac {x^3}{3}+\frac {x}{2}+2 x \sinh (x)-2 \cosh (x)+\frac {1}{2} \sinh (x) \cosh (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2715
Rule 2718
Rule 3377
Rule 6874
Rubi steps
\begin {align*} \int (x+\cosh (x))^2 \, dx &=\int \left (x^2+2 x \cosh (x)+\cosh ^2(x)\right ) \, dx\\ &=\frac {x^3}{3}+2 \int x \cosh (x) \, dx+\int \cosh ^2(x) \, dx\\ &=\frac {x^3}{3}+2 x \sinh (x)+\frac {1}{2} \cosh (x) \sinh (x)+\frac {\int 1 \, dx}{2}-2 \int \sinh (x) \, dx\\ &=\frac {x}{2}+\frac {x^3}{3}-2 \cosh (x)+2 x \sinh (x)+\frac {1}{2} \cosh (x) \sinh (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 26, normalized size = 0.87 \begin {gather*} \frac {1}{6} \left (3 \cosh (x) (-4+\sinh (x))+x \left (3+2 x^2+12 \sinh (x)\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.25, size = 25, normalized size = 0.83
method | result | size |
default | \(\frac {x}{2}+\frac {x^{3}}{3}-2 \cosh \left (x \right )+2 x \sinh \left (x \right )+\frac {\cosh \left (x \right ) \sinh \left (x \right )}{2}\) | \(25\) |
risch | \(\frac {x^{3}}{3}+\frac {x}{2}+\frac {{\mathrm e}^{2 x}}{8}+\left (x -1\right ) {\mathrm e}^{x}+\left (-1-x \right ) {\mathrm e}^{-x}-\frac {{\mathrm e}^{-2 x}}{8}\) | \(38\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 36, normalized size = 1.20 \begin {gather*} \frac {1}{3} \, x^{3} - {\left (x + 1\right )} e^{\left (-x\right )} + {\left (x - 1\right )} e^{x} + \frac {1}{2} \, x + \frac {1}{8} \, e^{\left (2 \, x\right )} - \frac {1}{8} \, e^{\left (-2 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 23, normalized size = 0.77 \begin {gather*} \frac {1}{3} \, x^{3} + \frac {1}{2} \, {\left (4 \, x + \cosh \left (x\right )\right )} \sinh \left (x\right ) + \frac {1}{2} \, x - 2 \, \cosh \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 41, normalized size = 1.37 \begin {gather*} \frac {x^{3}}{3} - \frac {x \sinh ^{2}{\left (x \right )}}{2} + 2 x \sinh {\left (x \right )} + \frac {x \cosh ^{2}{\left (x \right )}}{2} + \frac {\sinh {\left (x \right )} \cosh {\left (x \right )}}{2} - 2 \cosh {\left (x \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 36, normalized size = 1.20 \begin {gather*} \frac {1}{3} \, x^{3} - {\left (x + 1\right )} e^{\left (-x\right )} + {\left (x - 1\right )} e^{x} + \frac {1}{2} \, x + \frac {1}{8} \, e^{\left (2 \, x\right )} - \frac {1}{8} \, e^{\left (-2 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.05, size = 24, normalized size = 0.80 \begin {gather*} \frac {x}{2}-2\,\mathrm {cosh}\left (x\right )+\frac {\mathrm {cosh}\left (x\right )\,\mathrm {sinh}\left (x\right )}{2}+2\,x\,\mathrm {sinh}\left (x\right )+\frac {x^3}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________