Optimal. Leaf size=31 \[ -\frac{3 \log (2 \cosh (c+d x)-3 \sinh (c+d x))}{10 d}-\frac{x}{5} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0422853, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {3484, 3530} \[ -\frac{3 \log (2 \cosh (c+d x)-3 \sinh (c+d x))}{10 d}-\frac{x}{5} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3484
Rule 3530
Rubi steps
\begin{align*} \int \frac{1}{4-6 \tanh (c+d x)} \, dx &=-\frac{x}{5}-\frac{3}{10} i \int \frac{6 i-4 i \tanh (c+d x)}{4-6 \tanh (c+d x)} \, dx\\ &=-\frac{x}{5}-\frac{3 \log (2 \cosh (c+d x)-3 \sinh (c+d x))}{10 d}\\ \end{align*}
Mathematica [A] time = 0.0316149, size = 53, normalized size = 1.71 \[ -\frac{3 \log (2-3 \tanh (c+d x))}{10 d}+\frac{\log (1-\tanh (c+d x))}{4 d}+\frac{\log (\tanh (c+d x)+1)}{20 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.017, size = 46, normalized size = 1.5 \begin{align*} -{\frac{3\,\ln \left ( -2+3\,\tanh \left ( dx+c \right ) \right ) }{10\,d}}+{\frac{\ln \left ( \tanh \left ( dx+c \right ) +1 \right ) }{20\,d}}+{\frac{\ln \left ( \tanh \left ( dx+c \right ) -1 \right ) }{4\,d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.11217, size = 39, normalized size = 1.26 \begin{align*} -\frac{1}{2} \, x - \frac{c}{2 \, d} - \frac{3 \, \log \left (5 \, e^{\left (-2 \, d x - 2 \, c\right )} - 1\right )}{10 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.26511, size = 127, normalized size = 4.1 \begin{align*} \frac{d x - 3 \, \log \left (-\frac{2 \,{\left (2 \, \cosh \left (d x + c\right ) - 3 \, \sinh \left (d x + c\right )\right )}}{\cosh \left (d x + c\right ) - \sinh \left (d x + c\right )}\right )}{10 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.571761, size = 42, normalized size = 1.35 \begin{align*} \begin{cases} - \frac{x}{2} - \frac{3 \log{\left (\tanh{\left (c + d x \right )} - \frac{2}{3} \right )}}{10 d} + \frac{3 \log{\left (\tanh{\left (c + d x \right )} + 1 \right )}}{10 d} & \text{for}\: d \neq 0 \\\frac{x}{4 - 6 \tanh{\left (c \right )}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18794, size = 39, normalized size = 1.26 \begin{align*} \frac{d x + c}{10 \, d} - \frac{3 \, \log \left ({\left | e^{\left (2 \, d x + 2 \, c\right )} - 5 \right |}\right )}{10 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]