3.13 \(\int x^{-1+n} \sin (x^n) \, dx\)

Optimal. Leaf size=9 \[ -\frac {\cos \left (x^n\right )}{n} \]

[Out]

-cos(x^n)/n

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 9, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3379, 2638} \[ -\frac {\cos \left (x^n\right )}{n} \]

Antiderivative was successfully verified.

[In]

Int[x^(-1 + n)*Sin[x^n],x]

[Out]

-(Cos[x^n]/n)

Rule 2638

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

Rule 3379

Int[(x_)^(m_.)*((a_.) + (b_.)*Sin[(c_.) + (d_.)*(x_)^(n_)])^(p_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplif
y[(m + 1)/n] - 1)*(a + b*Sin[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 x^{-1+n} \sin \left (x^n\right ) \, dx &=\frac {\operatorname {Subst}\left (\int \sin (x) \, dx,x,x^n\right )}{n}\\ &=-\frac {\cos \left (x^n\right )}{n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 9, normalized size = 1.00 \[ -\frac {\cos \left (x^n\right )}{n} \]

Antiderivative was successfully verified.

[In]

Integrate[x^(-1 + n)*Sin[x^n],x]

[Out]

-(Cos[x^n]/n)

________________________________________________________________________________________

fricas [A]  time = 0.42, size = 9, normalized size = 1.00 \[ -\frac {\cos \left (x^{n}\right )}{n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)*sin(x^n),x, algorithm="fricas")

[Out]

-cos(x^n)/n

________________________________________________________________________________________

giac [A]  time = 0.01, size = 9, normalized size = 1.00 \[ -\frac {\cos \left (x^{n}\right )}{n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)*sin(x^n),x, algorithm="giac")

[Out]

-cos(x^n)/n

________________________________________________________________________________________

maple [A]  time = 0.02, size = 10, normalized size = 1.11 \[ -\frac {\cos \left (x^{n}\right )}{n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(-1+n)*sin(x^n),x)

[Out]

-cos(x^n)/n

________________________________________________________________________________________

maxima [A]  time = 0.79, size = 9, normalized size = 1.00 \[ -\frac {\cos \left (x^{n}\right )}{n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)*sin(x^n),x, algorithm="maxima")

[Out]

-cos(x^n)/n

________________________________________________________________________________________

mupad [B]  time = 0.21, size = 9, normalized size = 1.00 \[ -\frac {\cos \left (x^n\right )}{n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(n - 1)*sin(x^n),x)

[Out]

-cos(x^n)/n

________________________________________________________________________________________

sympy [A]  time = 6.73, size = 7, normalized size = 0.78 \[ - \frac {\cos {\left (x^{n} \right )}}{n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(-1+n)*sin(x**n),x)

[Out]

-cos(x**n)/n

________________________________________________________________________________________