Partial derivatives and plane domains - Differentiation - Two-Dimensional Calculus

Two-Dimensional Calculus (2011)

Chapter 2. Differentiation

4. Partial derivatives and plane domains

The first observation to be made in the study of a function of two variables f(x, y) is that when either x or y is held fixed the function is reduced to one of a single variable. The ordinary derivative with respect to that variable is called a partial derivative of the original function. To be precise we make the following definition.

Definition 4.1 The partial derivative of f(x, y) with respect to x at the point (x0, y0) is denoted by fx(x0, y0) and is defined by

Image

is called the partial derivative of f(x, y) with respect to y at the point (x0, y0).

There are many different notations currently used for partial derivatives. Among the most common are

Image

In this book we will generally use fx and fy, but occasionally also ∂f/∂x, ∂f/∂y. Also, when we set z = f(x, y), we write zx, zy and ∂z/∂x, ∂z/∂y.

Returning to the definition, we see that in each case we have kept one of the variables fixed and formed the ordinary derivative with respect to the other variable. It follows immediately that all the basic laws concerning ordinary derivatives give rise to corresponding laws for partial derivatives. These include the rules for differentiating sums, products, and quotients. In particular, if ∂f/∂x and ∂g/∂x both exist at (x0, y0), then so do (fg)/∂x and, providing g(x0, y0) ≠ 0, (f/g)/∂x. Similarly for the partial derivative with respect to y. As a result, if f is a polynomial, then fx and fy exist at every point.

Example 4.1

If

Image

then

Image

Note that to take the partial derivative with respect to one variable we simply treat the other variable as a constant.

Example 4.2

If

Image

then

Image

Example 4.3

If

Image

then

Image

Note that here we have to use the chain rule. We have

Image

To take the partial derivative with respect to x, we consider y constant, and we multiply the derivative of f with respect to u by the derivative of u with respect to x.

Example 4.4

If

Image

then

Image

This last example is very instructive. Note that the function f is defined for x2 + y2 ≤ 1. The functions fx and fy are well-defined at all points inside this circle, that is, for x2 + y2 < 1. However, when x2 + y2 = 1, although f is defined, the expressions for fx and fy have a zero in the denominator. If we recall the definition of partial derivatives, we see that they are actually not defined at points (x0, y0) where Image; indeed, the expression whose limit we wish to take is not defined for all x sufficiently near x0. It would be possible to consider one-sided limits and derivatives, but at certain points even these are not defined. For example, f(x, 1) is defined only for the single value x = 0 (Fig. 4.1), and fx(0, 1) does not exist in any sense.

Image

FIGURE 4.1 The domain of definition of Image

Thus, before we proceed to compute partial derivatives blindly and obtain meaningless results, we should look a little more closely at the domain of definition of a function. In particular, we have to distinguish between those interior points where we may apply any differentiation rule from singlevariable calculus without hesitation and the boundary points where trouble may arise.

We are confronted here with the first essential distinction between functions of one variable and functions of two variables. A function of one variable is defined on an interval or a set of intervals. A function of two variables may be defined on a very complicated domain in the plane. Even relatively simple functions, such as f(x, y) = (P(x, y))1/2, where P is a polynomial, may lead to quite complicated geometrical figures. More generally, the function

Image

where P1, ..., Pn are polynomials, is defined on the set of points satisfying all of the inequalities

Image

We have already seen examples of such functions, including the one we have just discussed, where P(x, y) = 1 – x2y2. The following are some typical examples.

Example 4.5

Image

For this function to be defined, we must have

Image

which describes a domain bounded by an ellipse (Fig. 4.2).

Image

FIGURE 4.2 The set of points satisfying (x2/4) + y2 ≤ 1

Example 4.6

Image

This function is defined, except when the two factors under the radical have opposite sign. Thus the function is defined only for those points (x, y) satisfying both

Image

or both

Image

The Eqs. (4.4) cannot be simultaneously satisfied, since they assert that x2 + y2 is a number at most equal to 1 and at least equal to 4. Thus the function is defined only for the set of points satisfying Eqs. (4.3); that is, the set of points bounded by the circles of radius 1 and 2 about the origin (Fig. 4.3). A set of points of this type (bounded by two concentric circles) is called an annulus.

Image

FIGURE 4.3 The annulus 1 ≤ x2 + y2 ≤ 4

Example 4.7

Image

Here yx2 and y ≤ 1, which is a parabolic segment (Fig. 4.4).

Image

FIGURE 4.4 The parabolic segment x2y ≤ 1

Example 4.8

Image

We have

Image

This defines a circular sector (Fig. 4.5).

Image

FIGURE 4.5 The circular sector x2 + y2 ≤ 4, 0 ≤ yx/2

Example 4.9

Image

This function is defined in the rectangle (Fig. 4.6):

Image

Example 4.10

Image

See Fig. 4.7.

It is probably clear from these examples that all the figures one usually encounters in elementary geometry can be defined by a set of polynomial inequalities of the form (4.2), and hence these figures are the precise domains of definition of certain elementary functions (4.1). Clearly, one can also obtain far more complicated figures by such inequalities. For our purposes it makes little difference how simple or complicated a figure may be. The

Image

FIGURE 4.6 The rectangle axb,cyd

important thing is to distinguish between its interior points and boundary points. We do this as follows.

Definition 4.2 Let S be any set of points in the plane. A point (x0, y0) is called a boundary point of S if

1. There are points of S arbitrarily close to (x0, y0);

2. There are points not in S that are arbitrarily close to (x0, y0).

A point of S that is not a boundary point is called an interior point of S.

Image

FIGURE 4.7 The set of points satisfying 4x2 + 9y2 ≤ 36, (x + 1)2 + y2 ≥ 1 and 4(x − 2)2 + 4y2 ≥ 1

Remark An interior point of S, by its definition, is always a point of S, whereas a boundary point of S may or may not itself belong to S.

Example 4.11

If S is the set of points satisfying x2 + y2 ≤ 1, then the points on the circle x2 + y2 = 1 are the boundary points of S, and those satisfying x2 + y < 1 are interior points of S.

Example 4.12

If S is the set of points satisfying x2 + y2 < 1, then again all points on x2 + y2 = 1 are boundary points of S, while all points x2 + y2 < 1 are interior points.

Note that in Example 4.12, every point of S is an interior point. As we mentioned earlier, we want to restrict our attention to sets having this property as the domains of definition of our functions, in order to be able to differentiate freely.

Definition 4.3 A set S of points is called open if every point of S is an interior point.

Examples of open sets are those sets of points (x, y) which satisfy a set of strict inequalities

Image

where P1, P2, ..., Pn are polynomials. In fact, nothing is lost in this or the next chapter if functions are pictured as being defined on such sets. There is, however, one further restriction that is convenient to make. An open set may consist of several disconnected parts, and it is sufficient to study the function separately on each part. For example, the set consisting of those points (x, y) satisfying both

Image

consists of the two shaded domains indicated in Fig. 4.8, lying inside an ellipse and outside a circle.

Definition 4.4 An open set S is connected if for any two points of S there is a curve lying in S joining the two points.

Definition 4.5 A domain is a connected open set.

Image

FIGURE 4.8 The set of points satisfying (x2/9) + y2 < 1, x2 + y2 > 4

We adhere to this terminology throughout the book. Whenever we speak of a function defined in a domain D, we mean that D is a set of points of this specific nature.

Remark The expression “the domain of a function” is often used to mean the set of points on which a function is defined. This set of points may or may not be “a domain” in our sense. In the following, we always refer to “a function defined in a domain D,” with the understanding that the function may be defined at other points too, but that we are restricting our attention to the behavior of the function in D.

Example 4.13

Let D be the set of points (x, y) such that x2 + y2 < 1. The following functions are defined in D:

Image

The first two of these functions are defined precisely at points of D and nowhere else. The third is also defined at boundary points of D, but as we have seen, its partial derivatives are not. The last is actually defined in a larger domain, but we may wish to consider only the values that it takes on in D.

A basic ingredient of the above definitions is the notion of “all points sufficiently close to a given one.” This notion can be formalized as follows.

Definition 4.6 A neighborhood of a point (x0, y0) is the set of all points (x, y) lying in some disk (xx0)2 + (yy0)2 < r2.

This terminology leads to a convenient characterization of interior points and boundary points. Given a set S and a point (x0, y0), (x0, y0) is an interior point of S if and only if some neighborhood of (x0, y0) lies entirely in S, and (x0, y0) is a boundary point of S if and only if every neighborhood of (x0, y0) contains at least one point of S and one point not in S (see Ex. 4.16 and Fig. 4.9).

Image

FIGURE 4.9 Boundary points and interior points

Exercises

4.1 Find the partial derivatives with respect to x and y of each of the following functions f(x, y).

a. x4 + 3x2y − 5xy3

b. x2 + 2xy + y2

c. x3 + 3x2y + 3xy2 + y3

d. (x + y)5

e. sin (x + y)

f. sin (x2 + y2)

g. Image

h. (x3 + y3)1/3

i. arc tan (y/x)

j. xey/x

k. xy/(x2 + y2)

l. xy sin xy

m. sec3 x log x + 5

n. log tan (x + y2)

4.2 Find the value of the following partial derivatives at the points indicated.

a. fx(0, 0) if f(x, y) = sin (xey)

b. fy(Image π, 0) if f(x, y) = log (sin x + sin y)

c. fx(Image π, 1) if f(x, y) = ey tan x

d. fy(0, 0) if f(x, y) = cosh x sin y

4.3 Compute the expression xfx + yfy for each of the following functions f(x, y).

a. x3 + y3

b. (x + y)3

c. Image

d. Image

4.4 Compute the partial derivatives of the following pairs of functions, and show that they satisfy the equations fx = gy, fy = −gx.

a. f(x, y) = ex cos y, g(x, y) = ex sin y

b. Image

4.5 If a(x, y), b(x, y) are given functions, and if for each point (x, y) we consider the vector

Image

then the partial derivatives of v(x, y) are defined by

Image

Show that

Image

4.6 Let v = ⟨a, b⟩, w = ⟨c, d⟩ be vectors, where a, b, c, and d are all functions of x and y. Suppose that λ is also a function of x and y. Show that

a. Image

b. Image

c. Image

4.7 Using the notation

Image

for a 2 × 2 determinant, show that if a, b, c, d are functions of x and y, then

Image

*4.8 State and prove a corresponding result for a 3 × 3 determinant.

4.9 Compute the determinant Image for the following pairs of functions

a. f(x, y) = x2y2, g(x, y) = 2xy

b. f(x, y) = ex cos y, g(x, y) = ex sin y

c. f(x, y) = x2 + y2 + 2xy + 2, g(x, y) = exey

d. f(x, y) = x − 2 log y, g(x, y) = Image

4.10 Let f(x, y) = sin xy.

a. Show that xfxyfy ≡ 0.

b. Let F(t) be an arbitrary differentiable function of one variable, and let g(x, y) = F(f(x, y)). Show that also xgxygy ≡ 0.

4.11 Show that Def. 4.1 that we have given for partial derivatives is equivalent to the following:

Image

4.12 By referring directly to the definition of partial derivatives, compute fx(0, 0) and fy(0, 0), where

a. f(x, y) = xy2

b. f(x, y) = 1 + x cos y

*c. Image

*d. Image

4.13 Find the set of points where each of the following functions is defined, and sketch.

a. Image

b. Image

c. log x + 1/Image + (1 − xy)−1/4

d. arc sin x + arc cos y

4.14 Describe the boundary points of each of the following sets of points (x, y). Illustrate with a sketch.

a. x2 + 4y2 < 4

b. x2 + 4y2 > 4

c. x2 + 4y2 ≥ 4 and x2 + 4y2 ≤ 16

d. x ≥ 2y and y ≥ 2x

e. x2 ≤ 1 and y2 ≤ 4

f. x2 + y2 = 1

4.15 a. Which of the sets in Ex. 4.14 are open?

b. For each set in Ex. 4.14 which is not open, name a point of the set that is not an interior point.

4.16 Show that the following characterizations of boundary points and interior points of a set S are equivalent to the definitions in the text. A point (x0, y0) is a boundary point of S if for every positive number r, the disk (xx0)2 + (yy0)2 < r2 contains at least one point in S and at least one point not in S. A point (x0, y0) is an interior point of S if for some positive r (sufficiently small), all points of the disk (xx0)2 + (yy0)2 < r2 are in S (Fig. 4.9).

4.17 A set S is called closed if S contains all its boundary points. Which sets in Ex. 4.14 are closed? (Note that a set S may be neither open nor closed. This happens when S contains some of its boundary points, but not others.)

4.18 A set S is called convex if for any two points of S, all points on the line segment joining them also lie in S.

a. Which sets in Ex. 4.14 are convex? (Do not try to justify your answers. This is one place where geometric intuition is almost infallible. Actual proofs are not difficult, but they require some practice in juggling inequalities.)

b. Show that an open convex set is necessarily a domain.

4.19 Prove carefully, by referring directly to the definition, that each of the following sets is a domain

a. the whole plane

b. the half-plane y > 0

c. the disk x2 + y2 < 1

4.20 Show that for the following functions f(x, y) the partial derivatives do not exist at the points indicated

a. Image

b. f(x, y) = (x + y − 3)1/3 at (1,2)

(Note that both functions are defined throughout the plane.)