The Derivative of sin(x) Is cos(x)

April 12, 2026

Problem

Show that the derivative of sin(x) is cos(x) by visualizing the slope of the sine curve at each point.

Explanation

The most beautiful derivative result in calculus may be this:

ddx[sinx]=cosx\dfrac{d}{dx}\bigl[\sin x\bigr] = \cos x

It says that the slope of the sine curve at any point is exactly the value of the cosine function there. The two curves are intertwined: where sine reaches its peak, cosine is zero (the slope is flat). Where sine crosses zero on the way up, cosine is at its maximum (the slope is steepest).

The Physics — Just Limit Magic

Starting from the limit definition of the derivative:

ddx[sinx]=limh0sin(x+h)sinxh\dfrac{d}{dx}\bigl[\sin x\bigr] = \lim_{h\to 0}\dfrac{\sin(x + h) - \sin x}{h}

Use the angle-addition identity sin(x+h)=sinxcosh+cosxsinh\sin(x + h) = \sin x \cos h + \cos x \sin h:

=limh0sinxcosh+cosxsinhsinxh= \lim_{h\to 0}\dfrac{\sin x \cos h + \cos x \sin h - \sin x}{h}

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

The two fundamental trig limits are limh0sinhh=1\displaystyle\lim_{h\to 0}\dfrac{\sin h}{h} = 1 and limh0cosh1h=0\displaystyle\lim_{h\to 0}\dfrac{\cos h - 1}{h} = 0. Plugging in:

=sinx0+cosx1=cosx= \sin x \cdot 0 + \cos x \cdot 1 = \cos x

That's the proof in seven lines.

Step-by-Step Solution

Given: f(x)=sinxf(x) = \sin x. Find: the slope at x=ax = a for several values of aa, and verify it matches cosa\cos a.


Step 1 — Apply the formula.

We've shown f(x)=cosxf'(x) = \cos x. So at any point aa, the slope of sinx\sin x is cosa\cos a.

Step 2 — Tabulate at strategic points.

  • At x=0x = 0: sin0=0\sin 0 = 0, slope =cos0=1= \cos 0 = 1 → tangent rises at 45° ✓
  • At x=π/2x = \pi/2: sin(π/2)=1\sin(\pi/2) = 1 (peak), slope =cos(π/2)=0= \cos(\pi/2) = 0 → tangent is horizontal
  • At x=πx = \pi: sinπ=0\sin\pi = 0, slope =cosπ=1= \cos\pi = -1 → tangent descends at 45° ✓
  • At x=3π/2x = 3\pi/2: sin(3π/2)=1\sin(3\pi/2) = -1 (trough), slope =cos(3π/2)=0= \cos(3\pi/2) = 0 → tangent is horizontal
  • At x=2πx = 2\pi: back to 0, slope =1= 1, the cycle repeats ✓

The pattern is clear: the slope of sine is maximum (+1+1) at the zero-crossings going up, zero at the peaks and troughs, and minimum (1-1) at the zero-crossings going down. That's exactly the shape of cosx\cos x, shifted so that its peak aligns with sine's steepest ascent.

Step 3 — Verify with a specific intermediate point: x=π/4x = \pi/4.

sin(π/4)=220.707\sin(\pi/4) = \dfrac{\sqrt{2}}{2} \approx 0.707

cos(π/4)=220.707\cos(\pi/4) = \dfrac{\sqrt{2}}{2} \approx 0.707

So the slope of sinx\sin x at x=π/4x = \pi/4 is approximately 0.7070.707. The tangent line at that point has equation:

y=0.707(xπ/4)+0.707y = 0.707\,(x - \pi/4) + 0.707


Answer: ddx[sinx]=cosx\dfrac{d}{dx}[\sin x] = \cos x. The slope of the sine curve at any point xx is exactly the value of cosx\cos x at that same point. The two functions are derivatives of each other (in a chain: sin=cos\sin' = \cos, cos=sin\cos' = -\sin, sin=cos-\sin' = -\cos, cos=sin-\cos' = \sin, back to start after four steps).

Try It

  • Slide the point along the sine curve — watch the cyan tangent line rotate.
  • The lower panel shows cosx\cos x in pink. The yellow dot tracks the current slope (read off the upper curve as the tangent's steepness, and read off the lower curve as the value of cos at that x).
  • Notice that wherever sinx\sin x reaches a peak, cosx\cos x crosses zero — the slope is flat at the top of a wave.
  • Wherever sinx\sin x crosses zero going up, cosx\cos x is at its maximum (+1+1) — that's the steepest ascent.

Interactive Visualization

Parameters

1.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
The Derivative of sin(x) Is cos(x) | MathSpin