Optimal. Leaf size=52 \[ \frac {1}{2} \left (2 a^2-b^2\right ) x+\frac {2 a b \cosh (c+d x)}{d}+\frac {b^2 \cosh (c+d x) \sinh (c+d x)}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 52, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {2723}
\begin {gather*} \frac {1}{2} x \left (2 a^2-b^2\right )+\frac {2 a b \cosh (c+d x)}{d}+\frac {b^2 \sinh (c+d x) \cosh (c+d x)}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2723
Rubi steps
\begin {align*} \int (a+b \sinh (c+d x))^2 \, dx &=\frac {1}{2} \left (2 a^2-b^2\right ) x+\frac {2 a b \cosh (c+d x)}{d}+\frac {b^2 \cosh (c+d x) \sinh (c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 48, normalized size = 0.92 \begin {gather*} \frac {2 \left (2 a^2-b^2\right ) (c+d x)+8 a b \cosh (c+d x)+b^2 \sinh (2 (c+d x))}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.63, size = 51, normalized size = 0.98
method | result | size |
derivativedivides | \(\frac {b^{2} \left (\frac {\cosh \left (d x +c \right ) \sinh \left (d x +c \right )}{2}-\frac {d x}{2}-\frac {c}{2}\right )+2 a b \cosh \left (d x +c \right )+a^{2} \left (d x +c \right )}{d}\) | \(51\) |
default | \(\frac {b^{2} \left (\frac {\cosh \left (d x +c \right ) \sinh \left (d x +c \right )}{2}-\frac {d x}{2}-\frac {c}{2}\right )+2 a b \cosh \left (d x +c \right )+a^{2} \left (d x +c \right )}{d}\) | \(51\) |
risch | \(a^{2} x -\frac {x \,b^{2}}{2}+\frac {b^{2} {\mathrm e}^{2 d x +2 c}}{8 d}+\frac {a b \,{\mathrm e}^{d x +c}}{d}+\frac {a b \,{\mathrm e}^{-d x -c}}{d}-\frac {b^{2} {\mathrm e}^{-2 d x -2 c}}{8 d}\) | \(74\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 55, normalized size = 1.06 \begin {gather*} -\frac {1}{8} \, b^{2} {\left (4 \, x - \frac {e^{\left (2 \, d x + 2 \, c\right )}}{d} + \frac {e^{\left (-2 \, d x - 2 \, c\right )}}{d}\right )} + a^{2} x + \frac {2 \, a b \cosh \left (d x + c\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.42, size = 46, normalized size = 0.88 \begin {gather*} \frac {b^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + {\left (2 \, a^{2} - b^{2}\right )} d x + 4 \, a b \cosh \left (d x + c\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.09, size = 78, normalized size = 1.50 \begin {gather*} \begin {cases} a^{2} x + \frac {2 a b \cosh {\left (c + d x \right )}}{d} + \frac {b^{2} x \sinh ^{2}{\left (c + d x \right )}}{2} - \frac {b^{2} x \cosh ^{2}{\left (c + d x \right )}}{2} + \frac {b^{2} \sinh {\left (c + d x \right )} \cosh {\left (c + d x \right )}}{2 d} & \text {for}\: d \neq 0 \\x \left (a + b \sinh {\left (c \right )}\right )^{2} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 76, normalized size = 1.46 \begin {gather*} \frac {1}{2} \, {\left (2 \, a^{2} - b^{2}\right )} x + \frac {b^{2} e^{\left (2 \, d x + 2 \, c\right )}}{8 \, d} + \frac {a b e^{\left (d x + c\right )}}{d} + \frac {a b e^{\left (-d x - c\right )}}{d} - \frac {b^{2} e^{\left (-2 \, d x - 2 \, c\right )}}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.49, size = 41, normalized size = 0.79 \begin {gather*} a^2\,x-\frac {b^2\,x}{2}+\frac {\frac {\mathrm {sinh}\left (2\,c+2\,d\,x\right )\,b^2}{4}+2\,a\,\mathrm {cosh}\left (c+d\,x\right )\,b}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________