Introduction to Functions of Several Variables

28
Chapter 8: Functions of Several Variables Section 8.1 Introduction to Functions of Several Variables Written by Karen Overman Instructor of Mathematics Tidewater Community College, Virginia Beach Campus Virginia Beach, VA With Assistance from a VCCS LearningWare Grant

description

Karen OvermanInstructor of MathematicsTidewater Community College, Virginia Beach Campus Virginia Beach, VA

Transcript of Introduction to Functions of Several Variables

Page 1: Introduction to Functions of Several Variables

Chapter 8: Functions of Several VariablesSection 8.1

Introduction to Functions of Several Variables

Written by Karen OvermanInstructor of Mathematics

Tidewater Community College, Virginia Beach Campus Virginia Beach, VA

With Assistance from a VCCS LearningWare Grant

Page 2: Introduction to Functions of Several Variables

In this lesson we will discuss:

o Notation of functions of several variables o Domain of functions of several variableso Graphs of functions of several variableso Level curves for functions of several variables

Page 3: Introduction to Functions of Several Variables

Notation for Functions of Several Variables

Previously we have studied functions of one variable, y = f(x) in which x was the independent variable and y was the dependent variable. We are going to expand the idea of functions to include functions with more than one independent variable. For example, consider the functions below:

43214321

22

42,,,or

2,,or

2,

xxxxxxxxh

xezyxg

yxyxf

yz

Page 4: Introduction to Functions of Several Variables

The function z = f(x, y) is a function of two variables. It has independent variables x and y, and the dependent variable z.

Likewise, the function w = g(x, y, z) is a function of three variables. The variables x, y and z are independent variables and w is the dependent variable.

The function h is similar except there are four independent variables.

Hopefully you can see the notation for functions of several variables is similar to the notation you’ve used with single variable functions.

43214321

22

42,,,or

2,,or

2,

xxxxxxxxh

xezyxgw

yxyxfz

yz

Page 5: Introduction to Functions of Several Variables

When finding values of the several variable functions instead of just substituting in an x-value, we will substitute in values for each of the independent variables:

For example, using the function f on the previous slide, we will evaluate the function f(x, y) for (2, 3) , (4, -3) and (5, y).

179423223,2

2,

22

22

f

yxyxf

4191623423,4 22 f

2222 5025252,5 yyyyf

Page 6: Introduction to Functions of Several Variables

A Function of Two Variables: A function f of two variables x and y is a rule that assigns to each ordered pair (x, y) in a given set D, called the domain, a unique value of f.Functions of more variables can be defined similarly.

The operations we performed with one-variable functions can also be performed with functions of several variables.

For example, for the two-variable functions f and g:

0,Provided,,

,,

,,,

,,,

yxgyxgyxfyx

gf

yxgyxfyxgf

yxgyxfyxgf

In general we will not consider the composition of two multi-variable functions.

Page 7: Introduction to Functions of Several Variables

Domains of Functions of Several Variables:Unless the domain is given, assume the domain is the set of all points for which the equation is defined. For example, consider the functions

xy

yxgyxyxf 1,and3, 22

The domain of f(x,y) is the entire xy-plane. Every ordered pair in the xy-plane will produce a real value for f.The domain of g(x, y) is the set of all points (x, y) in the xy-plane such that the product xy is greater than 0. This would be all the points in the first quadrant and the third quadrant.

Page 8: Introduction to Functions of Several Variables

Example 1: Find the domain of the function: 2225, yxyxf

Solution: The domain of f(x, y) is the set of all points that satisfy the inequality:

025 22 yx 2225 yx or

You may recognize that this is similar to the equation of a circle andthe inequality implies that any ordered pair on the circle or inside the circle is in the domain.

2522 yx

x

yThe highlighted area is the domain to f.

Page 9: Introduction to Functions of Several Variables

Example 2: Find the domain of the function: 16,, 222 zyxzyxg

Solution: Note that g is a function of three variables, so the domain is NOT an area in the xy-plane. The domain of g is a solid in the 3-dimensional coordinate system.

The expression under the radical must be nonnegative, resulting in the inequality:

This implies that any ordered triple outside of the sphere centered at the origin with radius 4 is in the domain.

16or016 222222 zyxzyx

Page 10: Introduction to Functions of Several Variables

Example 3: Find the domain of the function:

Solution: We know the argument of the natural log must be greater than zero.

So,

This occurs in quadrant I and quadrant III. The domain is highlighted below. Note the x-axis and the y-axis are NOT in the domain.

xyyxh ln,

0yx

x

y

Page 11: Introduction to Functions of Several Variables

Graphs of Functions of Several VariablesAs you learned in 2-dimensional space the graph of a function can be helpful to your understanding of the function. The graph gives an illustration or visual representation of all the solutions to the equation. We also want to use this tool with functions of two variables.

The graph of a function of two variables, z = f(x, y), is the set of ordered triples, (x, y, z) for which the ordered pair, (x, y) is in the domain.

*The graph of z = f(x, y) is a surface in 3-dimensional space.

The graph of a function of three variables, w = f(x, y, z) is the set of all points (x, y, z, w) for which the ordered triple, (x, y, z) is in the domain.

*The graph of w = f(x, y, z) is in 4 dimensions.

We can’t draw this graph or the graphs of any functions with 3 or more independent variables.

Page 12: Introduction to Functions of Several Variables

Example 4: Find the domain and range of the function and then sketch the graph.

2225, yxyxfz

Solution: From Example 1 we know the domain is all ordered pairs (x, y) on or inside the circle centered at the origin with radius 5.

All ordered pairs satisfying the inequality:

The range is going to consist of all possible outcomes for z.The range must be nonnegative since z equals a principle square root and furthermore, with the domain restriction: ,the value of the radicand will only vary between 0 and 25.

Thus, the range is .

2522 yx

50 z

2522 yx

Page 13: Introduction to Functions of Several Variables

25222 zyx

222 25 yxz

2225 yxz Solution to Example 4 Continued:Now let’s consider the sketch of the function:

Squaring both sides and simplifying:

You may recognize this equation from Chapter 7 - A sphere with radius 5. This is helpful to sketching the function, but we must be careful !!

The function and the equation

are not exactly the same. The equation does NOT represent z as a function of x and y – meaning there is not a unique value for z for each (x, y). Keep in mind that the function had a range of , which means the function is only the top half of the sphere.

2225 yxz 25222 zyx

50 z

Page 14: Introduction to Functions of Several Variables

As you have done before when sketching a surface in 3-dimensions it may be helpful for you to use the traces in each coordinate plane.

1. The trace in the xy-plane, z = 0, is the equation:

25or250 2222 yxyx The circle centered at the origin with radius 5 in the xy-plane.

2. The trace in the yz-plane, x = 0, is the equation:

25or25 222 zyyzThe circle centered at the origin with radius 5 in the yz-plane.

3. The trace in the xz-plane, y = 0, is the equation:

25or25 222 zxxzThe circle centered at the origin with radius 5 in the xz-plane.

Page 15: Introduction to Functions of Several Variables

Along with sketching the traces in each coordinate plane, it may be helpful to sketch traces in planes parallel to the coordinate planes.

4. Let z = 3: 16or253 2222 yxyx

So on the plane z = 3, parallel to the xy-plane, the trace is a circle centered at (0,0,3) with radius 4.

5. Let z = 4: 9or254 2222 yxyx

So on the plane z = 4, parallel to the xy-plane, the trace is a circle centered at (0,0,4) with radius 3.

Page 16: Introduction to Functions of Several Variables

Here is a SKETCH with the three traces in the coordinate planes and the additional two traces in planes parallel to the xy-plane.

Keep in mind that this is just a sketch. It is giving you a rough idea of what the function looks like. It may also be helpful to use a 3-dimensional graphing utility to get a better picture.

z = 3

z = 4

Page 17: Introduction to Functions of Several Variables

Here is a graph of the function using the 3-dimensional graphing utility DPGraph.

x

y

z

Page 18: Introduction to Functions of Several Variables

Example 5: Sketch the surface: 229 yxz

Solution: The domain is the entire xy-plane and the range is .

1. The trace in the xy-plane, z = 0, is the equation:

2. The trace in the yz-plane, x = 0, is the equation:

3. The trace in the xz-plane, y = 0, is the equation:

922 yx Circle

92 yz Parabola

92 xz Parabola

9z

Page 19: Introduction to Functions of Several Variables

Solution to Example 5 Continued:

Traces parallel to the xy-plane include the following two.

4. The trace in the plane, z = 5, is the equation:

5. The trace in the plane, z = -7, is the equation:

4or95

22

22

yx

yx

Circle centered at (0, 0, 5) with radius 2.

16or

97

22

22

yx

yx

Circle centered at (0, 0, -7) with radius 4.

Page 20: Introduction to Functions of Several Variables

x

y

z

922 yx

92 yz

92 xz

Here is a sketch of the traces in each coordinate plane. This paraboloid extends below the xy-plane.

Page 21: Introduction to Functions of Several Variables

Here’s a graph of the surface using DPGraph.

Page 22: Introduction to Functions of Several Variables

In the previous two examples, traces in the coordinate planes and traces parallel to the xy-plane were used to sketch the function of two variables as a surface in the 3-dimensional coordinate system.

When the traces parallel to the xy-plane or in other words, the traces found when z or f(x,y) is set equal to a constant, are drawn in the xy-plane, the traces are called level curves. When several level curves, also called contour lines, are drawn together in the xy-plane the image is called a contour map.

Level Curves

Page 23: Introduction to Functions of Several Variables

Example 6: Sketch a contour map of the function in Example 4, using the level curves at c = 5,4,3,2,1 and 0.

Solution: c = a means the curve when z has a value of a.

5rwithCircle25yx250:0

24rwithCircle24yx251:1

21rwithCircle21yx252:2

4rwithCircle16yx253:3

3rwithCircle9yx254:4

0,0atPoint0yx255:5

2222

2222

2222

2222

2222

2222

yxc

yxc

yxc

yxc

yxc

yxc

2225, yxyxfz

Page 24: Introduction to Functions of Several Variables

Solution to Example 6 Continued: Contour map with point (0, 0) for c = 5 and then circles expanding out from the center for the remaining values of c.

Note: The values of c were uniformly spaced, but the level curves are not.

When the level curves are spaced far apart (in the center), there is a gradual change in the function values.

When the level curves are close together (near c = 5), there is a steep change in the function values.

Page 25: Introduction to Functions of Several Variables

Example 7: Sketch a contour map of the function, using the level curves at c = 0, 2, 4, 6 and 8.

22 2, yxyxfz

Solution: Set the function equal to each constant.

148:Ellipse28:8

136:Ellipse26:6

124:Ellipse24:4

112:Ellipse22:2

0,0atPoint20:0

2222

2222

2222

2222

22

yxyxc

yxyxc

yxyxc

yxyxc

yxc

Page 26: Introduction to Functions of Several Variables

Solution to Example 7 Continued: Contour map with point (0, 0) for c = 0 and then ellipses expanding out from the center for the remaining values of c.

Page 27: Introduction to Functions of Several Variables

Example 7 Continued:

Here is a graph of the surface . 22 2, yxyxfz

Page 28: Introduction to Functions of Several Variables

Note:

1. Sketching functions of two variables in 3-dimensions is challenging and will take quite a bit of practice. Using the traces and level curves can be extremely beneficial.

In the beginning, using 3-dimensional graphing utility will help you visualize the surfaces and see how the traces and level curves relate.

2. The idea of a level curve can be extended to functions of three variables. If w = g(x, y, z) is a function of three variables and k is a constant, then g(x, y, z) = k is considered a level surface of the function g. Though we may be able to draw the level surface, we still cannot draw the function g in 4 dimensions.