Dr. Lê Xuân Đ I: Functions of Several Variables
Dr. Lê Xuân Đ I: Functions of Several Variables
HCMC— 2018.
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 1 / 35
OUTLINE
2 QUADRIC SURFACES
3 MATL AB
EXAMPLE 1.1
The temperature T at a point on the surface
of the earth at any given time depends on the
longitude x and latitude y of the point. So T
is a function of the 2 variables x, y and we
denote it by T = f (x, y).
EXAMPLE 1.2
The volume V of a circular cylinder depends
on its radius R and its height h according to
the formula V = πR2h. So V is a function of R
and h.
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 3 / 35
Functions of Several Variables Functions of Two Variables
DEFINITION 1.1
A function f of two variables
f : D ⊂ R2 → R
(x, y) 7−→ z = f (x, y)
1
The set D is the domain of f and is
denoted by D(f ).
2
The set of values that f takes on
E = {z, ∃(x, y) ∈ D : z = f (x, y)} is called range
of f and is denoted by E(f ).
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 4 / 35
Functions of Several Variables Functions of Two Variables
EXAMPLE 1.3
y
Find the domain of function f (x, y) = arcsin ·
x
y
The function is defined if −1 É É 1 and
x
x 6= 0. So the domain
" of f is defined by the
−x É y É x, x > 0
inequalities
x É y É −x, x < 0
EXAMPLE 1.4
Find thepdomain and range of function
f (x, y) = 9 − x2 − y 2
1
The domain of f (x, y) is
n o n o
2 2 2 2
D = (x, y) : 9−x −y Ê 0 = (x, y) : x +y É 9
2
The range of f (x, y) is
n q o
E = z : z = 9 − x2 − y 2 , (x, y) ∈ D =
n o
= z : 0 É z É 3 = [0, 3]
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 7 / 35
Functions of Several Variables Functions of Two Variables
p
Domain of f (x, y) = 9 − x2 − y 2
EXAMPLE 1.5
Sketch the graph of the function
2
−y 2
z = f (x, y) = e−x .
DEFINITION 1.2
The level curves of a function z = f (x, y) are
the curves with equation f (x, y) = k, where
k ∈ E(f ) is a constant.
EXAMPLE 1.6
Sketch thep level curves of the function
f (x, y) = 9 − x2 − y 2 , for the values k = 0, 1, 2, 3.
p
HÌNH: Contour map of f (x, y) = 9 − x2 − y 2 , where k = 0, 1, 2, 3.
DEFINITION 1.3
A function of n variables
f : D ⊂ Rn → R
ELLIPSOID
x2 y 2 z2
+ + = 1, (a, b, c ∈ R)
a2 b2 c2
ELLIPTIC PARABOLOID
x2 y 2
z= 2+ 2
a b
HYPERBOLIC PARABOLOID
x2 y 2
z= 2− 2
a b
HYPERBOLOID
x2 y 2 z2
Hyperboloid of one sheet 2 + 2 − 2 = 1
a b c
HYPERBOLOID
x2 y 2 z2
Hyperboloid of two Sheets 2 + 2 − 2 = −1
a b c
CYLINDERS
x2 y 2
Elliptic Cylinder 2 + 2 = 1, z ∈ R
a b
CYLINDERS
CONE
x2 y 2 z2
+ =
a2 b2 c2
[X , Y ] = meshgrid(x, y)
mesh(X,Y,Z), surf(X,Y,Z),
surfc(X,Y,Z) (surface with level curves)
Example.
x = linspace(0, 2 ∗ pi, 50); y = linspace(0, pi, 50);
[X , Y ] = meshgrid(x, y);
Z = sin(X ). ∗ cos(Y + pi/2);
mesh(X , Y , Z) (or surf (X , Y , Z) or surfc(X , Y , Z))
xlabel(0 x0 ); ylabel(0 y 0 ); zlabel(0 z0 );
axis([0 2 ∗ pi 0 pi − 1 1])
Contour(X,Y,Z) or Contourf(X,Y,Z),
Example.
x = linspace(0, 2 ∗ pi, 30); y = linspace(0, pi, 30);
[X , Y ] = meshgrid(x, y);
Z = sin(X ). ∗ cos(Y + pi/2);
c = contour(X , Y , Z, [−1 : .1 : −0.1 0.1 : .1 : 1]);
clabel(c, [−1 : .2 : 1]);
xlabel(0 x0 ); ylabel(0 y 0 );
title(0 Contour of z = sin(x). ∗ cos(y + pi/2)0 );
c=contourf(X,Y,Z,[-1:0.1:-0.1 0.1:0.1:1],’–k’);