6. Let the function \( f(x) = \begin{cases} a^2x^2 + bx - 3, & x < 1 \\ ax + b, & x \geq 1 \end{cases} \). Find \( a \) and \( b \) so that \( \lim_{x \to 1} f(x) = 3 \). (10%)