\(\int \frac {x \cos (\sqrt {1+x^2})}{\sqrt {1+x^2}} \, dx\) [48]

   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 = 21, antiderivative size = 10 \[ \int \frac {x \cos \left (\sqrt {1+x^2}\right )}{\sqrt {1+x^2}} \, dx=\sin \left (\sqrt {1+x^2}\right ) \]

[Out]

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

Rubi [A] (verified)

Time = 0.16 (sec) , antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {6847, 3513, 15, 2717} \[ \int \frac {x \cos \left (\sqrt {1+x^2}\right )}{\sqrt {1+x^2}} \, dx=\sin \left (\sqrt {x^2+1}\right ) \]

[In]

Int[(x*Cos[Sqrt[1 + x^2]])/Sqrt[1 + x^2],x]

[Out]

Sin[Sqrt[1 + x^2]]

Rule 15

Int[(u_.)*((a_.)*(x_)^(n_))^(m_), x_Symbol] :> Dist[a^IntPart[m]*((a*x^n)^FracPart[m]/x^(n*FracPart[m])), Int[
u*x^(m*n), x], x] /; FreeQ[{a, m, n}, x] &&  !IntegerQ[m]

Rule 2717

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

Rule 3513

Int[((a_.) + Cos[(c_.) + (d_.)*((e_.) + (f_.)*(x_))^(n_)]*(b_.))^(p_.)*((g_.) + (h_.)*(x_))^(m_.), x_Symbol] :
> Dist[1/(n*f), Subst[Int[ExpandIntegrand[(a + b*Cos[c + d*x])^p, x^(1/n - 1)*(g - e*(h/f) + h*(x^(1/n)/f))^m,
 x], x], x, (e + f*x)^n], x] /; FreeQ[{a, b, c, d, e, f, g, h, m}, x] && IGtQ[p, 0] && IntegerQ[1/n]

Rule 6847

Int[(u_)*(x_)^(m_.), x_Symbol] :> Dist[1/(m + 1), Subst[Int[SubstFor[x^(m + 1), u, x], x], x, x^(m + 1)], x] /
; FreeQ[m, x] && NeQ[m, -1] && FunctionOfQ[x^(m + 1), u, x]

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

Mathematica [A] (verified)

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

[In]

Integrate[(x*Cos[Sqrt[1 + x^2]])/Sqrt[1 + x^2],x]

[Out]

Sin[Sqrt[1 + x^2]]

Maple [A] (verified)

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

method result size
derivativedivides \(\sin \left (\sqrt {x^{2}+1}\right )\) \(9\)
default \(\sin \left (\sqrt {x^{2}+1}\right )\) \(9\)

[In]

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

[Out]

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

Fricas [A] (verification not implemented)

none

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

[In]

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

[Out]

sin(sqrt(x^2 + 1))

Sympy [A] (verification not implemented)

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

[In]

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

[Out]

sin(sqrt(x**2 + 1))

Maxima [A] (verification not implemented)

none

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

[In]

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

[Out]

sin(sqrt(x^2 + 1))

Giac [A] (verification not implemented)

none

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

[In]

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

[Out]

sin(sqrt(x^2 + 1))

Mupad [B] (verification not implemented)

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

[In]

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

[Out]

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