First and second derivatives of a product
Unit 3 Topic 2: Differentiation of trigonometric functions and differentiation rules
The question
Consider the function \(f(x)=x^{2}\cos (x)\).
- (a) Determine \(f'(x)\) in factorised form. [2 marks]
- (b) Determine \(f'(\frac{\pi }{2})\). [1 mark]
- (c) Determine \(f''(x)\). [2 marks]
The idea. \(x^{2}\cos(x)\) is a product, so use the product rule. For \(f''(x)\), each term of \(f'(x)\) is a product too, so you use the rule twice more.
The answer, one mark at a time
-
Part (a)
Let \(u = x^{2}\) and \(v = \cos(x)\), so \(u' = 2x\) and \(v' = -\sin(x)\). Use \(f' = u'v + uv'\), then take out the common factor \(x\).
\[f'(x) = 2x\cos(x) + x^{2}(-\sin(x))\]\[f'(x) = 2x\cos(x) - x^{2}\sin(x)\]\[f'(x) = x\left(2\cos(x) - x\sin(x)\right)\]correctly applies the product rule [1 mark] factorises [1 mark]
-
Part (b)
Put \(x = \frac{\pi}{2}\) into the factorised form. Use \(\cos\left(\frac{\pi}{2}\right) = 0\) and \(\sin\left(\frac{\pi}{2}\right) = 1\).
\[f'\left(\frac{\pi}{2}\right) = \frac{\pi}{2}\left(2(0) - \frac{\pi}{2}(1)\right)\]\[= \frac{\pi}{2}\left(-\frac{\pi}{2}\right)\]\[= -\frac{\pi^{2}}{4}\]determines the value [1 mark]
-
Part (c)
Differentiate \(f'(x) = 2x\cos(x) - x^{2}\sin(x)\). Each term is a product, so use the product rule on each one.
\[\frac{d}{dx}\left(2x\cos(x)\right) = 2\cos(x) - 2x\sin(x)\]\[\frac{d}{dx}\left(x^{2}\sin(x)\right) = 2x\sin(x) + x^{2}\cos(x)\]\[f''(x) = 2\cos(x) - 2x\sin(x)\]\[- 2x\sin(x) - x^{2}\cos(x)\]applies the product rule to both terms [1 mark]
-
Collect the \(\cos(x)\) terms and the \(\sin(x)\) terms.
\[f''(x) = \left(2 - x^{2}\right)\cos(x) - 4x\sin(x)\]simplifies [1 mark]
Answer
Watch for. In part (c), the minus sign in front of \(x^{2}\sin(x)\) applies to both terms its product rule gives: \(-2x\sin(x) - x^{2}\cos(x)\).