## Section13.2Limits and Continuity of Multivariable Functions

We continue with the pattern we have established in this text: after defining a new kind of function, we apply calculus ideas to it. The previous section defined functions of two and three variables; this section investigates what it means for these functions to be “continuous.”

We begin with a series of definitions. We are used to “open intervals” such as $$(1,3)\text{,}$$ which represents the set of all $$x$$ such that $$1\lt x\lt 3\text{,}$$ and “closed intervals” such as $$[1,3]\text{,}$$ which represents the set of all $$x$$ such that $$1\leq x\leq 3\text{.}$$ We need analogous definitions for open and closed sets in the $$xy$$-plane.

### Subsection13.2.1Open and Closed Subsets in Higher Dimensions

###### Definition13.2.2.Open Disk, Boundary and Interior Points, Open and Closed Sets, Bounded Sets.

An open disk $$B$$ in $$\mathbb{R}^2$$ centered at $$(x_0,y_0)$$ with radius $$r$$ is the set of all points $$(x,y)$$ such that $$\ds\sqrt{(x-x_0)^2+(y-y_0)^2} \lt r\text{.}$$

Let $$S$$ be a set of points in $$\mathbb{R}^2\text{.}$$ A point $$P$$ in $$\mathbb{R}^2$$ is a boundary point of $$S$$ if all open disks centered at $$P$$ contain both points in $$S$$ and points not in $$S\text{.}$$

A point $$P$$ in $$S$$ is an interior point of $$S$$ if there is an open disk centered at $$P$$ that contains only points in $$S\text{.}$$

A set $$S$$ is open if every point in $$S$$ is an interior point.

A set $$S$$ is closed if it contains all of its boundary points.

A set $$S$$ is bounded if there is an $$M \gt 0$$ such that the open disk, centered at the origin with radius $$M\text{,}$$ contains $$S\text{.}$$ A set that is not bounded is unbounded.

Figure 13.2.3 shows several sets in the $$xy$$-plane. In each set, point $$P_1$$ lies on the boundary of the set as all open disks centered there contain both points in, and not in, the set. In contrast, point $$P_2$$ is an interior point for there is an open disk centered there that lies entirely within the set.

The set depicted in Figure 13.2.3.(a) is a closed set as it contains all of its boundary points. The set in Figure 13.2.3.(b) is open, for all of its points are interior points (or, equivalently, it does not contain any of its boundary points). The set in Figure 13.2.3.(c) is neither open nor closed as it contains some of its boundary points.

###### Example13.2.4.Determining open/closed, bounded/unbounded.

Determine if the domain of the function $$f(x,y)=\sqrt{1-x^2/9-y^2/4}$$ is open, closed, or neither, and if it is bounded.

Solution.

This domain of this function was found in Example 13.1.4 to be $$D = \{(x,y)\,|\,\frac{x^2}9+\frac{y^2}4\leq 1\}\text{,}$$ the region bounded by the ellipse $$\frac{x^2}9+\frac{y^2}4=1\text{.}$$ Since the region includes the boundary (indicated by the use of “$$\leq$$”), the set contains all of its boundary points and hence is closed. The region is bounded as a disk of radius 4, centered at the origin, contains $$D\text{.}$$

###### Example13.2.5.Determining open/closed, bounded/unbounded.

Determine if the domain of $$f(x,y) = \frac1{x-y}$$ is open, closed, or neither.

Solution.

As we cannot divide by 0, we find the domain to be $$D = \{(x,y)\,|\,x-y\neq 0\}\text{.}$$ In other words, the domain is the set of all points $$(x,y)$$ not on the line $$y=x\text{.}$$

The domain is sketched in Figure 13.2.6. Note how we can draw an open disk around any point in the domain that lies entirely inside the domain, and also note how the only boundary points of the domain are the points on the line $$y=x\text{.}$$ We conclude the domain is an open set. The set is unbounded.

### Subsection13.2.2Limits

Recall a pseudo-definition of the limit of a function of one variable:

“$$\lim\limits_{x\to c}f(x) = L$$”

means that if $$x$$ is “really close” to $$c\text{,}$$ then $$f(x)$$ is “really close” to $$L\text{.}$$ A similar pseudo-definition holds for functions of two variables. We'll say that

“$$\lim\limits_{(x,y)\to (x_0,y_0)} f(x,y) = L$$”

means “if the point $$(x,y)$$ is really close to the point $$(x_0,y_0)\text{,}$$ then $$f(x,y)$$ is really close to $$L\text{.}$$” The formal definition is given below.

###### Definition13.2.7.Limit of a Function of Two Variables.

Let $$S$$ be a set containing $$P=(x_0,y_0)$$ where every open disk centered at $$P$$ contains points in $$S$$ other than $$P\text{,}$$ let $$f$$ be a function of two variables defined on $$S\text{,}$$ except possibly at $$P\text{,}$$ and let $$L$$ be a real number. The limit of $$f(x,y)$$ as $$(x,y)$$ approaches $$(x_0,y_0)$$ is $$L\text{,}$$ denoted

\begin{equation*} \lim\limits_{(x,y)\to (x_0,y_0)} f(x,y) = L\text{,} \end{equation*}

means that given any $$\varepsilon \gt 0\text{,}$$ there exists $$\delta \gt 0$$ such that for all $$(x,y)$$ in $$S\text{,}$$ where $$(x,y)\neq (x_0,y_0)\text{,}$$ if $$(x,y)$$ is in the open disk centered at $$(x_0,y_0)$$ with radius $$\delta\text{,}$$ then $$\abs{f(x,y) - L}\lt \varepsilon\text{.}$$

The concept behind Definition 13.2.7 is sketched in Figure 13.2.8. Given $$\varepsilon \gt 0\text{,}$$ find $$\delta \gt 0$$ such that if $$(x,y)$$ is any point in the open disk centered at $$(x_0,y_0)$$ in the $$xy$$-plane with radius $$\delta\text{,}$$ then $$f(x,y)$$ should be within $$\varepsilon$$ of $$L\text{.}$$

Computing limits using this definition is rather cumbersome. The following theorem allows us to evaluate limits much more easily.

This theorem, combined with Theorems 1.3.4 and Theorem 1.3.7 of Section 1.3, allows us to evaluate many limits.

###### Example13.2.10.Evaluating a limit.

Evaluate the following limits:

1. $$\displaystyle \lim_{(x,y)\to (1,\pi)} \left(\frac yx + \cos(xy)\right)$$

2. $$\displaystyle \lim_{(x,y)\to (0,0)} \frac{3xy}{x^2+y^2}$$

Solution.
1. The aforementioned theorems allow us to simply evaluate $$y/x+\cos(xy)$$ when $$x=1$$ and $$y=\pi\text{.}$$ If an indeterminate form is returned, we must do more work to evaluate the limit; otherwise, the result is the limit. Therefore

\begin{align*} \lim_{(x,y)\to (1,\pi)} \frac yx + \cos(xy) \amp = \frac\pi{1}+\cos(\pi)\\ \amp = \pi -1\text{.} \end{align*}
2. We attempt to evaluate the limit by substituting 0 in for $$x$$ and $$y\text{,}$$ but the result is the indeterminate form “$$0/0\text{.}$$” To evaluate this limit, we must “do more work,” but we have not yet learned what “kind” of work to do. Therefore we cannot yet evaluate this limit.

When dealing with functions of a single variable we also considered one-sided limits and stated

\begin{equation*} \lim_{x\to c}f(x) = L \text{ if, and only if, } \lim_{x\to c^+}f(x) =L \textbf{ and} \lim_{x\to c^-}f(x) =L\text{.} \end{equation*}

That is, the limit is $$L$$ if and only if $$f(x)$$ approaches $$L$$ when $$x$$ approaches $$c$$ from either direction, the left or the right.

In the plane, there are infinitely many directions from which $$(x,y)$$ might approach $$(x_0,y_0)\text{.}$$ In fact, we do not have to restrict ourselves to approaching $$(x_0,y_0)$$ from a particular direction, but rather we can approach that point along a path that is not a straight line. It is possible to arrive at different limiting values by approaching $$(x_0,y_0)$$ along different paths. If this happens, we say that $$\lim\limits_{(x,y)\to(x_0,y_0) } f(x,y)$$ does not exist (this is analogous to the left and right hand limits of single variable functions not being equal).

Our theorems tell us that we can evaluate most limits quite simply, without worrying about paths. When indeterminate forms arise, the limit may or may not exist. If it does exist, it can be difficult to prove this as we need to show the same limiting value is obtained regardless of the path chosen. The case where the limit does not exist is often easier to deal with, for we can often pick two paths along which the limit is different.

###### Example13.2.11.Showing limits do not exist.
1. Show $$\lim\limits_{(x,y)\to (0,0)} \frac{3xy}{x^2+y^2}$$ does not exist by finding the limits along the lines $$y=mx\text{.}$$

2. Show $$\lim\limits_{(x,y)\to (0,0)} \frac{\sin(xy)}{x+y}$$ does not exist by finding the limit along the path $$y=-\sin(x)\text{.}$$

Solution.
1. Evaluating $$\lim\limits_{(x,y)\to (0,0)} \frac{3xy}{x^2+y^2}$$ along the lines $$y=mx$$ means replace all $$y$$'s with $$mx$$ and evaluating the resulting limit:

\begin{align*} \lim_{(x,mx)\to (0,0)} \frac{3x(mx)}{x^2+(mx)^2} \amp =\lim_{x\to 0} \frac{3mx^2}{x^2(m^2+1)}\\ \amp = \lim_{x\to 0} \frac{3m}{m^2+1}\\ \amp = \frac{3m}{m^2+1}\text{.} \end{align*}

While the limit exists for each choice of $$m\text{,}$$ we get a different limit for each choice of $$m\text{.}$$ That is, along different lines we get differing limiting values, meaning the limit does not exist.

2. Let $$f(x,y) = \frac{\sin(xy)}{x+y}\text{.}$$ We are to show that $$\lim\limits_{(x,y)\to (0,0)} f(x,y)$$ does not exist by finding the limit along the path $$y=-\sin(x)\text{.}$$ First, however, consider the limits found along the lines $$y=mx$$ as done above.

\begin{align*} \lim_{(x,mx)\to (0,0)} \frac{\sin\big(x(mx)\big)}{x+mx} \amp = \lim_{x\to 0} \frac{\sin(mx^2)}{x(m+1)}\\ \amp = \lim_{x\to 0} \frac{\sin(mx^2)}{x}\cdot\frac1{m+1}\text{.} \end{align*}

By applying L'Hospital's Rule, we can show this limit is 0 except when $$m=-1\text{,}$$ that is, along the line $$y=-x\text{.}$$ This line is not in the domain of $$f\text{,}$$ so we have found the following fact: along every line $$y=mx$$ in the domain of $$f\text{,}$$ $$\lim\limits_{(x,y)\to(0,0)} f(x,y)=0\text{.}$$ Now consider the limit along the path $$y=-\sin(x)\text{:}$$

\begin{align*} \lim_{(x,-\sin(x) )\to (0,0)} \frac{\sin\big(-x\sin(x) \big)}{x-\sin(x) } \amp = \lim_{x\to0} \frac{\sin\big(-x\sin(x) \big)}{x-\sin(x) } \end{align*}

Now apply L'Hospital's Rule twice:

\begin{align*} \amp = \lim_{x\to 0}\frac{\cos\big(-x\sin(x) \big)(-\sin(x) -x\cos(x) )}{1-\cos(x) } \quad \left(0/0\right)\\ \amp = \lim_{x\to 0}\frac{-\sin\big(-x\sin(x) \big)(-\sin(x) -x\cos(x) )^2+\cos\big(-x\sin(x) \big)(-2\cos(x) +x\sin(x) )}{\sin(x) }\text{.} \end{align*}

This last limit is of the form “$$2/0$$”, which suggests that the limit does not exist. Step back and consider what we have just discovered. Along any line $$y=mx$$ in the domain of the $$f(x,y)\text{,}$$ the limit is 0. However, along the path $$y=-\sin(x)\text{,}$$ which lies in the domain of $$f(x,y)$$ for all $$x\neq 0\text{,}$$ the limit does not exist. Since the limit is not the same along every path to $$(0,0)\text{,}$$ we say $$\lim\limits_{(x,y)\to (0,0)}\frac{\sin(xy)}{x+y}$$ does not exist.

###### Example13.2.12.Finding a limit.

Let $$f(x,y) = \frac{5x^2y^2}{x^2+y^2}\text{.}$$ Find $$\lim\limits_{(x,y)\to (0,0)} f(x,y)\text{.}$$

Solution.

It is relatively easy to show that along any line $$y=mx\text{,}$$ the limit is 0. This is not enough to prove that the limit exists, as demonstrated in the previous example, but it tells us that if the limit does exist then it must be 0.

To prove the limit is 0, we apply Definition 13.2.7. Let $$\varepsilon \gt 0$$ be given. We want to find $$\delta \gt 0$$ such that if $$\sqrt{(x-0)^2+(y-0)^2} \lt \delta\text{,}$$ then $$\abs{f(x,y)-0} \lt \varepsilon\text{.}$$

Set $$\delta \lt \sqrt{\varepsilon/5}\text{.}$$ Note that $$\abs{\frac{5y^2}{x^2+y^2}} \lt 5$$ for all $$(x,y)\neq (0,0)\text{,}$$ and that if $$\sqrt{x^2+y^2} \lt \delta\text{,}$$ then $$x^2\lt \delta^2\text{.}$$

Let $$\sqrt{(x-0)^2+(y-0)^2} = \sqrt{x^2+y^2}\lt \delta\text{.}$$ Consider $$\abs{f(x,y)-0}\text{:}$$

\begin{align*} \abs{f(x,y)-0} \amp = \abs{\frac{5x^2y^2}{x^2+y^2}-0}\\ \amp = \abs{x^2\cdot\frac{5y^2}{x^2+y^2}}\\ \amp \lt \delta^2\cdot 5\\ \amp \lt \frac{\varepsilon}{5}\cdot 5\\ \amp = \varepsilon\text{.} \end{align*}

Thus if $$\sqrt{(x-0)^2+(y-0)^2}\lt \delta$$ then $$\abs{f(x,y)-0}\lt \varepsilon\text{,}$$ which is what we wanted to show. Thus $$\lim\limits_{(x,y)\to(0,0)} \frac{5x^2y^2}{x^2+y^2} = 0\text{.}$$

### Subsection13.2.3Continuity

Definition 1.5.1 defines what it means for a function of one variable to be continuous. In brief, it meant that the graph of the function did not have breaks, holes, jumps, etc. We define continuity for functions of two variables in a similar way as we did for functions of one variable.

###### Definition13.2.13.Continuous.

Let a function $$f(x,y)$$ be defined on a set $$S$$ containing the point $$(x_0,y_0)\text{.}$$

1. $$f$$ is continuous at $$(x_0,y_0)$$ if $$\lim\limits_{(x,y)\to(x_0,y_0)} f(x,y) = f(x_0,y_0)\text{.}$$

2. $$f$$ is continuous on $$S$$ if $$f$$ is continuous at all points in $$S\text{.}$$ If $$f$$ is continuous at all points in $$\mathbb{R}^2\text{,}$$ we say that $$f$$ is continuous everywhere.

###### Example13.2.14.Continuity of a function of two variables.

Let $$f(x,y) = \left\{ \begin{array}{rl} \frac{\cos(y) \sin(x) }{x} \amp x\neq 0 \\ \cos(y) \amp x=0 \end{array} \right.\text{.}$$ Is $$f$$ continuous at $$(0,0)\text{?}$$ Is $$f$$ continuous everywhere?

Solution.

To determine if $$f$$ is continuous at $$(0,0)\text{,}$$ we need to compare $$\lim\limits_{(x,y)\to (0,0)} f(x,y)$$ to $$f(0,0)\text{.}$$

Applying the definition of $$f\text{,}$$ we see that $$f(0,0) = \cos(0) = 1\text{.}$$

We now consider the limit $$\lim\limits_{(x,y)\to (0,0)} f(x,y)\text{.}$$ Substituting $$0$$ for $$x$$ and $$y$$ in $$(\cos(y) \sin(x) )/x$$ returns the indeterminate form “0/0”, so we need to do more work to evaluate this limit.

Consider two related limits: $$\lim\limits_{(x,y)\to (0,0)} \cos(y)$$ and $$\lim\limits_{(x,y)\to(0,0)} \frac{\sin(x) }x\text{.}$$ The first limit does not contain $$x\text{,}$$ and since $$\cos(y)$$ is continuous,

\begin{equation*} \lim\limits_{(x,y)\to (0,0)} \cos(y) =\lim_{y\to 0} \cos(y) = \cos(0) = 1\text{.} \end{equation*}

The second limit does not contain $$y\text{.}$$ By Theorem 1.3.17 we can say

\begin{equation*} \lim_{(x,y)\to (0,0)} \frac{\sin(x) }{x} = \lim_{x\to 0} \frac{\sin(x) }{x} = 1\text{.} \end{equation*}

Finally, Theorem 13.2.9 of this section states that we can combine these two limits as follows:

\begin{align*} \lim_{(x,y)\to (0,0)} \frac{\cos(y) \sin(x) }{x} \amp = \lim_{(x,y)\to (0,0)} (\cos(y) )\left(\frac{\sin(x) }{x}\right)\\ \amp =\left(\lim_{(x,y)\to (0,0)} \cos(y) \right)\left(\lim_{(x,y)\to (0,0)} \frac{\sin(x) }{x}\right)\\ \amp = (1)(1)\\ \amp =1\text{.} \end{align*}

We have found that $$\lim\limits_{(x,y)\to (0,0)} \frac{\cos(y) \sin(x) }{x} = f(0,0)\text{,}$$ so $$f$$ is continuous at $$(0,0)\text{.}$$

A similar analysis shows that $$f$$ is continuous at all points in $$\mathbb{R}^2\text{.}$$ As long as $$x\neq0\text{,}$$ we can evaluate the limit directly; when $$x=0\text{,}$$ a similar analysis shows that the limit is $$\cos(y)\text{.}$$ Thus we can say that $$f$$ is continuous everywhere. A graph of $$f$$ is given in Figure 13.2.15. Notice how it has no breaks, jumps, etc.

The following theorem is very similar to Theorem 1.5.10, giving us ways to combine continuous functions to create other continuous functions.

###### Example13.2.17.Establishing continuity of a function.

Let $$f(x,y) = \sin(x^2\cos(y) )\text{.}$$ Show $$f$$ is continuous everywhere.

Solution.

We will apply both Theorems 1.5.10 and Theorem 13.2.16. Let $$f_1(x,y) = x^2\text{.}$$ Since $$y$$ is not actually used in the function, and polynomials are continuous (by Theorem 1.5.10), we conclude $$f_1$$ is continuous everywhere. A similar statement can be made about $$f_2(x,y) = \cos(y)\text{.}$$ Part 3 of Theorem 13.2.16 states that $$f_3=f_1\cdot f_2$$ is continuous everywhere, and Part 7 of the theorem states the composition of sine with $$f_3$$ is continuous: that is, $$\sin(f_3) = \sin(x^2\cos(y) )$$ is continuous everywhere.

### Subsection13.2.4Functions of Three Variables

The definitions and theorems given in this section can be extended in a natural way to definitions and theorems about functions of three (or more) variables. We cover the key concepts here; some terms from Definitions 13.2.2 and Definition 13.2.13 are not redefined but their analogous meanings should be clear to the reader.

###### Definition13.2.18.Open Balls, Limit, Continuous.
1. An open ball in $$\mathbb{R}^3$$ centered at $$(x_0,y_0,z_0)$$ with radius $$r$$ is the set of all points $$(x,y,z)$$ such that

\begin{equation*} \sqrt{(x-x_0)^2+(y-y_0)^2+(z-z_0)^2} = r\text{.} \end{equation*}
2. Let $$D$$ be a set in $$\mathbb{R}^3$$ containing $$(x_0,y_0,z_0)$$ where every open ball centered at $$(x_0,y_0,z_0)$$ contains points of $$D$$ other than $$(x_0,y_0,z_0)\text{,}$$ and let $$f(x,y,z)$$ be a function of three variables defined on $$D\text{,}$$ except possibly at $$(x_0,y_0,z_0)\text{.}$$ The limit of $$f(x,y,z)$$ as $$(x,y,z)$$ approaches $$(x_0,y_0,z_0)$$ is $$L\text{,}$$ denoted

\begin{equation*} \lim_{(x,y,z)\to (x_0,y_0,z_0)} f(x,y,z) = L\text{,} \end{equation*}

means that given any $$\varepsilon \gt 0\text{,}$$ there is a $$\delta \gt 0$$ such that for all $$(x,y,z)$$ in $$D\text{,}$$ $$(x,y,z)\neq(x_0,y_0,z_0)\text{,}$$ if $$(x,y,z)$$ is in the open ball centered at $$(x_0,y_0,z_0)$$ with radius $$\delta\text{,}$$ then $$\abs{f(x,y,z) - L}\lt \varepsilon\text{.}$$

3. Let $$f(x,y,z)$$ be defined on a set $$D$$ containing $$(x_0,y_0,z_0)\text{.}$$ We say $$f$$ is continuous at $$(x_0,y_0,z_0)$$ if

\begin{equation*} \lim\limits_{(x,y,z)\to (x_0,y_0,z_0)} f(x,y,z) = f(x_0,y_0,z_0)\text{.} \end{equation*}

If $$f$$ is continuous at all points in $$D\text{,}$$ we say $$f$$ is continuous on $$D$$.

These definitions can also be extended naturally to apply to functions of four or more variables. Theorem 13.2.16 also applies to function of three or more variables, allowing us to say that the function

\begin{equation*} f(x,y,z) = \frac{e^{x^2+y}\sqrt{y^2+z^2+3}}{\sin(xyz)+5} \end{equation*}

is continuous everywhere.

When considering single variable functions, we studied limits, then continuity, then the derivative. In our current study of multivariable functions, we have studied limits and continuity. In the next section we study derivation, which takes on a slight twist as we are in a multivariable context.

### Exercises13.2.5Exercises

###### 1.

Describe in your own words the difference between the boundary and interior points of a set.

###### 2.

Use your own words to describe (informally) what $$\lim\limits_{(x,y)\to (1,2)} f(x,y) = 17$$ means.

###### 3.

Give an example of a closed, bounded set.

###### 4.

Give an example of a closed, unbounded set.

###### 5.

Give an example of a open, bounded set.

###### 6.

Give an example of a open, unbounded set.

###### Problems

A set $$S$$ is given.

1. Give one boundary point and one interior point, when possible, of $$S\text{.}$$

2. State whether $$S$$ is open, closed, or neither.

3. State whether $$S$$ is bounded or unbounded.

###### 7.

$$\ds S = \left\{(x,y)\,\left| \, \frac{(x-1)^2}{4}+\frac{(y-3)^2}{9}\leq 1\right.\right\}$$

###### 8.

$$S = \left\{(x,y)\mid y\neq x^2\right\}$$

###### 9.

$$\ds S = \left\{(x,y)\,| \, x^2+y^2=1\right\}$$

###### 10.

$$S = \left\{(x,y)\mid y \gt \sin(x)\right\}\text{.}$$

In the following exercises:

1. Find the domain $$D$$ of the given function.

2. State whether $$D$$ is an open or closed set.

3. State whether $$D$$ is bounded or unbounded.

###### 11.

$$\ds f(x,y) = \sqrt{9-x^2-y^2}$$

###### 12.

$$\ds f(x,y) = \sqrt{y-x^2}$$

###### 13.

$$\ds f(x,y) = \frac{1}{\sqrt{y-x^2}}$$

###### 14.

$$\ds f(x,y) = \frac{x^2-y^2}{x^2+y^2}$$

In the following exercises, a limit is given. Evaluate the limit along the paths given, then state why these results show the given limit does not exist.

###### 15.

$$\lim\limits_{(x,y)\to(0,0)} \frac{x^2-y^2}{x^2+y^2}$$

1. Along the path $$y=0\text{.}$$

2. Along the path $$x=0\text{.}$$

###### 16.

$$\lim\limits_{(x,y)\to(0,0)} \frac{x+y}{x-y}$$

1. Along the path $$y=mx\text{.}$$

###### 17.

$$\lim\limits_{(x,y)\to(0,0)} \frac{xy-y^2}{y^2+x}$$

1. Along the path $$y=mx\text{.}$$

2. Along the path $$x=0\text{.}$$

###### 18.

$$\lim\limits_{(x,y)\to(0,0)} \frac{\sin(x^2)}{y}$$

1. Along the path $$y=mx\text{.}$$

2. Along the path $$y=x^2\text{.}$$

###### 19.

$$\lim\limits_{(x,y)\to(1,2)} \frac{x+y-3}{x^2-1}$$

1. Along the path $$y=2\text{.}$$

2. Along the path $$y=x+1\text{.}$$

###### 20.

$$\lim\limits_{(x,y)\to(\pi,\pi/2)} \frac{\sin(x) }{\cos(y) }$$

1. Along the path $$x=\pi\text{.}$$

2. Along the path $$y=x-\pi/2\text{.}$$