I know there is a similar question. I had a read through it and it didn't help me so I'm posting this one.
The question is
for what value(s) of the constant $a\in \mathbb R$ is
$$f_a(x) = \left\{ \matrix{ax + 1 & \text{if } (x \leqslant 1) \\ (ax)^2 -1 & \text{otherwise}} \right.$$
continuous?
I've figured out that $a = -1$ or $2$ but have had no luck when subbing those values into the original equation to see which one is continuous.
Could someone tell me if I'm right and what I should do.
Both the functions $ax + 1$ and $(ax)^2 - 1$ are polynomials. Individually, they are continuous for all $x$ no matter which $a$ you pick. The problem is making sure $ax + 1 = (ax)^2 - 1$ when $x = 1$. That is, you wish to solve $a + 1 = a^2 - 1$, which has solutions $a = -1$ and $a = 2$, as you found. These values make your function continuous and are the only such values.