3.7.2 \(\int \frac {e^x}{\cosh (x)-\sinh (x)} \, dx\) [602]

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

[Out]

1/2*exp(2*x)

________________________________________________________________________________________

Rubi [A]
time = 0.01, 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 = {2320, 30} \begin {gather*} \frac {e^{2 x}}{2} \end {gather*}

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 2320

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 &=\text {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 \begin {gather*} \frac {e^{2 x}}{2} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

E^(2*x)/2

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(21\) vs. \(2(6)=12\).
time = 0.06, size = 22, normalized size = 2.44

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2/(-1+tanh(1/2*x))^2+2/(-1+tanh(1/2*x))

________________________________________________________________________________________

Maxima [A]
time = 0.70, size = 6, normalized size = 0.67 \begin {gather*} \frac {1}{2} \, e^{\left (2 \, x\right )} \end {gather*}

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)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 16 vs. \(2 (6) = 12\).
time = 0.79, size = 16, normalized size = 1.78 \begin {gather*} \frac {\cosh \left (x\right ) + \sinh \left (x\right )}{2 \, {\left (\cosh \left (x\right ) - \sinh \left (x\right )\right )}} \end {gather*}

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))

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 12 vs. \(2 (5) = 10\).
time = 0.20, size = 12, normalized size = 1.33 \begin {gather*} \frac {e^{x}}{- 2 \sinh {\left (x \right )} + 2 \cosh {\left (x \right )}} \end {gather*}

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))

________________________________________________________________________________________

Giac [A]
time = 0.62, size = 6, normalized size = 0.67 \begin {gather*} \frac {1}{2} \, e^{\left (2 \, x\right )} \end {gather*}

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)

________________________________________________________________________________________

Mupad [B]
time = 0.32, size = 6, normalized size = 0.67 \begin {gather*} \frac {{\mathrm {e}}^{2\,x}}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

exp(2*x)/2

________________________________________________________________________________________