Optimal. Leaf size=13 \[ x-\frac {\coth (a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 13, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3554, 8}
\begin {gather*} x-\frac {\coth (a+b x)}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3554
Rubi steps
\begin {align*} \int \coth ^2(a+b x) \, dx &=-\frac {\coth (a+b x)}{b}+\int 1 \, dx\\ &=x-\frac {\coth (a+b x)}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.01, size = 27, normalized size = 2.08 \begin {gather*} -\frac {\coth (a+b x) \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};\tanh ^2(a+b x)\right )}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(35\) vs.
\(2(13)=26\).
time = 0.25, size = 36, normalized size = 2.77
method | result | size |
risch | \(x -\frac {2}{b \left ({\mathrm e}^{2 b x +2 a}-1\right )}\) | \(21\) |
derivativedivides | \(\frac {-\coth \left (b x +a \right )-\frac {\ln \left (\coth \left (b x +a \right )-1\right )}{2}+\frac {\ln \left (\coth \left (b x +a \right )+1\right )}{2}}{b}\) | \(36\) |
default | \(\frac {-\coth \left (b x +a \right )-\frac {\ln \left (\coth \left (b x +a \right )-1\right )}{2}+\frac {\ln \left (\coth \left (b x +a \right )+1\right )}{2}}{b}\) | \(36\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 25, normalized size = 1.92 \begin {gather*} x + \frac {a}{b} + \frac {2}{b {\left (e^{\left (-2 \, b x - 2 \, a\right )} - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 33 vs.
\(2 (13) = 26\).
time = 0.53, size = 33, normalized size = 2.54 \begin {gather*} \frac {{\left (b x + 1\right )} \sinh \left (b x + a\right ) - \cosh \left (b x + a\right )}{b \sinh \left (b x + a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 87 vs.
\(2 (8) = 16\).
time = 0.63, size = 87, normalized size = 6.69 \begin {gather*} \begin {cases} - \frac {\log {\left (- e^{- b x} \right )} \coth ^{2}{\left (b x + \log {\left (- e^{- b x} \right )} \right )}}{b} & \text {for}\: a = \log {\left (- e^{- b x} \right )} \\- \frac {\log {\left (e^{- b x} \right )} \coth ^{2}{\left (b x + \log {\left (e^{- b x} \right )} \right )}}{b} & \text {for}\: a = \log {\left (e^{- b x} \right )} \\x \coth ^{2}{\left (a \right )} & \text {for}\: b = 0 \\x - \frac {1}{b \tanh {\left (a + b x \right )}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 24, normalized size = 1.85 \begin {gather*} \frac {b x + a - \frac {2}{e^{\left (2 \, b x + 2 \, a\right )} - 1}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.02, size = 13, normalized size = 1.00 \begin {gather*} x-\frac {\mathrm {coth}\left (a+b\,x\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________