Skip to content
ihateDesmos

Derivative of cos 2x

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

The derivative of cos 2x is −2 sin 2x. The minus sign comes from the derivative of cosine, and the factor of 2 comes from the chain rule.

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

How to find the derivative of cos 2x

Method: chain rule.

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

What it means on the graph

cos 2x completes a cycle 2 times as quickly as cos x, so it can change 2 times as fast. The derivative is largest in size where the graph crosses the axis, and zero at its peaks and troughs.

In the window shown, the derivative is zero at x = −π, x = −π/2, x = 0, x = π/2, x = π. Those are the points where the graph of cos 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 cos 2x and its derivative
xcos 2x−2 sin 2xSlope, measured
−2.510.302783−1.90612−1.90612
−1.57−0.9999990.003185310.00318531
−0.6280.3096231.901721.90172
0100
0.942−0.308108−1.9027−1.9027
1.88−0.8148031.159481.15948
2.510.3027831.906121.90612

Second derivative

Differentiating once more gives:

d2dx2(cos(2x))=−4cos(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
cos(2x−3)
−2sin(2x−3)

Common mistakes

  • Dropping the minus sign. The derivative of cosine is negative sine.
  • Forgetting the factor of 2.

Frequently asked questions

What is the derivative of cos 2x?
The derivative of cos 2x is −2 sin 2x.
What is the second derivative of cos 2x?
Differentiate −2 sin 2x again to get the second derivative. The result is shown on this page under “Second derivative”.

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