Integrand size = 13, antiderivative size = 37 \[ \int \sqrt {a+b \cosh (x)} \tanh (x) \, dx=-2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a+b \cosh (x)}}{\sqrt {a}}\right )+2 \sqrt {a+b \cosh (x)} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {2800, 52, 65, 213} \[ \int \sqrt {a+b \cosh (x)} \tanh (x) \, dx=2 \sqrt {a+b \cosh (x)}-2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a+b \cosh (x)}}{\sqrt {a}}\right ) \]
[In]
[Out]
Rule 52
Rule 65
Rule 213
Rule 2800
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {\sqrt {a+x}}{x} \, dx,x,b \cosh (x)\right ) \\ & = 2 \sqrt {a+b \cosh (x)}+a \text {Subst}\left (\int \frac {1}{x \sqrt {a+x}} \, dx,x,b \cosh (x)\right ) \\ & = 2 \sqrt {a+b \cosh (x)}+(2 a) \text {Subst}\left (\int \frac {1}{-a+x^2} \, dx,x,\sqrt {a+b \cosh (x)}\right ) \\ & = -2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a+b \cosh (x)}}{\sqrt {a}}\right )+2 \sqrt {a+b \cosh (x)} \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.00 \[ \int \sqrt {a+b \cosh (x)} \tanh (x) \, dx=-2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a+b \cosh (x)}}{\sqrt {a}}\right )+2 \sqrt {a+b \cosh (x)} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(124\) vs. \(2(29)=58\).
Time = 0.26 (sec) , antiderivative size = 125, normalized size of antiderivative = 3.38
method | result | size |
default | \(2 \sqrt {2 \sinh \left (\frac {x}{2}\right )^{2} b +a +b}-\sqrt {a}\, \ln \left (\frac {4 \cosh \left (\frac {x}{2}\right ) b \sqrt {2}+4 \sqrt {a}\, \sqrt {2 \sinh \left (\frac {x}{2}\right )^{2} b +a +b}+4 a -4 b}{2 \cosh \left (\frac {x}{2}\right )-\sqrt {2}}\right )-\sqrt {a}\, \ln \left (-\frac {4 \left (\cosh \left (\frac {x}{2}\right ) b \sqrt {2}-\sqrt {a}\, \sqrt {2 \sinh \left (\frac {x}{2}\right )^{2} b +a +b}-a +b \right )}{2 \cosh \left (\frac {x}{2}\right )+\sqrt {2}}\right )\) | \(125\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 104 vs. \(2 (29) = 58\).
Time = 0.43 (sec) , antiderivative size = 376, normalized size of antiderivative = 10.16 \[ \int \sqrt {a+b \cosh (x)} \tanh (x) \, dx=\left [\frac {1}{2} \, \sqrt {a} \log \left (-\frac {b^{2} \cosh \left (x\right )^{4} + b^{2} \sinh \left (x\right )^{4} + 16 \, a b \cosh \left (x\right )^{3} + 4 \, {\left (b^{2} \cosh \left (x\right ) + 4 \, a b\right )} \sinh \left (x\right )^{3} + 16 \, a b \cosh \left (x\right ) + 2 \, {\left (16 \, a^{2} + b^{2}\right )} \cosh \left (x\right )^{2} + 2 \, {\left (3 \, b^{2} \cosh \left (x\right )^{2} + 24 \, a b \cosh \left (x\right ) + 16 \, a^{2} + b^{2}\right )} \sinh \left (x\right )^{2} - 8 \, {\left (b \cosh \left (x\right )^{3} + b \sinh \left (x\right )^{3} + 4 \, a \cosh \left (x\right )^{2} + {\left (3 \, b \cosh \left (x\right ) + 4 \, a\right )} \sinh \left (x\right )^{2} + b \cosh \left (x\right ) + {\left (3 \, b \cosh \left (x\right )^{2} + 8 \, a \cosh \left (x\right ) + b\right )} \sinh \left (x\right )\right )} \sqrt {b \cosh \left (x\right ) + a} \sqrt {a} + b^{2} + 4 \, {\left (b^{2} \cosh \left (x\right )^{3} + 12 \, a b \cosh \left (x\right )^{2} + 4 \, a b + {\left (16 \, a^{2} + b^{2}\right )} \cosh \left (x\right )\right )} \sinh \left (x\right )}{\cosh \left (x\right )^{4} + 4 \, \cosh \left (x\right ) \sinh \left (x\right )^{3} + \sinh \left (x\right )^{4} + 2 \, {\left (3 \, \cosh \left (x\right )^{2} + 1\right )} \sinh \left (x\right )^{2} + 2 \, \cosh \left (x\right )^{2} + 4 \, {\left (\cosh \left (x\right )^{3} + \cosh \left (x\right )\right )} \sinh \left (x\right ) + 1}\right ) + 2 \, \sqrt {b \cosh \left (x\right ) + a}, \sqrt {-a} \arctan \left (\frac {{\left (b \cosh \left (x\right )^{2} + b \sinh \left (x\right )^{2} + 4 \, a \cosh \left (x\right ) + 2 \, {\left (b \cosh \left (x\right ) + 2 \, a\right )} \sinh \left (x\right ) + b\right )} \sqrt {b \cosh \left (x\right ) + a} \sqrt {-a}}{2 \, {\left (a b \cosh \left (x\right )^{2} + a b \sinh \left (x\right )^{2} + 2 \, a^{2} \cosh \left (x\right ) + a b + 2 \, {\left (a b \cosh \left (x\right ) + a^{2}\right )} \sinh \left (x\right )\right )}}\right ) + 2 \, \sqrt {b \cosh \left (x\right ) + a}\right ] \]
[In]
[Out]
\[ \int \sqrt {a+b \cosh (x)} \tanh (x) \, dx=\int \sqrt {a + b \cosh {\left (x \right )}} \tanh {\left (x \right )}\, dx \]
[In]
[Out]
\[ \int \sqrt {a+b \cosh (x)} \tanh (x) \, dx=\int { \sqrt {b \cosh \left (x\right ) + a} \tanh \left (x\right ) \,d x } \]
[In]
[Out]
\[ \int \sqrt {a+b \cosh (x)} \tanh (x) \, dx=\int { \sqrt {b \cosh \left (x\right ) + a} \tanh \left (x\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int \sqrt {a+b \cosh (x)} \tanh (x) \, dx=\int \mathrm {tanh}\left (x\right )\,\sqrt {a+b\,\mathrm {cosh}\left (x\right )} \,d x \]
[In]
[Out]