Optimal. Leaf size=25 \[ -\frac {x}{2}+\frac {\cosh (a+b x) \sinh (a+b x)}{2 b} \]
[Out]
________________________________________________________________________________________
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 = {2715, 8}
\begin {gather*} \frac {\sinh (a+b x) \cosh (a+b x)}{2 b}-\frac {x}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2715
Rubi steps
\begin {align*} \int \sinh ^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 \begin {gather*} \frac {-2 (a+b x)+\sinh (2 (a+b x))}{4 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.41, size = 27, normalized size = 1.08
method | result | size |
derivativedivides | \(\frac {\frac {\cosh \left (b x +a \right ) \sinh \left (b x +a \right )}{2}-\frac {b x}{2}-\frac {a}{2}}{b}\) | \(27\) |
default | \(\frac {\frac {\cosh \left (b x +a \right ) \sinh \left (b x +a \right )}{2}-\frac {b x}{2}-\frac {a}{2}}{b}\) | \(27\) |
risch | \(-\frac {x}{2}+\frac {{\mathrm e}^{2 b x +2 a}}{8 b}-\frac {{\mathrm e}^{-2 b x -2 a}}{8 b}\) | \(33\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 32, normalized size = 1.28 \begin {gather*} -\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} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.46, size = 23, normalized size = 0.92 \begin {gather*} -\frac {b x - \cosh \left (b x + a\right ) \sinh \left (b x + a\right )}{2 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 46 vs.
\(2 (19) = 38\).
time = 0.07, size = 46, normalized size = 1.84 \begin {gather*} \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 \sinh ^{2}{\left (a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 32, normalized size = 1.28 \begin {gather*} -\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} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.37, size = 18, normalized size = 0.72 \begin {gather*} \frac {\mathrm {sinh}\left (2\,a+2\,b\,x\right )}{4\,b}-\frac {x}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________