Optimal. Leaf size=11 \[ \frac {\log (a+b \tanh (x))}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 11, 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 = {3587, 31}
\begin {gather*} \frac {\log (a+b \tanh (x))}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 3587
Rubi steps
\begin {align*} \int \frac {\text {sech}^2(x)}{a+b \tanh (x)} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{a+x} \, dx,x,b \tanh (x)\right )}{b}\\ &=\frac {\log (a+b \tanh (x))}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 20, normalized size = 1.82 \begin {gather*} \frac {-\log (\cosh (x))+\log (a \cosh (x)+b \sinh (x))}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.65, size = 12, normalized size = 1.09
method | result | size |
derivativedivides | \(\frac {\ln \left (a +b \tanh \left (x \right )\right )}{b}\) | \(12\) |
default | \(\frac {\ln \left (a +b \tanh \left (x \right )\right )}{b}\) | \(12\) |
risch | \(-\frac {\ln \left (1+{\mathrm e}^{2 x}\right )}{b}+\frac {\ln \left ({\mathrm e}^{2 x}+\frac {a -b}{a +b}\right )}{b}\) | \(35\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 11, normalized size = 1.00 \begin {gather*} \frac {\log \left (b \tanh \left (x\right ) + a\right )}{b} \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. 42 vs.
\(2 (11) = 22\).
time = 0.34, size = 42, normalized size = 3.82 \begin {gather*} \frac {\log \left (\frac {2 \, {\left (a \cosh \left (x\right ) + b \sinh \left (x\right )\right )}}{\cosh \left (x\right ) - \sinh \left (x\right )}\right ) - \log \left (\frac {2 \, \cosh \left (x\right )}{\cosh \left (x\right ) - \sinh \left (x\right )}\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {sech}^{2}{\left (x \right )}}{a + b \tanh {\left (x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 45 vs.
\(2 (11) = 22\).
time = 0.42, size = 45, normalized size = 4.09 \begin {gather*} \frac {{\left (a + b\right )} \log \left ({\left | a e^{\left (2 \, x\right )} + b e^{\left (2 \, x\right )} + a - b \right |}\right )}{a b + b^{2}} - \frac {\log \left (e^{\left (2 \, x\right )} + 1\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.77, size = 50, normalized size = 4.55 \begin {gather*} -\frac {2\,\mathrm {atan}\left (\frac {a\,\sqrt {-b^2}+a\,{\mathrm {e}}^{2\,x}\,\sqrt {-b^2}+b\,{\mathrm {e}}^{2\,x}\,\sqrt {-b^2}}{b^2}\right )}{\sqrt {-b^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________