Skip to content
ihateDesmos

Derivative of sin 3x

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

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

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

How to find the derivative of sin 3x

Method: chain rule.

  1. 1
    Let u = 3x, 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 = 3.
  4. 4
    Multiply them: d/dx sin 3x = cos(3x) · 3 = 3 cos 3x.

What it means on the graph

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

In the window shown, the derivative is zero at x = −5π/6, x = −π/2, x = −π/6, x = π/6, x = π/2, x = 5π/6. Those are the points where the graph of sin 3x 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 3x and its derivative
xsin 3x3 cos 3xSlope, measured
−2.51−0.9479750.9550310.955031
−1.570.999997−0.00716693−0.00716693
−0.628−0.951351−0.924324−0.924324
0033
0.9420.31038−2.85184−2.85184
1.88−0.5997472.400572.40057
2.510.9479750.9550310.955031

Second derivative

Differentiating once more gives:

d2dx2(sin(3x))=−9sin(3x)

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(3x+1)
3cos(3x+1)
xsin(3x)
sin(3x)+3xcos(3x)

Common mistakes

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

Frequently asked questions

What is the derivative of sin 3x?
The derivative of sin 3x is 3 cos 3x.
What is the second derivative of sin 3x?
Differentiate 3 cos 3x again to get the second derivative. The result is shown on this page under “Second derivative”.
What is the second derivative of sin 3x?
−9 sin 3x. Each derivative brings out another factor of 3, 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