Worked solution
(a) To find \( f'(x) \), we use the product rule:
\( f'(x) = 2x e^{-kx} + x^2 (-k) e^{-kx} = x(2 - kx) e^{-kx} \).
To find the critical points, we set \( f'(x) = 0 \):
\( x(2 - kx) e^{-kx} = 0 \).
Since \( e^{-kx} > 0 \), we have \( x = 0 \) or \( 2 - kx = 0 \Rightarrow x = \frac{2}{k} \).
For \( x = 0 \):
\( f(0) = 0^2 e^{0} = 0 \).
Since \( f(x) \ge 0 \) for all \( x \ge 0 \), \( (0, 0) \) is a local minimum.
For \( x = \frac{2}{k} \):
\( f\left(\frac{2}{k}\right) = \left(\frac{2}{k}\right)^2 e^{-k\left(\frac{2}{k}\right)} = \frac{4}{k^2} e^{-2} = \frac{4}{e^2 k^2} \).
Since \( f'(x) > 0 \) for \( 0 < x < \frac{2}{k} \) and \( f'(x) < 0 \) for \( x > \frac{2}{k} \), the point \( \left(\frac{2}{k}, \frac{4}{e^2 k^2}\right) \) is a local maximum.
(b) To find the points of inflexion, we find the second derivative:
\( f''(x) = \frac{d}{dx} \left[ (2x - kx^2) e^{-kx} \right] = (2 - 2kx) e^{-kx} + (2x - kx^2)(-k) e^{-kx} \)
\( f''(x) = (2 - 2kx - 2kx + k^2 x^2) e^{-kx} = (k^2 x^2 - 4kx + 2) e^{-kx} \).
Set \( f''(x) = 0 \):
\( k^2 x^2 - 4kx + 2 = 0 \) (since \( e^{-kx} \neq 0 \)).
Using the quadratic formula:
\( x = \frac{4k \pm \sqrt{(-4k)^2 - 4(k^2)(2)}}{2k^2} = \frac{4k \pm \sqrt{16k^2 - 8k^2}}{2k^2} = \frac{4k \pm \sqrt{8k^2}}{2k^2} \).
Since \( k > 0 \), we have \( \sqrt{8k^2} = 2\sqrt{2}k \):
\( x = \frac{4k \pm 2\sqrt{2}k}{2k^2} = \frac{2 \pm \sqrt{2}}{k} \).
Since the quadratic expression \( k^2 x^2 - 4kx + 2 \) changes sign at these roots, the second derivative \( f''(x) \) changes sign, confirming these are points of inflexion.
(c) For \( k = 1 \), we have \( f(x) = x^2 e^{-x} \). The area of the region is:
\( A = \int_{0}^{2} x^2 e^{-x} \, dx \).
We use integration by parts: \( \int u \, dv = uv - \int v \, du \).
Let \( u = x^2 \) and \( dv = e^{-x} \, dx \Rightarrow du = 2x \, dx \) and \( v = -e^{-x} \).
\( A = \left[ -x^2 e^{-x} \right]_{0}^{2} - \int_{0}^{2} (-e^{-x})(2x) \, dx = -4e^{-2} + 2 \int_{0}^{2} x e^{-x} \, dx \).
We apply integration by parts again to \( \int_{0}^{2} x e^{-x} \, dx \):
Let \( u = x \) and \( dv = e^{-x} \, dx \Rightarrow du = dx \) and \( v = -e^{-x} \).
\( \int_{0}^{2} x e^{-x} \, dx = \left[ -x e^{-x} \right]_{0}^{2} - \int_{0}^{2} (-e^{-x}) \, dx = -2e^{-2} + \left[ -e^{-x} \right]_{0}^{2} \)
\( = -2e^{-2} - e^{-2} + e^{0} = 1 - 3e^{-2} \).
Substituting this back into the expression for \( A \):
\( A = -4e^{-2} + 2(1 - 3e^{-2}) = 2 - 10e^{-2} \).
Marking scheme
**Part (a)**
- **M1**: Applying product rule to find \( f'(x) \).
- **A1**: Correct derivative \( f'(x) = x(2 - kx) e^{-kx} \) (or equivalent).
- **M1**: Setting \( f'(x) = 0 \) and solving for \( x \).
- **A1**: Correct coordinates for local minimum: \( (0, 0) \).
- **A1**: Correct coordinates for local maximum: \( \left(\frac{2}{k}, \frac{4}{e^2 k^2}\right) \) (accept \( \left(\frac{2}{k}, 4k^{-2}e^{-2}\right) \).
**Part (b)**
- **M1**: Applying product rule to find \( f''(x) \).
- **A1**: Correct simplified expression for \( f''(x) = (k^2 x^2 - 4kx + 2) e^{-kx} \).
- **M1**: Setting \( f''(x) = 0 \) and applying the quadratic formula.
- **A1**: Correctly obtaining \( x = \frac{2 \pm \sqrt{2}}{k} \) and noting a sign change occurs.
**Part (c)**
- **M1**: Writing down the correct integral \( \int_{0}^{2} x^2 e^{-x} \, dx \).
- **M1**: Attempting integration by parts (first time) with correct choice of \( u \) and \( dv \).
- **A1**: Correct expression after first integration by parts: \( \left[ -x^2 e^{-x} \right]_{0}^{2} + 2 \int_{0}^{2} x e^{-x} \, dx \).
- **M1**: Attempting integration by parts (second time) with correct choice of \( u \) and \( dv \).
- **A1**: Correct expression for the second integral: \( \left[ -x e^{-x} - e^{-x} \right]_{0}^{2} \) (or equivalent).
- **M1**: Correct substitution of limits \( 0 \) and \( 2 \).
- **A1**: Correct final area \( 2 - 10e^{-2} \) (or \( 2 - \frac{10}{e^2} \)).