3.602 \(\int \frac {e^x}{\cosh (x)-\sinh (x)} \, dx\)

Optimal. Leaf size=9 \[ \frac {e^{2 x}}{2} \]

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2282, 30} \[ \frac {e^{2 x}}{2} \]

Antiderivative was successfully verified.

[In]

Int[E^x/(Cosh[x] - Sinh[x]),x]

[Out]

E^(2*x)/2

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 2282

Int[u_, x_Symbol] :> With[{v = FunctionOfExponential[u, x]}, Dist[v/D[v, x], Subst[Int[FunctionOfExponentialFu
nction[u, x]/x, x], x, v], x]] /; FunctionOfExponentialQ[u, x] &&  !MatchQ[u, (w_)*((a_.)*(v_)^(n_))^(m_) /; F
reeQ[{a, m, n}, x] && IntegerQ[m*n]] &&  !MatchQ[u, E^((c_.)*((a_.) + (b_.)*x))*(F_)[v_] /; FreeQ[{a, b, c}, x
] && InverseFunctionQ[F[x]]]

Rubi steps

\begin {align*} \int \frac {e^x}{\cosh (x)-\sinh (x)} \, dx &=\operatorname {Subst}\left (\int x \, dx,x,e^x\right )\\ &=\frac {e^{2 x}}{2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 9, normalized size = 1.00 \[ \frac {e^{2 x}}{2} \]

Antiderivative was successfully verified.

[In]

Integrate[E^x/(Cosh[x] - Sinh[x]),x]

[Out]

E^(2*x)/2

________________________________________________________________________________________

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

Verification is Not applicable to the result.

[In]

IntegrateAlgebraic[E^x/(Cosh[x] - Sinh[x]),x]

[Out]

Could not integrate

________________________________________________________________________________________

fricas [B]  time = 0.93, size = 16, normalized size = 1.78 \[ \frac {\cosh \relax (x) + \sinh \relax (x)}{2 \, {\left (\cosh \relax (x) - \sinh \relax (x)\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)/(cosh(x)-sinh(x)),x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.59, size = 6, normalized size = 0.67 \[ \frac {1}{2} \, e^{\left (2 \, x\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)/(cosh(x)-sinh(x)),x, algorithm="giac")

[Out]

1/2*e^(2*x)

________________________________________________________________________________________

maple [A]  time = 0.10, size = 7, normalized size = 0.78




method result size



risch \(\frac {{\mathrm e}^{2 x}}{2}\) \(7\)
gosper \(\frac {{\mathrm e}^{x}}{2 \cosh \relax (x )-2 \sinh \relax (x )}\) \(14\)
default \(\frac {2}{\left (\tanh \left (\frac {x}{2}\right )-1\right )^{2}}+\frac {2}{\tanh \left (\frac {x}{2}\right )-1}\) \(22\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(x)/(cosh(x)-sinh(x)),x,method=_RETURNVERBOSE)

[Out]

1/2*exp(2*x)

________________________________________________________________________________________

maxima [A]  time = 0.44, size = 6, normalized size = 0.67 \[ \frac {1}{2} \, e^{\left (2 \, x\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)/(cosh(x)-sinh(x)),x, algorithm="maxima")

[Out]

1/2*e^(2*x)

________________________________________________________________________________________

mupad [B]  time = 0.32, size = 6, normalized size = 0.67 \[ \frac {{\mathrm {e}}^{2\,x}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(exp(x)/(cosh(x) - sinh(x)),x)

[Out]

exp(2*x)/2

________________________________________________________________________________________

sympy [B]  time = 0.49, size = 12, normalized size = 1.33 \[ \frac {e^{x}}{- 2 \sinh {\relax (x )} + 2 \cosh {\relax (x )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(exp(x)/(cosh(x)-sinh(x)),x)

[Out]

exp(x)/(-2*sinh(x) + 2*cosh(x))

________________________________________________________________________________________