3.821 \(\int -\cos (1-x) \sin (1-x) \sqrt{1+\sin ^2(1-x)} \, dx\)

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

[Out]

(1 + Sin[1 - x]^2)^(3/2)/3

________________________________________________________________________________________

Rubi [A]  time = 0.0411609, antiderivative size = 18, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.071, Rules used = {3198, 261} \[ \frac{1}{3} \left (\sin ^2(1-x)+1\right )^{3/2} \]

Antiderivative was successfully verified.

[In]

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

[Out]

(1 + Sin[1 - x]^2)^(3/2)/3

Rule 3198

Int[cos[(e_.) + (f_.)*(x_)]^(m_.)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^
2)^(p_.), x_Symbol] :> With[{ff = FreeFactors[Sin[e + f*x], x]}, Dist[ff/f, Subst[Int[(d*ff*x)^n*(1 - ff^2*x^2
)^((m - 1)/2)*(a + b*ff^2*x^2)^p, x], x, Sin[e + f*x]/ff], x]] /; FreeQ[{a, b, d, e, f, n, p}, x] && IntegerQ[
(m - 1)/2]

Rule 261

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(a + b*x^n)^(p + 1)/(b*n*(p + 1)), x] /; FreeQ
[{a, b, m, n, p}, x] && EqQ[m, n - 1] && NeQ[p, -1]

Rubi steps

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

Mathematica [A]  time = 0.034236, size = 18, normalized size = 1. \[ \frac{1}{3} \left (\sin ^2(1-x)+1\right )^{3/2} \]

Antiderivative was successfully verified.

[In]

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

[Out]

(1 + Sin[1 - x]^2)^(3/2)/3

________________________________________________________________________________________

Maple [A]  time = 0.015, size = 13, normalized size = 0.7 \begin{align*}{\frac{1}{3} \left ( 1+ \left ( \sin \left ( -1+x \right ) \right ) ^{2} \right ) ^{{\frac{3}{2}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [A]  time = 0.95522, size = 16, normalized size = 0.89 \begin{align*} \frac{1}{3} \,{\left (\sin \left (x - 1\right )^{2} + 1\right )}^{\frac{3}{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]  time = 2.43615, size = 42, normalized size = 2.33 \begin{align*} \frac{1}{3} \,{\left (-\cos \left (x - 1\right )^{2} + 2\right )}^{\frac{3}{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Sympy [B]  time = 0.856694, size = 32, normalized size = 1.78 \begin{align*} \frac{\sqrt{\sin ^{2}{\left (x - 1 \right )} + 1} \sin ^{2}{\left (x - 1 \right )}}{3} + \frac{\sqrt{\sin ^{2}{\left (x - 1 \right )} + 1}}{3} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

sqrt(sin(x - 1)**2 + 1)*sin(x - 1)**2/3 + sqrt(sin(x - 1)**2 + 1)/3

________________________________________________________________________________________

Giac [A]  time = 1.07729, size = 16, normalized size = 0.89 \begin{align*} \frac{1}{3} \,{\left (\sin \left (x - 1\right )^{2} + 1\right )}^{\frac{3}{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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