Optimal. Leaf size=47 \[ -\frac {\csc ^2(c+d x)}{2 a^2 d}+\frac {2 \csc (c+d x)}{a^2 d}+\frac {\log (\sin (c+d x))}{a^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 47, 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, 43} \[ -\frac {\csc ^2(c+d x)}{2 a^2 d}+\frac {2 \csc (c+d x)}{a^2 d}+\frac {\log (\sin (c+d x))}{a^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 43
Rule 2836
Rubi steps
\begin {align*} \int \frac {\cos ^2(c+d x) \cot ^3(c+d x)}{(a+a \sin (c+d x))^2} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {a^3 (a-x)^2}{x^3} \, dx,x,a \sin (c+d x)\right )}{a^5 d}\\ &=\frac {\operatorname {Subst}\left (\int \frac {(a-x)^2}{x^3} \, dx,x,a \sin (c+d x)\right )}{a^2 d}\\ &=\frac {\operatorname {Subst}\left (\int \left (\frac {a^2}{x^3}-\frac {2 a}{x^2}+\frac {1}{x}\right ) \, dx,x,a \sin (c+d x)\right )}{a^2 d}\\ &=\frac {2 \csc (c+d x)}{a^2 d}-\frac {\csc ^2(c+d x)}{2 a^2 d}+\frac {\log (\sin (c+d x))}{a^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 38, normalized size = 0.81 \[ \frac {-\csc ^2(c+d x)+4 \csc (c+d x)+2 \log (\sin (c+d x))}{2 a^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.69, size = 55, normalized size = 1.17 \[ \frac {2 \, {\left (\cos \left (d x + c\right )^{2} - 1\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) - 4 \, \sin \left (d x + c\right ) + 1}{2 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} - a^{2} d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.22, size = 52, normalized size = 1.11 \[ \frac {\frac {2 \, \log \left ({\left | \sin \left (d x + c\right ) \right |}\right )}{a^{2}} - \frac {3 \, \sin \left (d x + c\right )^{2} - 4 \, \sin \left (d x + c\right ) + 1}{a^{2} \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.53, size = 48, normalized size = 1.02 \[ \frac {2}{a^{2} d \sin \left (d x +c \right )}+\frac {\ln \left (\sin \left (d x +c \right )\right )}{a^{2} d}-\frac {1}{2 d \,a^{2} \sin \left (d x +c \right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.85, size = 40, normalized size = 0.85 \[ \frac {\frac {2 \, \log \left (\sin \left (d x + c\right )\right )}{a^{2}} + \frac {4 \, \sin \left (d x + c\right ) - 1}{a^{2} \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.89, size = 104, normalized size = 2.21 \[ \frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a^2\,d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{8\,a^2\,d}+\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{a^2\,d}-\frac {\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}{a^2\,d}+\frac {{\mathrm {cot}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-\frac {1}{8}\right )}{a^2\,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]
________________________________________________________________________________________