Differentiate x cos x with the product rule
Unit 3 Topic 2: Differentiation of trigonometric functions and differentiation rules
The question
Determine the derivative of \(f(x)=x\cos (x)\) using the product rule.
The idea. \(x\cos(x)\) is one function times another, so use the product rule: \((uv)' = u'v + uv'\).
The answer, one mark at a time
-
Let \(u = x\) and \(v = \cos(x)\), and differentiate each. Then put them into \(f'(x) = u'v + uv'\).
\[u = x, \quad u' = 1\]\[v = \cos(x), \quad v' = -\sin(x)\]\[f'(x) = 1 \cdot \cos(x) + x \cdot (-\sin(x))\]correctly applies the product rule [1 mark]
-
Tidy up the signs. As a check, at \(x = \frac{\pi}{2}\) this gives \(0 - \frac{\pi}{2} = -\frac{\pi}{2}\), the slope of the tangent in the figure.
\[f'(x) = \cos(x) - x\sin(x)\]determines \(f'(x)\) [1 mark]
Answer
Watch for. The derivative of \(\cos(x)\) is \(-\sin(x)\). Losing that negative gives \(\cos(x) + x\sin(x)\), which is wrong.