We define a continuous function
Attention: this definition is not equivalent to that of "a function is continuous if it is possible to draw it without raising the pencil from the paper".
Let's observe the following example to show the difference:
Example
Let's take the function
and we can observe that we have two different branches that are not connected, from that we can think that the function is not continuous.
This function satisfies the definition of continuity that we have given, if at any point the definition is satisfied, but one can think that at
The side limits do not coincide:
Note that the definition of continuity is about all the points that are in the domain of the function, and not about the points that are outside the domain.
Consequently, the function in the example has two separated branches, both of them continuous.