Optimal. Leaf size=38 \[ \frac {x}{16}+\frac {1}{8} \sin (2 x)+\frac {3}{32} \sin (4 x)+\frac {1}{24} \sin (6 x)+\frac {1}{128} \sin (8 x) \]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {4354, 2637} \[ \frac {x}{16}+\frac {1}{8} \sin (2 x)+\frac {3}{32} \sin (4 x)+\frac {1}{24} \sin (6 x)+\frac {1}{128} \sin (8 x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2637
Rule 4354
Rubi steps
\begin {align*} \int \cos ^4(x) \cos (4 x) \, dx &=\int \left (\frac {1}{16}+\frac {1}{4} \cos (2 x)+\frac {3}{8} \cos (4 x)+\frac {1}{4} \cos (6 x)+\frac {1}{16} \cos (8 x)\right ) \, dx\\ &=\frac {x}{16}+\frac {1}{16} \int \cos (8 x) \, dx+\frac {1}{4} \int \cos (2 x) \, dx+\frac {1}{4} \int \cos (6 x) \, dx+\frac {3}{8} \int \cos (4 x) \, dx\\ &=\frac {x}{16}+\frac {1}{8} \sin (2 x)+\frac {3}{32} \sin (4 x)+\frac {1}{24} \sin (6 x)+\frac {1}{128} \sin (8 x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 38, normalized size = 1.00 \[ \frac {x}{16}+\frac {1}{8} \sin (2 x)+\frac {3}{32} \sin (4 x)+\frac {1}{24} \sin (6 x)+\frac {1}{128} \sin (8 x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \cos ^4(x) \cos (4 x) \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.85, size = 31, normalized size = 0.82 \[ \frac {1}{48} \, {\left (48 \, \cos \relax (x)^{7} - 8 \, \cos \relax (x)^{5} + 2 \, \cos \relax (x)^{3} + 3 \, \cos \relax (x)\right )} \sin \relax (x) + \frac {1}{16} \, x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.63, size = 28, normalized size = 0.74 \[ \frac {1}{16} \, x + \frac {1}{128} \, \sin \left (8 \, x\right ) + \frac {1}{24} \, \sin \left (6 \, x\right ) + \frac {3}{32} \, \sin \left (4 \, x\right ) + \frac {1}{8} \, \sin \left (2 \, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.15, size = 29, normalized size = 0.76
method | result | size |
default | \(\frac {x}{16}+\frac {\sin \left (2 x \right )}{8}+\frac {3 \sin \left (4 x \right )}{32}+\frac {\sin \left (6 x \right )}{24}+\frac {\sin \left (8 x \right )}{128}\) | \(29\) |
risch | \(\frac {x}{16}+\frac {\sin \left (2 x \right )}{8}+\frac {3 \sin \left (4 x \right )}{32}+\frac {\sin \left (6 x \right )}{24}+\frac {\sin \left (8 x \right )}{128}\) | \(29\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.46, size = 30, normalized size = 0.79 \[ -\frac {1}{6} \, \sin \left (2 \, x\right )^{3} + \frac {1}{16} \, x + \frac {1}{128} \, \sin \left (8 \, x\right ) + \frac {3}{32} \, \sin \left (4 \, x\right ) + \frac {1}{4} \, \sin \left (2 \, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.30, size = 36, normalized size = 0.95 \[ \frac {x}{16}+\frac {\frac {{\mathrm {tan}\relax (x)}^7}{16}+\frac {11\,{\mathrm {tan}\relax (x)}^5}{48}+\frac {5\,{\mathrm {tan}\relax (x)}^3}{48}+\frac {15\,\mathrm {tan}\relax (x)}{16}}{{\left ({\mathrm {tan}\relax (x)}^2+1\right )}^4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 24.53, size = 139, normalized size = 3.66 \[ \frac {x \sin ^{4}{\relax (x )} \cos {\left (4 x \right )}}{16} - \frac {x \sin ^{3}{\relax (x )} \sin {\left (4 x \right )} \cos {\relax (x )}}{4} - \frac {3 x \sin ^{2}{\relax (x )} \cos ^{2}{\relax (x )} \cos {\left (4 x \right )}}{8} + \frac {x \sin {\relax (x )} \sin {\left (4 x \right )} \cos ^{3}{\relax (x )}}{4} + \frac {x \cos ^{4}{\relax (x )} \cos {\left (4 x \right )}}{16} - \frac {\sin ^{4}{\relax (x )} \sin {\left (4 x \right )}}{24} - \frac {5 \sin ^{3}{\relax (x )} \cos {\relax (x )} \cos {\left (4 x \right )}}{48} - \frac {11 \sin {\relax (x )} \cos ^{3}{\relax (x )} \cos {\left (4 x \right )}}{48} + \frac {7 \sin {\left (4 x \right )} \cos ^{4}{\relax (x )}}{24} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________