Optimal. Leaf size=12 \[ -\frac {\log (a+b \csc (x))}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 20, normalized size of antiderivative = 1.67, number of steps used = 4, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {4338, 36, 29, 31} \[ \frac {\log (\sin (x))}{b}-\frac {\log (a \sin (x)+b)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 4338
Rubi steps
\begin {align*} \int \frac {\cot (x) \csc (x)}{a+b \csc (x)} \, dx &=\operatorname {Subst}\left (\int \frac {1}{x (b+a x)} \, dx,x,\sin (x)\right )\\ &=\frac {\operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,\sin (x)\right )}{b}-\frac {a \operatorname {Subst}\left (\int \frac {1}{b+a x} \, dx,x,\sin (x)\right )}{b}\\ &=\frac {\log (\sin (x))}{b}-\frac {\log (b+a \sin (x))}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 20, normalized size = 1.67 \[ \frac {\log (\sin (x))}{b}-\frac {\log (a \sin (x)+b)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.69, size = 20, normalized size = 1.67 \[ -\frac {\log \left (a \sin \relax (x) + b\right ) - \log \left (-\frac {1}{2} \, \sin \relax (x)\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 22, normalized size = 1.83 \[ -\frac {\log \left ({\left | a \sin \relax (x) + b \right |}\right )}{b} + \frac {\log \left ({\left | \sin \relax (x) \right |}\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 13, normalized size = 1.08 \[ -\frac {\ln \left (a +b \csc \relax (x )\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 12, normalized size = 1.00 \[ -\frac {\log \left (b \csc \relax (x) + a\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.18, size = 31, normalized size = 2.58 \[ -\frac {\ln \left (b\,{\mathrm {tan}\left (\frac {x}{2}\right )}^2+2\,a\,\mathrm {tan}\left (\frac {x}{2}\right )+b\right )-\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.39, size = 17, normalized size = 1.42 \[ \begin {cases} - \frac {\log {\left (\frac {a}{b} + \csc {\relax (x )} \right )}}{b} & \text {for}\: b \neq 0 \\- \frac {\csc {\relax (x )}}{a} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________