d/dxDerivCalc

Derivative of cos(2x)

cos(2x) stacks the two most-forgotten details in beginner differentiation — cosine's minus sign and the chain rule's inner factor — into a single problem.

Answer
d/dx [cos(2x)]  =  −2 sin(2x)
Rule used: Chain rule
Open cos(2x) in the calculator →

Step-by-step solution

1
Spot the composition

Outer function cosine, inner function u = 2x. Chain rule required.

2
Differentiate the outside

d/du[cos(u)] = −sin(u), so the outer derivative is −sin(2x) — minus sign included, inside untouched.

3
Multiply by the inner derivative

The inside 2x differentiates to 2: f′(x) = −2 sin(2x).

Why it works

Both pieces of the answer carry independent meaning. The minus sign says cos(2x) starts at its peak (value 1 at x = 0) and immediately falls, so its slope must go negative first. The 2 says it falls twice as fast as ordinary cosine, because the doubled frequency compresses the whole wave horizontally without changing its height.

This function is also a quiet workhorse of trig identities: cos(2x) equals 1 − 2sin²(x), and differentiating that form with the chain rule gives −4 sin(x)cos(x) = −2 sin(2x) — the same answer by a completely different route. Cross-checking derivatives through identities like this is one of the best habits a calculus student can build.

Common mistakes

Practice problems

Differentiate cos(3x)

Answer: −3 sin(3x).

Differentiate 5 cos(2x)

Answer: −10 sin(2x).

Find the second derivative of cos(2x)

Answer: −4 cos(2x).

Related derivatives

sin(2x)cos(x)sin(x)