Tangent to a product of x and cosine
Unit 3 Topic 2: Differentiation of trigonometric functions and differentiation rules
The question
Consider the function \(f(x)=x\cos (x)\).
- (a) Determine \(f'(x)\). [2 marks]
- (b) Determine \(f'(\pi )\). [1 mark]
- (c) Hence, determine the equation of the tangent to the graph of \(y=f(x)\) at \(x=\pi\). [2 marks]
The idea. \(x\cos(x)\) is a product, so differentiate it with the product rule. The derivative at \(\pi\) is the tangent's gradient, and \(f(\pi)\) is the point it touches.
The answer, one mark at a time
-
Part (a)
Use the product rule with \(u = x\) and \(v = \cos(x)\), so \(u' = 1\) and \(v' = -\sin(x)\).
\[f'(x) = 1 \cdot \cos(x) + x \cdot \left(-\sin(x)\right)\]\[f'(x) = \cos(x) - x\sin(x)\]correctly applies the product rule [1 mark] determines \(f'(x)\) [1 mark]
-
Part (b)
Put \(x = \pi\) into \(f'(x)\). Remember \(\cos(\pi) = -1\) and \(\sin(\pi) = 0\).
\[f'(\pi) = \cos(\pi) - \pi\sin(\pi)\]\[= -1 - \pi(0) = -1\]determines \(f'(\pi )\) [1 mark]
-
Part (c)
Part (b) gave the gradient. For the point, put \(x = \pi\) into \(f(x)\).
\[f(\pi) = \pi\cos(\pi) = -\pi\]\[\text{Point: } (\pi,\, -\pi)\]determines the point of contact [1 mark]
-
Use \(y - y_1 = m(x - x_1)\) with \(m = -1\) and the point \((\pi, -\pi)\), then expand. The \(\pi\) terms cancel.
\[y - (-\pi) = -1(x - \pi)\]\[y + \pi = -x + \pi\]\[y = -x\]determines the equation of the tangent [1 mark]
Answer
Watch for. Differentiating \(x\cos(x)\) as \(1 \times (-\sin x)\) skips the product rule. You need both terms: \(\cos(x) - x\sin(x)\).