\(\int x \cos (1+x^2) \, dx\) [782]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 8, antiderivative size = 10 \[ \int x \cos \left (1+x^2\right ) \, dx=\frac {1}{2} \sin \left (1+x^2\right ) \]

[Out]

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

Rubi [A] (verified)

Time = 0.01 (sec) , antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3461, 2717} \[ \int x \cos \left (1+x^2\right ) \, dx=\frac {1}{2} \sin \left (x^2+1\right ) \]

[In]

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

[Out]

Sin[1 + x^2]/2

Rule 2717

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

Rule 3461

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*} \text {integral}& = \frac {1}{2} \text {Subst}\left (\int \cos (1+x) \, dx,x,x^2\right ) \\ & = \frac {1}{2} \sin \left (1+x^2\right ) \\ \end{align*}

Mathematica [A] (verified)

Time = 0.00 (sec) , antiderivative size = 10, normalized size of antiderivative = 1.00 \[ \int x \cos \left (1+x^2\right ) \, dx=\frac {1}{2} \sin \left (1+x^2\right ) \]

[In]

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

[Out]

Sin[1 + x^2]/2

Maple [A] (verified)

Time = 0.21 (sec) , antiderivative size = 9, normalized size of antiderivative = 0.90

method result size
derivativedivides \(\frac {\sin \left (x^{2}+1\right )}{2}\) \(9\)
default \(\frac {\sin \left (x^{2}+1\right )}{2}\) \(9\)
risch \(\frac {\sin \left (x^{2}+1\right )}{2}\) \(9\)
parallelrisch \(\frac {\sin \left (x^{2}+1\right )}{2}\) \(9\)
norman \(\frac {\tan \left (\frac {1}{2}+\frac {x^{2}}{2}\right )}{1+\tan \left (\frac {1}{2}+\frac {x^{2}}{2}\right )^{2}}\) \(24\)
meijerg \(\frac {\cos \left (1\right ) \sin \left (x^{2}\right )}{2}-\frac {\sin \left (1\right ) \sqrt {\pi }\, \left (\frac {1}{\sqrt {\pi }}-\frac {\cos \left (x^{2}\right )}{\sqrt {\pi }}\right )}{2}\) \(30\)
parts \(\frac {\sqrt {2}\, \cos \left (1\right ) \sqrt {\pi }\, \operatorname {FresnelC}\left (\frac {\sqrt {2}\, x}{\sqrt {\pi }}\right ) x}{2}-\frac {\sqrt {2}\, \sqrt {\pi }\, \sin \left (1\right ) \operatorname {FresnelS}\left (\frac {\sqrt {2}\, x}{\sqrt {\pi }}\right ) x}{2}-\frac {\sqrt {2}\, \sqrt {\pi }\, \left (\frac {\cos \left (1\right ) \sqrt {2}\, \sqrt {\pi }\, \left (\frac {\operatorname {FresnelC}\left (\frac {\sqrt {2}\, x}{\sqrt {\pi }}\right ) \sqrt {2}\, x}{\sqrt {\pi }}-\frac {\sin \left (x^{2}\right )}{\pi }\right )}{2}-\frac {\sin \left (1\right ) \sqrt {2}\, \sqrt {\pi }\, \left (\frac {\operatorname {FresnelS}\left (\frac {\sqrt {2}\, x}{\sqrt {\pi }}\right ) \sqrt {2}\, x}{\sqrt {\pi }}+\frac {\cos \left (x^{2}\right )}{\pi }\right )}{2}\right )}{2}\) \(124\)

[In]

int(x*cos(x^2+1),x,method=_RETURNVERBOSE)

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.25 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.80 \[ \int x \cos \left (1+x^2\right ) \, dx=\frac {1}{2} \, \sin \left (x^{2} + 1\right ) \]

[In]

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

[Out]

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

Sympy [A] (verification not implemented)

Time = 0.07 (sec) , antiderivative size = 7, normalized size of antiderivative = 0.70 \[ \int x \cos \left (1+x^2\right ) \, dx=\frac {\sin {\left (x^{2} + 1 \right )}}{2} \]

[In]

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

[Out]

sin(x**2 + 1)/2

Maxima [A] (verification not implemented)

none

Time = 0.19 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.80 \[ \int x \cos \left (1+x^2\right ) \, dx=\frac {1}{2} \, \sin \left (x^{2} + 1\right ) \]

[In]

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

[Out]

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

Giac [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.80 \[ \int x \cos \left (1+x^2\right ) \, dx=\frac {1}{2} \, \sin \left (x^{2} + 1\right ) \]

[In]

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

[Out]

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

Mupad [B] (verification not implemented)

Time = 0.06 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.80 \[ \int x \cos \left (1+x^2\right ) \, dx=\frac {\sin \left (x^2+1\right )}{2} \]

[In]

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

[Out]

sin(x^2 + 1)/2