Optimal. Leaf size=39 \[ -\frac{\cot (a-c) \log (\sin (a+b x))}{b}+\frac{\cot (a-c) \log (\sin (b x+c))}{b}-x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0321744, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {4613, 4611, 3475} \[ -\frac{\cot (a-c) \log (\sin (a+b x))}{b}+\frac{\cot (a-c) \log (\sin (b x+c))}{b}-x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4613
Rule 4611
Rule 3475
Rubi steps
\begin{align*} \int \cot (a+b x) \cot (c+b x) \, dx &=-x+\cos (a-c) \int \csc (a+b x) \csc (c+b x) \, dx\\ &=-x-\cot (a-c) \int \cot (a+b x) \, dx+\cot (a-c) \int \cot (c+b x) \, dx\\ &=-x-\frac{\cot (a-c) \log (\sin (a+b x))}{b}+\frac{\cot (a-c) \log (\sin (c+b x))}{b}\\ \end{align*}
Mathematica [A] time = 0.508159, size = 31, normalized size = 0.79 \[ \frac{\cot (a-c) (\log (\sin (b x+c))-\log (\sin (a+b x)))}{b}-x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.076, size = 177, normalized size = 4.5 \begin{align*} -x+{\frac{i\ln \left ({{\rm e}^{2\,i \left ( bx+a \right ) }}-{{\rm e}^{2\,i \left ( a-c \right ) }} \right ){{\rm e}^{2\,ia}}}{b \left ({{\rm e}^{2\,ia}}-{{\rm e}^{2\,ic}} \right ) }}+{\frac{i\ln \left ({{\rm e}^{2\,i \left ( bx+a \right ) }}-{{\rm e}^{2\,i \left ( a-c \right ) }} \right ){{\rm e}^{2\,ic}}}{b \left ({{\rm e}^{2\,ia}}-{{\rm e}^{2\,ic}} \right ) }}-{\frac{i\ln \left ({{\rm e}^{2\,i \left ( bx+a \right ) }}-1 \right ){{\rm e}^{2\,ia}}}{b \left ({{\rm e}^{2\,ia}}-{{\rm e}^{2\,ic}} \right ) }}-{\frac{i\ln \left ({{\rm e}^{2\,i \left ( bx+a \right ) }}-1 \right ){{\rm e}^{2\,ic}}}{b \left ({{\rm e}^{2\,ia}}-{{\rm e}^{2\,ic}} \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.16627, size = 741, normalized size = 19. \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 = 2.52468, size = 315, normalized size = 8.08 \begin{align*} -\frac{2 \, b x \sin \left (-2 \, a + 2 \, c\right ) -{\left (\cos \left (-2 \, a + 2 \, c\right ) + 1\right )} \log \left (-\frac{\cos \left (2 \, b x + 2 \, c\right ) \cos \left (-2 \, a + 2 \, c\right ) + \sin \left (2 \, b x + 2 \, c\right ) \sin \left (-2 \, a + 2 \, c\right ) - 1}{\cos \left (-2 \, a + 2 \, c\right ) + 1}\right ) +{\left (\cos \left (-2 \, a + 2 \, c\right ) + 1\right )} \log \left (-\frac{1}{2} \, \cos \left (2 \, b x + 2 \, c\right ) + \frac{1}{2}\right )}{2 \, b \sin \left (-2 \, a + 2 \, c\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 [B] time = 1.2426, size = 470, normalized size = 12.05 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]