3.1.35 \(\int y \cosh (a y) \, dy\) [35]

Optimal. Leaf size=19 \[ -\frac {\cosh (a y)}{a^2}+\frac {y \sinh (a y)}{a} \]

[Out]

-cosh(a*y)/a^2+y*sinh(a*y)/a

________________________________________________________________________________________

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]

Int[y*Cosh[a*y],y]

[Out]

-(Cosh[a*y]/a^2) + (y*Sinh[a*y])/a

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]

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]

Integrate[y*Cosh[a*y],y]

[Out]

-(Cosh[a*y]/a^2) + (y*Sinh[a*y])/a

________________________________________________________________________________________

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]

int(y*cosh(a*y),y,method=_RETURNVERBOSE)

[Out]

1/a^2*(y*a*sinh(a*y)-cosh(a*y))

________________________________________________________________________________________

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]

integrate(y*cosh(a*y),y, algorithm="maxima")

[Out]

1/2*y^2*cosh(a*y) - 1/4*a*((a^2*y^2 - 2*a*y + 2)*e^(a*y)/a^3 + (a^2*y^2 + 2*a*y + 2)*e^(-a*y)/a^3)

________________________________________________________________________________________

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]

integrate(y*cosh(a*y),y, algorithm="fricas")

[Out]

(a*y*sinh(a*y) - cosh(a*y))/a^2

________________________________________________________________________________________

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]

integrate(y*cosh(a*y),y)

[Out]

Piecewise((y*sinh(a*y)/a - cosh(a*y)/a**2, Ne(a, 0)), (y**2/2, True))

________________________________________________________________________________________

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]

integrate(y*cosh(a*y),y, algorithm="giac")

[Out]

1/2*(a*y - 1)*e^(a*y)/a^2 - 1/2*(a*y + 1)*e^(-a*y)/a^2

________________________________________________________________________________________

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]

int(y*cosh(a*y),y)

[Out]

-(cosh(a*y) - a*y*sinh(a*y))/a^2

________________________________________________________________________________________