Skip to content
ihateDesmos

Derivative of sin x cos x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The derivative of sin x cos x
ddx(sin(x)cos(x))=cos(2x)

The derivative of sin x cos x is cos²x − sin²x, which is cos 2x. Use the product rule, then the double angle identity to tidy up.

−3−2−1123−110
Open in calculator
y=sin(x)cos(x)
in blue and its derivative
y=cos(2x)
in red.

How to find the derivative of sin x cos x

Method: product rule.

  1. 1
    Use the product rule, with f = sin x and g = cos x.
  2. 2
    f′ = cos x and g′ = −sin x.
  3. 3
    So the derivative is cos x · cos x + sin x · (−sin x).
  4. 4
    Simplify: cos²x − sin²x.
  5. 5
    By the double angle identity, this is cos 2x.

What it means on the graph

Since sin x cos x = (1/2) sin 2x, this function is simply a smaller, faster sine wave. The chain rule on (1/2) sin 2x gives cos 2x directly, which confirms the result.

In the window shown, the derivative is zero at x = −3π/4, x = −π/4, x = π/4, x = 3π/4. Those are the points where the graph of sin x cos x has a horizontal tangent.

Table of values

The derivative column uses the formula. The last column estimates the slope directly from the original function, as an independent check.

Values of sin x cos x and its derivative
xsin x cos xcos 2xSlope, measured
−2.510.476530.3027830.302783
−1.57−0.000796326−0.999999−0.999999
−0.628−0.475430.3096230.309623
0011
0.9420.475676−0.308108−0.308108
1.88−0.289869−0.814803−0.814803
2.51−0.476530.3027830.302783

Second derivative

Differentiating once more gives:

d2dx2(sin(x)cos(x))=−2sin(2x)

The second derivative tells you which way the graph bends: positive means it curves upward, and negative means it curves downward.

Common mistakes

  • Writing −sin x cos x, by multiplying the two derivatives together.

Frequently asked questions

What is the derivative of sin x cos x?
The derivative of sin x cos x is cos 2x.
What is the second derivative of sin x cos x?
Differentiate cos 2x again to get the second derivative. The result is shown on this page under “Second derivative”.

Keep going

Differentiate any function

Type your own function into the derivative calculator and see every rule applied, step by step.

Open the derivative calculator