Level curves and the implicit function theorem - Differentiation - Two-Dimensional Calculus

Two-Dimensional Calculus (2011)

Chapter 2. Differentiation

8. Level curves and the implicit function theorem

Let f(x, y) be continuously differentiable in a domain D and let (x0, y0) be any point in D. The equation f(x, y) = f(x0, y0) defines a level curve through the point (x0, y0). Let us assume for the moment that this level curve is the implicit form of a regular curve C, at least near (x0, y0). In other words, suppose we have a regular curve C: x(t), y(t), passing through (x0, y0), such that f(x, y) is constant on C. Using our earlier notation, this means

Image

for some constant k. Then

Image

and by the chain rule, at the point t0 corresponding to (x0, y0), we have

Image

This equation may be interpreted in various ways. First, if the unit tangent to C at (x0, y0) is Tα = Imagecos α, sin αImage , and if s is the parameter of arc length along C, we have

Image

Thus we may write Eq. (8.1) as

Image

and since s'(t0) ≠ 0, we have

Image

But the left-hand side of Eq. (8.3) is precisely αf(x0, y0). We are led to the following theorem.

Theorem 8.1 The directional derivative of a function at a point in the direction of a level curve through the point is always zero. The gradient of a function at a point is always orthogonal to the level curve through the point. (Both statements are made under the assumption that the level curve is a regular curve.)

PROOF. Both statements are immediate consequences of Eq. (8.3). Image

Example 8.1

Image

Here the level curves x2 + y2 = k are circles about the origin; f(x, y) = Image2x, 2yImage is a vector in the direction of the radius to these circles at each point and is therefore orthogonal to the circle (Fig. 8.1).

The directional derivative of x2 + y2 in a direction tangent to the circle x2 + y2 = k is always zero.

Image

FIGURE 8.1 Level curves and gradient vectors for f(x, y) = x2 + y2

Theorem 8.1 is based on the assumption that the equation f(x, y) = k actually represents a regular curve C, at least near a given point. Our main objective now is to prove that this is the typical case. In order to arrive at a general theorem, we consider first a special case. We ask when the equation f(x, y) = k can be solved in the form y = g(x), where g(x) is a differentiable function of x. If it can be solved, then we have

Image

and by the chain rule

Image

which is nothing but a special case of Eq. (8.1), where the parameter t is equal to x. From Eq. (8.4) it follows that if fy ≠ 0,

Image

Example 8.2

Find the slope of the curve

Image

at the point (1, −1).

We let

Image

Then

Image

Thus,

Image

The significance of Eq. (8.5) is that it allows us to compute the derivative of the function g(x) without actually knowing the function itself. In fact, there are extremely few cases where an equation f(x, y) = k can be solved explicitly in the form y = g(x). In Example 8.2, solving Eq. (8.6) for y as a function of x would be complicated, to say the least. Nevertheless, we can find the derivative of this function at any point on the curve.

One may well ask, what do we mean by “the function obtained by solving Eq. (8.6) for y in terms of x,” when we cannot in any practical sense solve Eq. (8.6) for y in terms of x. The answer to this question requires an understanding of the answer to the more basic question “what do we mean by a function?” For example, what do we mean by y = log10 x? The answer is that we mean the number y such that 10y = x. No explicit way for finding this number y need be given, but we must prove that for each x > 0 there is one and only one y such that 10y = x in order to conclude that we have defined y as a function of x.

In the same way, if we wish to assert that Eq. (8.6) defines y as a function of x, at least near some point such as (1, −1), we have to show that for all values of x in some interval about x = 1, there is a corresponding value of ysatisfying Eq. (8.6). In this case it is easy to show that for any fixed value x0, the equation

Image

is satisfied by at least one value of y. (Namely, the left-hand side of this equation is a polynomial in y of odd degree, hence tends to +∞ as y → +∞ and tends to −∞ as y → −∞, and hence must be equal to 1 at some point.) The trouble here is that there may be several values of y satisfying this equation, and in order to obtain a well-defined function we must also restrict the interval in which y is allowed to lie (Fig. 8.2).

Image

FIGURE 8.2 “Solving” (x + y)5xy = 1 in the form yg(x) near (1, −1)

We may now make our earlier statements precise. When we say that

“Equation (8.6) can be solved in the form y = g(x) near the point (1, −1),”

we mean that

“there is some interval about x = 1, such that if we restrict y to an interval about y = −1, then Eq. (8.6) has one and only one solution for each fixed x.”

Alternatively, we may say that

“there exist positive numbers a, b such that for each x satisfying |x − 1| < a, there is exactly one solution of Eq. (8.6) satisfying |y + 1| < b.”

A final, more geometric, wording of the same statement, is that

“all points satisfying Eq. (8.6) and lying inside some rectangle |x − 1| < a, |y + 1| < b about the point (1, −1) lie on a curve y = g(x).”

We now state the general theorem which allows us to conclude that an equation f(x, y) = k can be solved in the form y = g(x). It is called the implicit function theorem, and an approximate form is: if fy(x0, y0) ≠ 0, then the equation of the level curve f(x, y) = k passing through (x0, y0) can be solved in the form y = g(x) near (x0, y0).

Theorem 8.2 Implicit Function Theorem Let f(x, y) be continuously differentiable in D. Let (x0, y0) be any point in D such that

Image

Then there exist numbers δ > 0 and Image > 0, and there exists a continuously differentiable function g(x) defined for |xx0| ≤ δ such that if |xx0| ≤ δ and |yy0| ≤ Image, then

Image

PROOF. The proof falls into two completely separate parts. The first part shows that there exists a function g(x) satisfying Eq. (8.8). By its definition, this function need not even be continuous. In the second part we show that anyfunction g(x) satisfying Eq. (8.8) must in fact be continuously differentiable if f(x, y) is.

Part I. Existence of g(x) Let fy(x0, y0) = η Our basic assumption is that η ≠ 0. We may assume η > 0. (If η < 0 apply the reasoning below to the function −f.) Then, by the continuity of fy, we have for r sufficiently small,

Image

if

Image

This means that inside this circle f is a strictly increasing function of y for each fixed x. In particular, if we choose any positive number Image < r, we have

Image

By the continuity of f(x, y), we can vary x0 slightly on the left- and right-hand sides of (8.10), and the inequality still holds. More precisely, we can choose δ > 0 so that

Image

If δ is sufficiently small, then the rectangle

Image

lies inside the circle, so that Eq. (8.9) still holds in this rectangle (Fig. 8.3). Equation (8.11) asserts that along the bottom of this rectangle f(x, y) < f(x0, y0), while on the top f(x, y) < f(x0, y0). Thus on each vertical line segment x = x1the function f(x1, y) must pass through the value f(x0, y0) at some point (x1, y1) (Fig. 8.4). Further, there is only one such point on each vertical segment, since by (8.9), f(x1, y) is a strictly increasing function of y. We set g(x1) equal to this unique number y1. This defines the function g(x) for |xx0| < δ in such a way that Eq. (8.8) holds.

Image

FIGURE 8.3 A neighborhood of (x0, y0) in which fy(x, y) ≥ η/2 > 0

Part II. Smoothness of g(x) The fact that the function g(x) is continuously differentiable does not depend on the particular way in which we defined it, but is a general property, which may be stated roughly as follows: the level curves of a smooth function are smooth curves. We give this statement precise form in the following “regularity lemma.”

Lemma 8.1 If f(x, y) is continuously differentiable in D and satisfies (8.7), then any function g(x) satisfying (8.8) must be continuously differentiable.

Image

FIGURE 8.4 Existence of y1 such that f(x1, y1) = f(x0, y0)

PROOF. Define the numbers δ and Image as in part I of the proof of Th. 8.2. We consider any two values x1, x2 in |x − x0| < δ, and let

Image

Then, by (8.8),

Image

The mean-value theorem (Th. 7.3) tells us that there is a point (x3, y3) on the line segment from (x1, y1) to (x2, y2) such that

Image

But by (8.14), the left-hand side of Eq. (8.15) is zero, and hence

Image

whence

Image

by (8.9). But fx is continuous in the rectangle defined by (8.12), and hence |fx| has a maximum M there. Thus

Image

Hence x2x1y2y1g(x2) → g(x1), by (8.13). This means precisely that g(x) is continuous at x1. Since (x3, y3) is on the line segment between (x1, y1) and (x2, y2), we have further that x2x1x3x1 and y3y1. From Eq. (8.16), we conclude that

Image

Thus the limit on the left-hand side exists, and it is by definition (using Eq. (8.13) ), g'(x1). Explicitly,

Image

where y1 = g(x1). Since x1 was any value of x in |xx0| < δ, we have

Image

Thus g(x) is differentiable in |xx0| < δ, and since the right-hand side of Eq. (8.17) is a continuous function of x, g'(x) is continuous in |x − x0| < δ. This concludes the proof of the lemma, and hence of the theorem. Image

Remark. In the course of this proof we have used several basic properties of continuous functions. They are the following.

1. If f(x) is continuous for a ≤ x ≤ b, and if f(a) = c, f(b) = d, then given any number y0 between c and d, there is some x0 between a and b such that f(x0) = y0. Geometrically, this means that the graph of a continuous function intersects every horizontal line between its initial and terminal values (Fig. 8.5). This is called the “intermediate-value property” of continuous functions, and is often used (even if not explicitly stated) in calculus. To prove it requires a careful study of the real number system.3

2. If f(x, y) is continuous at (x0, y0), and if f(x0, y0) = η > 0, then for some r > 0, f(x, y) ≥ η/2 in the whole circle (xx0)2 + (yy0)2 > r2. This is an elementary fact that follows directly from the definition of continuity (see Ex. 5.16a).

3. If f(x, y) is continuous in a rectangle |xx0| ≤ δ, |yy0| ≤ Image then it is bounded; that is, for some fixed M, |f(x, y)| ≤ M in the whole rectangle. The proof of this again entails a fundamental study of the real number system. We actually stated a somewhat stronger result; namely that f(x, y) has a maximum in the rectangle. This means that f(x, y) ≤ M in the

Image

FIGURE 8.5 Intermediate-value property of continuous functions

whole rectangle, and further that f(x1, y1) = M for some point (x1, y1) in the rectangle.

For the sake of completeness we state (without proof) a general theorem of which the statements in paragraph 3 are special cases. We need first two definitions.

Definition 8.1 A set S of points in the plane is bounded if it lies inside some circle x2 + y2 < r2.

Definition 8.2 A set S of points in the plane is closed if it contains all its boundary points.

Example 8.3

If P1(x, y),…, Pr(x, y) are polynomials (or any functions continuous in the whole plane), then the set of points satisfying all of the inequalities

Image

is a closed set. Thus, a disk x2 + y2 ≤ 1 and a rectangle |xx0| ≤ δ, |yy0| ≤ Image are examples of closed, bounded sets.

Theorem 8.3 If f(x, y) is continuous on a closed, bounded set S, then it has a maximum M at some point of S.4

Returning to Th. 8.2, we see that if the roles of x and y are reversed and if fx(x0, y0) ≠ 0, then the equation f(x, y) = f(x0, y0) can be solved near (x0, y0) in the form x = h(y).

Corollary Let f(x, y) be continuously differentiable in D and suppose f(x0, y0) ≠ 0. Then near (x0, y0), the level curve f(x, y) = f(x0, y0) defines a regular curve x(t), y(t).

PROOF. Since f(x0 y0) ≠ 0, we have either fy(x0, y0) ≠ 0 or fx(x0, y0) ≠ 0 (or both). In the first case we can solve f(x, y) = f(x0, y0) in the form y = g(x), which gives a regular curve with x = t. In the second case we may write x = h(y), which is a regular curve with y = t. Image

Geometrically, we may picture the situation as follows. A point where f0, defines a point on the side of the mountain z = f(x, y). At such a point, the intersection of z = f(x, y) with a horizontal plane z = f(x0, y0), yields a smooth contour line (Fig. 8.6). Somewhat less picturesquely, the condition f0 means precisely that the tangent plane to the surface z = f(x, y) at the point is not horizontal.

Image

FIGURE 8.6 Geometric interpretation of the implicit-function theorem

Example 8.4

Image

Hence f = 0 only at the origin. The level curve through any other point is a regular curve. The “level curve” x2 + y2 = 0 consists of the single point (0, 0).

Example 8.5

Image

Again f = 0 only at the origin. The “level curve” xy = 0 through the origin consists of the entire x and y axes. Since these cross at the origin, they clearly do not form a regular curve in any circle about the origin.

Example 8.6

Image

Here,

Image

Since cos y ≥ −1 for every y, we have

Image

at every point. Hence f is never zero, and the level curves of this function are regular curves near every point. In fact, fy > 0 everywhere, and hence the equation f(x, y) = c can be solved in the form y = g(x) near each point.

Exercises

8.1 Find the slope of the curve (x + y)5xy = 1 at the following points:

a. (1,0)

b. (0, 1)

c. (1, −2)

d. (−2,1)

e. the point on the curve where y = x

8.2 Assume that each of the following equations can be solved in the form y = g(x). and use Eq. (8.5) to find dy/dx.

a. x sin yy cos x = 0

b. x + 2y2 + sin xy = 1

c. x3 − 2xy + y2 = 5

d. xeyy2 + x = 0

Note: in practice, it is often easier to use the method that led to Eq. (8.5) rather than Eq. (8.5) itself. In other words, given an equation that defines y implicitly as a function of x, consider y replaced by that function so that the equation becomes an identity in x, and then differentiate with respect to x, using the rule for composite functions of one variable. For example, differentiating

Image

yields

Image

and solving for dy/dx, we obtain

Image

8.3 Find dy/dx for each of the equations in Ex. 8.2 by the method just indicated.

8.4 For each of the following equations, find dy/dx by the implicit function method of Exs. 8.2 or 8.3. Then solve explicitly for y as a function of x and differentiate. Check that your answer is the same in both cases.

a. Image

b. yexx2 + y = 0

c. ex + ey + ex + y = 1

d. x + xy + y = 1

Note: an advantage of the implicit function method for finding the derivative dy/dx, even in the cases where it is possible to solve explicitly for y as a function of x, is that the computations are often simpler. A disadvantage is that the answer is expressed in terms of both x and y. It is still possible to take higher derivatives by using the same method. The original equation can often be used at various stages along the way to simplify the expressions obtained. For example, if x2 + y2 = 1, then

Image

Hence,

Image

8.5 Use the above method of implicit differentiation to find d2y/dx2 for each of the equations in Ex. 8.4.

8.6 Show that if f(x0, y0) ≠ 0, then the equation of the tangent line to the level curve f(x, y) = f(x0, y0) at the point (x0, y0) is

Image

*8.7 Show that all level curves of the function

Image

intersect all rays through the origin at an angle of 45°. (Hint: Show that if (x0, y0) is any point on a level curve f(x, y) = c, tan α is the slope of the curve at that point, and tan θ = y0/x0, then tan α = tan (θ + Imageπ).)

8.8 Explain Exs. 6.5 and 6.6 in the light of Th. 8.1.

8.9 For each of the functions of Ex. 6.3, sketch the level curve through the point (1, 1) and verify Th. 8.1.

8.10 If f(x, y) = sin log cosh tan ex2 + y2, find fx(0, 1). (Hint: do not calculate. Think!)

8.11 For each of the following pairs of functions f(x, y), g(x, y) show that each level curve of f(x, y) intersects at right angles all level curves of g(x, y). (More precisely, this property holds at all points of intersection where both level curves are regular curves.)

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

b. f(x, y) = x2 + y2, g(x, y) = y2/x2

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

8.12 a. Write an equation involving the partial derivatives of f(x, y) and g(x, y) that is equivalent to the condition that the level curves of f and g intersect at right angles wherever f and g have nonzero gradient.

b. Show that any pair of functions satisfying the Cauchy-Riemann equations fx = gy, fy = − gx, have the property that their level curves intersect at right angles.

c. Show that the converse of part b is false.

8.13 An important quantity in meteorology is atmospheric pressure. When the atmospheric pressure is considered as a function of position over a portion of the earth’s surface, the level curves are called isobars. In the absence of other forces, the gradient of this function would indicate the magnitude and direction of winds. The air would tend to travel from higher to lower pressure areas, the speed would be proportional to the rate of change of pressure and the direction would be that of the maximum rate of change of pressure. Thus, by Th. 8.1, the direction of winds would be perpendicular to the isobars. In fact, other factors, such as the rotation of the earth, deflect the winds, but a map showing the isobars is still a basic component for predicting winds and weather in general. (See Fig. 8.7 where atmospheric pressure is given in inches of mercury (29.2 to 30.6) and in millibars (989 to 1036).)

Explain why the wind velocity tends to be small near the center of either a high pressure or a low pressure area. (The “doldrums” are the low-pressure areas near the equator, and the “horse latitudes” refer to the high-pressure belts over the oceans at around 30° latitude North and South of the equator.)

8.14 For each of the following functions f(x, y) and points (x0, y0), check whether the condition fy(x0, y0) ≠ 0 is satisfied. If not, decide whether the conclusion of Th. 8.2 is valid, and if it is not explain what part of it fails.

a. f(x, y) = x2 + y2, (x0, y0) = (−5, 0)

b. f(x, y) = x2 + y2, (x0, y0) = (−4, 3)

c. f(x, y) = x + y3, (x0, y0) = (0, 0)

d. f(x, y) = x2 + 2xy + y2, (x0, y0) = (0, 0)

8.15 Show that the equation (x + y)5xy = 1 defines a regular curve near each of its points. (Hint: show that a simultaneous solution of fx = 0 and fy = 0 cannot lie on the curve.)

8.16 For each of the following functions f(x, y), sketch and describe in words the level curve f(x, y) = 0. Check in particular any points on the curve where f = 0, and describe the curve near those points.

a. f(x, y) = x2y3

b. f(x, y) = x4 + y4

c. f(x, y) = x2 + y2 − 1)(x2 + y2)

d. f(x, y) = x2 + y2 − 1)2

e. f(x, y) = x2 + y2 + exy

*f. f(x, y) = x3x2 + xy2 + y2

(Hint: in part f, either solve for y as a function of x, or else use the parametric form given in Ex. 2.13.)

8.17 The inverse function theorem for functions of one variable may be stated as follows. If h(y) is differentiable and h'(y0) ≠ 0, then the equation x = h(y)

Image

FIGURE 8.7 Mean January sea-level pressures and wind directions of the world [Thomas A. Blair and Robert C. Fite, Weather Elements, 4th Ed., © 1957. Reprinted by permission of Prentice-Hall, Inc., Englewood Cliffs, New Jersey. Base map Copyright Denoyer-Geppert Company, Chicago, used by permission.]

can be solved near x0 = h(y0) in the form y = g(x), where g(x) is differentiable and g'(x0) = 1/h'(y0). By considering the function f(x, y) = h(y) Image x, show how this theorem is related to the implicit function theorem, Th. 8.2.

8.18 Kepler’s laws of planetary motion (see Ex. 7.25) do not give the position of a planet explicitly as a function of time. However, if a planet moves along the ellipse x = a cos φ, y = b sin φ, where the sun is at the focus (c, 0), and if t is the time from the moment the planet passes the point (a, 0) (the perihelion) to the position corresponding to a given value of φ, then it follows from Kepler’s second law that φ and t are related by Kepler’s equation

Image

where k is a positive constant. (We are using the standard notation for an ellipse: c = (a2b2)1/2, Image = c/a. Thus, 0 < Image < 1.)

a. Show that for an arbitrary pair of values t0, φ0 satisfying Kepler’s equation, there exists a solution of that equation in the form φ = g(t) near (t0, φ0).

b. Show that if g(t) is the function of part a, then

Image

c. Deduce that dφ/dt is maximum at perihelion (a, 0), and minimum at aphelion (− a, 0).

d. Find the velocity vector v(t) = Imagex'(t), y'(t)Image at an arbitrary point.

*e. Show that the speed |v(f)| decreases continually from perihelion to aphelion, and then increases from aphelion to perihelion. (Hint: express |v(t)|2 as a function of cos φ. Call this function f(u), where u = cos φ. Show that f'(u) > 0 for all u, so that f(u) increases when u increases and decreases when u decreases.)