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.
Step-by-step solution
Let u=x². The outer function is sin(u); the inner function is x². In the calculator, type sin(x^2).
(sin u)′=cos(u) and u′=2x. The outer derivative keeps the original inside: cos(x²).
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.
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π)
| x | f(x) | f′(x) | f is… |
|---|---|---|---|
| 0 | 0 | 0 | valley (flat) |
| √(π/2) ≈ 1.25 | 1 | 0 | peak (flat) |
| √π ≈ 1.77 | 0 | −2√π | falling |
| √(3π/2) ≈ 2.17 | −1 | 0 | valley (flat) |
| √(2π) ≈ 2.51 | 0 | 5.0133 | rising |
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
Review the chain rule and chain rule practice problems, or read our verification method and limitations.