Differentiate x cos x with the product rule

Question MM3-131 Simple familiar 2 marks Technology-free

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'\).

Figure for question MM3-131The curve y equals x cos x rises a little above the x-axis, then falls through it at x equals pi on 2 and keeps falling to about negative 3. A tangent touches the curve at pi on 2 with gradient negative pi on 2.−3−2−11xy
At \(x = \frac{\pi}{2}\), \(f'(x)\) gives \(-\frac{\pi}{2}\), the gradient of the tangent.

The answer, one mark at a time

  1. 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]

  2. 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

\(\displaystyle f'(x) = \cos(x) - x\sin(x)\)

Watch for. The derivative of \(\cos(x)\) is \(-\sin(x)\). Losing that negative gives \(\cos(x) + x\sin(x)\), which is wrong.