Calculus · The special functions

The derivatives of sine and cosine

Two waves that differentiate into one another in a circle.

A wave that comes back to itself

Differentiate \sin x four times in a row and you land back on exactly \sin x. No polynomial does that — a polynomial is wiped out to zero after a few differentiations. What is it about a wave that lets it come back?

The power rule says nothing about a wave, and no amount of rewriting will turn one into a power. The two derivatives below have to be learned, but the picture makes them almost impossible to forget.

\frac{d}{dx}\left[\sin x\right] = \cos x \qquad \frac{d}{dx}\left[\cos x\right] = -\sin x

The cosine is the sine shifted by a quarter turn — and that is exactly the derivative.

Two worked examples

Example 1 — a wave with a coefficient

  1. Take y = 4\sin x - 2\cos x.
  2. The constants come through untouched.
  3. The sine gives a cosine, the cosine a negative sine. 4\cos x - 2(-\sin x)
  4. The two minus signs make a plus. y' = 4\cos x + 2\sin x

Example 2 — a wave inside a chain

  1. Take y = \sin(3x); the inside is 3x.
  2. The outside gives a cosine, the inside left whole. \cos(3x)
  3. Multiply by the derivative of the inside. \times 3
  4. So a frequency in the argument becomes a factor in front. 3\cos(3x)
A calculator: y = a\sin(kx) + b\cos(kx) and its derivative — sliders for The sine coefficient, a, The cosine coefficient, b, The frequency k, The point x, with results that update at once on a graph.