Skip to content
ihateDesmos

Derivative of sin²x

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

The derivative of sin²x is 2 sin x cos x, which is also sin 2x. It is the power rule combined with the chain rule.

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

How to find the derivative of sin²x

Method: chain rule.

  1. 1
    Write the function as (sin x)², with u = sin x.
  2. 2
    The power rule on the outside gives 2u = 2 sin x.
  3. 3
    The derivative of the inside is cos x.
  4. 4
    Multiply them: 2 sin x cos x.
  5. 5
    Using the double angle identity, this equals sin 2x.

What it means on the graph

sin²x wobbles between 0 and 1 with period π. Its slope is 0 at each peak and valley, and sin 2x is 0 at those same places.

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 sin²x 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²x and its derivative
xsin²x2 sin x cos xSlope, measured
−2.510.3486090.953060.95306
−1.570.999999−0.00159265−0.00159265
−0.6280.345189−0.950859−0.950859
0000
0.9420.6540540.9513510.951351
1.880.907401−0.579738−0.579738
2.510.348609−0.95306−0.95306

Second derivative

Differentiating once more gives:

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

Common mistakes

  • Writing 2 sin x, by forgetting the chain rule’s factor of cos x.
  • Writing cos²x, which differentiates the wrong way.

Frequently asked questions

What is the derivative of sin²x?
The derivative of sin²x is 2 sin x cos x.
What is the second derivative of sin²x?
Differentiate 2 sin x cos x again to get the second derivative. The result is shown on this page under “Second derivative”.
Is the derivative of sin²x equal to sin 2x?
Yes. 2 sin x cos x and sin 2x are the same function, by the double angle identity.

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