Optimal. Leaf size=53 \[ \frac {2 \sinh (x)}{\sqrt {a-a \cosh (x)}}-\frac {\sqrt {2} \tan ^{-1}\left (\frac {\sqrt {a} \sinh (x)}{\sqrt {2} \sqrt {a-a \cosh (x)}}\right )}{\sqrt {a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {2751, 2649, 206} \[ \frac {2 \sinh (x)}{\sqrt {a-a \cosh (x)}}-\frac {\sqrt {2} \tan ^{-1}\left (\frac {\sqrt {a} \sinh (x)}{\sqrt {2} \sqrt {a-a \cosh (x)}}\right )}{\sqrt {a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 2649
Rule 2751
Rubi steps
\begin {align*} \int \frac {\cosh (x)}{\sqrt {a-a \cosh (x)}} \, dx &=\frac {2 \sinh (x)}{\sqrt {a-a \cosh (x)}}+\int \frac {1}{\sqrt {a-a \cosh (x)}} \, dx\\ &=\frac {2 \sinh (x)}{\sqrt {a-a \cosh (x)}}+2 i \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\frac {i a \sinh (x)}{\sqrt {a-a \cosh (x)}}\right )\\ &=-\frac {\sqrt {2} \tan ^{-1}\left (\frac {\sqrt {a} \sinh (x)}{\sqrt {2} \sqrt {a-a \cosh (x)}}\right )}{\sqrt {a}}+\frac {2 \sinh (x)}{\sqrt {a-a \cosh (x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 35, normalized size = 0.66 \[ \frac {2 \sinh \left (\frac {x}{2}\right ) \left (2 \cosh \left (\frac {x}{2}\right )+\log \left (\tanh \left (\frac {x}{4}\right )\right )\right )}{\sqrt {a-a \cosh (x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.55, size = 92, normalized size = 1.74 \[ \frac {\sqrt {2} a \sqrt {-\frac {1}{a}} \log \left (\frac {2 \, \sqrt {2} \sqrt {\frac {1}{2}} \sqrt {-\frac {a}{\cosh \relax (x) + \sinh \relax (x)}} \sqrt {-\frac {1}{a}} {\left (\cosh \relax (x) + \sinh \relax (x)\right )} - \cosh \relax (x) - \sinh \relax (x) - 1}{\cosh \relax (x) + \sinh \relax (x) - 1}\right ) - 2 \, \sqrt {\frac {1}{2}} \sqrt {-\frac {a}{\cosh \relax (x) + \sinh \relax (x)}} {\left (\cosh \relax (x) + \sinh \relax (x) + 1\right )}}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [C] time = 0.16, size = 90, normalized size = 1.70 \[ -\sqrt {2} {\left (\frac {2 \, {\left (i \, \arctan \left (-i\right ) - 1\right )} \mathrm {sgn}\left (-e^{x} + 1\right )}{\sqrt {-a}} + \frac {2 \, \arctan \left (\frac {\sqrt {-a e^{x}}}{\sqrt {a}}\right )}{\sqrt {a} \mathrm {sgn}\left (-e^{x} + 1\right )} + \frac {1}{\sqrt {-a e^{x}} \mathrm {sgn}\left (-e^{x} + 1\right )} - \frac {\sqrt {-a e^{x}}}{a \mathrm {sgn}\left (-e^{x} + 1\right )}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.34, size = 40, normalized size = 0.75 \[ \frac {\sinh \left (\frac {x}{2}\right ) \left (4 \cosh \left (\frac {x}{2}\right )+\ln \left (-1+\cosh \left (\frac {x}{2}\right )\right )-\ln \left (\cosh \left (\frac {x}{2}\right )+1\right )\right )}{\sqrt {-2 a \left (\sinh ^{2}\left (\frac {x}{2}\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cosh \relax (x)}{\sqrt {-a \cosh \relax (x) + a}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {\mathrm {cosh}\relax (x)}{\sqrt {a-a\,\mathrm {cosh}\relax (x)}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cosh {\relax (x )}}{\sqrt {- a \left (\cosh {\relax (x )} - 1\right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________