### 3.739 $$\int (a+b \cosh (x)+c \sinh (x))^3 \, dx$$

Optimal. Leaf size=119 $\frac{1}{2} a x \left (2 a^2+3 b^2-3 c^2\right )+\frac{1}{6} b \sinh (x) \left (11 a^2+4 b^2-4 c^2\right )+\frac{1}{6} c \cosh (x) \left (11 a^2+4 b^2-4 c^2\right )+\frac{1}{3} (b \sinh (x)+c \cosh (x)) (a+b \cosh (x)+c \sinh (x))^2+\frac{5}{6} (a b \sinh (x)+a c \cosh (x)) (a+b \cosh (x)+c \sinh (x))$

[Out]

(a*(2*a^2 + 3*b^2 - 3*c^2)*x)/2 + (c*(11*a^2 + 4*b^2 - 4*c^2)*Cosh[x])/6 + (b*(11*a^2 + 4*b^2 - 4*c^2)*Sinh[x]
)/6 + (5*(a*c*Cosh[x] + a*b*Sinh[x])*(a + b*Cosh[x] + c*Sinh[x]))/6 + ((c*Cosh[x] + b*Sinh[x])*(a + b*Cosh[x]
+ c*Sinh[x])^2)/3

________________________________________________________________________________________

Rubi [A]  time = 0.131999, antiderivative size = 119, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 12, $$\frac{\text{number of rules}}{\text{integrand size}}$$ = 0.333, Rules used = {3120, 3146, 2637, 2638} $\frac{1}{2} a x \left (2 a^2+3 b^2-3 c^2\right )+\frac{1}{6} b \sinh (x) \left (11 a^2+4 b^2-4 c^2\right )+\frac{1}{6} c \cosh (x) \left (11 a^2+4 b^2-4 c^2\right )+\frac{1}{3} (b \sinh (x)+c \cosh (x)) (a+b \cosh (x)+c \sinh (x))^2+\frac{5}{6} (a b \sinh (x)+a c \cosh (x)) (a+b \cosh (x)+c \sinh (x))$

Antiderivative was successfully veriﬁed.

[In]

Int[(a + b*Cosh[x] + c*Sinh[x])^3,x]

[Out]

(a*(2*a^2 + 3*b^2 - 3*c^2)*x)/2 + (c*(11*a^2 + 4*b^2 - 4*c^2)*Cosh[x])/6 + (b*(11*a^2 + 4*b^2 - 4*c^2)*Sinh[x]
)/6 + (5*(a*c*Cosh[x] + a*b*Sinh[x])*(a + b*Cosh[x] + c*Sinh[x]))/6 + ((c*Cosh[x] + b*Sinh[x])*(a + b*Cosh[x]
+ c*Sinh[x])^2)/3

Rule 3120

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

Rule 3146

Int[(cos[(d_.) + (e_.)*(x_)]*(b_.) + (a_) + (c_.)*sin[(d_.) + (e_.)*(x_)])^(n_.)*((A_.) + cos[(d_.) + (e_.)*(x
_)]*(B_.) + (C_.)*sin[(d_.) + (e_.)*(x_)]), x_Symbol] :> Simp[((B*c - b*C - a*C*Cos[d + e*x] + a*B*Sin[d + e*x
])*(a + b*Cos[d + e*x] + c*Sin[d + e*x])^n)/(a*e*(n + 1)), x] + Dist[1/(a*(n + 1)), Int[(a + b*Cos[d + e*x] +
c*Sin[d + e*x])^(n - 1)*Simp[a*(b*B + c*C)*n + a^2*A*(n + 1) + (n*(a^2*B - B*c^2 + b*c*C) + a*b*A*(n + 1))*Cos
[d + e*x] + (n*(b*B*c + a^2*C - b^2*C) + a*c*A*(n + 1))*Sin[d + e*x], x], x], x] /; FreeQ[{a, b, c, d, e, A, B
, C}, x] && GtQ[n, 0] && NeQ[a^2 - b^2 - c^2, 0]

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))^3 \, dx &=\frac{1}{3} (c \cosh (x)+b \sinh (x)) (a+b \cosh (x)+c \sinh (x))^2+\frac{1}{3} \int (a+b \cosh (x)+c \sinh (x)) \left (3 a^2+2 b^2-2 c^2+5 a b \cosh (x)+5 a c \sinh (x)\right ) \, dx\\ &=\frac{5}{6} (a c \cosh (x)+a b \sinh (x)) (a+b \cosh (x)+c \sinh (x))+\frac{1}{3} (c \cosh (x)+b \sinh (x)) (a+b \cosh (x)+c \sinh (x))^2+\frac{\int \left (3 a^2 \left (2 a^2+3 b^2-3 c^2\right )+a b \left (11 a^2+4 b^2-4 c^2\right ) \cosh (x)+a c \left (11 a^2+4 b^2-4 c^2\right ) \sinh (x)\right ) \, dx}{6 a}\\ &=\frac{1}{2} a \left (2 a^2+3 b^2-3 c^2\right ) x+\frac{5}{6} (a c \cosh (x)+a b \sinh (x)) (a+b \cosh (x)+c \sinh (x))+\frac{1}{3} (c \cosh (x)+b \sinh (x)) (a+b \cosh (x)+c \sinh (x))^2+\frac{1}{6} \left (b \left (11 a^2+4 b^2-4 c^2\right )\right ) \int \cosh (x) \, dx+\frac{1}{6} \left (c \left (11 a^2+4 b^2-4 c^2\right )\right ) \int \sinh (x) \, dx\\ &=\frac{1}{2} a \left (2 a^2+3 b^2-3 c^2\right ) x+\frac{1}{6} c \left (11 a^2+4 b^2-4 c^2\right ) \cosh (x)+\frac{1}{6} b \left (11 a^2+4 b^2-4 c^2\right ) \sinh (x)+\frac{5}{6} (a c \cosh (x)+a b \sinh (x)) (a+b \cosh (x)+c \sinh (x))+\frac{1}{3} (c \cosh (x)+b \sinh (x)) (a+b \cosh (x)+c \sinh (x))^2\\ \end{align*}

Mathematica [A]  time = 0.186675, size = 116, normalized size = 0.97 $\frac{1}{12} \left (6 a x \left (2 a^2+3 b^2-3 c^2\right )+9 b \sinh (x) \left (4 a^2+b^2-c^2\right )+9 c \cosh (x) \left (4 a^2+b^2-c^2\right )+9 a \left (b^2+c^2\right ) \sinh (2 x)+18 a b c \cosh (2 x)+b \left (b^2+3 c^2\right ) \sinh (3 x)+c \left (3 b^2+c^2\right ) \cosh (3 x)\right )$

Antiderivative was successfully veriﬁed.

[In]

Integrate[(a + b*Cosh[x] + c*Sinh[x])^3,x]

[Out]

(6*a*(2*a^2 + 3*b^2 - 3*c^2)*x + 9*c*(4*a^2 + b^2 - c^2)*Cosh[x] + 18*a*b*c*Cosh[2*x] + c*(3*b^2 + c^2)*Cosh[3
*x] + 9*b*(4*a^2 + b^2 - c^2)*Sinh[x] + 9*a*(b^2 + c^2)*Sinh[2*x] + b*(b^2 + 3*c^2)*Sinh[3*x])/12

________________________________________________________________________________________

Maple [A]  time = 0.028, size = 130, normalized size = 1.1 \begin{align*}{a}^{3}x+3\,{a}^{2}b\sinh \left ( x \right ) +3\,{a}^{2}c\cosh \left ( x \right ) +3\,a{b}^{2} \left ( 1/2\,\cosh \left ( x \right ) \sinh \left ( x \right ) +x/2 \right ) +3\,abc \left ( \cosh \left ( x \right ) \right ) ^{2}+3\,a{c}^{2} \left ( 1/2\,\cosh \left ( x \right ) \sinh \left ( x \right ) -x/2 \right ) +{b}^{3} \left ({\frac{2}{3}}+{\frac{ \left ( \cosh \left ( x \right ) \right ) ^{2}}{3}} \right ) \sinh \left ( x \right ) +3\,c{b}^{2} \left ( 1/3\,\cosh \left ( x \right ) \left ( \sinh \left ( x \right ) \right ) ^{2}+1/3\,\cosh \left ( x \right ) \right ) +3\,b{c}^{2} \left ( 1/3\,\sinh \left ( x \right ) \left ( \cosh \left ( x \right ) \right ) ^{2}-1/3\,\sinh \left ( x \right ) \right ) +{c}^{3} \left ( -{\frac{2}{3}}+{\frac{ \left ( \sinh \left ( x \right ) \right ) ^{2}}{3}} \right ) \cosh \left ( x \right ) \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

a^3*x+3*a^2*b*sinh(x)+3*a^2*c*cosh(x)+3*a*b^2*(1/2*cosh(x)*sinh(x)+1/2*x)+3*a*b*c*cosh(x)^2+3*a*c^2*(1/2*cosh(
x)*sinh(x)-1/2*x)+b^3*(2/3+1/3*cosh(x)^2)*sinh(x)+3*c*b^2*(1/3*cosh(x)*sinh(x)^2+1/3*cosh(x))+3*b*c^2*(1/3*sin
h(x)*cosh(x)^2-1/3*sinh(x))+c^3*(-2/3+1/3*sinh(x)^2)*cosh(x)

________________________________________________________________________________________

Maxima [A]  time = 1.02551, size = 185, normalized size = 1.55 \begin{align*} b^{2} c \cosh \left (x\right )^{3} + b c^{2} \sinh \left (x\right )^{3} + a^{3} x + \frac{1}{24} \, c^{3}{\left (e^{\left (3 \, x\right )} - 9 \, e^{\left (-x\right )} + e^{\left (-3 \, x\right )} - 9 \, e^{x}\right )} + \frac{1}{24} \, b^{3}{\left (e^{\left (3 \, x\right )} - 9 \, e^{\left (-x\right )} - e^{\left (-3 \, x\right )} + 9 \, e^{x}\right )} + 3 \,{\left (c \cosh \left (x\right ) + b \sinh \left (x\right )\right )} a^{2} + \frac{3}{8} \,{\left (8 \, b c \cosh \left (x\right )^{2} + b^{2}{\left (4 \, x + e^{\left (2 \, x\right )} - e^{\left (-2 \, x\right )}\right )} - c^{2}{\left (4 \, x - e^{\left (2 \, x\right )} + e^{\left (-2 \, x\right )}\right )}\right )} a \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

b^2*c*cosh(x)^3 + b*c^2*sinh(x)^3 + a^3*x + 1/24*c^3*(e^(3*x) - 9*e^(-x) + e^(-3*x) - 9*e^x) + 1/24*b^3*(e^(3*
x) - 9*e^(-x) - e^(-3*x) + 9*e^x) + 3*(c*cosh(x) + b*sinh(x))*a^2 + 3/8*(8*b*c*cosh(x)^2 + b^2*(4*x + e^(2*x)
- e^(-2*x)) - c^2*(4*x - e^(2*x) + e^(-2*x)))*a

________________________________________________________________________________________

Fricas [A]  time = 1.98616, size = 421, normalized size = 3.54 \begin{align*} \frac{3}{2} \, a b c \cosh \left (x\right )^{2} + \frac{1}{12} \,{\left (3 \, b^{2} c + c^{3}\right )} \cosh \left (x\right )^{3} + \frac{1}{12} \,{\left (b^{3} + 3 \, b c^{2}\right )} \sinh \left (x\right )^{3} + \frac{1}{4} \,{\left (6 \, a b c +{\left (3 \, b^{2} c + c^{3}\right )} \cosh \left (x\right )\right )} \sinh \left (x\right )^{2} + \frac{1}{2} \,{\left (2 \, a^{3} + 3 \, a b^{2} - 3 \, a c^{2}\right )} x - \frac{3}{4} \,{\left (c^{3} -{\left (4 \, a^{2} + b^{2}\right )} c\right )} \cosh \left (x\right ) + \frac{1}{4} \,{\left (12 \, a^{2} b + 3 \, b^{3} - 3 \, b c^{2} +{\left (b^{3} + 3 \, b c^{2}\right )} \cosh \left (x\right )^{2} + 6 \,{\left (a b^{2} + a c^{2}\right )} \cosh \left (x\right )\right )} \sinh \left (x\right ) \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

3/2*a*b*c*cosh(x)^2 + 1/12*(3*b^2*c + c^3)*cosh(x)^3 + 1/12*(b^3 + 3*b*c^2)*sinh(x)^3 + 1/4*(6*a*b*c + (3*b^2*
c + c^3)*cosh(x))*sinh(x)^2 + 1/2*(2*a^3 + 3*a*b^2 - 3*a*c^2)*x - 3/4*(c^3 - (4*a^2 + b^2)*c)*cosh(x) + 1/4*(1
2*a^2*b + 3*b^3 - 3*b*c^2 + (b^3 + 3*b*c^2)*cosh(x)^2 + 6*(a*b^2 + a*c^2)*cosh(x))*sinh(x)

________________________________________________________________________________________

Sympy [A]  time = 0.722612, size = 196, normalized size = 1.65 \begin{align*} a^{3} x + 3 a^{2} b \sinh{\left (x \right )} + 3 a^{2} c \cosh{\left (x \right )} - \frac{3 a b^{2} x \sinh ^{2}{\left (x \right )}}{2} + \frac{3 a b^{2} x \cosh ^{2}{\left (x \right )}}{2} + \frac{3 a b^{2} \sinh{\left (x \right )} \cosh{\left (x \right )}}{2} + 3 a b c \sinh ^{2}{\left (x \right )} + \frac{3 a c^{2} x \sinh ^{2}{\left (x \right )}}{2} - \frac{3 a c^{2} x \cosh ^{2}{\left (x \right )}}{2} + \frac{3 a c^{2} \sinh{\left (x \right )} \cosh{\left (x \right )}}{2} - \frac{2 b^{3} \sinh ^{3}{\left (x \right )}}{3} + b^{3} \sinh{\left (x \right )} \cosh ^{2}{\left (x \right )} + b^{2} c \cosh ^{3}{\left (x \right )} + b c^{2} \sinh ^{3}{\left (x \right )} + c^{3} \sinh ^{2}{\left (x \right )} \cosh{\left (x \right )} - \frac{2 c^{3} \cosh ^{3}{\left (x \right )}}{3} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

a**3*x + 3*a**2*b*sinh(x) + 3*a**2*c*cosh(x) - 3*a*b**2*x*sinh(x)**2/2 + 3*a*b**2*x*cosh(x)**2/2 + 3*a*b**2*si
nh(x)*cosh(x)/2 + 3*a*b*c*sinh(x)**2 + 3*a*c**2*x*sinh(x)**2/2 - 3*a*c**2*x*cosh(x)**2/2 + 3*a*c**2*sinh(x)*co
sh(x)/2 - 2*b**3*sinh(x)**3/3 + b**3*sinh(x)*cosh(x)**2 + b**2*c*cosh(x)**3 + b*c**2*sinh(x)**3 + c**3*sinh(x)
**2*cosh(x) - 2*c**3*cosh(x)**3/3

________________________________________________________________________________________

Giac [B]  time = 1.12245, size = 296, normalized size = 2.49 \begin{align*} \frac{1}{24} \, b^{3} e^{\left (3 \, x\right )} + \frac{1}{8} \, b^{2} c e^{\left (3 \, x\right )} + \frac{1}{8} \, b c^{2} e^{\left (3 \, x\right )} + \frac{1}{24} \, c^{3} e^{\left (3 \, x\right )} + \frac{3}{8} \, a b^{2} e^{\left (2 \, x\right )} + \frac{3}{4} \, a b c e^{\left (2 \, x\right )} + \frac{3}{8} \, a c^{2} e^{\left (2 \, x\right )} + \frac{3}{2} \, a^{2} b e^{x} + \frac{3}{8} \, b^{3} e^{x} + \frac{3}{2} \, a^{2} c e^{x} + \frac{3}{8} \, b^{2} c e^{x} - \frac{3}{8} \, b c^{2} e^{x} - \frac{3}{8} \, c^{3} e^{x} + \frac{1}{2} \,{\left (2 \, a^{3} + 3 \, a b^{2} - 3 \, a c^{2}\right )} x - \frac{1}{24} \,{\left (b^{3} - 3 \, b^{2} c + 3 \, b c^{2} - c^{3} + 9 \,{\left (4 \, a^{2} b + b^{3} - 4 \, a^{2} c - b^{2} c - b c^{2} + c^{3}\right )} e^{\left (2 \, x\right )} + 9 \,{\left (a b^{2} - 2 \, a b c + a c^{2}\right )} e^{x}\right )} e^{\left (-3 \, x\right )} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/24*b^3*e^(3*x) + 1/8*b^2*c*e^(3*x) + 1/8*b*c^2*e^(3*x) + 1/24*c^3*e^(3*x) + 3/8*a*b^2*e^(2*x) + 3/4*a*b*c*e^
(2*x) + 3/8*a*c^2*e^(2*x) + 3/2*a^2*b*e^x + 3/8*b^3*e^x + 3/2*a^2*c*e^x + 3/8*b^2*c*e^x - 3/8*b*c^2*e^x - 3/8*
c^3*e^x + 1/2*(2*a^3 + 3*a*b^2 - 3*a*c^2)*x - 1/24*(b^3 - 3*b^2*c + 3*b*c^2 - c^3 + 9*(4*a^2*b + b^3 - 4*a^2*c
- b^2*c - b*c^2 + c^3)*e^(2*x) + 9*(a*b^2 - 2*a*b*c + a*c^2)*e^x)*e^(-3*x)