3.603 \(\int \frac {e^{m x}}{\cosh (x)+\sinh (x)} \, dx\)

Optimal. Leaf size=13 \[ \frac {e^{(m-1) x}}{m-1} \]

________________________________________________________________________________________

Rubi [A]  time = 0.03, 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 = {5648, 2227, 2194} \[ -\frac {e^{-(1-m) x}}{1-m} \]

Antiderivative was successfully verified.

[In]

Int[E^(m*x)/(Cosh[x] + Sinh[x]),x]

[Out]

-(1/(E^((1 - m)*x)*(1 - m)))

Rule 2194

Int[((F_)^((c_.)*((a_.) + (b_.)*(x_))))^(n_.), x_Symbol] :> Simp[(F^(c*(a + b*x)))^n/(b*c*n*Log[F]), x] /; Fre
eQ[{F, a, b, c, n}, x]

Rule 2227

Int[(u_.)*(F_)^((a_.) + (b_.)*(v_)), x_Symbol] :> Int[u*F^(a + b*NormalizePowerOfLinear[v, x]), x] /; FreeQ[{F
, a, b}, x] && PolynomialQ[u, x] && PowerOfLinearQ[v, x] &&  !PowerOfLinearMatchQ[v, x]

Rule 5648

Int[(u_.)*(Cosh[v_]*(a_.) + (b_.)*Sinh[v_])^(n_.), x_Symbol] :> Int[u*(a*E^((a*v)/b))^n, x] /; FreeQ[{a, b, n}
, x] && EqQ[a^2 - b^2, 0]

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.03, size = 18, normalized size = 1.38 \[ \frac {e^{m x} (\cosh (x)-\sinh (x))}{m-1} \]

Antiderivative was successfully verified.

[In]

Integrate[E^(m*x)/(Cosh[x] + Sinh[x]),x]

[Out]

(E^(m*x)*(Cosh[x] - Sinh[x]))/(-1 + m)

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {e^{m x}}{\cosh (x)+\sinh (x)} \, dx \]

Verification is Not applicable to the result.

[In]

IntegrateAlgebraic[E^(m*x)/(Cosh[x] + Sinh[x]),x]

[Out]

Could not integrate

________________________________________________________________________________________

fricas [B]  time = 0.97, size = 25, normalized size = 1.92 \[ \frac {\cosh \left (m x\right ) + \sinh \left (m x\right )}{{\left (m - 1\right )} \cosh \relax (x) + {\left (m - 1\right )} \sinh \relax (x)} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(m*x)/(cosh(x)+sinh(x)),x, algorithm="fricas")

[Out]

(cosh(m*x) + sinh(m*x))/((m - 1)*cosh(x) + (m - 1)*sinh(x))

________________________________________________________________________________________

giac [A]  time = 0.58, size = 16, normalized size = 1.23 \[ \frac {e^{\left (m x\right )}}{m e^{x} - e^{x}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(m*x)/(cosh(x)+sinh(x)),x, algorithm="giac")

[Out]

e^(m*x)/(m*e^x - e^x)

________________________________________________________________________________________

maple [A]  time = 0.14, size = 13, normalized size = 1.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 \relax (x )+\sinh \relax (x )\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]

int(exp(m*x)/(cosh(x)+sinh(x)),x,method=_RETURNVERBOSE)

[Out]

exp((-1+m)*x)/(-1+m)

________________________________________________________________________________________

maxima [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(m*x)/(cosh(x)+sinh(x)),x, algorithm="maxima")

[Out]

Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'a
ssume' command before evaluation *may* help (example of legal syntax is 'assume(-m>0)', see `assume?` for more
 details)Is -m equal to -1?

________________________________________________________________________________________

mupad [B]  time = 0.11, size = 14, normalized size = 1.08 \[ \frac {{\mathrm {e}}^{m\,x-x}}{m-1} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(m*x)/(cosh(x) + sinh(x)),x)

[Out]

exp(m*x - x)/(m - 1)

________________________________________________________________________________________

sympy [A]  time = 0.56, size = 32, normalized size = 2.46 \[ \begin {cases} \frac {e^{m x}}{m \sinh {\relax (x )} + m \cosh {\relax (x )} - \sinh {\relax (x )} - \cosh {\relax (x )}} & \text {for}\: m \neq 1 \\\frac {x e^{x}}{\sinh {\relax (x )} + \cosh {\relax (x )}} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(m*x)/(cosh(x)+sinh(x)),x)

[Out]

Piecewise((exp(m*x)/(m*sinh(x) + m*cosh(x) - sinh(x) - cosh(x)), Ne(m, 1)), (x*exp(x)/(sinh(x) + cosh(x)), Tru
e))

________________________________________________________________________________________