3.1.5 \(\int \sin (x) \, dx\) [5]

Optimal. Leaf size=4 \[ -\cos (x) \]

[Out]

-cos(x)

________________________________________________________________________________________

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

Antiderivative was successfully verified.

[In]

Int[Sin[x],x]

[Out]

-Cos[x]

Rule 2718

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

Rubi steps

\begin {gather*} \begin {aligned} \text {Integral} &=-\cos (x)\\ \end {aligned} \end {gather*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 4, normalized size = 1.00 \begin {gather*} -\cos (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sin[x],x]

[Out]

-Cos[x]

________________________________________________________________________________________

Maple [A]
time = 0.06, size = 5, normalized size = 1.25

method result size
lookup \(-\cos \left (x \right )\) \(5\)
default \(-\cos \left (x \right )\) \(5\)
risch \(-\cos \left (x \right )\) \(5\)
parallelrisch \(-\cos \left (x \right )-1\) \(7\)
norman \(-\frac {2}{1+\tan ^{2}\left (\frac {x}{2}\right )}\) \(13\)
meijerg \(\sqrt {\pi }\, \left (\frac {1}{\sqrt {\pi }}-\frac {\cos \left (x \right )}{\sqrt {\pi }}\right )\) \(16\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-cos(x)

________________________________________________________________________________________

Maxima [A]
time = 0.40, size = 4, normalized size = 1.00 \begin {gather*} -\cos \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-cos(x)

________________________________________________________________________________________

Fricas [A]
time = 0.58, size = 4, normalized size = 1.00 \begin {gather*} -\cos \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-cos(x)

________________________________________________________________________________________

Sympy [A]
time = 0.02, size = 3, normalized size = 0.75 \begin {gather*} - \cos {\left (x \right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x),x)

[Out]

-cos(x)

________________________________________________________________________________________

Giac [A]
time = 0.43, size = 4, normalized size = 1.00 \begin {gather*} -\cos \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-cos(x)

________________________________________________________________________________________

Mupad [B]
time = 0.06, size = 4, normalized size = 1.00 \begin {gather*} -\cos \left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x),x)

[Out]

-cos(x)

________________________________________________________________________________________