Derivative of Cos x: Answer, Proof and Chain Rule Examples

Answer: The derivative of \(\cos(x)\) is \(-\sin(x)\), a foundational result in calculus derived from the limit definition and applicable via the chain rule for composite functions.

🔑 Key Takeaways

  • Derivative of \(\cos(x)\): \(-\sin(x)\).
  • The proof uses the limit definition and the angle sum identity for cosine.
  • The chain rule extends it: derivative of \(\cos(f(x)) = -\sin(f(x)) \cdot f'(x)\).
  • Common mistake: forgetting the negative sign – derivative of cos is not sin(x).
  • Graphically, the slope of the cosine curve at any point equals the negative of the sine value at that point.

What Is the Derivative of Cos? The Simple Answer

The short answer: the derivative of cos is negative sine. In calculus, the derivative of \(\cos(x)\) with respect to \(x\) is \(-\sin(x)\). This is one of the most essential differentiation rules for trigonometric functions, and it appears everywhere from physics to engineering.

Video (1 min): why the derivative of cos x is −sin x, shown with a moving tangent line.
✅ Quick answer: The derivative of \(\cos(x)\) is \(-\sin(x)\). That’s it. You can memorize it, but knowing why makes it stick.

Knowing why is more useful than memorizing it. In this guide, we’ll explore its derivation from first principles, common mistakes, and how to apply the rule in real problems. You’ll also see how it connects to the derivative of sin and the derivative of tan.

Proof from first principles

Start from the limit definition of the derivative:

$$\frac{d}{dx}\cos(x) = \lim_{h \to 0} \frac{\cos(x+h)-\cos(x)}{h}.$$

Use the angle-sum identity: \(\cos(x+h) = \cos x \cos h-\sin x \sin h\). Substituting:

$$\frac{\cos x \cos h-\sin x \sin h-\cos x}{h} = \frac{\cos x (\cos h-1)-\sin x \sin h}{h}.$$

Separate into two limits:

$$\cos x \cdot \lim_{h\to0}\frac{\cos h-1}{h}-\sin x \cdot \lim_{h\to0}\frac{\sin h}{h}.$$

Using the standard limits:

  • \(\displaystyle \lim_{h\to0}\frac{\cos h-1}{h} = 0\)
  • \(\displaystyle \lim_{h\to0}\frac{\sin h}{h} = 1\)

We get \( \cos x \cdot 0-\sin x \cdot 1 = -\sin x\). So the derivative of \(\cos(x)\) is \(-\sin(x)\). That completes the proof.

💡 Pro tip: Memorize the limits \(\lim_{h\to0}\frac{\sin h}{h}=1\) and \(\lim_{h\to0}\frac{\cos h-1}{h}=0\) — they’re the backbone of all trig derivative proofs.

Derivative of cos(2x), cos(x²) and other inside functions (chain rule)

The rule \(\frac{d}{dx}\cos(x) = -\sin(x)\) applies directly to \(x\). But in practice you often need the derivative of cos of an inside function, like \(\cos(2x)\) or \(\cos(x^2)\). That’s when the chain rule kicks in:

$$\frac{d}{dx}\cos(u) = -\sin(u) \cdot \frac{du}{dx}.$$

Worked Example: Derivative of \(\cos(3x+1)\)

🧪 Worked example

Find the derivative of \(f(x) = \cos(3x+1)\).

Step 1: Identify the inside function \(u = 3x+1\), so \(\frac{du}{dx} = 3\).

Step 2: Apply the chain rule: \(f'(x) = -\sin(u) \cdot \frac{du}{dx} = -\sin(3x+1) \cdot 3\).

Step 3: Simplify: \(f'(x) = -3\sin(3x+1)\).

The same three steps work for any inside function.

This chain-rule form is the one physics and engineering use most, for oscillating springs and alternating current. It pairs with the derivative of sin, which follows the same proof.

More examples: cos(2x), cos²x, x·cos x

FunctionDerivativeRule used
\(\cos(2x)\)\(-2\sin(2x)\)Chain rule, inside derivative is 2
\(\cos(x^2)\)\(-2x\sin(x^2)\)Chain rule, inside derivative is \(2x\)
\(\cos^2(x)\)\(-2\sin(x)\cos(x)=-\sin(2x)\)Power rule, then chain rule
\(x\cos(x)\)\(\cos(x)-x\sin(x)\)Product rule
\(\cos(e^x)\)\(-e^x\sin(e^x)\)Chain rule, inside derivative is \(e^x\)
\(-\cos(x)\)\(\sin(x)\)The two minus signs cancel

Try your own inside function

Type what sits inside the cosine, written in terms of x, and see the chain rule applied step by step.

Examples:

For other functions, the derivative calculator works through any expression the same way.

Common mistakes

⚠️ Avoid this: Forgetting the negative sign! The derivative of \(\cos(x)\) is \(-\sin(x)\), not \(\sin(x)\). A common error is to confuse it with the derivative of \(\sin\), which is \(\cos(x)\).

Three pitfalls to watch for:

  1. Missing the negative sign – Always write \(- \sin(x)\), not \(\sin(x)\).
  2. Forgetting the chain rule – If the argument is not \(x\), you must multiply by its derivative.
  3. Sign errors with nested functions – For \(\cos^2(x)\) (i.e., \((\cos x)^2\)), use the power rule and chain rule: \(2\cos x \cdot (-\sin x) = -2\cos x \sin x = -\sin(2x)\).

If you’re studying the other trig derivatives too, see what is the derivative of tangent and what is the derivative of secx to see similar patterns.

Why the answer is negative: the graph

Graphically, the derivative of a function at a point equals the slope of its tangent. For \(\cos(x)\):

  • At \(x=0\), \(\cos(0)=1\) and the slope is \(0\) – indeed \(-\sin(0)=0\).
  • At \(x=\pi/2\), \(\cos(\pi/2)=0\) and the slope is \(-1\) – \(-\sin(\pi/2)=-1\).
  • At \(x=\pi\), \(\cos(\pi)=-1\) and the slope is \(0\) – \(-\sin(\pi)=0\).

So the slope of cosine at every point is \(-\sin\): the same wave, shifted by a quarter turn. The cosine curve’s decreasing sections correspond to negative sine values.

“The derivative of cosine is minus sine — a simple relationship that unifies calculus and trigonometry.”

At-a-Glance: Derivatives of Basic Trig Functions

Here is the rule next to its siblings:

FunctionDerivativeMemory Tip
\(\sin(x)\)\(\cos(x)\)Sine to cosine (no negative)
\(\cos(x)\)\(-\sin(x)\)Cosine to negative sine
\(\tan(x)\)\(\sec^2(x)\)See the derivative of tan
\(\sec(x)\)\(\sec(x)\tan(x)\)See the derivative of sec

Memorize it or derive it?

✅ Pros of memorizing

  • Instant recall speeds up calculations
  • Reduces cognitive load in complex problems
  • Essential for timed exams

❌ Cons of memorizing without understanding

  • Prone to sign errors under pressure
  • Cannot handle variations (e.g., chain rule) confidently
  • Weakens deeper intuition about derivatives

I recommend learning the derivation once, then memorizing the result. That way, when you need it in a multi-step problem, you recall it instantly without doubt.

Where the rule is used

Where does this rule show up outside the textbook?

  • Physics (Simple Harmonic Motion): The position of a mass on a spring is often \(x(t)=A\cos(\omega t)\). Velocity is \(-A\omega\sin(\omega t)\) — directly using the derivative of cos.
  • Electrical Engineering (AC Circuits): Voltage across a capacitor may follow \(V=V_0\cos(\omega t)\). Current is the derivative: \(I = -C V_0 \omega \sin(\omega t)\), again using \(\frac{d}{dt}\cos(\omega t) = -\omega\sin(\omega t)\).
  • Signal Processing: Derivatives of cosine waves create phase shifts used in modulation.
🎯 Tip: Picture the cosine curve just after \(x=0\): it is falling. A falling curve has a negative slope, and that is where the minus sign comes from.

Practice problems

Try these on your own, then check the answers.

  1. \(\frac{d}{dx} \cos(5x)\)
  2. \(\frac{d}{dx} \cos(x^2)\)
  3. \(\frac{d}{dx} x^2 \cos(x)\) (product rule)
  4. \(\frac{d}{dx} \cos^3(x)\) (chain and power rules)
Show answers

1. \(-5\sin(5x)\)
2. \(-2x\sin(x^2)\)
3. \(2x\cos(x)-x^2\sin(x)\)
4. \(-3\cos^2(x)\sin(x)\)

Frequently Asked Questions

What is the derivative of cos(x)?+

The derivative of cos(x) with respect to x is -sin(x). This is a standard result from calculus.

Why is the derivative of cos equal to -sin?+

Using the limit definition of derivative and trigonometric identities, the derivative of cos(x) is -sin(x). Geometrically, the slope of the tangent at any point on the cosine curve equals the negative of the sine function.

What is the derivative of cos(2x)?+

Apply the chain rule: derivative of cos(2x) is -sin(2x) * derivative of (2x) = -2 sin(2x).

Is the derivative of -cos(x) the same as derivative of cos(x)?+

No, the derivative of -cos(x) is sin(x) because the negative sign carries through: d/dx[-cos(x)] = -(-sin(x)) = sin(x).

How do you remember derivatives of sine and cosine?+

Remember that sine starts at 0 and increases, so its derivative (slope) is positive: cos. Cosine starts at 1 and decreases, so its derivative is negative: -sin. A common mnemonic: "cosine derivative is minus sine."

Ready to go further?

Check any derivative step by step.

Open the derivative calculator →

For additional depth, check out authoritative sources: Wikipedia: Differentiation of trigonometric functions and Paul’s Online Math Notes: Derivatives of Trig Functions.

In short, the derivative of cos is \(-\sin(x)\), and with the chain rule that one fact handles every cosine you will meet.

Scroll to Top