3.605 \(\int (a \cosh (c+d x)-a \sinh (c+d x)) \, dx\)

Optimal. Leaf size=24 \[ \frac {a \sinh (c+d x)}{d}-\frac {a \cosh (c+d x)}{d} \]

[Out]

-a*cosh(d*x+c)/d+a*sinh(d*x+c)/d

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

Int[a*Cosh[c + d*x] - a*Sinh[c + d*x],x]

[Out]

-((a*Cosh[c + d*x])/d) + (a*Sinh[c + d*x])/d

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 \cosh (c+d x)-a \sinh (c+d x)) \, dx &=a \int \cosh (c+d x) \, dx-a \int \sinh (c+d x) \, dx\\ &=-\frac {a \cosh (c+d x)}{d}+\frac {a \sinh (c+d x)}{d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 47, normalized size = 1.96 \[ -\frac {a \sinh (c) \sinh (d x)}{d}-\frac {a \cosh (c) \cosh (d x)}{d}+\frac {a \sinh (c) \cosh (d x)}{d}+\frac {a \cosh (c) \sinh (d x)}{d} \]

Antiderivative was successfully verified.

[In]

Integrate[a*Cosh[c + d*x] - a*Sinh[c + d*x],x]

[Out]

-((a*Cosh[c]*Cosh[d*x])/d) + (a*Cosh[d*x]*Sinh[c])/d + (a*Cosh[c]*Sinh[d*x])/d - (a*Sinh[c]*Sinh[d*x])/d

________________________________________________________________________________________

fricas [A]  time = 0.38, size = 22, normalized size = 0.92 \[ -\frac {a}{d \cosh \left (d x + c\right ) + d \sinh \left (d x + c\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-a/(d*cosh(d*x + c) + d*sinh(d*x + c))

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.02, size = 21, normalized size = 0.88 \[ \frac {a \left (\sinh \left (d x +c \right )-\cosh \left (d x +c \right )\right )}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(a*cosh(d*x+c)-a*sinh(d*x+c),x)

[Out]

a*(sinh(d*x+c)-cosh(d*x+c))/d

________________________________________________________________________________________

maxima [A]  time = 0.36, size = 24, normalized size = 1.00 \[ -\frac {a \cosh \left (d x + c\right )}{d} + \frac {a \sinh \left (d x + c\right )}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-a*cosh(d*x + c)/d + a*sinh(d*x + c)/d

________________________________________________________________________________________

mupad [B]  time = 0.05, size = 15, normalized size = 0.62 \[ -\frac {a\,{\mathrm {e}}^{-c-d\,x}}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(a*cosh(c + d*x) - a*sinh(c + d*x),x)

[Out]

-(a*exp(- c - d*x))/d

________________________________________________________________________________________

sympy [A]  time = 0.15, size = 29, normalized size = 1.21 \[ a \left (\begin {cases} \frac {\sinh {\left (c + d x \right )}}{d} & \text {for}\: d \neq 0 \\x \cosh {\relax (c )} & \text {otherwise} \end {cases}\right ) - a \left (\begin {cases} \frac {\cosh {\left (c + d x \right )}}{d} & \text {for}\: d \neq 0 \\x \sinh {\relax (c )} & \text {otherwise} \end {cases}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(a*cosh(d*x+c)-a*sinh(d*x+c),x)

[Out]

a*Piecewise((sinh(c + d*x)/d, Ne(d, 0)), (x*cosh(c), True)) - a*Piecewise((cosh(c + d*x)/d, Ne(d, 0)), (x*sinh
(c), True))

________________________________________________________________________________________