AP Calculus AB and BC

Derivative of sin x: Answer, Proof, Mistakes

The derivative of sin x is cos x, for every real number x, provided x is measured in radians. It comes from the limit definition using the two special limits sin(h)/h -> 1 and (cos h - 1)/h -> 0. For a composite like sin(3x), the chain rule gives 3 cos(3x).

ddx[sinx]=cosx\frac{d}{dx}\left[\sin x\right] = \cos x

Proof from the limit definition

Start from the limit definition of the derivative and expand sin(x+h)\sin(x+h) with the angle-addition identity. Two special limits do all the work, so the proof is really about isolating them.

f(x)=limh0sin(x+h)sinxhf'(x) = \lim_{h \to 0} \frac{\sin(x+h) - \sin x}{h}

The identity sin(x+h)=sinxcosh+cosxsinh\sin(x+h) = \sin x \cos h + \cos x \sin h lets you substitute and then group the terms that contain sinx\sin x apart from the terms that contain cosx\cos x.

limh0sinxcosh+cosxsinhsinxh=limh0[sinxcosh1h+cosxsinhh]\lim_{h \to 0} \frac{\sin x \cos h + \cos x \sin h - \sin x}{h} = \lim_{h \to 0} \left[ \sin x \cdot \frac{\cos h - 1}{h} + \cos x \cdot \frac{\sin h}{h} \right]

Because xx is held fixed, sinx\sin x and cosx\cos x are constants with respect to hh and pull outside the limit. Now apply the two special limits. The first, limh0sinhh=1\lim_{h \to 0} \frac{\sin h}{h} = 1, comes from the Squeeze Theorem in Topic 1.8; the second, limh0cosh1h=0\lim_{h \to 0} \frac{\cos h - 1}{h} = 0, follows from it algebraically.

limh0sinhh=1,limh0cosh1h=0\lim_{h \to 0} \frac{\sin h}{h} = 1, \qquad \lim_{h \to 0} \frac{\cos h - 1}{h} = 0

Substituting these two values collapses the whole expression to a single term.

f(x)=sinx0+cosx1=cosxf'(x) = \sin x \cdot 0 + \cos x \cdot 1 = \cos x

Radians only. Both special limits hold only when hh is in radians. In degrees, limh0sinhh=π180\lim_{h \to 0} \frac{\sin h}{h} = \frac{\pi}{180}, so the derivative would carry that factor: ddx[sinx]=π180cosx\frac{d}{dx}[\sin x] = \frac{\pi}{180}\cos x. Every AP Calculus formula assumes radians, so keep your calculator in radian mode.

Where sin x derivatives show up on the AP exam

The derivative of sinx\sin x is introduced in Topic 2.7, Derivatives of cos x, sin x, e^x, and ln x, inside Unit 2, Differentiation: Definition and Fundamental Properties. Unit 2 carries 10-15% of the AB exam and 5-10% of the BC exam, and sinx\sin x rarely appears bare. It almost always sits inside a larger structure that decides which rule you reach for.

  • Chain rule composites (Topic 3.1): sin(3x)\sin(3x), sin(x2)\sin(x^2), or sin(ex)\sin(e^x), where you multiply cos(inner)\cos(\text{inner}) by the inner derivative.
  • Product and quotient rule (Topics 2.8 and 2.9): expressions like x2sinxx^2 \sin x or sinxx\frac{\sin x}{x} need ddx[sinx]=cosx\frac{d}{dx}[\sin x] = \cos x as one of the pieces.
  • Tables of values and graphical reasoning: free-response parts that ask for ff' at a point when ff involves sinx\sin x.
  • Motion and related rates (Unit 4): position functions with a sine term give velocity through this derivative.
  • BC series (Topic 10.14): the Maclaurin series of sinx\sin x depends on the repeating derivative pattern cosx\cos x, sinx-\sin x, cosx-\cos x, sinx\sin x.

Common mistakes to avoid

  1. Adding a wrong sign. The derivative of sinx\sin x is +cosx+\cos x, with no minus sign. The minus sign belongs to ddx[cosx]=sinx\frac{d}{dx}[\cos x] = -\sin x. Mixing up which one is negative is the single most common error.
  2. Dropping the chain rule on a composite. ddx[sin(3x)]=3cos(3x)\frac{d}{dx}[\sin(3x)] = 3\cos(3x), not cos(3x)\cos(3x). The inner derivative is a factor you cannot skip.
  3. Confusing sin(x2)\sin(x^2) with (sinx)2(\sin x)^2. The first is a sine of a composite, derivative 2xcos(x2)2x\cos(x^2); the second is a square of sine, derivative 2sinxcosx2\sin x \cos x. They are different functions with different rules.
  4. Working in degrees. If your calculator is in degree mode, a numerical derivative will be off by a factor of π180\frac{\pi}{180}. The formula cosx\cos x is a radians statement.
  5. Treating sinx\sin x like a power. There is no power rule here; you do not bring down an exponent. Use the memorized derivative cosx\cos x.

Chain rule composites: two worked examples

Both examples follow the same recognition step: the outer function is sin(something)\sin(\text{something}), so the derivative starts as cos(something)\cos(\text{something}), then multiplies by the derivative of the inside.

Example 1. Differentiate sin(3x2)\sin(3x^2). The inside is 3x23x^2, whose derivative is 6x6x.

ddx[sin(3x2)]=cos(3x2)6x=6xcos(3x2)\frac{d}{dx}\left[\sin(3x^2)\right] = \cos(3x^2) \cdot 6x = 6x\cos(3x^2)

Example 2. Differentiate sin(ex)\sin(e^x). The inside is exe^x, whose derivative is again exe^x.

ddx[sin(ex)]=cos(ex)ex=excos(ex)\frac{d}{dx}\left[\sin(e^x)\right] = \cos(e^x) \cdot e^x = e^x\cos(e^x)

In both cases the cos\cos keeps the original inside untouched, and the extra factor is exactly the inner derivative. Never simplify the inside of the cosine while you are still taking the derivative.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

Why is the derivative of sin x equal to cos x and not -cos x?

The limit-definition proof produces sinx0+cosx1\sin x \cdot 0 + \cos x \cdot 1, which is +cosx+\cos x with no minus sign. The minus sign shows up instead for ddx[cosx]=sinx\frac{d}{dx}[\cos x] = -\sin x, because there the surviving term is sinx1-\sin x \cdot 1.

Does the formula only work in radians?

Yes. The proof relies on limh0sinhh=1\lim_{h \to 0} \frac{\sin h}{h} = 1, which is only true when hh is in radians. In degrees that limit equals π180\frac{\pi}{180}, so the derivative would become π180cosx\frac{\pi}{180}\cos x. AP Calculus always uses radians.

What is the derivative of sin(2x)?

Apply the chain rule. The outer derivative is cos(2x)\cos(2x) and the inner derivative of 2x2x is 22, so ddx[sin(2x)]=2cos(2x)\frac{d}{dx}[\sin(2x)] = 2\cos(2x).

What is the second derivative of sin x?

Differentiate twice: ddx[sinx]=cosx\frac{d}{dx}[\sin x] = \cos x, then ddx[cosx]=sinx\frac{d}{dx}[\cos x] = -\sin x. So the second derivative is sinx-\sin x. The derivatives cycle every four steps through cosx\cos x, sinx-\sin x, cosx-\cos x, sinx\sin x.