Optimal. Leaf size=30 \[ \frac{\tanh ^{-1}\left (\frac{\sqrt{a \sin ^2(c+d x)}}{\sqrt{a}}\right )}{\sqrt{a} d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0351015, antiderivative size = 30, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3205, 63, 206} \[ \frac{\tanh ^{-1}\left (\frac{\sqrt{a \sin ^2(c+d x)}}{\sqrt{a}}\right )}{\sqrt{a} d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3205
Rule 63
Rule 206
Rubi steps
\begin{align*} \int \frac{\tan (c+d x)}{\sqrt{a \sin ^2(c+d x)}} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{(1-x) \sqrt{a x}} \, dx,x,\sin ^2(c+d x)\right )}{2 d}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{1-\frac{x^2}{a}} \, dx,x,\sqrt{a \sin ^2(c+d x)}\right )}{a d}\\ &=\frac{\tanh ^{-1}\left (\frac{\sqrt{a \sin ^2(c+d x)}}{\sqrt{a}}\right )}{\sqrt{a} d}\\ \end{align*}
Mathematica [A] time = 0.0385442, size = 31, normalized size = 1.03 \[ \frac{\sin (c+d x) \tanh ^{-1}(\sin (c+d x))}{d \sqrt{a \sin ^2(c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.043, size = 30, normalized size = 1. \begin{align*}{\frac{\sin \left ( dx+c \right ){\it Artanh} \left ( \sin \left ( dx+c \right ) \right ) }{d}{\frac{1}{\sqrt{a \left ( \sin \left ( dx+c \right ) \right ) ^{2}}}}} \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 [A] time = 2.32307, size = 221, normalized size = 7.37 \begin{align*} \left [\frac{\sqrt{-a \cos \left (d x + c\right )^{2} + a} \log \left (-\frac{\sin \left (d x + c\right ) + 1}{\sin \left (d x + c\right ) - 1}\right )}{2 \, a d \sin \left (d x + c\right )}, -\frac{\sqrt{-a} \arctan \left (\frac{\sqrt{-a \cos \left (d x + c\right )^{2} + a} \sqrt{-a}}{a}\right )}{a d}\right ] \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 \frac{\tan{\left (c + d x \right )}}{\sqrt{a \sin ^{2}{\left (c + d x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.23317, size = 82, normalized size = 2.73 \begin{align*} \frac{\frac{\log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1 \right |}\right )}{\mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right )} - \frac{\log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1 \right |}\right )}{\mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right )}}{\sqrt{a} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]