Optimal. Leaf size=53 \[ -\frac{\sin (3 x)}{6 (1-\cos (3 x))^{3/2}}-\frac{\tanh ^{-1}\left (\frac{\sin (3 x)}{\sqrt{2} \sqrt{1-\cos (3 x)}}\right )}{6 \sqrt{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0282741, antiderivative size = 53, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {2650, 2649, 206} \[ -\frac{\sin (3 x)}{6 (1-\cos (3 x))^{3/2}}-\frac{\tanh ^{-1}\left (\frac{\sin (3 x)}{\sqrt{2} \sqrt{1-\cos (3 x)}}\right )}{6 \sqrt{2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2650
Rule 2649
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{(1-\cos (3 x))^{3/2}} \, dx &=-\frac{\sin (3 x)}{6 (1-\cos (3 x))^{3/2}}+\frac{1}{4} \int \frac{1}{\sqrt{1-\cos (3 x)}} \, dx\\ &=-\frac{\sin (3 x)}{6 (1-\cos (3 x))^{3/2}}-\frac{1}{6} \operatorname{Subst}\left (\int \frac{1}{2-x^2} \, dx,x,\frac{\sin (3 x)}{\sqrt{1-\cos (3 x)}}\right )\\ &=-\frac{\tanh ^{-1}\left (\frac{\sin (3 x)}{\sqrt{2} \sqrt{1-\cos (3 x)}}\right )}{6 \sqrt{2}}-\frac{\sin (3 x)}{6 (1-\cos (3 x))^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.118476, size = 61, normalized size = 1.15 \[ -\frac{\sin ^3\left (\frac{3 x}{2}\right ) \left (\csc ^2\left (\frac{3 x}{4}\right )-\sec ^2\left (\frac{3 x}{4}\right )-4 \log \left (\sin \left (\frac{3 x}{4}\right )\right )+4 \log \left (\cos \left (\frac{3 x}{4}\right )\right )\right )}{12 (1-\cos (3 x))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.047, size = 52, normalized size = 1. \begin{align*} -{\frac{\sqrt{2}}{6} \left ({\frac{1}{2}\cos \left ({\frac{3\,x}{2}} \right ) }+{\frac{1}{4} \left ( \ln \left ( \cos \left ({\frac{3\,x}{2}} \right ) +1 \right ) -\ln \left ( \cos \left ({\frac{3\,x}{2}} \right ) -1 \right ) \right ) \left ( \sin \left ({\frac{3\,x}{2}} \right ) \right ) ^{2}} \right ) \left ( \sin \left ({\frac{3\,x}{2}} \right ) \right ) ^{-1}{\frac{1}{\sqrt{ \left ( \sin \left ({\frac{3\,x}{2}} \right ) \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.67138, size = 585, normalized size = 11.04 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.9398, size = 300, normalized size = 5.66 \begin{align*} \frac{{\left (\sqrt{2} \cos \left (3 \, x\right ) - \sqrt{2}\right )} \log \left (-\frac{{\left (\cos \left (3 \, x\right ) + 3\right )} \sin \left (3 \, x\right ) - 2 \,{\left (\sqrt{2} \cos \left (3 \, x\right ) + \sqrt{2}\right )} \sqrt{-\cos \left (3 \, x\right ) + 1}}{{\left (\cos \left (3 \, x\right ) - 1\right )} \sin \left (3 \, x\right )}\right ) \sin \left (3 \, x\right ) + 4 \,{\left (\cos \left (3 \, x\right ) + 1\right )} \sqrt{-\cos \left (3 \, x\right ) + 1}}{24 \,{\left (\cos \left (3 \, x\right ) - 1\right )} \sin \left (3 \, x\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{1}{\left (1 - \cos{\left (3 x \right )}\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20578, size = 80, normalized size = 1.51 \begin{align*} -\frac{\sqrt{2}{\left (\frac{2 \, \sqrt{\tan \left (\frac{3}{2} \, x\right )^{2} + 1}}{\tan \left (\frac{3}{2} \, x\right )^{2}} + \log \left (\sqrt{\tan \left (\frac{3}{2} \, x\right )^{2} + 1} + 1\right ) - \log \left (\sqrt{\tan \left (\frac{3}{2} \, x\right )^{2} + 1} - 1\right )\right )}}{24 \, \mathrm{sgn}\left (\tan \left (\frac{3}{2} \, x\right )\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]