Lesson 1 Part 1: Functions of Several Variables (Hàm nhiều biến)
Lesson 1 Part 1: Functions of Several Variables (Hàm nhiều biến)
Definition
• A function f of n variables is a rule that assigns to each ordered set of n real numbers
x1, x2,..., xn 2 D 3 =n a unique real number denoted by f x1, x2,..., xn . The set D is the
domain of f and its range is the set of values that takes on, that is,
f x1, x2,..., xn x1,..., xn 2 D .
Examples
Exam 1
2 2
Find and describe the domain D 3 =2 of the function z = f x, y = 4 Kx Ky
2
C
2 2
x Cy K1
Sol
Exam 2
Find and describe the domain D 3 =3 of the function f x, y, z = 4 Kx2 Ky2 Kz2 .
Sol:
•
•
Exam
O f d 1.01 L0.75K0.25; plot3d f, K = 0 .. 3, L = K3 .. 3, view = 0 ..9, axes = normal,
scaling = constrained ;
-3
00
-1
K L 1
1
2
3
3
-9
2
-4 y
0
3 1
2 1 0 -1 -2 -3
6 x
O
Practice:
1
Set a = 2 and b = . Explain why this surface is an "elliptical paraboloid".
2
Sol:
Hyperbolic paraboloid
x2 y2
Next we graph a hyperbolic paraboloid defined by z =K 2 C 2 .
a b
O a := 1; b := 1;
g := -x^2/a^2+y^2/b^2;
plot3d(g, x = -3 .. 3, y = -4 .. 4, style = patchnogrid,
axes = normal);
a := 1
b := 1
g := Kx2 Cy2
16
11
-4
6
y
-2
-3
1 -2
0 -1
0 x
1 2
-4
2
3 4
-9
Ellipsoid
If surfaces cannot be expressed as the graph of a (single) function of two variables, we can use
the implicit plot command.
2 2 2
x y z
We start with the ellipsoid defined by equation 2 C 2 C 2 =m, of which a sphere is a
a b c
special case.
O with(plots):a := 2; b := 3; c := 1;
m := x^2/a^2+y^2/b^2+z^2/c^2;
implicitplot3d(m = 2, x = -5 .. 5, y = -5 .. 5, z = -5 ..
5, axes = normal, scaling = constrained, style =
patchnogrid, grid = [20, 20, 20]);
a := 2
b := 3
c := 1
1 2 1 2 2
m := x C y Cz
4 9
5
3
5
4 2
3
2 1
1
-5
00 -4
-3
-1 -2
-1
0 y
1 -1 -2
2 x
3 -3
4
5 -2 -4
z -5
-3
-4
-5
1.0
0.5
1.5
1.5 1.0
1.0 0.00.5
0.5 0.0
0.0
-0.5 -0.5
-1.0 -1.0
-1.5
-1.5 -0.5 y
x
z
-1.0
-1.5
Exercise
4. Graph a hyperboloid of one sheet which extends along the x-axis instead of along the z-
axis. Once graphed, click on the contour button to see where the name "hyperboloid"
comes from.
Sol
O a := 1; b := 1; c := 1;
n := x^2/a^2+y^2/b^2-z^2/c^2;
implicitplot3d(n = 2, x = -1.5 .. 1.5, y = -1.5 ..
1.5, z = -1.5 .. 1.5, axes = normal, scaling =
constrained, style = patchnogrid);
Hyperboloid of two sheets.
x2 y2 z2
We move on to hyperboloids of two sheets defined by 2 C 2 K 2 =Kn2.
a b c
O a := 1; b := 1; c := 1;
n := x^2/a^2+y^2/b^2-z^2/c^2;
implicitplot3d(n = -1, x = -3 .. 3, y = -3 .. 3, z = -3 ..
3, axes = normal, scaling = constrained, style =
patchnogrid, grid = [30, 30, 30]);
a := 1
b := 1
c := 1
n := x2 Cy2 Kz2
-3
0 -2
-3 -1
-2 -1 00
1 x 1 2 3
y 2
3 -1
z
-2
-3
In the degenerate case (right side of the equation = 0), we obtain at a pair of cones, the
geometric foundation for the conic sections.
O a := 1; b := 1; c := 1;
n := x^2/a^2+y^2/b^2-z^2/c^2;
implicitplot3d(n = 0, x = -3 .. 3, y = -3 .. 3, z = -3 ..
3, axes = normal, scaling = constrained, style =
patchnogrid, grid = [30, 30, 30]);
a := 1
b := 1
c := 1
2 2 2
n := x Cy Kz
3
1
3
2
1
0
-1
3 2 1 0 -2 y -1 -2 -3
-3
x
-1
z
-2
-3
Exercise:
Cut the above surface with a plane such that the intersection curve is an
elliptic/hyperbola/parabola.
Level Curves
Another method for visualizing functions, borrowed from mapmakers, is a contour map on which
points of constant elevation are joined to form contour lines, or level curves.
Definition
The level curves of a function f of two variables are the plane curves with equations
f x, y = k where k is a constant in the range of f.
• You can see from Figure 4 the relation between level curves and horizontal traces.
• The level curves are just the traces of the graph of in the horizontal plane projected down to
the xy -plane. So if you draw the level curves of a function and visualize them being lifted up to
the surface at the indicated height, then you can mentally piece together a picture of the graph.
Other examples
Example with Maple
O z:=x*exp(-x^2-y^2);
2 K y2
z := x eKx (3.2.1)
O plot3d(z,x=-3..3,y=-3..3);
restart : with plots : with plottools : with Student MultivariateCalculus : p d plot3d x
$exp Kx2 Ky2 , x =K2 ..2, y =K2 ..2, style = contour, contours = 18, thickness = 1 :
2 2
q d contourplot x.exp Kx Ky , x =K2 ..2, y =K2 ..2, filled = true, coloring = red, blue :
f d transform x, y / x, y,K2 :
display p, f q , orientation = 50, 30 ;
Graph of functions of more than 2 variables
• It’s very difficult to visualize a function of three variables w = f x, y, z by its graph, since that
would lie in a four-dimensional space.
• However, we do gain some insight into by examining its level surfaces, which are the surfaces
with equations f x, y, z = k , where k is a constant.