Derivative of sin 2x: why the answer is 2 cos 2x

5 min read

Short answer The derivative of sin⁡2x\sin 2x is 2cos⁡2x2\cos 2x. The sine turns into the cosine of the same angle, 2x2x, and the chain rule multiplies by the derivative of that angle, which is 22.

The most common wrong answer is cos⁡2x\cos 2x. It is half of the right one: the factor 22 that comes from the inside has been left out.

The chain rule, step by step

sin⁡2x\sin 2x is a function of a function. For a given xx, a calculator doubles it first and takes the sine last. So the inner function is u=2xu = 2x and the outer function is sin⁡u\sin u.

The chain rule says: differentiate the outer function and leave the inside untouched in it, then multiply by the derivative of the inside.

(sin⁡u)′=cos⁡u⋅u′\bigl(\sin u\bigr)' = \cos u \cdot u'

With u=2xu = 2x:

(sin⁡2x)′=cos⁡2x⋅(2x)′=cos⁡2x⋅2=2cos⁡2x\begin{aligned} (\sin 2x)' &= \cos 2x \cdot (2x)' \\ &= \cos 2x \cdot 2 \\ &= 2\cos 2x \end{aligned}

Where the 2 comes from

sin⁡2x\sin 2x runs through its wave twice as fast as sin⁡x\sin x: it finishes a whole wave on 0≤x≤π0 \le x \le \pi, where sin⁡x\sin x manages only half of one. A graph that is squeezed to half its width is twice as steep everywhere, and the derivative measures exactly that steepness.

The graph agrees with the formula at every point. At x=0x = 0 the curve sin⁡2x\sin 2x climbs with slope 2cos⁡0=22\cos 0 = 2. At its peak, x=π4x = \frac{\pi}{4}, the slope is 2cos⁡π2=02\cos\frac{\pi}{2} = 0. At x=π2x = \frac{\pi}{2} it falls most steeply, with slope 2cos⁡π=−22\cos\pi = -2.

Graph of sin 2x and of its derivative 2 cos 2x for x from 0 to pi. At 0 the derivative equals 2; at pi over 4, where sin 2x peaks, the derivative is 0; at pi over 2 it equals minus 2. 2 1 −1 −2 π/4 π/2 3π/4 π sin 2x (sin 2x)′ = 2 cos 2x
Graphs of sin 2x and its derivative, 2 cos 2x.

Check 1: the double-angle formula

There is a second road to the same answer that uses no chain rule at all. By the double-angle formula, sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x, a product of two functions. The product rule gives:

(2sin⁡xcos⁡x)′=2[(sin⁡x)′cos⁡x+sin⁡x (cos⁡x)′]=2[cos⁡xcos⁡x+sin⁡x⋅(−sin⁡x)]=2(cos⁡2x−sin⁡2x)=2cos⁡2x\begin{aligned} (2\sin x\cos x)' &= 2\bigl[(\sin x)'\cos x + \sin x\,(\cos x)'\bigr] \\ &= 2\bigl[\cos x\cos x + \sin x\cdot(-\sin x)\bigr] \\ &= 2\bigl(\cos^2 x - \sin^2 x\bigr) \\ &= 2\cos 2x \end{aligned}

The last line uses the other double-angle formula, cos⁡2x=cos⁡2x−sin⁡2x\cos 2x = \cos^2 x - \sin^2 x. Two different rules, one answer.

Check 2: from first principles

If the question says “from first principles” or “by the definition”, start from the limit:

(sin⁡2x)′=lim⁡h→0sin⁡(2x+2h)−sin⁡2xh(\sin 2x)' = \lim_{h\to 0}\frac{\sin(2x + 2h) - \sin 2x}{h}

The difference of two sines becomes a product by the formula sin⁡A−sin⁡B=2cos⁡A+B2sin⁡A−B2\sin A - \sin B = 2\cos\frac{A+B}{2}\sin\frac{A-B}{2}. Here A=2x+2hA = 2x + 2h and B=2xB = 2x, so A+B2=2x+h\frac{A+B}{2} = 2x + h and A−B2=h\frac{A-B}{2} = h:

(sin⁡2x)′=lim⁡h→02cos⁡(2x+h)sin⁡hh=2 lim⁡h→0cos⁡(2x+h)⋅lim⁡h→0sin⁡hh=2⋅cos⁡2x⋅1=2cos⁡2x\begin{aligned} (\sin 2x)' &= \lim_{h\to 0}\frac{2\cos(2x + h)\sin h}{h} \\ &= 2\,\lim_{h\to 0}\cos(2x + h)\cdot\lim_{h\to 0}\frac{\sin h}{h} \\ &= 2\cdot\cos 2x\cdot 1 \\ &= 2\cos 2x \end{aligned}

The only fact needed is the basic limit lim⁡h→0sin⁡hh=1\lim\limits_{h\to 0}\frac{\sin h}{h} = 1.

The same idea for any number

Nothing above depends on the number being 22. For any constant kk:

(sin⁡kx)′=kcos⁡kx(cos⁡kx)′=−ksin⁡kx(\sin kx)' = k\cos kx \qquad (\cos kx)' = -k\sin kx
FunctionInsideDerivative
sin⁡2x\sin 2x2x2x2cos⁡2x2\cos 2x
sin⁡3x\sin 3x3x3x3cos⁡3x3\cos 3x
sin⁡x2\sin\frac{x}{2}x2\frac{x}{2}12cos⁡x2\frac{1}{2}\cos\frac{x}{2}
sin⁡(2x+5)\sin(2x + 5)2x+52x + 52cos⁡(2x+5)2\cos(2x + 5)
cos⁡2x\cos 2x2x2x−2sin⁡2x-2\sin 2x

Do not confuse sin⁡2x\sin 2x with 2sin⁡x2\sin x. In 2sin⁡x2\sin x the 22 is a constant factor in front and there is no inner function, so (2sin⁡x)′=2cos⁡x(2\sin x)' = 2\cos x.

When sin 2x is part of something bigger

A product, xsin⁡2xx\sin 2x. The product rule comes first, and the chain rule is used inside it:

(xsin⁡2x)′=(x)′sin⁡2x+x (sin⁡2x)′=1⋅sin⁡2x+x⋅2cos⁡2x=sin⁡2x+2xcos⁡2x\begin{aligned} (x\sin 2x)' &= (x)'\sin 2x + x\,(\sin 2x)' \\ &= 1\cdot\sin 2x + x\cdot 2\cos 2x \\ &= \sin 2x + 2x\cos 2x \end{aligned}

A power, sin⁡22x\sin^2 2x. Now there are three layers: the square outside, then the sine, then 2x2x. The chain rule runs once per layer:

(sin⁡22x)′=2sin⁡2x⋅(sin⁡2x)′=2sin⁡2x⋅2cos⁡2x=2⋅2sin⁡2xcos⁡2x=2sin⁡4x\begin{aligned} (\sin^2 2x)' &= 2\sin 2x\cdot(\sin 2x)' \\ &= 2\sin 2x\cdot 2\cos 2x \\ &= 2\cdot 2\sin 2x\cos 2x \\ &= 2\sin 4x \end{aligned}

The last step is the double-angle formula again, this time with the angle 2x2x: 2sin⁡2xcos⁡2x=sin⁡4x2\sin 2x\cos 2x = \sin 4x.

The second derivative. Differentiate the answer once more:

(sin⁡2x)′′=(2cos⁡2x)′=2⋅(−sin⁡2x)⋅2=−4sin⁡2x\begin{aligned} (\sin 2x)'' &= (2\cos 2x)' \\ &= 2\cdot(-\sin 2x)\cdot 2 \\ &= -4\sin 2x \end{aligned}

Every derivative brings out one more factor 22.

Try it

Find the derivatives, then open the answers.

(a) sin⁡5x(b) cos⁡2x(c) x2sin⁡2x\text{(a)}\ \sin 5x \qquad \text{(b)}\ \cos 2x \qquad \text{(c)}\ x^2\sin 2x
Answers

(a) The sine is outside and the inside is 5x5x:

(sin⁡5x)′=cos⁡5x⋅5=5cos⁡5x(\sin 5x)' = \cos 5x\cdot 5 = 5\cos 5x

(b) The cosine is outside and the inside is 2x2x:

(cos⁡2x)′=−sin⁡2x⋅2=−2sin⁡2x(\cos 2x)' = -\sin 2x\cdot 2 = -2\sin 2x

(c) The product rule first, then the chain rule for sin⁡2x\sin 2x:

(x2sin⁡2x)′=2x⋅sin⁡2x+x2⋅2cos⁡2x=2xsin⁡2x+2x2cos⁡2x\begin{aligned} (x^2\sin 2x)' &= 2x\cdot\sin 2x + x^2\cdot 2\cos 2x \\ &= 2x\sin 2x + 2x^2\cos 2x \end{aligned}

Three functions that look almost like this one, sin⁡x2\sin x^2, sin⁡2x\sin^2 x and sin⁡2x\sin 2x, are compared side by side in Derivative of sin x², sin² x and sin 2x.

Frequently asked questions

What is the derivative of sin 2x?

2cos⁡2x2\cos 2x. The sine becomes the cosine of the same angle 2x2x, and the chain rule multiplies by 22, the derivative of 2x2x.

Why is the derivative of sin 2x not cos 2x?

Because 2x2x is an inner function, and the chain rule multiplies by its derivative, 22. Without that factor the slopes would be half as steep as the graph of sin⁡2x\sin 2x really is.

What is the second derivative of sin 2x?

−4sin⁡2x-4\sin 2x. The first derivative is 2cos⁡2x2\cos 2x, and differentiating again gives 2⋅(−sin⁡2x)⋅22\cdot(-\sin 2x)\cdot 2.

What is the derivative of x sin 2x?

sin⁡2x+2xcos⁡2x\sin 2x + 2x\cos 2x, by the product rule, with the chain rule for the factor sin⁡2x\sin 2x.

What is the derivative of sin² 2x?

4sin⁡2xcos⁡2x4\sin 2x\cos 2x, which is the same as 2sin⁡4x2\sin 4x.

What is the derivative of cos 2x?

−2sin⁡2x-2\sin 2x. The cosine becomes minus the sine of the same angle, times 22.

What is the integral of sin 2x?

−12cos⁡2x+C-\frac{1}{2}\cos 2x + C. Differentiating it gives −12⋅(−sin⁡2x)⋅2=sin⁡2x-\frac{1}{2}\cdot(-\sin 2x)\cdot 2 = \sin 2x, which confirms it.

Is sin 2x the same as 2 sin x?

No. sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x, so the two differ by the factor cos⁡x\cos x. What sin⁡2x\sin 2x and sin⁡2x\sin^2 x mean is explained in Is sin²x the same as (sin x)²?

  • derivative of sin 2x
  • chain rule
  • derivatives
  • trigonometric functions

More on derivatives

← All lessons

Free download

The trigonometry formula sheet

Every trigonometry formula on nine printable pages: exact values, the reduction rules, every identity, and a full-page unit circle chart. No sign-up, just the PDF.

Download the PDF