Optimal. Leaf size=60 \[ \frac {\sin (c+d x)}{a d}-\frac {\csc ^2(c+d x)}{2 a d}+\frac {\csc (c+d x)}{a d}-\frac {\log (\sin (c+d x))}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {2836, 12, 75} \[ \frac {\sin (c+d x)}{a d}-\frac {\csc ^2(c+d x)}{2 a d}+\frac {\csc (c+d x)}{a d}-\frac {\log (\sin (c+d x))}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 75
Rule 2836
Rubi steps
\begin {align*} \int \frac {\cos ^2(c+d x) \cot ^3(c+d x)}{a+a \sin (c+d x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {a^3 (a-x)^2 (a+x)}{x^3} \, dx,x,a \sin (c+d x)\right )}{a^5 d}\\ &=\frac {\operatorname {Subst}\left (\int \frac {(a-x)^2 (a+x)}{x^3} \, dx,x,a \sin (c+d x)\right )}{a^2 d}\\ &=\frac {\operatorname {Subst}\left (\int \left (1+\frac {a^3}{x^3}-\frac {a^2}{x^2}-\frac {a}{x}\right ) \, dx,x,a \sin (c+d x)\right )}{a^2 d}\\ &=\frac {\csc (c+d x)}{a d}-\frac {\csc ^2(c+d x)}{2 a d}-\frac {\log (\sin (c+d x))}{a d}+\frac {\sin (c+d x)}{a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 45, normalized size = 0.75 \[ -\frac {-2 \sin (c+d x)+\csc ^2(c+d x)-2 \csc (c+d x)+2 \log (\sin (c+d x))+3}{2 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.66, size = 61, normalized size = 1.02 \[ -\frac {2 \, {\left (\cos \left (d x + c\right )^{2} - 1\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) - 2 \, {\left (\cos \left (d x + c\right )^{2} - 2\right )} \sin \left (d x + c\right ) - 1}{2 \, {\left (a d \cos \left (d x + c\right )^{2} - a d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.19, size = 63, normalized size = 1.05 \[ -\frac {\frac {2 \, \log \left ({\left | \sin \left (d x + c\right ) \right |}\right )}{a} - \frac {2 \, \sin \left (d x + c\right )}{a} - \frac {3 \, \sin \left (d x + c\right )^{2} + 2 \, \sin \left (d x + c\right ) - 1}{a \sin \left (d x + c\right )^{2}}}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.46, size = 61, normalized size = 1.02 \[ \frac {\sin \left (d x +c \right )}{a d}+\frac {1}{d a \sin \left (d x +c \right )}-\frac {\ln \left (\sin \left (d x +c \right )\right )}{a d}-\frac {1}{2 a d \sin \left (d x +c \right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.91, size = 52, normalized size = 0.87 \[ -\frac {\frac {2 \, \log \left (\sin \left (d x + c\right )\right )}{a} - \frac {2 \, \sin \left (d x + c\right )}{a} - \frac {2 \, \sin \left (d x + c\right ) - 1}{a \sin \left (d x + c\right )^{2}}}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 8.93, size = 150, normalized size = 2.50 \[ \frac {10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{2}+2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-\frac {1}{2}}{d\,\left (4\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+4\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\right )}-\frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a\,d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{8\,a\,d}+\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{2\,a\,d}+\frac {\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{a\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________