Skip to partial derivatives.

Smooth Surfaces and Partial Derivatives

The most important image in calculus is the movie below. This movie shows a section of a curved mirror with a light ray coming in and bouncing off. As the movie plays, the scene is magnified and under high magnification we see that the curved mirror looks flat. This is the key feature of a differentiable function

y = f(x).

Sometimes we use the word smooth rather than differentiable.

Missing movie Zooming in on a light ray bouncing off a curved mirror.

Because such curves look flat under high magnification, when we are looking at a phenomenon -- like a light ray bouncing off a mirror -- that is a "local" phenomenon -- that is, that happens in a small neighborhood of a point on a curve -- we are able to think of the curve as being flat. Because flat curves are easy to understand, this is often exactly the lever that enables us to solve or at least begin solving a problem that at first seems very difficult. This is the basic principle behind Newton's Method. It was also the basic principle behind our work with curved mirrors.

We can do exactly the same thing with the graph of a function z = f(x, y) of two variables that we did in the movie above for the graph of a function y = f(x) of one variable -- we can pick a spot on the graph and zoom in on a small neighborhood of the point using higher and higher magnification. Look at the movie below. Notice that as the magnification increases the surface looks more and more like a flat plane.

Missing movie Zooming in on a surface.


Your CAS window looks at the example above and then at another point on the same surface. Follow the instructions in your CAS window to look at these two examples. Then look at some other examples of your own choice.


Not all functions y = f(x) are smooth. For example, the function f(x) = |x| has a sharp point at the origin.

Missing graph

and under high magnification this point stays sharp.



Definition:

A function

z = f(x, y)

is said to be smooth or differentiable near the point (x0, y0) if under high magnification the graph of the function near this point looks like a flat plane -- that is, it looks like the graph of a function of the form

T(x, y) = a x + b y + c

where a, b, and c are constants. This is exactly analogous to the situation for a function

y = f(x)

of one variable, which is smooth or differentiable at a point x0 if under high magnification its graph looks like a function of the form

T(x) = m x + b

where m and b are constants. In this situation the constant m is called the slope of the function T(x) and is f'(x0). The constant b is f(x0) - m x0.


Use your CAS window to compare the functions f(x) and T(x) near the indicated point x0 in each of the examples below.


Partial Derivatives

One way to understand how a function

f(x, y)

behaves near a point (x0, y0) is to fix one of the two variables -- say, x at its value x0 and then change just the other variable. For example, suppose that we are interested in the function

f(x, y) = x2 - y2

near the point (0, 1). Consider the three graphs below.

Missing graph

The graph above shows the function f(x, y) with -2 <= x <= 2 and -2 <= y <= 2

.

Missing graph

The graph above is part of the first graph. The first graph has been sliced so that the plane x = 0 is the right face of the graph. Notice that along this face the graph looks like z = -y2.

Missing graph

The graph above is part of the first graph. Now we have sliced the first graph so that the plane y = 1 is the front face of the graph. Notice that on this face the graph looks like z = x2 - 1.

You can look at these same slices using two-dimensional graphs rather than three-dimensional graphs as shown in the two figures below.

Missing graph Missing graph

By changing just the variable x and leaving y fixed, we can focus our attention on the way in which z depends on x. In particular, we can compute the partial derivative of z with respect to x.

Missing equation

Similarly, by changing just the variable y and leaving x fixed, we can focus our attention on the way in which z depends on y. In particular, we can compute the partial derivative of z with respect to y.

Missing equation

These partial derivatives are computed using exactly the same methods and formulas as ordinary derivatives. During the computation of the partial derivative with respect to x we must remember that y is a constant. Similarly, during the computation of the partial derivative with respect to y we must remember that x is a constant. For example, if

z = x3 y + x y4 + 2 x + 3 y

Then

Missing equation

and

Missing equation

Your computer algebra system will compute partial derivatives as easily as ordinary derivatives.

Missing TI-92 screen


Compute both partial derivatives of each of the following functions "by hand" and then check your answer using your CAS window.


The two partial derivatives give us a lot of geometric information about the function z = f(x, y). For example, the Mathematica log below shows how we can use the partial derivatives to draw the tangent plane to the surface

z = x2 + y2

at the point (-0.5, -0.5).

Missing Mathematica log

Since the partial derivative of z with respect to x tells us the slope of the function z = f(x, y) in a plane parallel to the zx-plane the vector

Missing equation

is tangent to the surface z = f(x, y). Similarly, since the partial derivative of z with respect to y tells us the slope of the function z = f(x, y) in a plane parallel to the yz-plane the vector

Missing equation

is tangent to the surface z = f(x, y).

We can use these two tangent vectors to give us a vector, Q, perpendicular to the surface.

Missing equation

and a normal vector, N, to the surface

Missing equation


Show that the vector Q and, hence, the vector N point generally upward.


Challenge Problem

By putting this together with the work we did on shading the sphere you can use your CAS window to produce nicely shaded and colored pictures of a surface like

z = x2 - y2


Copyright c 1997 by Frank Wattenberg, Department of Mathematics, Montana State University, Bozeman, MT 59717