Optimal. Leaf size=80 \[ \frac{c^2 \tan (2 a+2 b x)}{b \sqrt{c \sec (2 a+2 b x)-c}}+\frac{c^{3/2} \tanh ^{-1}\left (\frac{\sqrt{c} \tan (2 a+2 b x)}{\sqrt{c \sec (2 a+2 b x)-c}}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0597835, antiderivative size = 80, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {4397, 3775, 21, 3774, 207} \[ \frac{c^2 \tan (2 a+2 b x)}{b \sqrt{c \sec (2 a+2 b x)-c}}+\frac{c^{3/2} \tanh ^{-1}\left (\frac{\sqrt{c} \tan (2 a+2 b x)}{\sqrt{c \sec (2 a+2 b x)-c}}\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4397
Rule 3775
Rule 21
Rule 3774
Rule 207
Rubi steps
\begin{align*} \int (c \tan (a+b x) \tan (2 (a+b x)))^{3/2} \, dx &=\int (-c+c \sec (2 a+2 b x))^{3/2} \, dx\\ &=\frac{c^2 \tan (2 a+2 b x)}{b \sqrt{-c+c \sec (2 a+2 b x)}}-(2 c) \int \frac{-\frac{c}{2}+\frac{1}{2} c \sec (2 a+2 b x)}{\sqrt{-c+c \sec (2 a+2 b x)}} \, dx\\ &=\frac{c^2 \tan (2 a+2 b x)}{b \sqrt{-c+c \sec (2 a+2 b x)}}-c \int \sqrt{-c+c \sec (2 a+2 b x)} \, dx\\ &=\frac{c^2 \tan (2 a+2 b x)}{b \sqrt{-c+c \sec (2 a+2 b x)}}+\frac{c^2 \operatorname{Subst}\left (\int \frac{1}{-c+x^2} \, dx,x,-\frac{c \tan (2 a+2 b x)}{\sqrt{-c+c \sec (2 a+2 b x)}}\right )}{b}\\ &=\frac{c^{3/2} \tanh ^{-1}\left (\frac{\sqrt{c} \tan (2 a+2 b x)}{\sqrt{-c+c \sec (2 a+2 b x)}}\right )}{b}+\frac{c^2 \tan (2 a+2 b x)}{b \sqrt{-c+c \sec (2 a+2 b x)}}\\ \end{align*}
Mathematica [A] time = 0.157503, size = 86, normalized size = 1.08 \[ \frac{c \sqrt{c \tan (a+b x) \tan (2 (a+b x))} \left (2 \cot (a+b x)+\sqrt{2} \sqrt{\cos (2 (a+b x))} \csc (a+b x) \tanh ^{-1}\left (\frac{\sqrt{2} \cos (a+b x)}{\sqrt{\cos (2 (a+b x))}}\right )\right )}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.514, size = 253, normalized size = 3.2 \begin{align*}{\frac{\sqrt{2} \left ( 2\, \left ( \cos \left ( bx+a \right ) \right ) ^{2}-1 \right ) }{b \left ( \sqrt{2}-2 \right ) \left ( 2+\sqrt{2} \right ) \left ( \sin \left ( bx+a \right ) \right ) ^{3}} \left ( \sqrt{2}\cos \left ( bx+a \right ) \sqrt{{\frac{2\, \left ( \cos \left ( bx+a \right ) \right ) ^{2}-1}{ \left ( \cos \left ( bx+a \right ) +1 \right ) ^{2}}}}{\it Artanh} \left ({\frac{\sqrt{2}\cos \left ( bx+a \right ) \sqrt{4} \left ( -1+\cos \left ( bx+a \right ) \right ) }{2\, \left ( \sin \left ( bx+a \right ) \right ) ^{2}}{\frac{1}{\sqrt{{\frac{2\, \left ( \cos \left ( bx+a \right ) \right ) ^{2}-1}{ \left ( \cos \left ( bx+a \right ) +1 \right ) ^{2}}}}}}} \right ) +\sqrt{2}\sqrt{{\frac{2\, \left ( \cos \left ( bx+a \right ) \right ) ^{2}-1}{ \left ( \cos \left ( bx+a \right ) +1 \right ) ^{2}}}}{\it Artanh} \left ({\frac{\sqrt{2}\cos \left ( bx+a \right ) \sqrt{4} \left ( -1+\cos \left ( bx+a \right ) \right ) }{2\, \left ( \sin \left ( bx+a \right ) \right ) ^{2}}{\frac{1}{\sqrt{{\frac{2\, \left ( \cos \left ( bx+a \right ) \right ) ^{2}-1}{ \left ( \cos \left ( bx+a \right ) +1 \right ) ^{2}}}}}}} \right ) -2\,\cos \left ( bx+a \right ) \right ) \left ({\frac{c \left ( \sin \left ( bx+a \right ) \right ) ^{2}}{2\, \left ( \cos \left ( bx+a \right ) \right ) ^{2}-1}} \right ) ^{{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 2.1117, size = 1778, normalized size = 22.22 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.42018, size = 770, normalized size = 9.62 \begin{align*} \left [\frac{c^{\frac{3}{2}} \log \left (-\frac{c \tan \left (b x + a\right )^{5} - 14 \, c \tan \left (b x + a\right )^{3} + 4 \, \sqrt{2}{\left (\tan \left (b x + a\right )^{4} - 4 \, \tan \left (b x + a\right )^{2} + 3\right )} \sqrt{-\frac{c \tan \left (b x + a\right )^{2}}{\tan \left (b x + a\right )^{2} - 1}} \sqrt{c} + 17 \, c \tan \left (b x + a\right )}{\tan \left (b x + a\right )^{5} + 2 \, \tan \left (b x + a\right )^{3} + \tan \left (b x + a\right )}\right ) \tan \left (b x + a\right ) + 4 \, \sqrt{2} \sqrt{-\frac{c \tan \left (b x + a\right )^{2}}{\tan \left (b x + a\right )^{2} - 1}} c}{4 \, b \tan \left (b x + a\right )}, -\frac{\sqrt{-c} c \arctan \left (\frac{2 \, \sqrt{2} \sqrt{-\frac{c \tan \left (b x + a\right )^{2}}{\tan \left (b x + a\right )^{2} - 1}}{\left (\tan \left (b x + a\right )^{2} - 1\right )} \sqrt{-c}}{c \tan \left (b x + a\right )^{3} - 3 \, c \tan \left (b x + a\right )}\right ) \tan \left (b x + a\right ) - 2 \, \sqrt{2} \sqrt{-\frac{c \tan \left (b x + a\right )^{2}}{\tan \left (b x + a\right )^{2} - 1}} c}{2 \, b \tan \left (b x + a\right )}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]