3.775 \(\int x^2 \cos (4 x^3) \cos (5 x^3) \, dx\)

Optimal. Leaf size=19 \[ \frac {\sin \left (x^3\right )}{6}+\frac {1}{54} \sin \left (9 x^3\right ) \]

[Out]

1/6*sin(x^3)+1/54*sin(9*x^3)

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {4572, 3380, 2637} \[ \frac {\sin \left (x^3\right )}{6}+\frac {1}{54} \sin \left (9 x^3\right ) \]

Antiderivative was successfully verified.

[In]

Int[x^2*Cos[4*x^3]*Cos[5*x^3],x]

[Out]

Sin[x^3]/6 + Sin[9*x^3]/54

Rule 2637

Int[sin[Pi/2 + (c_.) + (d_.)*(x_)], x_Symbol] :> Simp[Sin[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rule 3380

Int[((a_.) + Cos[(c_.) + (d_.)*(x_)^(n_)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplif
y[(m + 1)/n] - 1)*(a + b*Cos[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IntegerQ[Simpl
ify[(m + 1)/n]] && (EqQ[p, 1] || EqQ[m, n - 1] || (IntegerQ[p] && GtQ[Simplify[(m + 1)/n], 0]))

Rule 4572

Int[Cos[v_]^(p_.)*Cos[w_]^(q_.)*(x_)^(m_.), x_Symbol] :> Int[ExpandTrigReduce[x^m, Cos[v]^p*Cos[w]^q, x], x] /
; IGtQ[m, 0] && IGtQ[p, 0] && IGtQ[q, 0] && ((PolynomialQ[v, x] && PolynomialQ[w, x]) || (BinomialQ[{v, w}, x]
 && IndependentQ[Cancel[v/w], x]))

Rubi steps

\begin {align*} \int x^2 \cos \left (4 x^3\right ) \cos \left (5 x^3\right ) \, dx &=\int \left (\frac {1}{2} x^2 \cos \left (x^3\right )+\frac {1}{2} x^2 \cos \left (9 x^3\right )\right ) \, dx\\ &=\frac {1}{2} \int x^2 \cos \left (x^3\right ) \, dx+\frac {1}{2} \int x^2 \cos \left (9 x^3\right ) \, dx\\ &=\frac {1}{6} \operatorname {Subst}\left (\int \cos (x) \, dx,x,x^3\right )+\frac {1}{6} \operatorname {Subst}\left (\int \cos (9 x) \, dx,x,x^3\right )\\ &=\frac {\sin \left (x^3\right )}{6}+\frac {1}{54} \sin \left (9 x^3\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 19, normalized size = 1.00 \[ \frac {\sin \left (x^3\right )}{6}+\frac {1}{54} \sin \left (9 x^3\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[x^2*Cos[4*x^3]*Cos[5*x^3],x]

[Out]

Sin[x^3]/6 + Sin[9*x^3]/54

________________________________________________________________________________________

fricas [B]  time = 0.50, size = 40, normalized size = 2.11 \[ \frac {1}{27} \, {\left (128 \, \cos \left (x^{3}\right )^{8} - 224 \, \cos \left (x^{3}\right )^{6} + 120 \, \cos \left (x^{3}\right )^{4} - 20 \, \cos \left (x^{3}\right )^{2} + 5\right )} \sin \left (x^{3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*cos(4*x^3)*cos(5*x^3),x, algorithm="fricas")

[Out]

1/27*(128*cos(x^3)^8 - 224*cos(x^3)^6 + 120*cos(x^3)^4 - 20*cos(x^3)^2 + 5)*sin(x^3)

________________________________________________________________________________________

giac [B]  time = 0.14, size = 39, normalized size = 2.05 \[ \frac {128}{27} \, \sin \left (x^{3}\right )^{9} - \frac {32}{3} \, \sin \left (x^{3}\right )^{7} + 8 \, \sin \left (x^{3}\right )^{5} - \frac {20}{9} \, \sin \left (x^{3}\right )^{3} + \frac {1}{3} \, \sin \left (x^{3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*cos(4*x^3)*cos(5*x^3),x, algorithm="giac")

[Out]

128/27*sin(x^3)^9 - 32/3*sin(x^3)^7 + 8*sin(x^3)^5 - 20/9*sin(x^3)^3 + 1/3*sin(x^3)

________________________________________________________________________________________

maple [A]  time = 0.23, size = 16, normalized size = 0.84 \[ \frac {\sin \left (x^{3}\right )}{6}+\frac {\sin \left (9 x^{3}\right )}{54} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*cos(4*x^3)*cos(5*x^3),x)

[Out]

1/6*sin(x^3)+1/54*sin(9*x^3)

________________________________________________________________________________________

maxima [A]  time = 0.33, size = 15, normalized size = 0.79 \[ \frac {1}{54} \, \sin \left (9 \, x^{3}\right ) + \frac {1}{6} \, \sin \left (x^{3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*cos(4*x^3)*cos(5*x^3),x, algorithm="maxima")

[Out]

1/54*sin(9*x^3) + 1/6*sin(x^3)

________________________________________________________________________________________

mupad [B]  time = 3.03, size = 15, normalized size = 0.79 \[ \frac {\sin \left (x^3\right )}{6}+\frac {\sin \left (9\,x^3\right )}{54} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*cos(4*x^3)*cos(5*x^3),x)

[Out]

sin(x^3)/6 + sin(9*x^3)/54

________________________________________________________________________________________

sympy [B]  time = 5.25, size = 32, normalized size = 1.68 \[ - \frac {4 \sin {\left (4 x^{3} \right )} \cos {\left (5 x^{3} \right )}}{27} + \frac {5 \sin {\left (5 x^{3} \right )} \cos {\left (4 x^{3} \right )}}{27} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*cos(4*x**3)*cos(5*x**3),x)

[Out]

-4*sin(4*x**3)*cos(5*x**3)/27 + 5*sin(5*x**3)*cos(4*x**3)/27

________________________________________________________________________________________