Optimal. Leaf size=35 \[ \frac{\tanh ^{-1}\left (\frac{a \tanh (x)}{\sqrt{a^2-b^2}}\right )}{a \sqrt{a^2-b^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0369354, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {3181, 208} \[ \frac{\tanh ^{-1}\left (\frac{a \tanh (x)}{\sqrt{a^2-b^2}}\right )}{a \sqrt{a^2-b^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3181
Rule 208
Rubi steps
\begin{align*} \int \frac{1}{a^2-b^2 \cosh ^2(x)} \, dx &=\operatorname{Subst}\left (\int \frac{1}{a^2-\left (a^2-b^2\right ) x^2} \, dx,x,\coth (x)\right )\\ &=\frac{\tanh ^{-1}\left (\frac{a \tanh (x)}{\sqrt{a^2-b^2}}\right )}{a \sqrt{a^2-b^2}}\\ \end{align*}
Mathematica [A] time = 0.0447526, size = 35, normalized size = 1. \[ \frac{\tanh ^{-1}\left (\frac{a \tanh (x)}{\sqrt{a^2-b^2}}\right )}{a \sqrt{a^2-b^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.024, size = 74, normalized size = 2.1 \begin{align*}{\frac{1}{a}{\it Artanh} \left ({(a+b)\tanh \left ({\frac{x}{2}} \right ){\frac{1}{\sqrt{ \left ( a+b \right ) \left ( a-b \right ) }}}} \right ){\frac{1}{\sqrt{ \left ( a+b \right ) \left ( a-b \right ) }}}}+{\frac{1}{a}{\it Artanh} \left ({(a-b)\tanh \left ({\frac{x}{2}} \right ){\frac{1}{\sqrt{ \left ( a+b \right ) \left ( a-b \right ) }}}} \right ){\frac{1}{\sqrt{ \left ( a+b \right ) \left ( a-b \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.24971, size = 945, normalized size = 27. \begin{align*} \left [\frac{\sqrt{a^{2} - b^{2}} \log \left (\frac{b^{4} \cosh \left (x\right )^{4} + 4 \, b^{4} \cosh \left (x\right ) \sinh \left (x\right )^{3} + b^{4} \sinh \left (x\right )^{4} + 8 \, a^{4} - 8 \, a^{2} b^{2} + b^{4} - 2 \,{\left (2 \, a^{2} b^{2} - b^{4}\right )} \cosh \left (x\right )^{2} + 2 \,{\left (3 \, b^{4} \cosh \left (x\right )^{2} - 2 \, a^{2} b^{2} + b^{4}\right )} \sinh \left (x\right )^{2} + 4 \,{\left (b^{4} \cosh \left (x\right )^{3} -{\left (2 \, a^{2} b^{2} - b^{4}\right )} \cosh \left (x\right )\right )} \sinh \left (x\right ) + 4 \,{\left (a b^{2} \cosh \left (x\right )^{2} + 2 \, a b^{2} \cosh \left (x\right ) \sinh \left (x\right ) + a b^{2} \sinh \left (x\right )^{2} - 2 \, a^{3} + a b^{2}\right )} \sqrt{a^{2} - b^{2}}}{b^{2} \cosh \left (x\right )^{4} + 4 \, b^{2} \cosh \left (x\right ) \sinh \left (x\right )^{3} + b^{2} \sinh \left (x\right )^{4} - 2 \,{\left (2 \, a^{2} - b^{2}\right )} \cosh \left (x\right )^{2} + 2 \,{\left (3 \, b^{2} \cosh \left (x\right )^{2} - 2 \, a^{2} + b^{2}\right )} \sinh \left (x\right )^{2} + b^{2} + 4 \,{\left (b^{2} \cosh \left (x\right )^{3} -{\left (2 \, a^{2} - b^{2}\right )} \cosh \left (x\right )\right )} \sinh \left (x\right )}\right )}{2 \,{\left (a^{3} - a b^{2}\right )}}, \frac{\sqrt{-a^{2} + b^{2}} \arctan \left (-\frac{{\left (b^{2} \cosh \left (x\right )^{2} + 2 \, b^{2} \cosh \left (x\right ) \sinh \left (x\right ) + b^{2} \sinh \left (x\right )^{2} - 2 \, a^{2} + b^{2}\right )} \sqrt{-a^{2} + b^{2}}}{2 \,{\left (a^{3} - a b^{2}\right )}}\right )}{a^{3} - a b^{2}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12546, size = 68, normalized size = 1.94 \begin{align*} -\frac{\arctan \left (\frac{b^{2} e^{\left (2 \, x\right )} - 2 \, a^{2} + b^{2}}{2 \, \sqrt{-a^{2} + b^{2}} a}\right )}{\sqrt{-a^{2} + b^{2}} a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]