Derivative of cos x
The derivative of cos x is −sin x. Just after x = 0, cosine starts falling, so its slope is negative while sine is positive, and that is where the minus sign comes from.
How to find the derivative of cos x
Method: limit definition.
- 1Start from the definition: d/dx cos x = limit as h → 0 of (cos(x + h) − cos x) / h.
- 2Expand with the angle addition formula: cos(x + h) = cos x cos h − sin x sin h.
- 3Group the terms: cos x · (cos h − 1)/h − sin x · (sin h)/h.
- 4Use the standard limits (cos h − 1)/h → 0 and (sin h)/h → 1.
- 5What remains is cos x · 0 − sin x · 1 = −sin x.
What it means on the graph
Cosine is flat at its peak at x = 0, where −sin x is 0. It falls fastest at x = π/2, where −sin x reaches −1. At its lowest point, x = π, it is flat again.
In the window shown, the derivative is zero at x = −2π, x = −π, x = 0, x = π, x = 2π. 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 | −sin x | Slope, measured |
|---|---|---|---|
| −5.03 | 0.312298 | −0.949984 | −0.949984 |
| −3.14 | −0.999999 | 0.00159265 | 0.00159265 |
| −1.26 | 0.305817 | 0.95209 | 0.95209 |
| 0 | 1 | 0 | 0 |
| 1.88 | −0.3043 | −0.952576 | −0.952576 |
| 3.77 | −0.808965 | 0.587857 | 0.587857 |
| 5.03 | 0.312298 | 0.949984 | 0.949984 |
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(2x) | −2sin(2x) |
cos(x2) | −2xsin(x2) |
cos(ln(x)) | −sin(ln(x))x |
Common mistakes
- Dropping the minus sign, which is the most common mistake with this derivative.
- Using degrees. The formula assumes x is in radians.
Frequently asked questions
What is the derivative of cos x?
What is the second derivative of cos x?
Why is the derivative of cos x negative?
How do I remember which trig derivatives are negative?
Keep going
Type your own function into the derivative calculator and see every rule applied, step by step.