Optimal. Leaf size=11 \[ \frac {\tan ^{-1}(\tanh (a+b x))}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.051, Rules used = {4380, 203} \[ \frac {\tan ^{-1}(\tanh (a+b x))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 4380
Rubi steps
\begin {align*} \int \frac {\cosh ^2(a+b x)-\sinh ^2(a+b x)}{\cosh ^2(a+b x)+\sinh ^2(a+b x)} \, dx &=\int \frac {1}{\cosh ^2(a+b x)+\sinh ^2(a+b x)} \, dx\\ &=\frac {\operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\tanh (a+b x)\right )}{b}\\ &=\frac {\tan ^{-1}(\tanh (a+b x))}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 17, normalized size = 1.55 \[ \frac {\tan ^{-1}(\sinh (2 a+2 b x))}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.40, size = 38, normalized size = 3.45 \[ -\frac {\arctan \left (-\frac {\cosh \left (b x + a\right ) + \sinh \left (b x + a\right )}{\cosh \left (b x + a\right ) - \sinh \left (b x + a\right )}\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.16, size = 44, normalized size = 4.00 \[ -\frac {\arctan \left (\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} + 2 \, e^{\left (b x + a\right )}\right )}\right ) - \arctan \left (-\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} - 2 \, e^{\left (b x + a\right )}\right )}\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.63, size = 148, normalized size = 13.45 \[ \frac {2 \sqrt {2}\, \arctan \left (\frac {2 \tanh \left (\frac {b x}{2}+\frac {a}{2}\right )}{-2+2 \sqrt {2}}\right )}{b \left (-2+2 \sqrt {2}\right )}-\frac {2 \arctan \left (\frac {2 \tanh \left (\frac {b x}{2}+\frac {a}{2}\right )}{-2+2 \sqrt {2}}\right )}{b \left (-2+2 \sqrt {2}\right )}-\frac {2 \sqrt {2}\, \arctan \left (\frac {2 \tanh \left (\frac {b x}{2}+\frac {a}{2}\right )}{2+2 \sqrt {2}}\right )}{b \left (2+2 \sqrt {2}\right )}-\frac {2 \arctan \left (\frac {2 \tanh \left (\frac {b x}{2}+\frac {a}{2}\right )}{2+2 \sqrt {2}}\right )}{b \left (2+2 \sqrt {2}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.45, size = 49, normalized size = 4.45 \[ \frac {\arctan \left (\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} + 2 \, e^{\left (-b x - a\right )}\right )}\right ) - \arctan \left (-\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} - 2 \, e^{\left (-b x - a\right )}\right )}\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.09, size = 25, normalized size = 2.27 \[ \frac {\mathrm {atan}\left (\frac {{\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}\,\sqrt {b^2}}{b}\right )}{\sqrt {b^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 2.24, size = 56, normalized size = 5.09 \[ \begin {cases} \frac {x \left (- \sinh ^{2}{\relax (a )} + \cosh ^{2}{\relax (a )}\right )}{\sinh ^{2}{\relax (a )} + \cosh ^{2}{\relax (a )}} & \text {for}\: b = 0 \\- x & \text {for}\: a = \log {\left (- i e^{- b x} \right )} \vee a = \log {\left (i e^{- b x} \right )} \\\frac {\operatorname {atan}{\left (\frac {\sinh {\left (a + b x \right )}}{\cosh {\left (a + b x \right )}} \right )}}{b} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________