For x=±1, write f(x)−2 as a product of two functions whose limits we know.
f(x)−2=x2−1f(x)−2⋅(x2−1)
Both limits on the right exist, so the limit of the product is the product of the limits.
x→1lim(f(x)−2)=(x→1limx2−1f(x)−2)⋅(x→1lim(x2−1))
=π⋅(12−1)
=0
So x→1lim(f(x)−2)=0. Since f(x)=(f(x)−2)+2, the limit of f(x) is 0+2=2.
∴ x→1limf(x)=2.