DerivCalc
Mathematically reviewed · Published November 9, 2026 · How answers are verified

Derivative of sin(x²)

In sin(x²) the square sits inside the sine. The chain rule keeps cos(x²) and multiplies by 2x, the derivative of the inner function.

Answer
2x·cos(x²)
Differentiate with respect to x
Try sin(x²) in the calculator →

Step-by-step solution

1
Identify the layers

Let u=x². The outer function is sin(u); the inner function is x². In the calculator, type sin(x^2).

2
Differentiate both layers

(sin u)′=cos(u) and u′=2x. The outer derivative keeps the original inside: cos(x²).

3
Multiply

f′(x)=cos(x²)·2x=2x·cos(x²).

Domain and graph behavior

The function and its derivative are defined for every real x. sin(x²) is even, so its graph is symmetric about the y-axis, and the derivative 2x·cos(x²) is odd. Unlike sin(x), this function is not periodic: the oscillations get faster as |x| grows because x² grows faster than x. Turning points occur at x=0 (a minimum, value 0) and wherever cos(x²)=0, that is x=±√(π/2+kπ) for k=0, 1, 2, …; the first maximum is at x=√(π/2)≈1.2533.

Second derivative

Product rule on 2x·cos(x²): f″(x)=2cos(x²)−4x²sin(x²). At x=0, f″(0)=2, confirming the minimum. At the first maximum x=√(π/2), f″=−2π, so the curve is concave down there.

Common mistake

Do not confuse sin(x²) with sin²(x). sin(x²) squares the input, so its derivative is 2x·cos(x²). sin²(x) squares the output, so its derivative is 2sin(x)cos(x). A second common slip is writing cos(x²) and forgetting the factor 2x from the inner function.

Practice problems

Differentiate sin(x³)

Answer: 3x²·cos(x³): the inner derivative is now 3x².

Differentiate sin(5x²)

Answer: 10x·cos(5x²): the inner function 5x² has derivative 10x.

Why the oscillations speed up

The derivative contains the factor 2x, so the largest possible slope grows linearly with x. The first rise, from the minimum at x=0 to the maximum at x=√(π/2), covers about 1.25 units. By x≈5.5, consecutive turning points are only about 0.28 apart. Graphs of sin(x²) look like a spring being stretched tighter, which is a useful picture for exam questions about where the slope is largest.

Where sin(x²) appears

sin(x²) has no elementary antiderivative; its integral from 0 to x is a Fresnel integral, used in optics and in designing road and rail transition curves. By the Fundamental Theorem of Calculus, differentiating that integral simply returns sin(x²), and adding a chain-rule layer, as in d/dx of the integral from 0 to x², gives 2x·sin(x⁴).

A numerical check

At x=1 the formula gives 2cos(1)≈1.0806. At x=√π≈1.7725 it gives 2√π·cos(π)=−2√π≈−3.5449. Centered secants with h=0.0001 reproduce both values to at least five decimal places. At x=√(π/2) the derivative is exactly 0.

More worked variations

x·sin(x²): sin(x²)+2x²·cos(x²).

sin²(x²): 2sin(x²)·cos(x²)·2x=2x·sin(2x²).

sin(√x): cos(√x)/(2√x) for x>0.

Questions students ask

Is sin(x²) the same as sin(x)²?

No. sin(x)² usually means sin²(x), the square of the sine value. sin(x²) is the sine of the square. Writing brackets explicitly avoids this ambiguity.

Why is the derivative zero at x=0?

The factor 2x is zero there. The graph is flat at the origin, which is a minimum because sin(x²)≥0 near x=0.

See it: graph, values and a tangent line

Blue is sin(x²); dashed orange is 2x·cos(x²). Squaring the input speeds the wave up as you move away from 0, so the oscillations crowd together and the slope keeps growing.

−3−2−10123f(x) = sin(x²)f′(x) = 2x·cos(x²) (dashed)

Near x = 0 the curve is flat, because sin(x²) ≈ x² there. Further out the waves get narrower and the orange curve gets taller, since the inner derivative 2x keeps growing. The graph is symmetric: sin(x²) is an even function.

Peaks, valleys and zeros (where x² = 0, π/2, π, 3π/2, 2π)

xf(x)f′(x)f is…
000valley (flat)
√(π/2) ≈ 1.2510peak (flat)
√π ≈ 1.770−2√πfalling
√(3π/2) ≈ 2.17−10valley (flat)
√(2π) ≈ 2.5105.0133rising

Tangent line at x = √π

Height: f(√π) = 0. Slope: f′(√π) = −2√π.

Point-slope form: y = −2√π·(x − √π), so the tangent line is y ≈ −3.5449x + 6.2832.

At x = √π the curve crosses zero going down, already falling at slope −2√π ≈ −3.54, far steeper than sin(x) ever gets.

Check it numerically

Rise over run across a tiny gap at x = √π (h = 0.00001): [f(1.7725 + h) − f(1.7725 − h)] / 2h ≈ −3.54491, matching f′(√π) = −3.54491.

Second derivative

f″(x) = 2cos(x²) − 4x²·sin(x²). The second term grows with x², which is why the bends get sharper the further you go from the origin.

Related chain-rule derivatives

sin²(x)sin(x)e^(x²)sin(3x)ln(x²)

Review the chain rule and chain rule practice problems, or read our verification method and limitations.