3.33 \(\int \frac{\sin (\sqrt{-7+x})}{\sqrt{-7+x}} \, dx\)

Optimal. Leaf size=10 \[ -2 \cos \left (\sqrt{x-7}\right ) \]

[Out]

-2*Cos[Sqrt[-7 + x]]

________________________________________________________________________________________

Rubi [A]  time = 0.0179978, antiderivative size = 10, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.188, Rules used = {3431, 15, 2638} \[ -2 \cos \left (\sqrt{x-7}\right ) \]

Antiderivative was successfully verified.

[In]

Int[Sin[Sqrt[-7 + x]]/Sqrt[-7 + x],x]

[Out]

-2*Cos[Sqrt[-7 + x]]

Rule 3431

Int[((g_.) + (h_.)*(x_))^(m_.)*((a_.) + (b_.)*Sin[(c_.) + (d_.)*((e_.) + (f_.)*(x_))^(n_)])^(p_.), x_Symbol] :
> Dist[1/(n*f), Subst[Int[ExpandIntegrand[(a + b*Sin[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 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 2638

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

Rubi steps

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

Mathematica [A]  time = 0.0233957, size = 10, normalized size = 1. \[ -2 \cos \left (\sqrt{x-7}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Sin[Sqrt[-7 + x]]/Sqrt[-7 + x],x]

[Out]

-2*Cos[Sqrt[-7 + x]]

________________________________________________________________________________________

Maple [A]  time = 0.011, size = 9, normalized size = 0.9 \begin{align*} -2\,\cos \left ( \sqrt{-7+x} \right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin((-7+x)^(1/2))/(-7+x)^(1/2),x)

[Out]

-2*cos((-7+x)^(1/2))

________________________________________________________________________________________

Maxima [A]  time = 1.09476, size = 11, normalized size = 1.1 \begin{align*} -2 \, \cos \left (\sqrt{x - 7}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin((-7+x)^(1/2))/(-7+x)^(1/2),x, algorithm="maxima")

[Out]

-2*cos(sqrt(x - 7))

________________________________________________________________________________________

Fricas [A]  time = 1.99068, size = 28, normalized size = 2.8 \begin{align*} -2 \, \cos \left (\sqrt{x - 7}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin((-7+x)^(1/2))/(-7+x)^(1/2),x, algorithm="fricas")

[Out]

-2*cos(sqrt(x - 7))

________________________________________________________________________________________

Sympy [A]  time = 0.334359, size = 10, normalized size = 1. \begin{align*} - 2 \cos{\left (\sqrt{x - 7} \right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin((-7+x)**(1/2))/(-7+x)**(1/2),x)

[Out]

-2*cos(sqrt(x - 7))

________________________________________________________________________________________

Giac [A]  time = 1.14195, size = 11, normalized size = 1.1 \begin{align*} -2 \, \cos \left (\sqrt{x - 7}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin((-7+x)^(1/2))/(-7+x)^(1/2),x, algorithm="giac")

[Out]

-2*cos(sqrt(x - 7))