The given function f is f(x) = ⎧⎨⎩−2, if x≤−12x, if −1<x≤12, if x>1
The given function is defined at all points of the real line
Let c be a point on the real line.
Case I
If c < -1, then f(c) = -2 and limx→c f(x) = limx→c (-2) = -2
∴ limx→cf(x) = f(c)
Therefore, f is continuous at all points x, such that x < -1
Case II
If c = -1, then f(c) = f(-1) = -2
The left hand limit of f at x = -1 is,
limx→−1f(x) = limx→−1 (-2) = -2
The right hand limit of f at x = -1 is,
limx→−1 f(x) = limx→−1(2x_ = 2 x (-1) = -2
∴ limx→−1 f(x) = f(-1)
Therefore, f is continuous at x = -1
Case III :
If -1 < c < 1, then f(c) = 2c
limx→cf(x) = limx→c(2x) = 2c
∴ limx→c f(x) = f(c)
Therefore, f is continuous at all points of the interval (-1, 1)
Case IV :
If c = 1, then f(c) = f(1) = 2 x 1 = 2
The left hand limit of f at x = 1 is,
limx→1 f(x) = limx→1 (2x) = 2 x 1 = 2
The right hand limit of f at x = 1 is,
limx→1 f(x) = limx→1 2 = 2
∴ limx→1 f(x) = f(c)
Therefore, f is continuous at x = 2
Case V
If c > 1, then f(c) = 2 and limx→c f(x) = limx→c (2) = 2
limx→c f(x) = f(c)
Therefore, f is continuous at all points x, such that x > 1
Thus, from the above observations, it can be concluded that f is continuous at all points of the real line.