Derivative of cos²x
The derivative of cos²x is −2 sin x cos x, which is also −sin 2x. Since sin²x + cos²x = 1, this is exactly the negative of the derivative of sin²x.
How to find the derivative of cos²x
Method: chain rule.
- 1Write the function as (cos x)², with u = cos x.
- 2The power rule on the outside gives 2u = 2 cos x.
- 3The derivative of the inside is −sin x.
- 4Multiply them: −2 sin x cos x.
- 5Using the double angle identity, this equals −sin 2x.
What it means on the graph
cos²x and sin²x add up to 1 at every x, so when one is rising, the other falls at exactly the same rate. Their derivatives must add to 0.
In the window shown, the derivative is zero at x = −π, x = −π/2, x = 0, x = π/2, x = π. Those are the points where the graph of 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 | cos²x | −2 sin x cos x | Slope, measured |
|---|---|---|---|
| −2.51 | 0.651391 | −0.95306 | −0.95306 |
| −1.57 | 6.34136 × 10⁻⁷ | 0.00159265 | 0.00159265 |
| −0.628 | 0.654811 | 0.950859 | 0.950859 |
| 0 | 1 | 0 | 0 |
| 0.942 | 0.345946 | −0.951351 | −0.951351 |
| 1.88 | 0.0925986 | 0.579738 | 0.579738 |
| 2.51 | 0.651391 | 0.95306 | 0.95306 |
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.
Related derivatives
The same result with the chain or product rule. Each of these is checked numerically too.
| Function | Derivative |
|---|---|
cos(x)3 | −3cos(x)2sin(x) |
Common mistakes
- Forgetting the minus sign from the derivative of cosine.
Frequently asked questions
What is the derivative of cos²x?
What is the second derivative of cos²x?
Keep going
Type your own function into the derivative calculator and see every rule applied, step by step.