Optimal. Leaf size=38 \[ \frac{2 \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a} \tanh (c+d x)}{\sqrt{a-a \text{sech}(c+d x)}}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0232803, antiderivative size = 38, 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 = {3774, 203} \[ \frac{2 \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a} \tanh (c+d x)}{\sqrt{a-a \text{sech}(c+d x)}}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3774
Rule 203
Rubi steps
\begin{align*} \int \sqrt{a-a \text{sech}(c+d x)} \, dx &=-\frac{(2 i a) \operatorname{Subst}\left (\int \frac{1}{a+x^2} \, dx,x,\frac{i a \tanh (c+d x)}{\sqrt{a-a \text{sech}(c+d x)}}\right )}{d}\\ &=\frac{2 \sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a} \tanh (c+d x)}{\sqrt{a-a \text{sech}(c+d x)}}\right )}{d}\\ \end{align*}
Mathematica [A] time = 2.26553, size = 70, normalized size = 1.84 \[ \frac{\sqrt{e^{2 (c+d x)}+1} \sqrt{a-a \text{sech}(c+d x)} \left (\sinh ^{-1}\left (e^{c+d x}\right )+\tanh ^{-1}\left (\sqrt{e^{2 (c+d x)}+1}\right )\right )}{d \left (e^{c+d x}-1\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.227, size = 0, normalized size = 0. \begin{align*} \int \sqrt{a-a{\rm sech} \left (dx+c\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{-a \operatorname{sech}\left (d x + c\right ) + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.5674, size = 1808, normalized size = 47.58 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{- a \operatorname{sech}{\left (c + d x \right )} + a}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.18494, size = 136, normalized size = 3.58 \begin{align*} -\frac{\frac{2 \, a \arctan \left (-\frac{\sqrt{a} e^{\left (d x + c\right )} - \sqrt{a e^{\left (2 \, d x + 2 \, c\right )} + a}}{\sqrt{-a}}\right ) \mathrm{sgn}\left (e^{\left (d x + c\right )} - 1\right )}{\sqrt{-a}} + \sqrt{a} \log \left ({\left | -\sqrt{a} e^{\left (d x + c\right )} + \sqrt{a e^{\left (2 \, d x + 2 \, c\right )} + a} \right |}\right ) \mathrm{sgn}\left (e^{\left (d x + c\right )} - 1\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]