Optimal. Leaf size=64 \[ \frac {(a \sin (c+d x)+a)^6}{6 a^5 d}-\frac {4 (a \sin (c+d x)+a)^5}{5 a^4 d}+\frac {(a \sin (c+d x)+a)^4}{a^3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2667, 43} \[ \frac {(a \sin (c+d x)+a)^6}{6 a^5 d}-\frac {4 (a \sin (c+d x)+a)^5}{5 a^4 d}+\frac {(a \sin (c+d x)+a)^4}{a^3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 2667
Rubi steps
\begin {align*} \int \cos ^5(c+d x) (a+a \sin (c+d x)) \, dx &=\frac {\operatorname {Subst}\left (\int (a-x)^2 (a+x)^3 \, dx,x,a \sin (c+d x)\right )}{a^5 d}\\ &=\frac {\operatorname {Subst}\left (\int \left (4 a^2 (a+x)^3-4 a (a+x)^4+(a+x)^5\right ) \, dx,x,a \sin (c+d x)\right )}{a^5 d}\\ &=\frac {(a+a \sin (c+d x))^4}{a^3 d}-\frac {4 (a+a \sin (c+d x))^5}{5 a^4 d}+\frac {(a+a \sin (c+d x))^6}{6 a^5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 60, normalized size = 0.94 \[ \frac {a \sin ^5(c+d x)}{5 d}-\frac {2 a \sin ^3(c+d x)}{3 d}+\frac {a \sin (c+d x)}{d}-\frac {a \cos ^6(c+d x)}{6 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.76, size = 51, normalized size = 0.80 \[ -\frac {5 \, a \cos \left (d x + c\right )^{6} - 2 \, {\left (3 \, a \cos \left (d x + c\right )^{4} + 4 \, a \cos \left (d x + c\right )^{2} + 8 \, a\right )} \sin \left (d x + c\right )}{30 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.75, size = 88, normalized size = 1.38 \[ -\frac {a \cos \left (6 \, d x + 6 \, c\right )}{192 \, d} - \frac {a \cos \left (4 \, d x + 4 \, c\right )}{32 \, d} - \frac {5 \, a \cos \left (2 \, d x + 2 \, c\right )}{64 \, d} + \frac {a \sin \left (5 \, d x + 5 \, c\right )}{80 \, d} + \frac {5 \, a \sin \left (3 \, d x + 3 \, c\right )}{48 \, d} + \frac {5 \, a \sin \left (d x + c\right )}{8 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.14, size = 46, normalized size = 0.72 \[ \frac {-\frac {\left (\cos ^{6}\left (d x +c \right )\right ) a}{6}+\frac {a \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 70, normalized size = 1.09 \[ \frac {5 \, a \sin \left (d x + c\right )^{6} + 6 \, a \sin \left (d x + c\right )^{5} - 15 \, a \sin \left (d x + c\right )^{4} - 20 \, a \sin \left (d x + c\right )^{3} + 15 \, a \sin \left (d x + c\right )^{2} + 30 \, a \sin \left (d x + c\right )}{30 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.05, size = 68, normalized size = 1.06 \[ \frac {\frac {a\,{\sin \left (c+d\,x\right )}^6}{6}+\frac {a\,{\sin \left (c+d\,x\right )}^5}{5}-\frac {a\,{\sin \left (c+d\,x\right )}^4}{2}-\frac {2\,a\,{\sin \left (c+d\,x\right )}^3}{3}+\frac {a\,{\sin \left (c+d\,x\right )}^2}{2}+a\,\sin \left (c+d\,x\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 3.65, size = 83, normalized size = 1.30 \[ \begin {cases} \frac {8 a \sin ^{5}{\left (c + d x \right )}}{15 d} + \frac {4 a \sin ^{3}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{3 d} + \frac {a \sin {\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} - \frac {a \cos ^{6}{\left (c + d x \right )}}{6 d} & \text {for}\: d \neq 0 \\x \left (a \sin {\relax (c )} + a\right ) \cos ^{5}{\relax (c )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________