Optimal. Leaf size=41 \[ -\frac {b e^x \cosh (a+b x)}{1-b^2}+\frac {e^x \sinh (a+b x)}{1-b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {5582}
\begin {gather*} \frac {e^x \sinh (a+b x)}{1-b^2}-\frac {b e^x \cosh (a+b x)}{1-b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 5582
Rubi steps
\begin {align*} \int e^x \sinh (a+b x) \, dx &=-\frac {b e^x \cosh (a+b x)}{1-b^2}+\frac {e^x \sinh (a+b x)}{1-b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 28, normalized size = 0.68 \begin {gather*} \frac {e^x (b \cosh (a+b x)-\sinh (a+b x))}{-1+b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.51, size = 62, normalized size = 1.51
method | result | size |
risch | \(\frac {{\mathrm e}^{b x +a +x}}{2+2 b}+\frac {{\mathrm e}^{-b x -a +x}}{2 b -2}\) | \(33\) |
default | \(-\frac {\sinh \left (\left (b -1\right ) x +a \right )}{2 \left (b -1\right )}+\frac {\sinh \left (\left (1+b \right ) x +a \right )}{2+2 b}+\frac {\cosh \left (\left (b -1\right ) x +a \right )}{2 b -2}+\frac {\cosh \left (\left (1+b \right ) x +a \right )}{2+2 b}\) | \(62\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 42, normalized size = 1.02 \begin {gather*} \frac {b \cosh \left (b x + a\right ) \cosh \left (x\right ) + b \cosh \left (b x + a\right ) \sinh \left (x\right ) - {\left (\cosh \left (x\right ) + \sinh \left (x\right )\right )} \sinh \left (b x + a\right )}{b^{2} - 1} \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. 99 vs.
\(2 (31) = 62\).
time = 0.20, size = 99, normalized size = 2.41 \begin {gather*} \begin {cases} \frac {x e^{x} \sinh {\left (a - x \right )}}{2} + \frac {x e^{x} \cosh {\left (a - x \right )}}{2} + \frac {e^{x} \sinh {\left (a - x \right )}}{2} & \text {for}\: b = -1 \\\frac {x e^{x} \sinh {\left (a + x \right )}}{2} - \frac {x e^{x} \cosh {\left (a + x \right )}}{2} + \frac {e^{x} \cosh {\left (a + x \right )}}{2} & \text {for}\: b = 1 \\\frac {b e^{x} \cosh {\left (a + b x \right )}}{b^{2} - 1} - \frac {e^{x} \sinh {\left (a + b x \right )}}{b^{2} - 1} & \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 = 0.78 \begin {gather*} \frac {e^{\left (b x + a + x\right )}}{2 \, {\left (b + 1\right )}} + \frac {e^{\left (-b x - a + x\right )}}{2 \, {\left (b - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.09, size = 45, normalized size = 1.10 \begin {gather*} \frac {{\mathrm {e}}^{x-a-b\,x}\,\left (b-{\mathrm {e}}^{2\,a+2\,b\,x}+b\,{\mathrm {e}}^{2\,a+2\,b\,x}+1\right )}{2\,\left (b^2-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________