Optimal. Leaf size=13 \[ \frac{\sinh (x)}{a}-\frac{x}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0392258, antiderivative size = 13, normalized size of antiderivative = 1., 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 = {2682, 8} \[ \frac{\sinh (x)}{a}-\frac{x}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2682
Rule 8
Rubi steps
\begin{align*} \int \frac{\sinh ^2(x)}{a+a \cosh (x)} \, dx &=\frac{\sinh (x)}{a}-\frac{\int 1 \, dx}{a}\\ &=-\frac{x}{a}+\frac{\sinh (x)}{a}\\ \end{align*}
Mathematica [A] time = 0.0082304, size = 17, normalized size = 1.31 \[ \frac{2 \left (\frac{\sinh (x)}{2}-\frac{x}{2}\right )}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.017, size = 51, normalized size = 3.9 \begin{align*} -{\frac{1}{a} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{\frac{1}{a}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) }-{\frac{1}{a} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}+{\frac{1}{a}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.10447, size = 31, normalized size = 2.38 \begin{align*} -\frac{x}{a} - \frac{e^{\left (-x\right )}}{2 \, a} + \frac{e^{x}}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.82705, size = 24, normalized size = 1.85 \begin{align*} -\frac{x - \sinh \left (x\right )}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.554878, size = 46, normalized size = 3.54 \begin{align*} - \frac{x \tanh ^{2}{\left (\frac{x}{2} \right )}}{a \tanh ^{2}{\left (\frac{x}{2} \right )} - a} + \frac{x}{a \tanh ^{2}{\left (\frac{x}{2} \right )} - a} - \frac{2 \tanh{\left (\frac{x}{2} \right )}}{a \tanh ^{2}{\left (\frac{x}{2} \right )} - a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18697, size = 23, normalized size = 1.77 \begin{align*} -\frac{2 \, x + e^{\left (-x\right )} - e^{x}}{2 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]