Artificial Intelligence 🤖
Limits & Continuity
Continuity

Continuity

In the examples on limits in this chapter, we often saw that we compute the limit simply by plugging in the value the variable approaches into the function. While limits are concerned with what is happening around that value and not exactly at that value, evaluating the limit at that value gave us the value of the limit. We attributed this to the property of the functions being 'nice'. In this section, we define more formally what we mean by 'nice' functions.

Definition 2.4 A function f(x)f(x) is said to be continuous at x=ax=a if

limxaf(x)=f(a).\lim _{x \rightarrow a} f(x)=f(a) .

A function f(x)f(x) is continuous on the closed interval [a,b][a, b] if it is continuous at each point in the interval. Note that this is the two-sided limit which implies that

limxa+f(x)=f(a) and limxaf(x)=f(a)\lim _{x \rightarrow a^{+}} f(x)=f(a) \text { and } \quad \lim _{x \rightarrow a^{-}} f(x)=f(a)

Consider a function f(x)f(x) as shown in Fig. 2.4 for which we want to determine whether f(x)f(x) is continuous at x=x1x=x_{1} and x=x2x=x_{2}. For continuity at a point x=ax=a, we need to show that both the limitlimxa\operatorname{limit}^{\lim _{x \rightarrow a}} and f(a)f(a) exist and are equal. For x=x1,f(x1)=y2x=x_{1}, f\left(x_{1}\right)=y_{2} (recall that a solid marker implies that the endpoint is included while a hollow marker indicates that the endpoint is not included). The (two-sided) limitlimxx1f(x)\operatorname{limit}^{\lim _{x \rightarrow x_{1}}} f(x) does not exist. We conclude therefore that the function is discontinuous at x=x1x=x_{1}; this discontinuity is referred to as a jump discontinuity which occurs whenever the graph has a break in it. Now, at x=x2,f(x2)=y2x=x_{2}, f\left(x_{2}\right)=y_{2} and limxx2f(x)=y2\lim _{x \rightarrow x_{2}} f(x)=y_{2}; it follows that the function is continuous at x=x2x=x_{2}. From this example we can give the following informal definition of continuity: a function f(x)f(x) is continuous if its graph has no breaks in it. Examples are the function f(x)=x2f(x)=x^{2} or any polynomial.

As another example, consider the Heaviside function given by Eq. (2.5) with its graph shown in Fig. 2.3. A jump discontinuity occurs at x=0x=0 and, while the function is defined at x=0[f(0)=1]x=0[f(0)=1], the limit limx0H(x)\lim _{x \rightarrow 0} H(x) does not hence the function is discontinuous at x=0x=0.

Discontinuities do not only occur when there are breaks in the graphs. Consider a function f(x)f(x) given by

f(x)=xsin(1x)f(x)=x \sin \left(\frac{1}{x}\right)

the function is not defined at x=0x=0 and so it cannot be continuous there. The graph of the function given in Eq. (2.32) is shown in Fig. 2.5. While sin(1/x)\sin (1 / x) oscillates as xx tends to zero, limx0f(x)=0\lim _{x \rightarrow 0} f(x)=0 since f(x)f(x) is sandwiched between x-|x| (shown in Fig. 2.5 in blue) and x|x| (shown in Fig. 2.5 in red). To see this,

f(x)=xsin(1x)xsin(1x)f(x)=x \sin \left(\frac{1}{x}\right) \leq\left|x \sin \left(\frac{1}{x}\right)\right|

Figure 2.4: The graph of a function y=f(x)y=f(x) with a jump discontinuity at x=x1x=x_{1}. Three points are marked: the endpoint (x1,y2)\left(x_{1}, y_{2}\right) (black, solid marker) is included in f(x)f(x) while the endpoint (x1,y1)\left(x_{1}, y_{1}\right) (hollow marker) is not. The red, solid marker at (x2,y2)\left(x_{2}, y_{2}\right) represents a point on the graph at which ff is continuous. At (x1,y1)\left(x_{1}, y_{1}\right) and (x1,y2),f\left(x_{1}, y_{2}\right), f is discontinuous.

where xsin(1/x)=xsin(1/x)|x \sin (1 / x)|=|x||\sin (1 / x)| and since sin(1/x)1|\sin (1 / x)| \leq 1, we have

xsin(1x)xx \sin \left(\frac{1}{x}\right) \leq|x|

Similarly, we can show that

xsin(1x)xx \sin \left(\frac{1}{x}\right) \geq-|x|

yielding

xf(x)x-|x| \leq f(x) \leq|x|

It follows that as x0,f(x)0x \rightarrow 0, f(x) \rightarrow 0.

However, considered an amended definition of f(x)f(x) from Eq. (2.32) as follows,

f(x)={xsin(1x),x00,x=0f(x)=\left\{\begin{array}{c} x \sin \left(\frac{1}{x}\right), \quad x \neq 0 \\ 0, \quad x=0 \end{array}\right.

this function is continuous for all real xx (including x=0x=0 ).

Finally, note that the function f(x)=sin(1/x)f(x)=\sin (1 / x) is not continuous at x=0x=0 even if we were to define f(0)=0f(0)=0, since the limit of f(x)f(x) as xx tends to zero does not exist.

Figure 2.5: A plot of the function y=f(x)y=f(x) given by Eq. (2.32) (shown in grey) together with the graphs of y=xy=|x| (red) and y=xy=-|x| (blue). The function is not defined at x=0x=0 and the limitlimx0f(x) is 0\operatorname{limit}^{\lim _{x \rightarrow 0} f(x) \text { is } 0} as the function is sandwiched between y=xy=|x| and y=xy=-|x|.