Derivative of sin x cos x
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.
How to find the derivative of sin x cos x
Method: product rule.
- 1Use the product rule, with f = sin x and g = cos x.
- 2f′ = cos x and g′ = −sin x.
- 3So the derivative is cos x · cos x + sin x · (−sin x).
- 4Simplify: cos²x − sin²x.
- 5By 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.
| x | sin x cos x | cos 2x | Slope, measured |
|---|---|---|---|
| −2.51 | 0.47653 | 0.302783 | 0.302783 |
| −1.57 | −0.000796326 | −0.999999 | −0.999999 |
| −0.628 | −0.47543 | 0.309623 | 0.309623 |
| 0 | 0 | 1 | 1 |
| 0.942 | 0.475676 | −0.308108 | −0.308108 |
| 1.88 | −0.289869 | −0.814803 | −0.814803 |
| 2.51 | −0.47653 | 0.302783 | 0.302783 |
Second derivative
Differentiating once more gives:
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?
What is the second derivative of sin x cos x?
Keep going
Type your own function into the derivative calculator and see every rule applied, step by step.