Optimal. Leaf size=59 \[ \frac {1}{2} x \left (2 a^2+b^2-c^2\right )+\frac {1}{2} (b \sinh (x)+c \cosh (x)) (a+b \cosh (x)+c \sinh (x))+\frac {3}{2} a b \sinh (x)+\frac {3}{2} a c \cosh (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3120, 2637, 2638} \[ \frac {1}{2} x \left (2 a^2+b^2-c^2\right )+\frac {1}{2} (b \sinh (x)+c \cosh (x)) (a+b \cosh (x)+c \sinh (x))+\frac {3}{2} a b \sinh (x)+\frac {3}{2} a c \cosh (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2637
Rule 2638
Rule 3120
Rubi steps
\begin {align*} \int (a+b \cosh (x)+c \sinh (x))^2 \, dx &=\frac {1}{2} (c \cosh (x)+b \sinh (x)) (a+b \cosh (x)+c \sinh (x))+\frac {1}{2} \int \left (2 a^2+b^2-c^2+3 a b \cosh (x)+3 a c \sinh (x)\right ) \, dx\\ &=\frac {1}{2} \left (2 a^2+b^2-c^2\right ) x+\frac {1}{2} (c \cosh (x)+b \sinh (x)) (a+b \cosh (x)+c \sinh (x))+\frac {1}{2} (3 a b) \int \cosh (x) \, dx+\frac {1}{2} (3 a c) \int \sinh (x) \, dx\\ &=\frac {1}{2} \left (2 a^2+b^2-c^2\right ) x+\frac {3}{2} a c \cosh (x)+\frac {3}{2} a b \sinh (x)+\frac {1}{2} (c \cosh (x)+b \sinh (x)) (a+b \cosh (x)+c \sinh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 54, normalized size = 0.92 \[ \frac {1}{4} \left (2 x \left (2 a^2+b^2-c^2\right )+8 a b \sinh (x)+8 a c \cosh (x)+\left (b^2+c^2\right ) \sinh (2 x)+2 b c \cosh (2 x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 59, normalized size = 1.00 \[ \frac {1}{2} \, b c \cosh \relax (x)^{2} + \frac {1}{2} \, b c \sinh \relax (x)^{2} + 2 \, a c \cosh \relax (x) + \frac {1}{2} \, {\left (2 \, a^{2} + b^{2} - c^{2}\right )} x + \frac {1}{2} \, {\left (4 \, a b + {\left (b^{2} + c^{2}\right )} \cosh \relax (x)\right )} \sinh \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.11, size = 83, normalized size = 1.41 \[ \frac {1}{8} \, b^{2} e^{\left (2 \, x\right )} + \frac {1}{4} \, b c e^{\left (2 \, x\right )} + \frac {1}{8} \, c^{2} e^{\left (2 \, x\right )} + a b e^{x} + a c e^{x} + \frac {1}{2} \, {\left (2 \, a^{2} + b^{2} - c^{2}\right )} x - \frac {1}{8} \, {\left (b^{2} - 2 \, b c + c^{2} + 8 \, {\left (a b - a c\right )} e^{x}\right )} e^{\left (-2 \, x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.15, size = 54, normalized size = 0.92 \[ a^{2} x +2 a b \sinh \relax (x )+2 a c \cosh \relax (x )+b^{2} \left (\frac {\cosh \relax (x ) \sinh \relax (x )}{2}+\frac {x}{2}\right )+c b \left (\cosh ^{2}\relax (x )\right )+c^{2} \left (\frac {\cosh \relax (x ) \sinh \relax (x )}{2}-\frac {x}{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.50, size = 63, normalized size = 1.07 \[ b c \cosh \relax (x)^{2} + \frac {1}{8} \, b^{2} {\left (4 \, x + e^{\left (2 \, x\right )} - e^{\left (-2 \, x\right )}\right )} - \frac {1}{8} \, c^{2} {\left (4 \, x - e^{\left (2 \, x\right )} + e^{\left (-2 \, x\right )}\right )} + a^{2} x + 2 \, {\left (c \cosh \relax (x) + b \sinh \relax (x)\right )} a \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.54, size = 55, normalized size = 0.93 \[ x\,a^2+2\,\mathrm {sinh}\relax (x)\,a\,b+2\,a\,c\,\mathrm {cosh}\relax (x)+\frac {\mathrm {sinh}\relax (x)\,b^2\,\mathrm {cosh}\relax (x)}{2}+\frac {x\,b^2}{2}+b\,c\,{\mathrm {cosh}\relax (x)}^2+\frac {\mathrm {sinh}\relax (x)\,c^2\,\mathrm {cosh}\relax (x)}{2}-\frac {x\,c^2}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.21, size = 100, normalized size = 1.69 \[ a^{2} x + 2 a b \sinh {\relax (x )} + 2 a c \cosh {\relax (x )} - \frac {b^{2} x \sinh ^{2}{\relax (x )}}{2} + \frac {b^{2} x \cosh ^{2}{\relax (x )}}{2} + \frac {b^{2} \sinh {\relax (x )} \cosh {\relax (x )}}{2} + b c \cosh ^{2}{\relax (x )} + \frac {c^{2} x \sinh ^{2}{\relax (x )}}{2} - \frac {c^{2} x \cosh ^{2}{\relax (x )}}{2} + \frac {c^{2} \sinh {\relax (x )} \cosh {\relax (x )}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________