Optimal. Leaf size=13 \[ \frac {e^{(-1+m) x}}{-1+m} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 19, normalized size of antiderivative = 1.46, number of steps
used = 3, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {5767, 2259,
2225} \begin {gather*} -\frac {e^{-((1-m) x)}}{1-m} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2225
Rule 2259
Rule 5767
Rubi steps
\begin {align*} \int \frac {e^{m x}}{\cosh (x)+\sinh (x)} \, dx &=\int e^{-x+m x} \, dx\\ &=\int e^{-(1-m) x} \, dx\\ &=-\frac {e^{-(1-m) x}}{1-m}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 18, normalized size = 1.38 \begin {gather*} \frac {e^{m x} (\cosh (x)-\sinh (x))}{-1+m} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(25\) vs.
\(2(12)=24\).
time = 0.09, size = 26, normalized size = 2.00
method | result | size |
risch | \(\frac {{\mathrm e}^{\left (-1+m \right ) x}}{-1+m}\) | \(13\) |
gosper | \(\frac {{\mathrm e}^{m x}}{\left (-1+m \right ) \left (\cosh \left (x \right )+\sinh \left (x \right )\right )}\) | \(18\) |
default | \(\frac {\sinh \left (\left (-1+m \right ) x \right )}{-1+m}+\frac {\cosh \left (\left (-1+m \right ) x \right )}{-1+m}\) | \(26\) |
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 25 vs.
\(2 (12) = 24\).
time = 0.62, size = 25, normalized size = 1.92 \begin {gather*} \frac {\cosh \left (m x\right ) + \sinh \left (m x\right )}{{\left (m - 1\right )} \cosh \left (x\right ) + {\left (m - 1\right )} \sinh \left (x\right )} \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. 32 vs.
\(2 (8) = 16\).
time = 0.21, size = 32, normalized size = 2.46 \begin {gather*} \begin {cases} \frac {e^{m x}}{m \sinh {\left (x \right )} + m \cosh {\left (x \right )} - \sinh {\left (x \right )} - \cosh {\left (x \right )}} & \text {for}\: m \neq 1 \\\frac {x e^{x}}{\sinh {\left (x \right )} + \cosh {\left (x \right )}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.70, size = 16, normalized size = 1.23 \begin {gather*} \frac {e^{\left (m x\right )}}{m e^{x} - e^{x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.11, size = 14, normalized size = 1.08 \begin {gather*} \frac {{\mathrm {e}}^{m\,x-x}}{m-1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________