Optimal. Leaf size=19 \[ -\frac {\cosh (a y)}{a^2}+\frac {y \sinh (a y)}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3377, 2718}
\begin {gather*} \frac {y \sinh (a y)}{a}-\frac {\cosh (a y)}{a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3377
Rubi steps
\begin {align*} \int y \cosh (a y) \, dy &=\frac {y \sinh (a y)}{a}-\frac {\int \sinh (a y) \, dy}{a}\\ &=-\frac {\cosh (a y)}{a^2}+\frac {y \sinh (a y)}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 19, normalized size = 1.00 \begin {gather*} -\frac {\cosh (a y)}{a^2}+\frac {y \sinh (a y)}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 19, normalized size = 1.00
method | result | size |
derivativedivides | \(\frac {y a \sinh \left (a y \right )-\cosh \left (a y \right )}{a^{2}}\) | \(19\) |
default | \(\frac {y a \sinh \left (a y \right )-\cosh \left (a y \right )}{a^{2}}\) | \(19\) |
risch | \(\frac {\left (a y -1\right ) {\mathrm e}^{a y}}{2 a^{2}}-\frac {\left (a y +1\right ) {\mathrm e}^{-a y}}{2 a^{2}}\) | \(31\) |
meijerg | \(-\frac {2 \sqrt {\pi }\, \left (-\frac {1}{2 \sqrt {\pi }}+\frac {\cosh \left (a y \right )}{2 \sqrt {\pi }}-\frac {y a \sinh \left (a y \right )}{2 \sqrt {\pi }}\right )}{a^{2}}\) | \(35\) |
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. 57 vs.
\(2 (19) = 38\).
time = 0.78, size = 57, normalized size = 3.00 \begin {gather*} \frac {1}{2} \, y^{2} \cosh \left (a y\right ) - \frac {1}{4} \, a {\left (\frac {{\left (a^{2} y^{2} - 2 \, a y + 2\right )} e^{\left (a y\right )}}{a^{3}} + \frac {{\left (a^{2} y^{2} + 2 \, a y + 2\right )} e^{\left (-a y\right )}}{a^{3}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.66, size = 18, normalized size = 0.95 \begin {gather*} \frac {a y \sinh \left (a y\right ) - \cosh \left (a y\right )}{a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.07, size = 20, normalized size = 1.05 \begin {gather*} \begin {cases} \frac {y \sinh {\left (a y \right )}}{a} - \frac {\cosh {\left (a y \right )}}{a^{2}} & \text {for}\: a \neq 0 \\\frac {y^{2}}{2} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.87, size = 30, normalized size = 1.58 \begin {gather*} \frac {{\left (a y - 1\right )} e^{\left (a y\right )}}{2 \, a^{2}} - \frac {{\left (a y + 1\right )} e^{\left (-a y\right )}}{2 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 18, normalized size = 0.95 \begin {gather*} -\frac {\mathrm {cosh}\left (a\,y\right )-a\,y\,\mathrm {sinh}\left (a\,y\right )}{a^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________