June 2024 Paper 1 Q10

AQACurrent spec5 marksFunctionsSimultaneous Equations

10 A function f is given by

\[\begin{aligned} \mathrm{f}(x) &= -\tfrac{1}{2}x + 21 & \qquad 0 &\leqslant x \leqslant 2 \\ &= ax^2 + bx & \qquad 2 &\lt x \leqslant 6 \end{aligned}\]

A sketch of \(\quad y = \mathrm{f}(x) \quad\) is shown.

Sketch of y = f(x): a line segment from the y-axis to P, then a curve from P rising to a maximum and falling to Q(6, 12)

Work out the values of \(a\) and \(b\). [5 marks]