Derivative of cos(x2)
The derivative of cos(x^2) is −2x sin(x^2), by the chain rule.
📐 The chain rule
d/dx cos u = −sin u · du/dx.
d/dx cos(x2) = −2x sin(x2).
✍️ Differentiating cos(x2)
- Chain rule with u = x2: d/dx cos u = −sin u · du/dx.
- du/dx = 2x.
- So d/dx cos(x2) = −sin(x2) × 2x = −2x sin(x2).
🔍 Where the rule comes from
Two things to carry: the minus sign from the derivative of cos, and the 2x from the inside. Compare cos2 x = (cos x)2, whose derivative is −2 sin x cos x = −sin 2x.
📍 The slope of cos(x2) at a point, and the tangent line
f′(a) is the slope of the graph at x = a, and the tangent line there is y = f′(a)(x − a) + f(a). Values to four decimal places; the calculator below gives any other point.
| Point | cos(x2) | −2x sin(x2) | Tangent line |
|---|---|---|---|
| x = −2 | −0.6536 | −3.0272 | y = −3.0272x − 6.7081 |
| x = −1 | 0.5403 | 1.6829 | y = 1.6829x + 2.2232 |
| x = −0.5 | 0.9689 | 0.2474 | y = 0.2474x + 1.0926 |
| x = 0 | 1 | 0 | y = 1 |
| x = 0.5 | 0.9689 | −0.2474 | y = −0.2474x + 1.0926 |
| x = 1 | 0.5403 | −1.6829 | y = −1.6829x + 2.2232 |
| x = 2 | −0.6536 | 3.0272 | y = 3.0272x − 6.7081 |
| x = 3 | −0.9111 | −2.4727 | y = −2.4727x + 6.507 |
👪 Trigonometric functions: the derivatives side by side
The same rule, or the same trap, runs through the whole family; each row has its own worked page.
⚠️ The mistakes that lose the marks
- Confusing cos(x2) with cos2 x.
- Losing the minus sign or the 2x.
🧮 Calculator
The answer appears here, with the working in words.
✏️ Five questions, answers hidden
1. Differentiate sin(x^2).
Answer: 2x cos(x^2)
2. Differentiate cos(2x^2).
Answer: −4x sin(2x^2)
3. Differentiate cos^2 x.
Answer: −2 sin x cos x = −sin 2x
4. What is the slope of y = cos(x^2) at x = 0?
Answer: 0
5. Differentiate cos(x^2 + 1).
Answer: −2x sin(x^2 + 1)
📚 The class this belongs to
Derivatives are taught in AP Calculus AB and BC and in Calculus 1 in the US (the power, product, quotient and chain rules, trigonometric, exponential and logarithmic derivatives, implicit differentiation), in A-level Maths (Year 12 and 13, Pure) in the UK, in IB Mathematics Analysis and Approaches (Topic 5), in Class 11 and 12 in CBSE (NCERT Limits and Derivatives, Continuity and Differentiability) and in Mathematical Methods (Units 3 and 4) and Specialist Mathematics in Australia.
If this page is the homework and the method is not sticking, that is what a 1-on-1 class fixes: one tutor with a master's degree, one child, on a shared whiteboard, in your time zone, about US$10 to $13 an hour. How 1-on-1 online tutoring works.
