Solveeit Logo

Question

Question: The function f(x) = [x] + [-x] is continuous on (where [.] denotes the greatest integer function)...

The function f(x) = [x] + [-x] is continuous on (where [.] denotes the greatest integer function)

A

R\mathbb{R}

B

Z\mathbb{Z}

C

RZ\mathbb{R} \setminus \mathbb{Z}

D

(0,1)(0,1)

Answer

RZ\mathbb{R} \setminus \mathbb{Z}

Explanation

Solution

For any integer x=nx=n, f(n)=[n]+[n]=n+(n)=0f(n) = [n] + [-n] = n + (-n) = 0. For any non-integer xx, let x=n+αx = n + \alpha where nZn \in \mathbb{Z} and 0<α<10 < \alpha < 1. Then f(x)=[n+α]+[nα]=n+(n1)=1f(x) = [n+\alpha] + [-n-\alpha] = n + (-n-1) = -1. Thus, f(x)=0f(x) = 0 if xZx \in \mathbb{Z} and f(x)=1f(x) = -1 if xZx \notin \mathbb{Z}. At integer points x=nx=n, the left-hand limit is -1 and the right-hand limit is -1, but f(n)=0f(n)=0, so it's discontinuous. At non-integer points, the function is constantly -1, hence continuous.