The given function is,
Consider
When
The limit of the function is,
It can be observed that,
Therefore, the function is continuous for all real numbers smaller than 2.
When
The right hand limit of the function at
It can be observed that, at
Therefore, the function is discontinuous at
When
The limit of the function is,
It can be observed that, at
Therefore, the function is continuous for all real numbers greater than 2.