At x=1 the rule for f changes, so we find the left-hand and right-hand limits.
For x<1, f(x)=x2−1.
x→1−limf(x)=x→1−lim(x2−1)
=12−1
=0
For x>1, f(x)=−x2−1.
x→1+limf(x)=x→1+lim(−x2−1)
=−(1)2−1
=−2
x→1−limf(x)=x→1+limf(x)
The left-hand limit is 0 and the right-hand limit is −2. They are not equal.
∴ x→1limf(x) does not exist.