Optimal. Leaf size=12 \[ \frac{\log (a-b \cos (x))}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0226925, antiderivative size = 12, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {2668, 31} \[ \frac{\log (a-b \cos (x))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2668
Rule 31
Rubi steps
\begin{align*} \int \frac{\sin (x)}{a-b \cos (x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{a+x} \, dx,x,-b \cos (x)\right )}{b}\\ &=\frac{\log (a-b \cos (x))}{b}\\ \end{align*}
Mathematica [A] time = 0.0185615, size = 12, normalized size = 1. \[ \frac{\log (a-b \cos (x))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 13, normalized size = 1.1 \begin{align*}{\frac{\ln \left ( a-b\cos \left ( x \right ) \right ) }{b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.931421, size = 18, normalized size = 1.5 \begin{align*} \frac{\log \left (b \cos \left (x\right ) - a\right )}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.16931, size = 30, normalized size = 2.5 \begin{align*} \frac{\log \left (-b \cos \left (x\right ) + a\right )}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.366212, size = 15, normalized size = 1.25 \begin{align*} \begin{cases} \frac{\log{\left (- \frac{a}{b} + \cos{\left (x \right )} \right )}}{b} & \text{for}\: b \neq 0 \\- \frac{\cos{\left (x \right )}}{a} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.04691, size = 19, normalized size = 1.58 \begin{align*} \frac{\log \left ({\left | b \cos \left (x\right ) - a \right |}\right )}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]