Function f is defined for all real numbers except 0. Therefore domain of f is D1 ∪ D2 where
D1 = {.x∈R : r < 0 }, D2 = {x ∈ R : x > 0}
Now two cases arise :
Case 1: Let c ∈ D1. In this case f(x) = x + 2.
∴ f (x) is continuous at x = c
But c is any point of D1.
∴ f is continuous in D1.
Case II : Let c ∈ D2. In this case f(x) = –x + 2.
∴ f(x) is continuous at x = c.
But c is any point of D2.
∴ f is continuous in D2.
Now f is continuous at all points in the domain of f. f
∴ f is continuous.