d/dxDerivCalc

Derivative of cos(x)

Cosine's derivative is almost as tidy as sine's — with one minus sign that students forget more than any other in first-year calculus.

Answer
d/dx [cos(x)]  =  −sin(x)
Rule used: Standard trigonometric derivative
Open cos(x) in the calculator →

Step-by-step solution

1
Identify the function

You are differentiating f(x) = cos(x) — the argument is plain x, so the standard derivative applies directly.

2
Apply the standard derivative

From the limit definition (or from the identity cos(x) = sin(π/2 − x) plus the chain rule), the derivative of cosine is negative sine.

3
State the result

f′(x) = −sin(x).

Why it works

The minus sign has a physical meaning, not just an algebraic one. Cosine starts at its maximum value of 1 when x = 0 and immediately decreases. A decreasing function must have a negative derivative — and indeed −sin(x) is negative just after 0. If you ever blank on which trig derivative carries the minus, sketch one hump of cosine and ask whether it's rising or falling at the start.

Sine and cosine are each other's derivatives up to sign, which is what makes the pair the fundamental solutions of the equation f″ = −f — the equation governing springs, pendulums, and every simple oscillation in physics. Differentiating cos(x) twice gives −cos(x): the function reproduces its own negative, which is oscillation in a nutshell.

Common mistakes

Practice problems

Find the derivative of 3 cos(x) − 2

Answer: −3 sin(x) — the constant −2 vanishes.

Find the slope of cos(x) at x = π/2

Answer: −sin(π/2) = −1: cosine is falling at its steepest there.

What's the 3rd derivative of cos(x)?

Answer: sin(x) — follow the cycle cos → −sin → −cos → sin.

Related derivatives

sin(x)cos(2x)sec(x)tan(x)