Find a constant from a given gradient
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.
- (a) Determine \(f'(x)\). [2 marks]
- (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.
The answer, one mark at a time
-
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]
-
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]
-
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
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\).