Optimal. Leaf size=34 \[ -\frac{\cot (a+c) \log (\sin (c-b x))}{b}+\frac{\cot (a+c) \log (\sin (a+b x))}{b}+x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.034246, antiderivative size = 34, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214, Rules used = {4613, 4611, 3475} \[ -\frac{\cot (a+c) \log (\sin (c-b x))}{b}+\frac{\cot (a+c) \log (\sin (a+b x))}{b}+x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4613
Rule 4611
Rule 3475
Rubi steps
\begin{align*} \int \cot (c-b x) \cot (a+b x) \, dx &=x+\cos (a+c) \int \csc (c-b x) \csc (a+b x) \, dx\\ &=x+\cot (a+c) \int \cot (c-b x) \, dx+\cot (a+c) \int \cot (a+b x) \, dx\\ &=x-\frac{\cot (a+c) \log (\sin (c-b x))}{b}+\frac{\cot (a+c) \log (\sin (a+b x))}{b}\\ \end{align*}
Mathematica [A] time = 0.488814, size = 30, normalized size = 0.88 \[ \frac{\cot (a+c) (\log (-\sin (a+b x))-\log (\sin (c-b x)))}{b}+x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.08, size = 149, normalized size = 4.4 \begin{align*} x+{\frac{i\ln \left ({{\rm e}^{2\,i \left ( bx+a \right ) }}-1 \right ){{\rm e}^{2\,i \left ( a+c \right ) }}}{b \left ({{\rm e}^{2\,i \left ( a+c \right ) }}-1 \right ) }}+{\frac{i\ln \left ({{\rm e}^{2\,i \left ( bx+a \right ) }}-1 \right ) }{b \left ({{\rm e}^{2\,i \left ( a+c \right ) }}-1 \right ) }}-{\frac{i\ln \left ( -{{\rm e}^{2\,i \left ( a+c \right ) }}+{{\rm e}^{2\,i \left ( bx+a \right ) }} \right ){{\rm e}^{2\,i \left ( a+c \right ) }}}{b \left ({{\rm e}^{2\,i \left ( a+c \right ) }}-1 \right ) }}-{\frac{i\ln \left ( -{{\rm e}^{2\,i \left ( a+c \right ) }}+{{\rm e}^{2\,i \left ( bx+a \right ) }} \right ) }{b \left ({{\rm e}^{2\,i \left ( a+c \right ) }}-1 \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.1565, size = 583, normalized size = 17.15 \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.53066, size = 304, normalized size = 8.94 \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 \, a\right ) \cos \left (2 \, a + 2 \, c\right ) + \sin \left (2 \, b x + 2 \, a\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 \, a\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.20349, size = 466, normalized size = 13.71 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]