First and second derivatives of a product

Question MM3-135 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^{2}\cos (x)\).

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

Figure for question MM3-135The curve y equals x squared cos x rises a little above the x-axis, then falls through it at x equals pi on 2 and drops steeply. A tangent at pi on 2 slopes down with gradient negative pi squared on 4, about negative 2.47.−6−5−4−3−2−11xy
The value in part (b) is the gradient of the tangent at \(x = \frac{\pi}{2}\).

The answer, one mark at a time

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

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

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

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

(a)\(\displaystyle f'(x)\)\(\displaystyle = x\left(2\cos(x) - x\sin(x)\right)\)
(b)\(\displaystyle f'\left(\frac{\pi}{2}\right) = -\frac{\pi^{2}}{4}\)
(c)\(\displaystyle f''(x) = \left(2 - x^{2}\right)\cos(x)\)\(\displaystyle - 4x\sin(x)\)

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)\).