Tangent to a product of x and cosine

Question MM3-132 Simple familiar 5 marks Technology-free

Unit 3 Topic 2: Differentiation of trigonometric functions and differentiation rules

The question

Consider the function \(f(x)=x\cos (x)\).

  1. (a) Determine \(f'(x)\). [2 marks]
  2. (b) Determine \(f'(\pi )\). [1 mark]
  3. (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.

Figure for question MM3-132The curve y equals x cos x rises a little from the origin, crosses the x-axis at pi on 2 and dips to about negative 3.3 just past x equals pi. The orange tangent at the point pi, negative pi is the line y equals negative x, which also passes through the origin.−4−3−2−11xy

The answer, one mark at a time

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

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

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

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

(a)\(\displaystyle f'(x) = \cos(x) - x\sin(x)\)
(b)\(\displaystyle f'(\pi) = -1\)
(c)\(\displaystyle y = -x\)

Watch for. Differentiating \(x\cos(x)\) as \(1 \times (-\sin x)\) skips the product rule. You need both terms: \(\cos(x) - x\sin(x)\).