Optimal. Leaf size=9 \[ -\cosh (x)+x \sinh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3377, 2718}
\begin {gather*} x \sinh (x)-\cosh (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3377
Rubi steps
\begin {align*} \int x \cosh (x) \, dx &=x \sinh (x)-\int \sinh (x) \, dx\\ &=-\cosh (x)+x \sinh (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 9, normalized size = 1.00 \begin {gather*} -\cosh (x)+x \sinh (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 10, normalized size = 1.11
method | result | size |
default | \(-\cosh \left (x \right )+x \sinh \left (x \right )\) | \(10\) |
risch | \(\left (-\frac {1}{2}+\frac {x}{2}\right ) {\mathrm e}^{x}+\left (-\frac {1}{2}-\frac {x}{2}\right ) {\mathrm e}^{-x}\) | \(20\) |
meijerg | \(-2 \sqrt {\pi }\, \left (-\frac {1}{2 \sqrt {\pi }}+\frac {\cosh \left (x \right )}{2 \sqrt {\pi }}-\frac {x \sinh \left (x \right )}{2 \sqrt {\pi }}\right )\) | \(27\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 34 vs.
\(2 (9) = 18\).
time = 1.31, size = 34, normalized size = 3.78 \begin {gather*} \frac {1}{2} \, x^{2} \cosh \left (x\right ) - \frac {1}{4} \, {\left (x^{2} + 2 \, x + 2\right )} e^{\left (-x\right )} - \frac {1}{4} \, {\left (x^{2} - 2 \, x + 2\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.63, size = 9, normalized size = 1.00 \begin {gather*} x \sinh \left (x\right ) - \cosh \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 7, normalized size = 0.78 \begin {gather*} x \sinh {\left (x \right )} - \cosh {\left (x \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.54, size = 17, normalized size = 1.89 \begin {gather*} -\frac {1}{2} \, {\left (x + 1\right )} e^{\left (-x\right )} + \frac {1}{2} \, {\left (x - 1\right )} e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.03, size = 9, normalized size = 1.00 \begin {gather*} x\,\mathrm {sinh}\left (x\right )-\mathrm {cosh}\left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________