Using the notion of convergence from Section 3.1 we now define what we mean by a continuous function of several variables. Note that the definition looks the same as in case of a function of one variable. Before we give a definition of continuity we introduce limits.
Definition3.20.Limits of functions.
Suppose that \(\vect f\) is a function defined on a set \(D\subset\mathbb R^N\) with values in \(\mathbb R^k\text{.}\) If \(\vect x_0\) is in the closure of \(D\) we write
if for every \(\varepsilon\gt 0\) there exists \(\delta\gt 0\) such that \(\|\vect f(\vect x)-\vect y_0\|\lt \varepsilon\) for all \(\vect x\in D\) for which \(0\lt \|\vect x-\vect x_0\|\lt \delta\text{.}\) We also write
and say that \(\vect f(\vect x)\) converges to \(\vect y_0\) as \(\vect x\) tends to \(\vect x_0\text{,}\) or \(\vect y_0\) is the limit of \(\vect f(\vect x)\) as \(\vect x\) tends to \(\vect x_0\text{.}\)
As for functions of one variable there is a characterisation of limits involving sequences.
Proposition3.21.
Suppose that \(f\) is a function defined on a set \(D\subset\mathbb R^N\) with values in \(\mathbb R^k\text{.}\) Then \(\vect f(\vect x)\to\vect y_0\) as \(\vect x\to\vect x_0\) if and only if \(\vect f(\vect x_n)\to\vect y_0\) for every sequence of points \(\vect x_n\in D\) with \(\vect x_n\to \vect x_0\text{.}\)
We omit the proof of the above proposition and state some properties of limits. Compare with functions of one variable!
Proposition3.22.
Suppose that \(\vect f,\vect g\) are functions defined on a domain \(D\subset\mathbb R^N\) with values in \(\mathbb R^k\text{,}\) and that \(u\colon D\to \mathbb R\) is a scalar valued function. Moreover, suppose that \(\vect f(\vect x)\to\vect a\text{,}\)\(\vect g(\vect x)\to\vect b\) and \(u(\vect x)\to\alpha\) as \(\vect x\to \vect x_0\text{.}\) Then
We now define what we mean by a continuous function. As with the definition of limits, compare it to what you know about continuity of functions of one variable.
Definition3.23.
Suppose that \(\vect f\) is a function defined on a set \(D\subset\mathbb R^N\) with values in \(\mathbb R^k\text{.}\) We say that \(f\) is continuous at a point \(\vect x_0\in D\) if
We say that \(f\) is continuous if \(f\) is continuous at every point in its domain \(D\text{.}\)
Depending on the situation the following characterisations of continuity are useful.
Proposition3.24.
Suppose that \(\vect f\) is a function defined on a set \(D\subset\mathbb R^N\) with values in \(\mathbb R^k\text{.}\) Then \(f\) is continuous at \(\vect x_0\in D\) if and only if one of the following conditions are satisfied:
For all \(\varepsilon\gt 0\) there exists \(\delta\gt 0\) such that \(\|\vect f(\vect x)-\vect f(\vect x_0)\|\lt \varepsilon\) for all \(\vect x\in D\) satisfying \(\|\vect x-\vect x_0\|\lt \delta\text{.}\) (\(\varepsilon\)-\(\delta\)-characterisation of limit)
\(\vect f(\vect x_n)\to \vect f(\vect x_0)\) as \(n\to\infty\) for every sequence \(\vect x_0\) in \(D\) for which \(\vect x_n\to\vect x_0\text{.}\)
Every component function \(f_i\) of \(\vect f=(f_1,\dots,f_k)\) is continuous at \(\vect x_0\text{.}\)
The proof of the above facts follow from Proposition 3.21 and the definition of limits as discussed in Section 3.1. Next we give a few examples of continuous and non-continuous functions.
Example3.25.
Consider \(f(x,y):=x^2-y^2\) defined on \(\mathbb R^2\text{.}\) We claim that \(f\) is continuous. To see this pick a point \((x,y)\in\mathbb R^N\text{.}\) If \((x_n,y_n)\) is an arbitrary sequence we need to show that \(f(x_n,y_n)=x_n^2-y_n^2\to x^2-y^2=f(x,y)\text{.}\) This is quite clear since \((x_n,y_n)\to (x,y)\) means that \(x_n\to x\) and \(y_n\to y\text{.}\) Hence by the continuity of the square function and addition we have \(x_n^2-y_n^2\to x^2-y^2\text{,}\) showing that \(f\) is continuous.
Example3.26.
Show that \(f\) given by \(f(x,y,z,t):=(x^2+y^2+z^2)e^{-t}\) is a continuous function on \(\mathbb R^4\text{.}\)
If \((x_n,y_n,z_n,t_n)\to(x,y,z,t)\text{,}\) then in particular \(x_n\to x\text{,}\)\(y_n\to y\text{,}\)\(z_n\to z\) and \(t_n\to t\text{.}\) As \(f\) consists of products and sums of the four variables as in the previous example, and the exponential function is continuous we have indeed \(f(x_n,y_n,z_n,t_n)\to f(x,y,z,t)\text{.}\) Hence \(f\) is continuous.
Example3.27.
Determine the domain of definition of \(f(x,y):=x/y\text{,}\) and determine whether \(f\) is continuous on its domain.
The natural domain of \(f\) is \(D=\{(x,y)\in\mathbb R^2\mid y\neq 0\}\text{.}\) Geometrically this is the plane with the \(x\)-axis removed. If \(y\neq 0\) and \((x_n,y_n)\to(x,y)\) then clearly \(x_n/y_n\to x/y\text{,}\) and thus \(f\) is continuous on its domain.
Example3.28.
Define the function \(f\) on \(\mathbb R^2\) by setting
Along the same lines as in the previous examples we can show that \(f\) is continuous at every point \((s,t)\neq (0,0)\text{.}\) The difficulty is at \((0,0)\text{.}\) We need to show that
whenever \((s_n,t_n)\xrightarrow{n\to\infty}(0,0)\text{.}\) If \(a,b\) are non-negative real numbers, then clearly \(0\leq(a-b)^2=a^2+b^2-2ab\text{.}\) This implies that
If \((s_n,t_n)\xrightarrow{n\to\infty}(0,0)\) then in particular \(|t_n|\to 0\text{,}\) and thus by the “squeezing lemma” (3.3) holds as \((s_n,t_n)\xrightarrow{n\to\infty}(0,0)\text{.}\) This shows that \(f\) is also continuous at \((0,0)\text{,}\) and therefore continuous everywhere. The graph of \(f\) is shown in Figure 3.29.
Example3.30.
Define the function \(f\) on \(\mathbb R^2\) by setting
Along the same lines as in the previous examples we can show that \(f\) is continuous at every point \((x,y)\neq (0,0)\text{.}\) The difficulty is at \((0,0)\text{.}\) We need to check whether
for every sequence with \((x_n,y_n)\to (0,0)\text{.}\) If we find one particular sequence for which the limit is not zero then the function is not continuous. Let \((y_n)\) be a sequence converging to zero and set \(x_n:=y_n^2\text{.}\) Then \((x_n,y_n)=(y_n^2,y_n)\to (0,0)\text{,}\) and
for all \(n\in\mathbb N\text{.}\) Hence \(f(x_n,y_n)\to 1/2\neq 0=f(0,0)\) for that particular sequence, and so \(f\) is not continuous at \((0,0)\text{.}\)
Remark3.31.
1. One could try and make the function (3.4) into a continuous one by modifying it at \((0,0)\text{.}\) This does not work as for instance if \(y_n\to 0\) then \(f(0,y_n)=0\to 0\text{,}\) but \(f(y_n^2,y_n)=0\to 1/2\text{,}\) so the limits are different for the sequence \((0,y_n)\) and \((y_n^2,y_n)\text{.}\)
2. When checking whether \(f\) is continuous at \((0,0)\) we cannot take separate limits, that is first the limit as \(x\to 0\) and then the limit as \(y\to 0\text{.}\) For the function (3.4) we get
but as we know the limit is not zero for all sequences.
3. The example shows even more. To show continuity, we could try to see whether it is sufficient to take limits along radial straight lines. This means we just consider sequences of the form \((tx,ty)\) as \(t\to 0\) for every \((x,y)\neq (0,0)\text{.}\) If we consider such a sequence we get
no matter whether \(x=0\) or not. Hence we really need to check convergence for every sequence! From the graph given in Figure 3.32 one can clearly see this very well.
Along the curve \((y^2,y)\) the graph has a ridge (valley) of constant height (depth) going into \((0,0)\text{,}\) but never completely closing up. (Due to the insufficient resolution of the plot near \((0,0)\) there is quite a gap between the ridges. In reality, however, the gap is only one point!) Compare the graph to the graph of the similar function from Example 3.28 in Figure 3.29
Example3.33.
Define \(\vect f(x,t)=(x^2+t,e^{-x}\cos(t))\) for \(x,t\in\mathbb R^2\text{.}\) The function \(\vect f\) is a vector valued function of two variables. To check whether it is continuous we need to determine whether every component function is continuous. The two component functions are given by \(f_1(x,t)=x^2+t\) and \(f_2(x,t)=e^{-x}\cos(t)\text{.}\) It is easily checked that they both are continuous, and thus \(\vect f\) is continuous.
\(1/x\) is not defined at \(x=0\text{,}\) so \(0\) is not in the domain of definition of the given vector valued function. Hence it does not make sense to talk about continuity of \((1/x,x)\) at \(0\text{.}\)