Derivative of sin x
The derivative of sin x is cos x. The slope of the sine curve at any point is exactly the height of the cosine curve there, with x in radians.
How to find the derivative of sin x
Method: limit definition.
- 1Start from the definition: d/dx sin x = limit as h → 0 of (sin(x + h) − sin x) / h.
- 2Expand with the angle addition formula: sin(x + h) = sin x cos h + cos x sin h.
- 3Group the terms: sin x · (cos h − 1)/h + cos x · (sin h)/h.
- 4Use the two standard limits: (cos h − 1)/h → 0 and (sin h)/h → 1.
- 5What remains is sin x · 0 + cos x · 1 = cos x.
What it means on the graph
Where sine climbs fastest, at x = 0, cosine is at its peak of 1. At the top of the sine curve the slope is 0, and cosine crosses zero at exactly that point. Where sine falls fastest, cosine reaches −1.
In the window shown, the derivative is zero at x = −3π/2, x = −π/2, x = π/2, x = 3π/2. Those are the points where the graph of sin 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 | Slope, measured |
|---|---|---|---|
| −5.03 | 0.949984 | 0.312298 | 0.312298 |
| −3.14 | −0.00159265 | −0.999999 | −0.999999 |
| −1.26 | −0.95209 | 0.305817 | 0.305817 |
| 0 | 0 | 1 | 1 |
| 1.88 | 0.952576 | −0.3043 | −0.3043 |
| 3.77 | −0.587857 | −0.808965 | −0.808965 |
| 5.03 | −0.949984 | 0.312298 | 0.312298 |
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 |
|---|---|
sin(3x) | 3cos(3x) |
sin(x2) | 2xcos(x2) |
sin(ex) | excos(ex) |
Common mistakes
- Using degrees. The result cos x only holds for x in radians. In degrees, the derivative is (π/180) cos x.
- Writing −cos x. The minus sign belongs to the derivative of cosine, not sine.
Frequently asked questions
What is the derivative of sin x?
What is the second derivative of sin x?
Why is the derivative of sin x equal to cos x?
What are the higher derivatives of sin x?
Keep going
Type your own function into the derivative calculator and see every rule applied, step by step.