Skip to content
ihateDesmos

Derivative of sin 2x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The derivative of sin 2x
ddx(sin(2x))=2cos(2x)

The derivative of sin 2x is 2 cos 2x. The chain rule brings out a factor of 2, because the inside function 2x changes 2 times as fast as x.

−3−2−1123−220
Open in calculator
y=sin(2x)
in blue and its derivative
y=2cos(2x)
in red.

How to find the derivative of sin 2x

Method: chain rule.

  1. 1
    Let u = 2x, so the function is sin u.
  2. 2
    The derivative of the outside function sin u with respect to u is cos u.
  3. 3
    The derivative of the inside function is du/dx = 2.
  4. 4
    Multiply them: d/dx sin 2x = cos(2x) · 2 = 2 cos 2x.

What it means on the graph

sin 2x oscillates 2 times as fast as sin x, so its steepest slope is 2 instead of 1. That is why the derivative has amplitude 2.

In the window shown, the derivative is zero at x = −3π/4, x = −π/4, x = π/4, x = 3π/4. Those are the points where the graph of sin 2x has a horizontal tangent.

Table of values

The derivative column uses the formula. The last column estimates the slope directly from the original function, as an independent check.

Values of sin 2x and its derivative
xsin 2x2 cos 2xSlope, measured
−2.510.953060.6055650.605565
−1.57−0.00159265−2−2
−0.628−0.9508590.6192460.619246
0022
0.9420.951351−0.616216−0.616216
1.88−0.579738−1.62961−1.62961
2.51−0.953060.6055650.605565

Second derivative

Differentiating once more gives:

d2dx2(sin(2x))=−4sin(2x)

The second derivative tells you which way the graph bends: positive means it curves upward, and negative means it curves downward.

Related derivatives

The same result with the chain or product rule. Each of these is checked numerically too.

Related derivatives
FunctionDerivative
sin(2x+1)
2cos(2x+1)
xsin(2x)
sin(2x)+2xcos(2x)

Common mistakes

  • Writing cos 2x and forgetting the factor of 2 from the chain rule.
  • Writing 2 cos x, which changes the inside of the function. The 2x stays inside.

Frequently asked questions

What is the derivative of sin 2x?
The derivative of sin 2x is 2 cos 2x.
What is the second derivative of sin 2x?
Differentiate 2 cos 2x again to get the second derivative. The result is shown on this page under “Second derivative”.
What is the second derivative of sin 2x?
−4 sin 2x. Each derivative brings out another factor of 2, and two derivatives of sine give a minus sign.

Keep going

Differentiate any function

Type your own function into the derivative calculator and see every rule applied, step by step.

Open the derivative calculator