3.1.29 \(\int \sin ^3(x) \, dx\) [29]

Optimal. Leaf size=13 \[ -\cos (x)+\frac {\cos ^3(x)}{3} \]

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 13, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2713} \begin {gather*} \frac {\cos ^3(x)}{3}-\cos (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sin[x]^3,x]

[Out]

-Cos[x] + Cos[x]^3/3

Rule 2713

Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Dist[-d^(-1), Subst[Int[Expand[(1 - x^2)^((n - 1)/2), x], x], x
, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 15, normalized size = 1.15 \begin {gather*} -\frac {3 \cos (x)}{4}+\frac {1}{12} \cos (3 x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sin[x]^3,x]

[Out]

(-3*Cos[x])/4 + Cos[3*x]/12

________________________________________________________________________________________

Maple [A]
time = 0.00, size = 11, normalized size = 0.85

method result size
default \(-\frac {\left (2+\sin ^{2}\left (x \right )\right ) \cos \left (x \right )}{3}\) \(11\)
risch \(-\frac {3 \cos \left (x \right )}{4}+\frac {\cos \left (3 x \right )}{12}\) \(12\)
norman \(\frac {-4 \left (\tan ^{2}\left (\frac {x}{2}\right )\right )-\frac {4}{3}}{\left (1+\tan ^{2}\left (\frac {x}{2}\right )\right )^{3}}\) \(22\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x)^3,x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

Maxima [A]
time = 3.09, size = 11, normalized size = 0.85 \begin {gather*} \frac {1}{3} \, \cos \left (x\right )^{3} - \cos \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)^3,x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.46, size = 11, normalized size = 0.85 \begin {gather*} \frac {1}{3} \, \cos \left (x\right )^{3} - \cos \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)^3,x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

Sympy [A]
time = 0.01, size = 8, normalized size = 0.62 \begin {gather*} \frac {\cos ^{3}{\left (x \right )}}{3} - \cos {\left (x \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)**3,x)

[Out]

cos(x)**3/3 - cos(x)

________________________________________________________________________________________

Giac [A]
time = 0.47, size = 11, normalized size = 0.85 \begin {gather*} \frac {1}{3} \, \cos \left (x\right )^{3} - \cos \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)^3,x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

Mupad [B]
time = 0.00, size = 10, normalized size = 0.77 \begin {gather*} \frac {\cos \left (x\right )\,\left ({\cos \left (x\right )}^2-3\right )}{3} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x)^3,x)

[Out]

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

________________________________________________________________________________________