Find a constant from a given gradient

Question MM3-067 Simple familiar 4 marks Technology-free

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

The question

Consider the function \(f(x)=a\sin (2x)+3\cos (x)\), where \(a\) is a constant.

  1. (a) Determine \(f'(x)\). [2 marks]
  2. (b) Given that \(f'(\frac{\pi }{2})=5\), determine the value of \(a\). [2 marks]

The idea. Differentiate with \(a\) left in as a letter. Putting \(x = \frac{\pi}{2}\) into \(f'(x)\) then gives an equation in \(a\) alone, which you solve.

Figure for question MM3-067A dashed vertical line marks x equals pi on 2. The curve y equals negative 4 sin 2x plus 3 cos x passes through the point pi on 2, 0, and a tangent there rises with gradient 5.−6−4−2246xy
With \(a = -4\), the curve's gradient at \(x = \frac{\pi}{2}\) is 5.

The answer, one mark at a time

  1. Part (a)

    Treat \(a\) as a number. The chain rule gives \(\frac{d}{dx}\sin(2x) = 2\cos(2x)\), and the derivative of \(\cos(x)\) is \(-\sin(x)\).

    \[\frac{d}{dx}\left(a\sin(2x)\right) = 2a\cos(2x)\]
    \[\frac{d}{dx}\left(3\cos(x)\right) = -3\sin(x)\]
    \[f'(x) = 2a\cos(2x) - 3\sin(x)\]

    differentiates \(a\sin (2x)\) [1 mark] differentiates \(3\cos (x)\) [1 mark]

  2. Part (b)

    Put \(x = \frac{\pi}{2}\) into \(f'(x)\). Use \(\cos(\pi) = -1\) and \(\sin\left(\frac{\pi}{2}\right) = 1\).

    \[f'\left(\frac{\pi}{2}\right) = 2a\cos(\pi) - 3\sin\left(\frac{\pi}{2}\right)\]
    \[= 2a(-1) - 3(1)\]
    \[= -2a - 3\]

    substitutes \(x=\frac{\pi }{2}\) [1 mark]

  3. The question says this gradient is 5. Set them equal and solve for \(a\).

    \[-2a - 3 = 5\]
    \[-2a = 8\]
    \[a = -4\]

    determines \(a\) [1 mark]

Answer

(a)\(\displaystyle f'(x) = 2a\cos(2x) - 3\sin(x)\)
(b)\(\displaystyle a = -4\)

Watch for. Keep the 2 from the chain rule: \(a\sin(2x)\) differentiates to \(2a\cos(2x)\), not \(a\cos(2x)\). Without it you get \(a = -8\).