Derivative of sin x², sin² x and sin 2x: three look-alikes, three answers

6 min readupdated 20 November 2026

Short answer The derivative of sin⁡2x\sin^2 x is 2sin⁡xcos⁡x2\sin x\cos x, which is sin⁡2x\sin 2x. The derivative of sin⁡2x\sin 2x is 2cos⁡2x2\cos 2x, and the derivative of sin⁡x2\sin x^2 is 2xcos⁡(x2)2x\cos(x^2). All three come from the chain rule.

On paper they differ only in where one small symbol sits:

sin⁡x2sin⁡2xsin⁡2x\sin x^2 \qquad \sin^2 x \qquad \sin 2x

Yet they are three different functions, and their derivatives have little in common:

(sin⁡x2)′=2xcos⁡(x2)(sin⁡2x)′=sin⁡2x(sin⁡2x)′=2cos⁡2x(\sin x^2)' = 2x\cos(x^2) \qquad (\sin^2 x)' = \sin 2x \qquad (\sin 2x)' = 2\cos 2x

All three come from the same rule, the chain rule. What changes from one to the next is which function sits on the outside. Once you can see that, each derivative takes two lines.

Is sin x² the same as sin² x?

No. Each of the three is a function of a function: two operations, done one after the other. To tell them apart, ask what a calculator would do last for a given xx. That last operation is the outer function; whatever happens before it is the inner one.

FunctionMeansInner uuOuter
sin⁡x2\sin x^2sin⁡(x2)\sin(x^2)x2x^2sin⁡u\sin u
sin⁡2x\sin^2 x(sin⁡x)2(\sin x)^2sin⁡x\sin xu2u^2
sin⁡2x\sin 2xsin⁡(2x)\sin(2x)2x2xsin⁡u\sin u
Three chains of two steps. For sin x squared: square x, then take the sine. For sine squared of x: take the sine, then square it. For sin 2x: double x, then take the sine. inner: done first outer: done last x x² u sin u sin x² x sin x u u² sin² x x 2x u sin u sin 2x
Each look-alike is two steps in a row. The green box runs first (the inner function), the blue one last (the outer function).

The notation behind the table: an exponent written on the name of the function, as in sin⁡2x\sin^2 x, squares the value of the sine. An exponent on the xx, as in sin⁡x2\sin x^2, squares the angle before the sine is taken.

Their graphs leave no doubt that these are different functions:

Graphs of sin x squared, sine squared of x and sin 2x for x from 0 to pi. They are three different curves. 1 −1 π/2 π sin x² sin² x sin 2x
On 0 ≤ x ≤ π: sin x² starts flat and then waves faster and faster, sin² x never drops below 0, and sin 2x completes a whole wave.

The chain rule in one line

For a function of a function, y=f(g(x))y = f\bigl(g(x)\bigr):

(f(g(x)))′=f′(g(x))⋅g′(x)\Bigl(f\bigl(g(x)\bigr)\Bigr)' = f'\bigl(g(x)\bigr)\cdot g'(x)

In words: differentiate the outer function and leave the inside untouched in it, then multiply by the derivative of the inside. Only two lines of the derivative table are needed below:

(sin⁡u)′=cos⁡u(u2)′=2u(\sin u)' = \cos u \qquad (u^2)' = 2u

1. sin⁡2x\sin 2x: the sine is outside

The calculator doubles xx first and takes the sine last, so the outer function is the sine and the inside is 2x2x.

(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}

That factor 22 has a plain meaning. sin⁡2x\sin 2x runs through its wave twice as fast as sin⁡x\sin x, so all its slopes are twice as steep:

Graphs of sin x and sin 2x near zero with their tangent lines at the origin: sin x starts with slope 1, sin 2x with slope 2. sin 2x peaks at pi over 4, sin x at pi over 2. 1 π/4 π/2 slope 2 slope 1 sin 2x sin x
Graphs of sin x and sin 2x.

2. sin⁡x2\sin x^2: the sine is outside again

The calculator squares xx first and takes the sine last. The outer function is again the sine, and the inside is now x2x^2.

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

A quick check against the graphs above: the derivative is zero where cos⁡(x2)=0\cos(x^2) = 0, first at x2=π2x^2 = \frac{\pi}{2}, that is at x=π/2≈1.25x = \sqrt{\pi/2} \approx 1.25. That is exactly where sin⁡x2\sin x^2 has its first peak.

3. sin⁡2x\sin^2 x: now the square is outside

Here the calculator takes the sine first and squares the result last. The outer function is the square, u2u^2, and the inside is sin⁡x\sin x.

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

The graph shows why that is right: wherever sin⁡2x\sin^2 x climbs, sin⁡2x\sin 2x is positive; at its peak, sin⁡2x\sin 2x is zero; and where it climbs fastest, at x=π4x = \frac{\pi}{4}, sin⁡2x\sin 2x reaches its largest value, 11.

Graph of sine squared of x and of its derivative sin 2x for x from 0 to pi. At pi over 4 the tangent to sine squared has slope 1 and sin 2x equals 1; at pi over 2 the slope is 0 and sin 2x equals 0. 1 −1 π/4 π/2 3π/4 π slope 1 slope 0 sin² x (sin² x)′ = sin 2x
Graphs of sin² x and its derivative, sin 2x.

The pattern

FunctionOuterInnerDerivative
sin⁡2x\sin 2xsine2x2x2cos⁡2x2\cos 2x
sin⁡x2\sin x^2sinex2x^22xcos⁡(x2)2x\cos(x^2)
sin⁡2x\sin^2 xsquaresin⁡x\sin x2sin⁡xcos⁡x=sin⁡2x2\sin x\cos x = \sin 2x

Every answer is a product of two pieces: the derivative of the outer function, with the inside left alone, and the derivative of the inside. An answer with only one piece has skipped a layer.

The same question, what would the calculator do last?, works for chains of any length. In sin⁡23x\sin^2 3x there are three layers: the square outside, then the sine, then 3x3x. The chain rule simply runs once per layer:

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

Try it

The same three shapes, now with the cosine and the number 33. Find the derivatives, then open the answers.

(a) cos⁡x3(b) cos⁡3x(c) cos⁡3x\text{(a)}\ \cos x^3 \qquad \text{(b)}\ \cos^3 x \qquad \text{(c)}\ \cos 3x
Answers

(a) The cosine is outside and the inside is x3x^3:

(cos⁡x3)′=−sin⁡(x3)⋅3x2=−3x2sin⁡(x3)(\cos x^3)' = -\sin(x^3)\cdot 3x^2 = -3x^2\sin(x^3)

(b) The cube is outside and the inside is cos⁡x\cos x:

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

(c) The cosine is outside and the inside is 3x3x:

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

Frequently asked questions

What is the derivative of sin²x?

2sin⁡xcos⁡x2\sin x\cos x, which is the same as sin⁡2x\sin 2x. The square is the outer function: its derivative, 2sin⁡x2\sin x, is multiplied by the derivative of the inside, cos⁡x\cos x.

What is the derivative of sin 2x?

2cos⁡2x2\cos 2x. The cosine keeps the inside 2x2x unchanged, and the 22 in front is the derivative of that inside.

What is the derivative of sin(x²)?

2xcos⁡(x2)2x\cos(x^2): the cosine of the same inside, times the derivative of x2x^2.

Is sin²x the same as sin x²?

No. sin⁡2x\sin^2 x squares the value of the sine, sin⁡x2\sin x^2 squares the angle before the sine is taken. The notation is explained in Is sin²x the same as (sin x)²?

What is the derivative of cos²x?

−2cos⁡xsin⁡x-2\cos x\sin x, which is −sin⁡2x-\sin 2x. It is the same chain as for sin⁡2x\sin^2 x, and the minus sign comes from (cos⁡x)′=−sin⁡x(\cos x)' = -\sin x.

What is the derivative of sin²(x/2)?

12sin⁡x\frac{1}{2}\sin x. The chain rule gives 2sin⁡x2⋅cos⁡x2⋅122\sin\frac{x}{2}\cdot\cos\frac{x}{2}\cdot\frac{1}{2}, and 2sin⁡x2cos⁡x2=sin⁡x2\sin\frac{x}{2}\cos\frac{x}{2} = \sin x. The same comes out of the half-angle formula sin⁡2x2=1−cos⁡x2\sin^2\frac{x}{2} = \frac{1 - \cos x}{2}.

  • 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