Calculus III 13.01 Functions with Several Variables
Previous | Calculus III 12 Vector-Valued Functions |
Next | Calculus III 13.02 Limits and Continuity |
Contents
13.01 Functions with Several Variables
- Understand the notation for a function with several variables.
- Sketch the graph for a function with two variables.
- Sketch level curves for a function with two variables.
- Sketch level surfaces for a function with three variables.
- Use software to draw a graph for a function with two variables
Functions with Several Variables
Many familiar functions have two or more variables.
- The work done by a force, \(W=FD\), has two variables.
- The volume for a right circular cylinder, \(V=\pi r^{2}h\), has two variables.
- The volume for a rectangular solid, \(V=lwh\), has three variables.
The notation for a function with two or more variables extends the notation for a function with one variable.
$$ y = \color{red}{\underbrace{\color{black}{f(x)}}_{\color{red}{\text{1 variable}}}} = x+1 \:\:\:\: \color{red}{ \text{ Function with one variables }}$$ | |
$$ z = \color{red}{\underbrace{\color{black}{f(x,y)}}_{\color{red}{\text{2 variables}}}} = x^{2}+xy \:\:\:\: \color{red}{ \text{ Function with two variables }}$$ | |
$$ w = \color{red}{\underbrace{\color{black}{f(x,y,z)}}_{\color{red}{\text{3 variables}}}} = x+2y-3z \:\:\:\: \color{red}{ \text{ Function with three variables }}$$ |
Definition 13.1.1 A Function with Two Variables
Let \(D\) be real numbers in an ordered pair set. If, to each ordered pair \((x,y)\) in \(D\) there corresponds a unique real number \(f(x,y)\), then \(f\) is a function of \(x\) and \(y\). The set \(D\) is the domain for \(f\), and the corresponding values for \(f(x,y)\) is the range for \(f\). For the function
- \(z=f(x,y)\)
\(x\) and \(y\) are called the independent variables and \(z\) is the called the dependent variable.
The definition can be extended to functions with three, four, or \(n\) variables, where the domains are ordered triples \((x_{1},x_{2},x_{3})\), quadruples \((x_{1},x_{2},x_{3},x_{4})\), and \(n\)-tuples \((x_{1},x_{2},...,x_{n})\). In all cases the range is the real number set. The discussion continues with two or three variable functions.
Functions with several variables are often defined as an equation, and unless it is otherwise restricted, the domain is the set for all points for which the equation is defined. For instance, the domain for the function
- \( f(x,y)=x^{2}+y^{2} \)
is the entire \(xy\)-plane. Similarly, the domain for
- \( f(x,y)=\ln xy \)
is the set for all points \((x,y)\) in the plane for which \(xy>0\). This is all points in the first and third quadrants.
Example 13.1.1 Domains for Functions with Several Variables
|
Find the domain for each function.
Solution
The domain is all points lying on or outside the circle \(x^{2}+y^{2} = 9 \), except those point on the \(y\)-axis, as shown in Figure 13.1.1.
The domain is all points \((x,y,z)\) lying inside a sphere with radius 3 that is centered at the origin. |
Functions with several variables can be combined in the same ways as functions with a single variables. The sum, difference, product, and quotient functions with two variables follows.
\((f \pm g)(x,y) \) | \(= f(x,y) \pm g(x,y) \) | Sum or difference |
\((fg)(x,y)\) | \(= f(x,y)g(x,y) \) | Product |
$$\frac{f}{g} (x,y) $$ | $$= \frac{f(x,y)}{g(x,y)}, g(x,y) \ne 0 \:\:\:\: $$ | Quotient |
Two or more functions with multiple variables have no composite form. However, the composite function \((g \circ h)(x,y)\), where \(g\) is a function with one variable and \(h\) is a function with two variables.
- \( (g \circ h)(x,y) = g(h(x,y)) \:\:\:\: \) Composition
The domain for this composite function is all \((x,y)\) in \(h\)'s domain such that \(h(x,y)\) is in \(g\)'s domain. For example, the function
- \( f(x,y) = \sqrt{16-4x^{2}-y^{2}} \)
can be viewed as two functions
- \( h(x,y) = 16-4x^{2}-y^{2} \)
and
- \( g(u) = \sqrt{ u } \).
The domain is all points lying on or inside the ellipse \(4x^{2}+y^{2}=16\).
A polynomial function with two variables is written in the form \(cx^{m}y^{n}\), where \(c\) is a real number and \(m\) and \(n\) are nonnegative integers. For example, the functions
- \( f(x,y) = x^{2}+y^{2}+2xy+x+2 \)
and
- \( g(x,y) = 3xy^{2}+x-2 \)
are polynomial functions with two variables. A rational function is the quotient with two polynomial functions. Similar terminology is used for functions with more than two variables.
The Graph for a Function with Two Variables
|
As in life, much can be learned a by rendering an idea as a graphic. The graph for a function \(f\) with two variables is the set for all points \((x, y, z)\) for which \(z = f (x, y )\) and \((x, y)\) is in the \(f\)'s domain. This graph can be interpreted geometrically as a surface in three-dimensions, as discussed in Sections 11.5 and 11.6. In Figure 13.1.2, note that the graph for \(z = f (x, y )\) is a surface whose projection onto the \(xy\)- plane is \(D\), the domain for \( f\). To each point \((x, y)\) in \(D\) there corresponds a point \((x, y,z)\) on the surface, and, conversely, to each point \((x, y,z)\) on the surface there corresponds a point \((x, y)\) in \(D\). |
Example 13.1.2 Describing the Graph for a Function with Two Variables
|
Describe the range for
and sketch its graph.
Therefore, \(D\) is all points lying on or inside the ellipse described by
on the \(xy\)-plane. The range for \(f\) is all values \(z=f(x,y)\) such that \( 0 \leqslant z \leqslant \sqrt{ 16 } \), or
A point \((x,y,z)\) is on \(f\)'s graph if and only if
The graph is shown in Figure 13.1.3. |
|
To sketch a surface in three-dimensions by hand, start by drawing traces in planes parallel to the coordinate planes, as shown in Figure 13.1.3. For example, to find the trace for the surface in the plane \(z=2\), substitute \(z=2\) in the equation \(z = \sqrt{ 16-4x^{2}-y^{2}} \) to produce
The trace is an ellipse centered at (0,0,2) with major and minor axes lengths
Traces are also used with three-dimensional graphing utilities. Figure 13.1.4 shows a computer-generated version for the surface given in Example 13.1.2. For this graph, the computer took 25 traces parallel to the \(xy\)-plane and 12 traces in vertical planes. Every three-dimensional graphing utility renders differently so practice with many before choosing one. |
Level Curves
A second way to visualize a function with two variables is to use a scalar field in which the scalar
- \(z=f(x,y)\)
is assigned to the point \((x,y)\). A scalar field can be characterized by level curves (or contour lines) along which the value for \(f(x,y)\) is constant. For instance, the weather map in Figure 13.1.5 shows level curves with equal pressure called isobars. In weather maps for which the level curves represent equal temperature, the level curves are called isotherms, as shown in Figure 13.1.6. Another common use for level curves is in representing electric potential fields called equipotential lines.
|
Contour maps are commonly used to show regions on Earth’s surface, with the level curves representing the height above sea level. This map type is called a topographic map. For example, the mountain shown in Figure 13.1.7 is represented by the topographic map in Figure 13.1.8. A contour map depicts the variation \(z\)'s with respect to \(x\) and \(y\) by the spacing between level curves. More space between level curves indicates that \(z\) is changing slowly, whereas less space indicates a rapid change in \(z\). To produce a good three-dimensional contour map illustration, it is important to choose evenly spaced \(c\)-values. |
Example 13.1.3 Sketching a Contour Map for a Hemisphere
The hemisphere
- \( f(x,y) = \sqrt{ 64-x^{2}-y^{2}} \)
is shown in Figure 13.1.9. Sketch a contour map for this surface using level curves corresponding to \(c=0,1,2,...,8\).
Solution For each value \(c_{n}\), the equation \(f(x,y)=c\) is a circle, or point, in the \(xy\)-plane. For example, when \(c_{1}=0\), the level curve is
- \( x^{2}+y^{2} = 64 \:\:\:\: \)Circle with radius 8
which is a circle with radius 8. Figure 13.1.10 shows the nine levels curves for the hemisphere.
Example 13.1.4 Sketching a Contour Map for a Hyperbolic Paraboloid
|
The hyperbolic paraboloid
is shown in Figure 13.1.11. Sketch a contour map for this surface.
When \(c > 0\), the transverse axis is vertical. For instance, the level curve for \(c=4\) is
When \( c = 0\), the level curve is the degenerate conic representing the intersecting asymptotes, as shown in Figure 13.1.12. |
Example 13.1.5 The Cobb-Douglas Production Function
|
The Cobb-Douglas production function is a function with two variables used in economics. It is used as a model to represent the units produced by varying labor and capital. If \(x\) measures the labor units and \(y\) measures the capital units, then the units produced is
where \(C\) and \(a\) are constants with \(0< a < 1.\) A toy manufacturer estimates a production function to be
where \(x\) is the labor units and \(y\) is the capital units. Compare the production level where \(x=1000\) and \(y=500\) with the production level when \(x=2000\) and \(y=1000\).
When \(x=2000\) and \(y=1000\), the production level is
The level curves for \(z=f(x,y)\) are shown in Figure 13.1.13. Note that by doubling both \(x\) and \(y\), the production level is doubled as well. |
Level Surfaces
The level curve can be extended by one dimension to define a level surface. If \(f\) is a function with three variables and \(c\) is a constant, then the graph for the equation
- \( f(x,y,z)=c\)
is a level surface for the function \(f\), as shown in Figure 13.1.14.
Example 13.1.6 Level Surfaces in Three Dimensions
|
Describe the level surfaces for
Solution Each level surface has an equation with the form
The level surfaces are ellipsoids with circular cross sections parallel to the \(yz\)-plane. As \(c\) increases, the radii for the circular cross sections increase according to \(c\)'s square root. For example, the level surfaces corresponding to the values \(c = 0\), \(c = 4\), and \(c = 16\) are as follows.
The level surfaces are shown in Figure 13.1.15. If the function represented the temperature at the point \((x,y,z)\), then the level surfaces would be called isothermal surfaces. |
Computer Graphics
|
Most three-dimensional graphing programs use a trace analysis to render a three-dimensional image on a two-dimensional media. The program requires at least the equation for the surface in the \(xy\)-plane and possibly the trace count. For instance, to render the surface
you might choose the following bounds for \(x\), \(y\), and \(z\).
Figure 13.1.16 shows a computer-generated graph for this surface using 26 traces taken parallel to the \(yz\)-plane. To enhance the three-dimensional effect, the program uses a “hidden line” routine. It begins by plotting the traces in the foreground, those corresponding to the largest \(x\)-values, and then, as each new trace is plotted, the program determines whether all or only part of the next trace should be shown. The graphs in Figures 13.1.17, 13.1.18, and 13.1.19 show different surfaces that were plotted by computer. Always remember to rotate the graph until you see an optimal view. |
Internal Links
Parent Article: Calculus III 13 Functions with Several Variables