3.7.4 \(\int \frac {e^x}{\cosh (x)+\sinh (x)} \, dx\) [604]

Optimal. Leaf size=1 \[ x \]

[Out]

x

________________________________________________________________________________________

Rubi [A]
time = 0.01, antiderivative size = 1, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {2320, 29} \begin {gather*} x \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

x

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

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 \frac {1}{x} \, dx,x,e^x\right )\\ &=x\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 1, normalized size = 1.00 \begin {gather*} x \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

x

________________________________________________________________________________________

Maple [A]
time = 0.05, size = 2, normalized size = 2.00

method result size
default \(x\) \(2\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x

________________________________________________________________________________________

Maxima [A]
time = 1.26, size = 1, normalized size = 1.00 \begin {gather*} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x

________________________________________________________________________________________

Fricas [A]
time = 0.58, size = 1, normalized size = 1.00 \begin {gather*} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 10 vs. \(2 (0) = 0\).
time = 0.16, size = 10, normalized size = 10.00 \begin {gather*} \frac {x e^{x}}{\sinh {\left (x \right )} + \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]

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

________________________________________________________________________________________

Giac [A]
time = 0.68, size = 1, normalized size = 1.00 \begin {gather*} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x

________________________________________________________________________________________

Mupad [B]
time = 0.29, size = 1, normalized size = 1.00 \begin {gather*} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

x

________________________________________________________________________________________