Optimal. Leaf size=55 \[ \frac {\sin ^5(c+d x)}{5 a^2 d}-\frac {\sin ^4(c+d x)}{2 a^2 d}+\frac {\sin ^3(c+d x)}{3 a^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 55, 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 {\sin ^5(c+d x)}{5 a^2 d}-\frac {\sin ^4(c+d x)}{2 a^2 d}+\frac {\sin ^3(c+d x)}{3 a^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 43
Rule 2836
Rubi steps
\begin {align*} \int \frac {\cos ^5(c+d x) \sin ^2(c+d x)}{(a+a \sin (c+d x))^2} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {(a-x)^2 x^2}{a^2} \, dx,x,a \sin (c+d x)\right )}{a^5 d}\\ &=\frac {\operatorname {Subst}\left (\int (a-x)^2 x^2 \, dx,x,a \sin (c+d x)\right )}{a^7 d}\\ &=\frac {\operatorname {Subst}\left (\int \left (a^2 x^2-2 a x^3+x^4\right ) \, dx,x,a \sin (c+d x)\right )}{a^7 d}\\ &=\frac {\sin ^3(c+d x)}{3 a^2 d}-\frac {\sin ^4(c+d x)}{2 a^2 d}+\frac {\sin ^5(c+d x)}{5 a^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.66, size = 38, normalized size = 0.69 \[ -\frac {\sin ^3(c+d x) (15 \sin (c+d x)+3 \cos (2 (c+d x))-13)}{30 a^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.61, size = 59, normalized size = 1.07 \[ -\frac {15 \, \cos \left (d x + c\right )^{4} - 30 \, \cos \left (d x + c\right )^{2} - 2 \, {\left (3 \, \cos \left (d x + c\right )^{4} - 11 \, \cos \left (d x + c\right )^{2} + 8\right )} \sin \left (d x + c\right )}{30 \, a^{2} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 39, normalized size = 0.71 \[ \frac {6 \, \sin \left (d x + c\right )^{5} - 15 \, \sin \left (d x + c\right )^{4} + 10 \, \sin \left (d x + c\right )^{3}}{30 \, a^{2} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.36, size = 39, normalized size = 0.71 \[ \frac {\frac {\left (\sin ^{5}\left (d x +c \right )\right )}{5}-\frac {\left (\sin ^{4}\left (d x +c \right )\right )}{2}+\frac {\left (\sin ^{3}\left (d x +c \right )\right )}{3}}{d \,a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.57, size = 39, normalized size = 0.71 \[ \frac {6 \, \sin \left (d x + c\right )^{5} - 15 \, \sin \left (d x + c\right )^{4} + 10 \, \sin \left (d x + c\right )^{3}}{30 \, a^{2} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 36, normalized size = 0.65 \[ \frac {{\sin \left (c+d\,x\right )}^3\,\left (6\,{\sin \left (c+d\,x\right )}^2-15\,\sin \left (c+d\,x\right )+10\right )}{30\,a^2\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 82.06, size = 588, normalized size = 10.69 \[ \begin {cases} \frac {40 \tan ^{7}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{15 a^{2} d \tan ^{10}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 75 a^{2} d \tan ^{8}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 150 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 150 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 75 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 15 a^{2} d} - \frac {120 \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{15 a^{2} d \tan ^{10}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 75 a^{2} d \tan ^{8}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 150 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 150 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 75 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 15 a^{2} d} + \frac {176 \tan ^{5}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{15 a^{2} d \tan ^{10}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 75 a^{2} d \tan ^{8}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 150 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 150 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 75 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 15 a^{2} d} - \frac {120 \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{15 a^{2} d \tan ^{10}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 75 a^{2} d \tan ^{8}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 150 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 150 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 75 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 15 a^{2} d} + \frac {40 \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{15 a^{2} d \tan ^{10}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 75 a^{2} d \tan ^{8}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 150 a^{2} d \tan ^{6}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 150 a^{2} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 75 a^{2} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 15 a^{2} d} & \text {for}\: d \neq 0 \\\frac {x \sin ^{2}{\relax (c )} \cos ^{5}{\relax (c )}}{\left (a \sin {\relax (c )} + a\right )^{2}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________