Optimal. Leaf size=30 \[ \frac{x}{a}-\frac{\tanh (c+d x)}{d (a-a \text{sech}(c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0154844, antiderivative size = 30, 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 = {3777, 8} \[ \frac{x}{a}-\frac{\tanh (c+d x)}{d (a-a \text{sech}(c+d x))} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3777
Rule 8
Rubi steps
\begin{align*} \int \frac{1}{a-a \text{sech}(c+d x)} \, dx &=-\frac{\tanh (c+d x)}{d (a-a \text{sech}(c+d x))}+\frac{\int a \, dx}{a^2}\\ &=\frac{x}{a}-\frac{\tanh (c+d x)}{d (a-a \text{sech}(c+d x))}\\ \end{align*}
Mathematica [A] time = 0.140193, size = 59, normalized size = 1.97 \[ \frac{\text{csch}\left (\frac{c}{2}\right ) \text{csch}\left (\frac{1}{2} (c+d x)\right ) \left (d x \cosh \left (c+\frac{d x}{2}\right )+2 \sinh \left (\frac{d x}{2}\right )-d x \cosh \left (\frac{d x}{2}\right )\right )}{2 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.032, size = 60, normalized size = 2. \begin{align*}{\frac{1}{da}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) }-{\frac{1}{da} \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{-1}}-{\frac{1}{da}\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.11493, size = 47, normalized size = 1.57 \begin{align*} \frac{d x + c}{a d} + \frac{2}{{\left (a e^{\left (-d x - c\right )} - a\right )} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.42036, size = 131, normalized size = 4.37 \begin{align*} \frac{d x \cosh \left (d x + c\right ) + d x \sinh \left (d x + c\right ) - d x - 2}{a d \cosh \left (d x + c\right ) + a d \sinh \left (d x + c\right ) - a d} \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*} - \frac{\int \frac{1}{\operatorname{sech}{\left (c + d x \right )} - 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16877, size = 42, normalized size = 1.4 \begin{align*} \frac{d x + c}{a d} - \frac{2}{a d{\left (e^{\left (d x + c\right )} - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]