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(x2))=2xcos(x2)

The derivative of sin(x²) is 2x cos(x²). The x² stays inside the cosine, and the chain rule multiplies by its derivative, 2x.

−3−2−1123−550
Open in calculator
y=sin(x2)
in blue and its derivative
y=2xcos(x2)
in red.

How to find the derivative of sin(x²)

Method: chain rule.

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

What it means on the graph

sin(x²) oscillates faster and faster as x grows, because x² grows faster than x. The factor of 2x in the derivative shows the same thing: the possible slope increases with x.

In the window shown, the derivative is zero at 9 points in this window. 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(x²)2x cos(x²)Slope, measured
−2−0.7568022.614572.61457
−10.841471−1.0806−1.0806
0000
10.8414711.08061.0806
2−0.756802−2.61457−2.61457

Second derivative

Differentiating once more gives:

d2dx2(sin(x2))=2cos(x2)−4x2sin(x2)

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(x2)
−2xsin(x2)
sin(x3)
3x2cos(x3)

Common mistakes

  • Writing cos(2x), which differentiates the inside but puts it in the wrong place.
  • Confusing sin(x²) with sin²x. Those are different functions.

Frequently asked questions

What is the derivative of sin(x²)?
The derivative of sin(x²) is 2x cos(x²).
What is the second derivative of sin(x²)?
Differentiate 2x cos(x²) again to get the second derivative. The result is shown on this page under “Second derivative”.
What is the difference between sin(x²) and sin²x?
sin(x²) squares x first and then takes the sine. sin²x takes the sine first and then squares. Their derivatives are 2x cos(x²) and 2 sin x cos x.

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