Continuity

Find the value of aa such that the function
f(x)={x2+1if x3ax1if x>3f\left(x\right)= \begin{cases} x^2+1&if\space x\le -3\\ ax-1 & if \space x>-3 \end{cases}

is continuous everywhere.

More Continuity Questions: