In this section, we want to study limits of functions of several variables and will primarily look at limits of functions of two variables. In single variable calculus, we studied the idea of a limit, which turned out to be a critical concept which served as the critical third step in the Classic Calculus Approach to understanding the derivative and the definite integral. In this section, we will study how the concept of limit for functions of two variables is similar to what we encountered for functions of a single variable. We will use the notion of the limit of a function of several variables as the last step in understanding and defining important concepts related to differentiability later in this chapter.
We did not need to generalize our ideas related to limits when we looked at vector-valued functions of one variable in Chapter 10 because we applied our one-variable limits componentwise. That is, the limit of the function \(\vr(t)=\langle x(t),y(t),z(t) \rangle\) is evaluated as three separate one-variable limits.
We begin by reviewing the idea behind a limit of a function of one variable. We say that a function \(f\) has a limit \(L\) as \(x\) approaches \(a\) provided that we can make the values \(f(x)\) as close to \(L\) as we like by taking \(x\) sufficiently close (but not equal) to \(a\text{.}\) We denote this behavior by writing
Remember that you may need to look at the outputs of the function \(f\) as you approach the input \(x=a\) from the right and left separately in order to ensure that the limit exists.
In this Preview Activity, we will consider several ideas related to limits of single-variable functions by working with tables, graphs, and the algebraic forms of these functions.
Write a couple of sentences to explain how your values in the table in part a and \(\displaystyle\lim_{x\to 0}f(x)\) are demonstrated in the graph below.
Let \(\displaystyle g(x) = \frac{x}{|x|}\text{.}\) Fill in the blanks of the table below with the appropriate outputs of \(g\) for values near \(x = 0\text{.}\) Note that \(g\) is not defined at \(x=0\text{.}\)
Show that the limit as \(x\) goes to \(-1\) of \(h(x)\) exists. Write a sentence or two about why \(h(-1)\) does not exist but the limit as \(x\) goes to \(-1\) does exist.
In Preview Activity 11.2.1, we used the notion of limit from single variable calculus and saw several different outcomes for limits in terms of tables and graphs. Specifically, when the limit \(\displaystyle{\lim_{x \rightarrow a} f(x)}\) exists, its value will be the value that the output of \(f\) approaches as the \(x\)-values input get closer to \(a\text{.}\) We must look at whether the output of \(f\) approaches the same value 0as the input values approach \(x=a\) from different directions. Tables of values for the function can give evidence that a limit will either exist or not but will not have enough evidence to show a limit exists. Similarly, we can use graphs to visually represent the behavior of the output values as we approach a particular input from different directions.
Subsection11.2.2Limits of Functions of Two Variables
In this section, we will look at how the concepts of limits on single variable functions can be expanded to work with functions of two variables. We will focus on two variables here because tools like tables and graphs readily make sense for a function of the form \(f(x,y)\) but become more difficult to use for functions of more than two variables. All of the concepts of limits and continuity can be expanded to functions of any number of variables but discussion of the details of this type of generalization will be deferred to a later mathematics course.
The biggest difference between limits of single-variable functions and multivariable functions is the number of ways we can approach a particular input. For a single-variable function, there are only two directions in which we can approach an input like \(x=a\text{,}\) which we call approaching from the left and approaching from the right. We illustrate this in Figure 11.2.1. When considering a limit of a single-variable function, we can evaluate and compare the output of a function in these two directions. If the output of the function does not agree as you approach from the left and right, then the limit does not exist, as we saw in part 11.2.1.e.
In contrast to the single variable case, there are many different ways to approach a point \((a,b)\text{,}\) when considering this point as the input for a function \(f(x,y)\text{.}\) In Figure 11.2.2, we show seven different ways to approach the point \((a,b)\text{.}\) When we look at how to get close to an input in two dimensions, we must think about more than just the straight-line directions. For example, we have to consider curved paths. In the next example, we will explore how we can think about the various representations of a multivariable function and what it would mean to examine the output of a multivariable function as the inputs get close to a particular value.
The point \((a,b)\) is indicated in the first quadrant. Seven paths are illustrated approaching the point. Four approaches are paralell to the coordinate axes, approaching \((a,b)\) from the left, right, above, and below. One other path is a straight line, coming in diagonally from the upper left. The other two paths are curved. One is approximately parabolic and approaches from the upper right. There is also a path approaching from the lower left that bends several times as it approaches the point.
In this example, we will use tables and graphs to examine a function of two variables just as you did in Preview Activity 11.2.1 for functions of one variable. Here we consider the output of the function \(f(x,y)=3-x-2y\) approaches as the inputs get close to \((0,0)\text{.}\)Table 11.2.4 shows a spreadsheet of output values for \(f\) near the input \((0,0)\text{.}\) We have purposefully omitted the value of \(f(0,0)\) because we need to look at what is happening to \(f\)near\((0,0)\text{,}\) not what is happening at \((0,0)\text{.}\)
Table 11.2.4 shows that as the inputs \((x,y)\) get closer to \((0,0)\text{,}\) the output of \(f(x,y)\) gets closer to 3. We can look at some aspect of directionality using a table, like how the row corresponding to \(x=0\) shows values of \(f\) for inputs on the \(y\)-axis and the values on the diagonal (from top left to bottom right) shows values of \(f\) for inputs with equal \(x\)- and \(y\)-coordinates.
Visual representations like contour graphs and surface plots will give more information with respect to the different directions we can approach \((0,0)\text{.}\)Figure 11.2.5 shows a contour plot of \(f(x,y)=3-x-2y\) where you can use the slider to change the number of contours used in the plot. The input point \((0,0)\) is highlighted in red and you can see that regardless of how many contours are displayed, the output value of \(f\) seems to approach 3 near the red point. Just as with the table, you can get some idea on the directionality of how the outputs will approach 3, but because the contour plot does not give information about what is happening between contours, you are left to mentally fill in this information.
A plot of the surface \(z=f(x,y)=3-x-2y\) will give more information about what is happening in different directions as the inputs approach \((0,0)\text{.}\) The drawback to using surface plots is that they are difficult to create by hand. Even computer-generated plots of surfaces can be difficult to interpret and are prone to errors because of imprecise numerical calculations. In our case, the plot of \(z=f(x,y)=3-x-2y\) is a plane, which we have experience with from earlier in the course. We can see in Figure 11.2.6 that if we approach the input point \((0,0)\) in any direction or along any path, then the output of \(f\) (as shown by the \(z\)-coordinate on the plot) gets closer to 3.
If you were not convinced that the output of \(f\) approaches 3 as \((x,y)\) approaches \((0,0)\text{,}\) you could look at approaching the origin along a particular path. For instance, we could look to simplify our limit to look at approaching the origin along the path given by \(y=2x\text{.}\) This means that we don’t really need to examine our function’s output at all points around the origin. Instead, we consider only points of the form \((x,2x)\text{.}\) The limit expression becomes a one-dimensional problem in this case because along the path given by \(y=2x\text{,}\)\(\displaystyle\lim_{(x,y)\to (0,0)} f(x,y) \) becomes \(\displaystyle\lim_{(x,2x)\to (0,0)} f(x,2x)\text{,}\) which is the same as \(\displaystyle\lim_{x \to 0} 3-x-2(2x) \text{.}\) Note that the limit along this path is now of the type you evaluated in your single-variable calculus course. In fact, you can evaluate \(\displaystyle{\lim_{x \to 0} 3-x-2(2x)}\) to get \(3\text{.}\) It would be possible to use other paths such as \(x=\sin(y)\) or even a parameterized path of the form \(\vr(t)= \langle t \cos(t) , t \sin(t) \rangle\) to consider a two-variable limit. However, we can never test all possible paths that approach this limit point. Thus, while the idea of reducing a two-variable limit to a one-variable limit along a particular path can be helpful, we will not be able to exhaust all possible ways to approach our limit point and show a limit exists.
In all of our representations, we see evidence that if the input of our function, \((x,y)\text{,}\) approaches \((0,0)\text{,}\) then the output of our function goes to 3, regardless of the direction or way we approach \((0,0)\text{.}\) We generalize this idea with the following definition.
Given a function \(f = f(x,y)\text{,}\) we say that \(f\) has limit \(L\) as \((x,y)\) approaches \((a,b)\) provided that we can make \(f(x,y)\) as close to \(L\) as we like by taking \((x,y)\) sufficiently close (but not equal) to \((a,b)\text{.}\) We write
\begin{equation*}
\lim_{(x,y)\to(a,b)} f(x,y) = L
\end{equation*}
To investigate the limit of a single variable function, \(\displaystyle{\lim_{x\to a}f(x)}\text{,}\) we often consider the behavior of \(f\) as \(x\) approaches \(a\) from the right and from the left. Similarly, we may investigate limits of two-variable functions, \(\displaystyle{\lim_{(x,y)\to(a,b)} f(x,y)}\) by considering the behavior of \(f\) as \((x,y)\) approaches \((a,b)\) along a particular path. Remember that the multivariable function situation is more complicated because there are infinitely many ways in which \((x,y)\) may approach \((a,b)\text{,}\) so we will not be able to check every possible path. In the next activity, we see how it is important to consider a variety of those paths in investigating whether or not a limit exists.
Now we formalize your conjecture from the previous part by considering what happens if we restrict our attention to different paths. First, we look at \(f\) for points in the domain along the \(x\)-axis. That is, we consider what happens when \(y = 0\text{.}\) Write out what the output of \(f\) will when \(y=0\text{.}\) In other words, what is \(f(x,0)\) equal to?
What is the behavior of \(f\) along the line \(y=x\) when \(x \gt 0\text{.}\) That is, what is the value of \(f(x,x)\) when \(x>0\text{?}\) If we approach \((0,0)\) by moving along the line \(y=x\) in the first quadrant, what value do we find as the limit?
In general, if \(\displaystyle{\lim_{(x,y)\to(0,0)}f(x,y) = L}\text{,}\) then \(f(x,y)\) approaches \(L\) as \((x,y)\) approaches \((0,0)\text{,}\) regardless of the path we take in letting \((x,y) \to (0,0)\text{.}\) Based on the last two parts of this activity, can the limit
Use this limit to explain the the behavior of \(f(x,y)\) as \((x,y)\) approaches \((0,0)\) along lines of the form \(y=mx\) and how this observation reinforces your conclusion about the existence of \(\displaystyle{\lim_{(x,y)\to(0,0)}f(x,y)}\) from the previous part of this activity.
As we have seen in Activity 11.2.2, if \(f(x,y)\) has two different limits along two different paths as \((x,y)\) approaches \((a,b)\text{,}\) then we can conclude that \(\displaystyle{\lim_{(x,y)\to(a,b)}f(x,y)}\) does not exist. This is similar to the one-variable example \(g(x)=x/|x|\) as shown in Figure 11.2.8; \(\displaystyle{\lim_{x \to 0}g(x)}\) does not exist because we see different limits as \(x\) approaches 0 from the left and the right.
If \(f(x,y)\) has two different limits as \((x,y)\) approaches \((a,b)\) along two different paths, then \(\displaystyle{\lim_{(x,y)\to(a,b)}f(x,y)}\) does not exist.
As the next activity shows, studying the limit of a two-variable function \(f\) by considering the behavior of \(f\) along various paths can require subtle insights.
What is the behavior of \(g\) on the \(x\)-axis? That is, what is \(g(x,0)\) and what is the limit of \(g\) as \((x,y)\) approaches \((0,0)\) along the \(x\)-axis?
What is the behavior of \(g\) on the \(y\)-axis? That is, what is \(g(0,y)\) and what is the limit of \(g\) as \((x,y)\) approaches \((0,0)\) along the \(y\)-axis?
What is the behavior of \(g\) on the line \(y=mx\text{?}\) That is, what is \(g(x,mx)\) and what is the limit of \(g\) as \((x,y)\) approaches \((0,0)\) along the line \(y=mx\text{?}\)
Now consider the behavior of \(g\) on the parabola \(y=x^2\text{?}\) What is \(g(x,x^2)\) and what is the limit of \(g\) as \((x,y)\) approaches \((0,0)\) along this parabola?
This activity shows that we need to be careful when studying the limit of a two-variable functions by considering its behavior along different paths. If we find two different paths that result in two different limits, then we conclude that the limit does not exist. However, we can never conclude that the limit of a function does exist only by considering its behavior along different paths.
Note that if either \(x\) or \(y\) is 0, then \(f(x,y) = 0\text{.}\) Therefore, if \(f\) has a limit at \((0,0)\text{,}\) it must be 0. We will therefore argue that
by showing that we can make \(f(x,y)\) as close to \(0\) as we wish by taking \((x,y)\) sufficiently close (but not equal) to \((0,0)\text{.}\) In the following arguments, we view \(x\) and \(y\) as being real numbers that are close, but not equal, to 0.
Thus, \(0 \leq f(x,y) \leq x^2\text{.}\) Since \(x^2 \to 0\) as \(x \to 0\text{,}\) we can make \(f(x,y)\) as close to \(0\) as we like by taking \(x\) sufficiently close to \(0\text{.}\) For this example, it turns out that we don’t even need to worry about making \(y\) close to 0. Therefore,
In spite of the fact that these two most recent examples illustrate some of the complications that arise when studying limits of two-variable functions, many of the properties that are familiar from our study of single variable functions hold in precisely the same way.
Let \(f=f(x,y)\) and \(g=g(x,y)\) be functions so that \(\displaystyle{\lim_{(x,y) \to (a,b)} f(x,y)}\) and \(\displaystyle{\lim_{(x,y) \to (a,b)} g(x,y)}\) both exist. Then
\(\displaystyle \lim_{(x,y)\to(a,b)} x = a\) and \(\displaystyle \lim_{(x,y)\to(a,b)} y = b\)
We can use these properties and results from single variable calculus to verify that many limits exist. For example, these properties show that the function \(f\) defined by
In Activity 11.2.3, we saw how looking at all different types of paths that approach the input of interest is necessary to determine whether the limit exists. Additionally, Example 11.2.9 shows how a careful set of algebra and inequalities can be used to prove a limit does exist. When working with limits in single variable calculus, you often either used properties like those listed above or had to use other tools related to measuring the rates of change in different functions.
One tool that will work well for functions with two independent input variables is polar coordinates. If we convert our problem (both the function and the limit) to polar coordinates with the point of interest at the origin, then we can evaluate our limit in terms of \(r\) going to zero. Remember from Subsection 9.8.2 that polar coordinates allow us to separate the distance from the origin and the rotation around the origin. In other words, the \(r\)-coordinate measures how far we are from the origin (our limit point) and \(\theta\) will describe the direction with which we are approaching the origin (our limit point). In Subsection 9.8.2, there are several examples of converting points and equations into polar coordinates so will refer you there to review as necessary.
First, we note that this function is well-suited to convert to polar coordinates by writing \(x\) and \(y\) in terms of \(r\) and \(\theta\text{.}\) Substituting in \(y=r \sin(\theta)\) and \(r^2=x^2+y^2\) into our function we have
Evaluating the limit of \(\sin(\theta)\) as \(r\) goes to \(0\) gives \(\sin(\theta)\text{.}\) The result of our algebraic limit calculation may seem surprising at first, because your prior experience with limits suggests that the limit of a function should either be a scalar or not exist. The conversion from rectangular to polar coordinates means we must interpret this result in terms of rectangular coordinates. Another way of saying what it means for the limit to be \(\sin(\theta)\) is that our conclusion is that the limit has a dependence on the direction in which we approached the origin. Specifically, when approaching the origin along a line that makes an angle of \(\theta\) with the positive \(x\)-axis, the output of the function approaches \(\sin(\theta)\text{.}\) In terms of rectangular coordinates, we say that the limit of \(\frac{y}{\sqrt{x^2+y^2}}\) as \((x,y)\to(0,0)\) does not exist because the limits along different paths going to the origin do not agree with each other.
Figure 11.2.11 shows in blue a collection of paths in the \(xy\)-plane that approach the origin. Each of these paths is shown in red on the surface \(z=f(x,y)=\frac{y}{\sqrt{x^2+y^2}}\) to demonstrate how the output of \(f\text{,}\) which is represented as the height of the surface, approaches different values as these paths each approach \((0,0)\text{.}\) Note that the limit along each of these paths exists, but the limit as \((x,y) \to (0,0)\) does not exist because there are paths that yield different limits. This should give you a greater appreciation for a surface plot like we saw in Activity 11.2.2. Computer-generated plots will create a surface plot but it is important for you to identify features on that plot that will have behaviour quite different than the smooth, continuous appearance.
In this activity, we again consider the limit as \((x,y)\) goes to \((0,0)\) of \(g(x,y)=\frac{x^2y^2}{x^2+y^2}\text{,}\) which we previously saw in Example 11.2.9.
Write a couple of sentences explaining how your answer to the previous part shows that the original limit is \(0\) and contrast with the previous example.
These examples may tempt you to conclude that polar coordinates will solve all problems related to finding limits of functions of two variables. However, that simplification misses the importance of how convienent it was to convert to polar coordinates in these functions. If we were examining a function that did not have a convienent conversion to polar coordinates or the algebra to simplify and evaluate the limit in polar coordinates was difficult, then polar coordinates will not be a great tool for evaluating limits. (Consider, for example, what would happen if you tried polar coordinates in Exercise 13.) Polar coordinates as a tool is presented here because it highlights how to geometrically separate position in two dimensions into a distance and a measure of directionality. These ideas recur in many places throughout this text and have already been used in our work on vectors. For instance, we often analyze the magnitude of vector measurements differently than we analyze direction aspects of vectors.
Recall that a function \(f\) of a single variable \(x\) is said to be continuous at \(x=a\) provided that the following three conditions are satisfied:
For instance, we have seen that the function \(f\) defined by \(f(x,y) = 3x^2y^3 + 2xy^2 - 3x + 1\) is continous at every point. And just as with single variable functions, continuity has certain properties that are based on the properties of limits.
Using these properties, we can apply results from single variable calculus to decide about continuity of multivariable functions. For example, the coordinate functions \(f\) and \(g\) defined by \(f(x,y) = x\) and \(g(x,y) = y\) are continuous at every point. We can then use properties of continuity listed to conclude that every polynomial function in \(x\) and \(y\) is continuous at every point. For example, \(g(x,y)=x^2\) and \(h(x,y)=y^3\) are continuous functions, so their product \(f(x,y) = x^2y^3\) is a continuous multivariable function.
A function \(f = f(x,y)\) has a limit \(L\) at a point \((a,b)\) provided that we can make \(f(x,y)\) as close to \(L\) as we like by taking \((x,y)\) sufficiently close (but not equal) to \((a,b)\text{.}\)
If \((x,y)\) has two different limits as \((x,y)\) approaches \((a,b)\) along two different paths, we can conclude that \(\lim_{(x,y)\to(a,b)}f(x,y)\) does not exist.
Use appropriate technology to sketch both surface and contour plots of \(f\) near \((0,0)\text{.}\) Write several sentences to say how your plots affirm your findings in (a) - (d).
Use appropriate technology to sketch both surface and contour plots of \(g\) near \((0,0)\text{.}\) Write several sentences to say how your plots affirm your findings in (a) - (d).
Evaluate the limit of \(h\) at \((0,0)\) along all linear paths the contain the origin. What does this tell us about \(\lim_{(x,y) \to (0,0)} h(x,y)\text{?}\) (Hint: A non-vertical line throught the origin has the form \(y = mx \) for some constant \(m\text{.}\))
Does \(\lim_{(x,y) \to (0,0)} h(x,y)\) exist? Verify your answer. Check by using appropriate technology to sketch both surface and contour plots of \(h\) near \((0,0)\text{.}\) Write several sentences to say how your plots affirm your findings about \(\lim_{(x,y) \to (0,0)} h(x,y)\text{.}\)
For each of the following prompts, provide an example of a function of two variables with the desired properties (with justification), or explain why such a function does not exist.
A function \(p\) that is defined at \((0,0)\text{,}\) but \(\lim_{(x,y) \to (0,0)} p(x,y)\) does not exist.