Optimal. Leaf size=13 \[ e^x+\frac{2}{e^x+1} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.030643, antiderivative size = 13, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {2282, 683} \[ e^x+\frac{2}{e^x+1} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2282
Rule 683
Rubi steps
\begin{align*} \int \frac{e^x (1+\sinh (x))}{1+\cosh (x)} \, dx &=\operatorname{Subst}\left (\int \frac{-1+2 x+x^2}{(1+x)^2} \, dx,x,e^x\right )\\ &=\operatorname{Subst}\left (\int \left (1-\frac{2}{(1+x)^2}\right ) \, dx,x,e^x\right )\\ &=e^x+\frac{2}{1+e^x}\\ \end{align*}
Mathematica [A] time = 0.0258615, size = 18, normalized size = 1.38 \[ \frac{e^x+e^{2 x}+2}{e^x+1} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.012, size = 18, normalized size = 1.4 \begin{align*} -\tanh \left ({\frac{x}{2}} \right ) -2\, \left ( -1+\tanh \left ( x/2 \right ) \right ) ^{-1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.980585, size = 15, normalized size = 1.15 \begin{align*} \frac{2}{e^{x} + 1} + e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.03628, size = 69, normalized size = 5.31 \begin{align*} \frac{3 \, \cosh \left (x\right ) - \sinh \left (x\right ) + 1}{\cosh \left (x\right ) - \sinh \left (x\right ) + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (\sinh{\left (x \right )} + 1\right ) e^{x}}{\cosh{\left (x \right )} + 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12289, size = 15, normalized size = 1.15 \begin{align*} \frac{2}{e^{x} + 1} + e^{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]