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.02, antiderivative size = 30, 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 = {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 8
Rule 3777
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.15, 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]
________________________________________________________________________________________
fricas [A] time = 0.38, size = 50, normalized size = 1.67 \[ \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} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 29, normalized size = 0.97 \[ \frac {\frac {d x + c}{a} - \frac {2}{a {\left (e^{\left (d x + c\right )} - 1\right )}}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.23, size = 60, normalized size = 2.00 \[ -\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{d a}+\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{d a}-\frac {1}{d a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 35, normalized size = 1.17 \[ \frac {d x + c}{a d} + \frac {2}{{\left (a e^{\left (-d x - c\right )} - a\right )} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.26, size = 24, normalized size = 0.80 \[ \frac {x}{a}-\frac {2}{a\,d\,\left ({\mathrm {e}}^{c+d\,x}-1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ - \frac {\int \frac {1}{\operatorname {sech}{\left (c + d x \right )} - 1}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________