The function \(g(x)=\left\{\begin{array}{ll}a x+b, & \text {for } x \leq 2 \\ x^2-1, & \text {for } x>2\end{array}\right.\)
\(g(x)\) is continuous at \(x =2\) and passes through the point \((0,-5)\).
- Find the values of \(a\) and \(b\) (2 marks)
--- 7 WORK AREA LINES (style=lined) ---
- Evaluate \(g(3)-g(-1)\) (1 mark)
--- 2 WORK AREA LINES (style=lined) ---