Calculus I › Differentiation rules › full formula sheet
The derivative of cos x
Cosine’s derivative is negative sine — the graph demands the minus, and the limit proof delivers it.
Notation: x is in radians. d/dx[cos(u)] = −sin(u)·u′ when there’s something inside. Chant: “sine to cosine, cosine to negative sine.”
Before this lesson: Derivative of sin x · Definition of the derivative
Where it comes from
Picture the cosine wave. It starts at its peak (1, 0) and immediately heads down — negative slope from the start. At x = π/2 it plunges through zero at 45°: slope −1. Which candidate fits? −sin(π/2) = −1, while +sin(π/2) = +1. The graph demands the minus — the no-minus guess dies at π/2.
The shift picture works here too: cosine’s slope pattern (0 at 0, −1 at π/2, 0 at π, +1 at 3π/2) traces a wave that is sine flipped upside down — negative sine:
Before reading on: cosine plunges through x = π/2 heading down. What slope does the graph demand there — and which of sin x / −sin x delivers it?
Memory anchor: sine is the plus one, cosine is the minus one. The asymmetry comes from where each wave starts — sine starts climbing (positive slope), cosine starts falling (negative slope).
Derivation
Apply the definition to f(x) = cos x, using cos(x+h) = cos x cos h − sin x sin h — note the minus in the formula, the seed of our answer’s minus:
The proofs for sine and cosine are mirror images — the only difference is the angle-sum formula’s sign, which propagates straight into the answer.
How to use it
The procedure:
- Plain cos x → −sin x. The minus is part of the rule — write it first, before anything else.
- Something inside? Chain rule: d/dx [cos(u)] = −sin(u)·u′. Example: d/dx [cos(4x)] = −4 sin(4x).
- Constants ride along: d/dx [−5 cos x] = −5·(−sin x) = 5 sin x — minus times minus.
- Double-check with the graph: cosine falls first, so near 0 its derivative is negative — if your answer is positive near 0, the minus got lost.
Judgment calls
cos²x = (cos x)² needs the chain: 2 cos x·(−sin x) = −sin 2x. Don’t “cancel” minuses blindly: d/dx [−cos x] = +sin x, but d/dx [cos(−x)] = −sin(−x)·(−1) = −sin x — track each minus to its source.
Worked examples
Four problems, easiest first. The minus sign is the main character.
Example 1 — d/dx [−5 cos x] (minus times minus)
- Pull out −5: = −5·d/dx [cos x].
- Cosine rule: d/dx [cos x] = −sin x.
- Multiply: (−5)(−sin x) = 5 sin x. (Why positive? Two minuses make a plus.)
Your turn: d/dx [6 cos x]
Answer: −6 sin x
Pull out the 6: 6·d/dx [cos x] = 6·(−sin x) = −6 sin x. The rule’s minus is non-negotiable.
Example 2 — d/dx [cos(4x)] (chain)
- Layers: outer cos u, inner u = 4x.
- Outside: −sin(4x). Inside’s derivative: 4.
- Multiply: = −4 sin(4x).
Your turn: d/dx [cos(2x)] (chain)
Answer: −2 sin(2x)
Layers: outer cos u, inner u = 2x. Outside: −sin(2x). Inside’s derivative: 2. Multiply: −2 sin(2x).
Example 3 — d/dx [x cos x] (product)
- Structure: multiplied — product rule: f = x, g = cos x.
- Derivatives: f′ = 1, g′ = −sin x.
- Assemble f′g + fg′: = 1·cos x + x·(−sin x) = cos x − x sin x.
Your turn: d/dx [x² cos x] (product)
Answer: 2x cos x − x² sin x
Product rule: f = x², g = cos x. f′ = 2x, g′ = −sin x. Assemble: 2x cos x + x²(−sin x) = 2x cos x − x² sin x.
Example 4 — d/dx [cos²x] (power of cosine)
- Rewrite: (cos x)² — outer u², inner cos x.
- Outside: 2 cos x. Inside’s derivative: −sin x.
- Multiply: = −2 sin x cos x (= −sin 2x).
Your turn: d/dx [cos³x] (power of cosine)
Answer: −3 cos²x sin x
Rewrite: (cos x)³ — outer u³, inner cos x. Outside: 3 cos²x. Inside’s derivative: −sin x. Multiply: −3 cos²x sin x.
Memorization tips
- Cosine is the MINUS one: d/dx [cos] = −sin. Write the minus the instant you see cosine — before the chain factor, before everything.
- Graph check at π/2: cosine plunges there (slope −1). If your formula gives +1 at π/2, the minus is missing. Five seconds, conclusive.
- One chant for both: “sine to cosine, cosine to negative sine.” Stress the word “negative” — it’s the only asymmetry.
- Parenthesize the minus: in products and chains, substitute (−sin x) with brackets. The #1 error is a minus lost during substitution.
- Two minuses make a plus: d/dx [−5 cos x] = +5 sin x. Count minuses like factors — because they are.
- sin² vs cos²: their derivatives are 2 sin x cos x and −2 sin x cos x — identical except the sign. Label the base before differentiating.
Final challenge
Five mixed questions — the minus sign under pressure. Score 5/5 and it’s yours.
← Back to the Calculus I formula sheet
How to learn a formula here
- Read each section in order — every section ends with a short quiz. Take it before moving on; the questions test exactly what you just read.
- Work the examples with the answers covered, then uncover one step at a time and compare.
- Finish with the final challenge — five mixed questions including the classic traps.
- Retake what you miss — every quiz reshuffles each attempt, and every answer explains itself.
Frequently asked questions
What is the derivative of cos x?
d/dx[cos x] = −sin x — with a minus sign. Cosine starts at its peak and falls, so its early slopes are negative; the limit proof traces the minus to the angle-sum formula cos(x+h) = cos x·cos h − sin x·sin h.
Why does cosine’s derivative have a minus but sine’s doesn’t?
Look at x = 0: sine rises (positive slope → +cos) while cosine is at its peak turning downward. The asymmetry is in the waves’ starting positions — sine starts climbing, cosine starts falling.
How do I remember which trig derivative has the minus?
Chant “sine to cosine, cosine to negative sine” — the word “negative” only appears once. Or graph-check at π/2: cosine plunges (slope −1), so its derivative must be negative there.
What is d/dx[cos(4x)]?
−4sin(4x). Chain rule: differentiate the outside (−sin, keeping 4x), then multiply by the inside’s derivative 4. Write the rule’s minus first, then the chain factor.
What is d/dx[−5cos x]?
5sin x. The constant −5 rides along: (−5)·(−sin x) = +5sin x — minus times minus makes a plus.
More from the codex
Support the codex
This page is free, with no account and no ads. If it helped you learn, consider supporting the indie dev behind it.
Questions or a bug to report? Email [email protected].