Integrand size = 10, antiderivative size = 16 \[ \int \frac {1}{\sqrt {a \cosh ^2(x)}} \, dx=\frac {\arctan (\sinh (x)) \cosh (x)}{\sqrt {a \cosh ^2(x)}} \]
[Out]
Time = 0.01 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3286, 3855} \[ \int \frac {1}{\sqrt {a \cosh ^2(x)}} \, dx=\frac {\cosh (x) \arctan (\sinh (x))}{\sqrt {a \cosh ^2(x)}} \]
[In]
[Out]
Rule 3286
Rule 3855
Rubi steps \begin{align*} \text {integral}& = \frac {\cosh (x) \int \text {sech}(x) \, dx}{\sqrt {a \cosh ^2(x)}} \\ & = \frac {\arctan (\sinh (x)) \cosh (x)}{\sqrt {a \cosh ^2(x)}} \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.00 \[ \int \frac {1}{\sqrt {a \cosh ^2(x)}} \, dx=\frac {\arctan (\sinh (x)) \cosh (x)}{\sqrt {a \cosh ^2(x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(54\) vs. \(2(14)=28\).
Time = 0.15 (sec) , antiderivative size = 55, normalized size of antiderivative = 3.44
method | result | size |
default | \(-\frac {\cosh \left (x \right ) \sqrt {a \sinh \left (x \right )^{2}}\, \ln \left (\frac {2 \sqrt {-a}\, \sqrt {a \sinh \left (x \right )^{2}}-2 a}{\cosh \left (x \right )}\right )}{\sqrt {-a}\, \sinh \left (x \right ) \sqrt {a \cosh \left (x \right )^{2}}}\) | \(55\) |
risch | \(\frac {i {\mathrm e}^{-x} \left (1+{\mathrm e}^{2 x}\right ) \ln \left ({\mathrm e}^{x}+i\right )}{\sqrt {a \left (1+{\mathrm e}^{2 x}\right )^{2} {\mathrm e}^{-2 x}}}-\frac {i {\mathrm e}^{-x} \left (1+{\mathrm e}^{2 x}\right ) \ln \left ({\mathrm e}^{x}-i\right )}{\sqrt {a \left (1+{\mathrm e}^{2 x}\right )^{2} {\mathrm e}^{-2 x}}}\) | \(72\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 35 vs. \(2 (14) = 28\).
Time = 0.26 (sec) , antiderivative size = 186, normalized size of antiderivative = 11.62 \[ \int \frac {1}{\sqrt {a \cosh ^2(x)}} \, dx=\left [-\frac {\sqrt {-a} \log \left (\frac {a \cosh \left (x\right )^{2} - 2 \, \sqrt {a e^{\left (4 \, x\right )} + 2 \, a e^{\left (2 \, x\right )} + a} {\left (\cosh \left (x\right ) e^{x} + e^{x} \sinh \left (x\right )\right )} \sqrt {-a} e^{\left (-x\right )} + {\left (a e^{\left (2 \, x\right )} + a\right )} \sinh \left (x\right )^{2} + {\left (a \cosh \left (x\right )^{2} - a\right )} e^{\left (2 \, x\right )} + 2 \, {\left (a \cosh \left (x\right ) e^{\left (2 \, x\right )} + a \cosh \left (x\right )\right )} \sinh \left (x\right ) - a}{{\left (e^{\left (2 \, x\right )} + 1\right )} \sinh \left (x\right )^{2} + \cosh \left (x\right )^{2} + {\left (\cosh \left (x\right )^{2} + 1\right )} e^{\left (2 \, x\right )} + 2 \, {\left (\cosh \left (x\right ) e^{\left (2 \, x\right )} + \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1}\right )}{a}, \frac {2 \, \sqrt {a e^{\left (4 \, x\right )} + 2 \, a e^{\left (2 \, x\right )} + a} \arctan \left (\cosh \left (x\right ) + \sinh \left (x\right )\right )}{a e^{\left (2 \, x\right )} + a}\right ] \]
[In]
[Out]
\[ \int \frac {1}{\sqrt {a \cosh ^2(x)}} \, dx=\int \frac {1}{\sqrt {a \cosh ^{2}{\left (x \right )}}}\, dx \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.50 \[ \int \frac {1}{\sqrt {a \cosh ^2(x)}} \, dx=\frac {2 \, \arctan \left (e^{x}\right )}{\sqrt {a}} \]
[In]
[Out]
Exception generated. \[ \int \frac {1}{\sqrt {a \cosh ^2(x)}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{\sqrt {a \cosh ^2(x)}} \, dx=\int \frac {1}{\sqrt {a\,{\mathrm {cosh}\left (x\right )}^2}} \,d x \]
[In]
[Out]