3.783 \(\int (1+x^2 \cos (x^3)) \, dx\)

Optimal. Leaf size=10 \[ \frac {\sin \left (x^3\right )}{3}+x \]

[Out]

x+1/3*sin(x^3)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3380, 2637} \[ \frac {\sin \left (x^3\right )}{3}+x \]

Antiderivative was successfully verified.

[In]

Int[1 + x^2*Cos[x^3],x]

[Out]

x + Sin[x^3]/3

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]))

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 10, normalized size = 1.00 \[ \frac {\sin \left (x^3\right )}{3}+x \]

Antiderivative was successfully verified.

[In]

Integrate[1 + x^2*Cos[x^3],x]

[Out]

x + Sin[x^3]/3

________________________________________________________________________________________

fricas [A]  time = 0.62, size = 8, normalized size = 0.80 \[ x + \frac {1}{3} \, \sin \left (x^{3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1+x^2*cos(x^3),x, algorithm="fricas")

[Out]

x + 1/3*sin(x^3)

________________________________________________________________________________________

giac [A]  time = 0.14, size = 8, normalized size = 0.80 \[ x + \frac {1}{3} \, \sin \left (x^{3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1+x^2*cos(x^3),x, algorithm="giac")

[Out]

x + 1/3*sin(x^3)

________________________________________________________________________________________

maple [A]  time = 0.00, size = 9, normalized size = 0.90 \[ x +\frac {\sin \left (x^{3}\right )}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1+x^2*cos(x^3),x)

[Out]

x+1/3*sin(x^3)

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 8, normalized size = 0.80 \[ x + \frac {1}{3} \, \sin \left (x^{3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1+x^2*cos(x^3),x, algorithm="maxima")

[Out]

x + 1/3*sin(x^3)

________________________________________________________________________________________

mupad [B]  time = 0.05, size = 8, normalized size = 0.80 \[ x+\frac {\sin \left (x^3\right )}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*cos(x^3) + 1,x)

[Out]

x + sin(x^3)/3

________________________________________________________________________________________

sympy [A]  time = 0.26, size = 7, normalized size = 0.70 \[ x + \frac {\sin {\left (x^{3} \right )}}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1+x**2*cos(x**3),x)

[Out]

x + sin(x**3)/3

________________________________________________________________________________________