3.2 \(\int \cosh ^2(a+b x) \, dx\)

Optimal. Leaf size=25 \[ \frac {\sinh (a+b x) \cosh (a+b x)}{2 b}+\frac {x}{2} \]

[Out]

1/2*x+1/2*cosh(b*x+a)*sinh(b*x+a)/b

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2635, 8} \[ \frac {\sinh (a+b x) \cosh (a+b x)}{2 b}+\frac {x}{2} \]

Antiderivative was successfully verified.

[In]

Int[Cosh[a + b*x]^2,x]

[Out]

x/2 + (Cosh[a + b*x]*Sinh[a + b*x])/(2*b)

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 2635

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> -Simp[(b*Cos[c + d*x]*(b*Sin[c + d*x])^(n - 1))/(d*n),
x] + Dist[(b^2*(n - 1))/n, Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integer
Q[2*n]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 23, normalized size = 0.92 \[ \frac {2 (a+b x)+\sinh (2 (a+b x))}{4 b} \]

Antiderivative was successfully verified.

[In]

Integrate[Cosh[a + b*x]^2,x]

[Out]

(2*(a + b*x) + Sinh[2*(a + b*x)])/(4*b)

________________________________________________________________________________________

fricas [A]  time = 0.56, size = 22, normalized size = 0.88 \[ \frac {b x + \cosh \left (b x + a\right ) \sinh \left (b x + a\right )}{2 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(b*x+a)^2,x, algorithm="fricas")

[Out]

1/2*(b*x + cosh(b*x + a)*sinh(b*x + a))/b

________________________________________________________________________________________

giac [A]  time = 0.13, size = 32, normalized size = 1.28 \[ \frac {1}{2} \, x + \frac {e^{\left (2 \, b x + 2 \, a\right )}}{8 \, b} - \frac {e^{\left (-2 \, b x - 2 \, a\right )}}{8 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(b*x+a)^2,x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.08, size = 27, normalized size = 1.08 \[ \frac {\frac {\cosh \left (b x +a \right ) \sinh \left (b x +a \right )}{2}+\frac {b x}{2}+\frac {a}{2}}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cosh(b*x+a)^2,x)

[Out]

1/b*(1/2*cosh(b*x+a)*sinh(b*x+a)+1/2*b*x+1/2*a)

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 32, normalized size = 1.28 \[ \frac {1}{2} \, x + \frac {e^{\left (2 \, b x + 2 \, a\right )}}{8 \, b} - \frac {e^{\left (-2 \, b x - 2 \, a\right )}}{8 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(b*x+a)^2,x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.88, size = 18, normalized size = 0.72 \[ \frac {x}{2}+\frac {\mathrm {sinh}\left (2\,a+2\,b\,x\right )}{4\,b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cosh(a + b*x)^2,x)

[Out]

x/2 + sinh(2*a + 2*b*x)/(4*b)

________________________________________________________________________________________

sympy [A]  time = 0.21, size = 46, normalized size = 1.84 \[ \begin {cases} - \frac {x \sinh ^{2}{\left (a + b x \right )}}{2} + \frac {x \cosh ^{2}{\left (a + b x \right )}}{2} + \frac {\sinh {\left (a + b x \right )} \cosh {\left (a + b x \right )}}{2 b} & \text {for}\: b \neq 0 \\x \cosh ^{2}{\relax (a )} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(b*x+a)**2,x)

[Out]

Piecewise((-x*sinh(a + b*x)**2/2 + x*cosh(a + b*x)**2/2 + sinh(a + b*x)*cosh(a + b*x)/(2*b), Ne(b, 0)), (x*cos
h(a)**2, True))

________________________________________________________________________________________