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

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

[Out]

Sin[1 + x^2]/2

________________________________________________________________________________________

Rubi [A]  time = 0.0087427, antiderivative size = 10, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {3380, 2637} \[ \frac{1}{2} \sin \left (x^2+1\right ) \]

Antiderivative was successfully verified.

[In]

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

[Out]

Sin[1 + x^2]/2

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 2637

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

Rubi steps

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

Mathematica [A]  time = 0.0022885, size = 10, normalized size = 1. \[ \frac{1}{2} \sin \left (x^2+1\right ) \]

Antiderivative was successfully verified.

[In]

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

[Out]

Sin[1 + x^2]/2

________________________________________________________________________________________

Maple [A]  time = 0.005, size = 9, normalized size = 0.9 \begin{align*}{\frac{\sin \left ({x}^{2}+1 \right ) }{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [A]  time = 0.952117, size = 11, normalized size = 1.1 \begin{align*} \frac{1}{2} \, \sin \left (x^{2} + 1\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]  time = 2.04218, size = 24, normalized size = 2.4 \begin{align*} \frac{1}{2} \, \sin \left (x^{2} + 1\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Sympy [A]  time = 0.170368, size = 7, normalized size = 0.7 \begin{align*} \frac{\sin{\left (x^{2} + 1 \right )}}{2} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

sin(x**2 + 1)/2

________________________________________________________________________________________

Giac [A]  time = 1.06857, size = 11, normalized size = 1.1 \begin{align*} \frac{1}{2} \, \sin \left (x^{2} + 1\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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