Paul's Online Notes
Paul's Online Notes
Home / Calculus III / 3-Dimensional Space / Functions of Several Variables
Show Mobile Notice Show All Notes Hide All Notes
Mobile Notice
You appear to be on a device with a "narrow" screen width (i.e. you are probably on a mobile phone). Due to the nature of the mathematics on this site it is best viewed in landscape mode. If your device is not in landscape mode many of the equations will run off the side of your device (you should be able to scroll/swipe to see them) and some of the menu items will be cut off due to the narrow screen width.

Section 12.5 : Functions of Several Variables

In this section we want to go over some of the basic ideas about functions of more than one variable.

First, remember that graphs of functions of two variables, \(z = f\left( {x,y} \right)\) are surfaces in three dimensional space. For example, here is the graph of \(z = 2{x^2} + 2{y^2} - 4\).

This is a graph with the standard 3D coordinate system.  The positive z-axis is straight up, the positive x-axis moves off to the left and slightly downward and positive y-axis move off the right and slightly downward.  This is a cup shaped object that is centered on the z-axis, starts at z=-4 and opens upward. This is a boxed 3D coordinate system.  The z-axis is right vertical edge of the box, the x-axis is the top back edge of the box and the y-axis is the bottom left edge of the box.  This is a cup shaped object that is parallel to the z-axis, starts at z=-4 and opens upward.

This is an elliptic paraboloid and is an example of a quadric surface. We saw several of these in the previous section. We will be seeing quadric surfaces fairly regularly later on in Calculus III.

Another common graph that we’ll be seeing quite a bit in this course is the graph of a plane. We have a convention for graphing planes that will make them a little easier to graph and hopefully visualize.

Recall that the equation of a plane is given by

\[ax + by + cz = d\]

or if we solve this for \(z\) we can write it in terms of function notation. This gives,

\[f\left( {x,y} \right) = Ax + By + D\]

To graph a plane we will generally find the intersection points with the three axes and then graph the triangle that connects those three points. This triangle will be a portion of the plane and it will give us a fairly decent idea on what the plane itself should look like. For example, let’s graph the plane given by,

\[f\left( {x,y} \right) = 12 - 3x - 4y\]

For purposes of graphing this it would probably be easier to write this as,

\[z = 12 - 3x - 4y\hspace{0.25in} \Rightarrow \hspace{0.25in}\,\,\,\,\,3x + 4y + z = 12\]

Now, each of the intersection points with the three main coordinate axes is defined by the fact that two of the coordinates are zero. For instance, the intersection with the \(z\)-axis is defined by \(x = y = 0\). So, the three intersection points are,

\[\begin{align*} & x - {\mbox{axis : }}\left( {4,0,0} \right)\\ & y - {\mbox{axis : }}\left( {0,3,0} \right)\\ & z - {\mbox{axis : }}\left( {0,0,12} \right)\hspace{0.25in}\end{align*}\]

Here is the graph of the plane.

This is a graph with the standard 3D coordinate system.  The positive z-axis is straight up, the positive x-axis moves off to the left and slightly downward and positive y-axis move off the right and slightly downward.  This is a triangle in the 1st octant (i.e. x,y and z are all positive) with vertices at (4,0,0), (0,3,0) and (0,0,12). This is a boxed 3D coordinate system.  The z-axis is right vertical edge of the box, the x-axis is the top back edge of the box and the y-axis is the bottom left edge of the box.  This is a triangle in the 1st octant (i.e. x,y and z are all positive) with vertices at (4,0,0), (0,3,0) and (0,0,12).

Now, to extend this out, graphs of functions of the form \(w = f\left( {x,y,z} \right)\) would be four dimensional surfaces. Of course, we can’t graph them, but it doesn’t hurt to point this out.

We next want to talk about the domains of functions of more than one variable. Recall that domains of functions of a single variable, \(y = f\left( x \right)\), consisted of all the values of \(x\) that we could plug into the function and get back a real number. Now, if we think about it, this means that the domain of a function of a single variable is an interval (or intervals) of values from the number line, or one dimensional space.

The domain of functions of two variables, \(z = f\left( {x,y} \right)\), are regions from two dimensional space and consist of all the coordinate pairs, \(\left( {x,y} \right)\), that we could plug into the function and get back a real number.

Example 1 Determine the domain of each of the following.
  1. \(f\left( {x,y} \right) = \sqrt {x + y} \)
  2. \(f\left( {x,y} \right) = \sqrt x + \sqrt y \)
  3. \(f\left( {x,y} \right) = \ln \left( {9 - {x^2} - 9{y^2}} \right)\)
Show All Solutions Hide All Solutions
a \(f\left( {x,y} \right) = \sqrt {x + y} \) Show Solution

In this case we know that we can’t take the square root of a negative number so this means that we must require,

\[x + y \ge 0\]

Here is a sketch of the graph of this region.

This is the graph of the line y=-x and the area above it is shaded.

b \(f\left( {x,y} \right) = \sqrt x + \sqrt y \) Show Solution

This function is different from the function in the previous part. Here we must require that,

\[x \ge 0\hspace{0.25in}{\mbox{and}}\,\,\,\,\,y \ge 0\]

and they really do need to be separate inequalities. There is one for each square root in the function. Here is the sketch of this region.

This is the graph with a solid line on the positive x and positive y axis and the 1st quadrant is shaded.

c \(f\left( {x,y} \right) = \ln \left( {9 - {x^2} - 9{y^2}} \right)\) Show Solution

In this final part we know that we can’t take the logarithm of a negative number or zero. Therefore, we need to require that,

\[9 - {x^2} - 9{y^2} > 0\hspace{0.25in} \Rightarrow \hspace{0.25in}\,\,\,\frac{{{x^2}}}{9} + {y^2} < 1\]

and upon rearranging we see that we need to stay interior to an ellipse for this function. Here is a sketch of this region.

This is an ellipse centered at the origin with right/left points of (3,0)/(-3,0) respectively and top/bottom points of (0,1)/(0,-1) respectively.  The ellipse itself is dashed and the interior of the ellipse is shaded.

Note that domains of functions of three variables, \(w = f\left( {x,y,z} \right)\), will be regions in three dimensional space.

Example 2 Determine the domain of the following function, \[f\left( {x,y,z} \right) = \frac{1}{{\sqrt {{x^2} + {y^2} + {z^2} - 16} }}\]
Show Solution

In this case we have to deal with the square root and division by zero issues. These will require,

\[{x^2} + {y^2} + {z^2} - 16 > 0\hspace{0.25in}\,\,\,\,\, \Rightarrow \hspace{0.25in}\,\,\,{x^2} + {y^2} + {z^2} > 16\]

So, the domain for this function is the set of points that lies completely outside a sphere of radius 4 centered at the origin.

The next topic that we should look at is that of level curves or contour curves. The level curves of the function \(z = f\left( {x,y} \right)\) are two dimensional curves we get by setting \(z = k\), where \(k\) is any number. So the equations of the level curves are \(f\left( {x,y} \right) = k\). Note that sometimes the equation will be in the form \(f\left( {x,y,z} \right) = 0\) and in these cases the equations of the level curves are \(f\left( {x,y,k} \right) = 0\).

You’ve probably seen level curves (or contour curves, whatever you want to call them) before. If you’ve ever seen the elevation map for a piece of land, this is nothing more than the contour curves for the function that gives the elevation of the land in that area. Of course, we probably don’t have the function that gives the elevation, but we can at least graph the contour curves.

Let’s do a quick example of this.

Example 3 Identify the level curves of \(f\left( {x,y} \right) = \sqrt {{x^2} + {y^2}} \). Sketch a few of them.
Show Solution

First, for the sake of practice, let’s identify what this surface given by \(f\left( {x,y} \right)\) is. To do this let’s rewrite it as,

\[z = \sqrt {{x^2} + {y^2}} \]

Recall from the Quadric Surfaces section that this the upper portion of the “cone” (or hour glass shaped surface).

Note that this was not required for this problem. It was done for the practice of identifying the surface and this may come in handy down the road.

Now on to the real problem. The level curves (or contour curves) for this surface are given by the equation are found by substituting \(z = k\). In the case of our example this is,

\[k = \sqrt {{x^2} + {y^2}} \hspace{0.25in}\hspace{0.25in} \Rightarrow \hspace{0.25in}\hspace{0.25in}{x^2} + {y^2} = {k^2}\]

where \(k\) is any number. So, in this case, the level curves are circles of radius \(k\) with center at the origin.

We can graph these in one of two ways. We can either graph them on the surface itself or we can graph them in a two dimensional axis system. Here is each graph for some values of \(k\).

This is a graph with the standard 3D coordinate system.  The positive z-axis is straight up, the positive x-axis moves off to the left and slightly downward and positive y-axis move off the right and slightly downward.  This is a cone centered on the z-axis and opening upwards.  On the cone surface there are series of circles at z=1, z=2, z=3, z=4 and z=5. This is a boxed 3D coordinate system.  The z-axis is right vertical edge of the box, the x-axis is the top back edge of the box and the y-axis is the bottom left edge of the box.  This is a cone parallel to the z-axis and opening upwards.  On the cone surface there are a series of circles at z=1, z=2, z=3, z=4 and z=5.
This is a series of circles centred at the origin with radius 1, 2, 3, 4, and 5.

Note that we can think of contours in terms of the intersection of the surface that is given by \(z = f\left( {x,y} \right)\) and the plane \(z = k\). The contour will represent the intersection of the surface and the plane.

For functions of the form \(f\left( {x,y,z} \right)\) we will occasionally look at level surfaces. The equations of level surfaces are given by \(f\left( {x,y,z} \right) = k\) where \(k\) is any number.

The final topic in this section is that of traces. In some ways these are similar to contours. As noted above we can think of contours as the intersection of the surface given by \(z = f\left( {x,y} \right)\) and the plane \(z = k\). Traces of surfaces are curves that represent the intersection of the surface and the plane given by \(x = a\) or \(y = b\).

Let’s take a quick look at an example of traces.

Example 4 Sketch the traces of \(f\left( {x,y} \right) = 10 - 4{x^2} - {y^2}\) for the plane \(x = 1\) and \(y = 2\).
Show Solution

We’ll start with \(x = 1\). We can get an equation for the trace by plugging \(x = 1\) into the equation. Doing this gives,

\[z = f\left( {1,y} \right) = 10 - 4{\left( 1 \right)^2} - {y^2}\hspace{0.25in}\,\,\,\, \Rightarrow \hspace{0.25in}\,\,\,z = 6 - {y^2}\]

and this will be graphed in the plane given by \(x = 1\).

Below are two graphs. The graph on the left is a graph showing the intersection of the surface and the plane given by \(x = 1\). On the right is a graph of the surface and the trace that we are after in this part.

This is a cup shaped object centered on the z-axis, starting at z=10 and opening downwards.  There is a plane parallel to the yz-plane that is cutting into the object at x=1. This is a cup shaped object centered on the z-axis, starting at z=10 and opening downwards.  There is a line on the object at x=1 that represents where the plane that is in the image to the left cuts into the object.

For \(y = 2\) we will do pretty much the same thing that we did with the first part. Here is the equation of the trace,

\[z = f\left( {x,2} \right) = 10 - 4{x^2} - {\left( 2 \right)^2}\hspace{0.25in}\,\,\,\, \Rightarrow \hspace{0.25in}\,\,\,z = 6 - 4{x^2}\]

and here are the sketches for this case.

This is a cup shaped object centered on the z-axis, starting at z=10 and opening downwards.  There is a plane parallel to the xz-plane that is cutting into the object at y=2. This is a cup shaped object centered on the z-axis, starting at z=10 and opening downwards.  There is a line on the object at y=2 that represents where the plane that is in the image to the left cuts into the object.