3.741 \(\int (a+b \cosh (x)+c \sinh (x)) \, dx\)

Optimal. Leaf size=12 \[ a x+b \sinh (x)+c \cosh (x) \]

[Out]

a*x+c*cosh(x)+b*sinh(x)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2637, 2638} \[ a x+b \sinh (x)+c \cosh (x) \]

Antiderivative was successfully verified.

[In]

Int[a + b*Cosh[x] + c*Sinh[x],x]

[Out]

a*x + c*Cosh[x] + b*Sinh[x]

Rule 2637

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 2638

Int[sin[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Cos[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin {align*} \int (a+b \cosh (x)+c \sinh (x)) \, dx &=a x+b \int \cosh (x) \, dx+c \int \sinh (x) \, dx\\ &=a x+c \cosh (x)+b \sinh (x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 12, normalized size = 1.00 \[ a x+b \sinh (x)+c \cosh (x) \]

Antiderivative was successfully verified.

[In]

Integrate[a + b*Cosh[x] + c*Sinh[x],x]

[Out]

a*x + c*Cosh[x] + b*Sinh[x]

________________________________________________________________________________________

fricas [A]  time = 0.53, size = 12, normalized size = 1.00 \[ a x + c \cosh \relax (x) + b \sinh \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a+b*cosh(x)+c*sinh(x),x, algorithm="fricas")

[Out]

a*x + c*cosh(x) + b*sinh(x)

________________________________________________________________________________________

giac [B]  time = 0.11, size = 26, normalized size = 2.17 \[ a x + \frac {1}{2} \, c {\left (e^{\left (-x\right )} + e^{x}\right )} - \frac {1}{2} \, b {\left (e^{\left (-x\right )} - e^{x}\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a+b*cosh(x)+c*sinh(x),x, algorithm="giac")

[Out]

a*x + 1/2*c*(e^(-x) + e^x) - 1/2*b*(e^(-x) - e^x)

________________________________________________________________________________________

maple [A]  time = 0.02, size = 13, normalized size = 1.08 \[ a x +c \cosh \relax (x )+b \sinh \relax (x ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(a+b*cosh(x)+c*sinh(x),x)

[Out]

a*x+c*cosh(x)+b*sinh(x)

________________________________________________________________________________________

maxima [A]  time = 0.30, size = 12, normalized size = 1.00 \[ a x + c \cosh \relax (x) + b \sinh \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a+b*cosh(x)+c*sinh(x),x, algorithm="maxima")

[Out]

a*x + c*cosh(x) + b*sinh(x)

________________________________________________________________________________________

mupad [B]  time = 0.05, size = 12, normalized size = 1.00 \[ a\,x+c\,\mathrm {cosh}\relax (x)+b\,\mathrm {sinh}\relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(a + b*cosh(x) + c*sinh(x),x)

[Out]

a*x + c*cosh(x) + b*sinh(x)

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 12, normalized size = 1.00 \[ a x + b \sinh {\relax (x )} + c \cosh {\relax (x )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a+b*cosh(x)+c*sinh(x),x)

[Out]

a*x + b*sinh(x) + c*cosh(x)

________________________________________________________________________________________